mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 04:47:19 +01:00
* feat(field): DictationField with no state in the app — native forms and react-hook-form (0.44.0) - Uncontrolled mode: value/onValueChange optional, new defaultValue; the real text box carries name, so a native form or server action posts typed and said words, and a form reset restores defaultValue. - react-hook-form: forwardRef (ref is the text box), onChange(event) for every change including microphone/Improve/Undo/setText, onBlur(event). - Browser test drives react-hook-form itself (register, Controller, reset) and a native form; docs/roadmap.md records the remaining typing gaps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtoej4Vu1mYafzzcLc * docs(field): say the ref works across the peer React range, not a version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtoej4Vu1mYafzzcLc --------- Co-authored-by: Claude <noreply@anthropic.com>
1.6 KiB
1.6 KiB
Roadmap — gaps that keep a typing place out of chatkit
Each line is a place in a fleet app where a person types words and cannot yet
use Composer or DictationField, with what chatkit needs to take it over.
Fix it here; the app then swaps its own copy for the package.
- @-mentions in a box. OrangeCat's timeline composer is its own
contentEditableso a person can mention someone with@. Plan: amentionsoption on the shared box (TypingBox) — a source of people (search(query) => Promise<Mention[]>), a listbox under the caret with arrow keys and Enter, the mention kept as a token in the text sent (@[Name](id)), and the microphone still appending around it. Then OrangeCat's timeline composer becomesComposer. - "Speak to fill this form" bar. One microphone that fills several fields
at once from what was said: copied in kivvi, evig and surf-your-life,
rebuilt in orangecat, loki and skif. Plan: one bar in
@bitbaum/ai-forms(it owns the field schema and the model call) built on chatkit'suseDictationand voice bar, so the take, the retry and the words look the same as in every box; the apps then drop their copies. - Compact one-line field for a table cell. A row in a table needs a field
no taller than the row, with the microphone inside it. Plan: a
compactshape ofDictationField(multiline={false}, 32px box, the microphone as the only tool, the voice bar shown over the row) that keeps 16px text.
Done: uncontrolled fields for native forms and server actions, and
react-hook-form's register() / Controller (0.45).