Repository navigation
fix(inbox): dictate other answers and guided review feedback - #3731
Merged
Merged
Conversation
- attach dictation to the active field so words never land in another answer - keep answer, add comment and send explicit while a take is in progress - test linked inboxes in both directions and preserve typed code suggestions
- use named providers to follow the existing context convention - separate nested jsx tags and remove redundant field tool comments
…box-other-dictation # Conflicts: # packages/inbox/components/ReviewPane.tsx # packages/inbox/components/Thread.tsx # packages/inbox/decisions/DecisionCard.tsx
Thread.tsx is at its size ceiling: the busy count and the two providers move to useOtherFieldVoice in FieldVoice.tsx, which useThreadVoice returns as others (off while the pane is parked).
…ords Main now draws a decision with the thread's own question card, so the card's own Other textarea and Answer button are gone. The mic comes in through the same Other tools as the thread; Decision mode's Send waits while a take runs. The e2e and the guide follow.
No mic at rest. It shows inside the field, level with its first line, while the field or the mic has focus, while a take runs, and while its words or a note are still on the field. The field keeps the mic's room at rest too, so its words never run under it and nothing moves when it comes. Tab reaches the mic right after the field, and a press keeps the field's focus. A take's status and notes go on a line under the field. One piece (FieldVoice) for question cards, Decision mode and guided-review comments. Decision mode: a strip's Try again waits for a running Other take, as Send does.
…s sizes within a rounding The Other field now sits in a box of its own in its row (the mic draws inside it), so the mark is no longer the field's sibling: question-other-lines looks for it on the row. The field's height and the mark beside its first line are unchanged and still asserted as before. The mic spec compared the field's box before and after focus exactly; a phone read 285 then 284.99999. It now allows half a pixel, as the other layout specs do.
…x-other-dictation
ReviewPane imported review-editor's LineFeedbackToolsProvider statically, so the Inbox window depended on review-editor outside the reader's lazy chunk. ReviewPane now passes the mic to GuideReader (lineFeedbackTools), which sets the provider inside the chunk it already loads. inbox-field-voice.spec.ts gets its shard time: 22 s, the sum of its two tests in the browser slice's last run (10.8 s and 10.9 s).
…x-other-dictation # Conflicts: # packages/inbox/components/Thread.tsx
Owner
|
Merged. Thank you for this: dictating an "Other" answer, a guide comment or a Decision mode answer is a real improvement, and the PR was a pleasure to build on. We pushed a few commits onto your branch along the way so it stayed yours: the mic now shows only while a field is focused and sits inside the field at its right edge, and a couple of merges with main as the reply box moved underneath it. It goes out in the next release (0.29.5). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dictate into Other answers in threads and Decision mode, or into guided-review line feedback. A pending transcript stays with its field; it cannot overwrite a new choice or edit suggested code. Send, Answer and Add Comment remain explicit.
Tested in Chromium with two linked Inboxes, simulated speech and desktop and phone-sized views. No physical phone or microphone was used.
e2e: inbox-field-voice.spec.ts