Repository navigation
Answer Needs you questions from keyed rows in the item panel - #49587
orca-remote-automation[bot] merged 11 commits into
Conversation
8abb846 to
924b038
Compare
… questions folding into steps
One-question asks show 2 lines of context, the bold question, keyed reply rows
(recommended first, with a Recommended label and a light tint) and an inline
Other… field; answered, the card folds to "Answered <answer>". Several
questions fold answered ones to "✓ Label: answer" with Change, show only the
first open one, and Send posts what is answered ("Sent N of M").
Checked against how comparable products handle this.
The word took a third of a narrow row; the accent star says the same and keeps the option's label readable. Recommended stays in the row's title and for screen readers.
… another one - The comment box's Enter folds only the question it answered; a question reopened by Change stays open with its Other… revision. - Change keeps words already being revised there instead of the held ones. - Change focuses the question's own pick, so Enter keeps it.
…s the held words Change prefills Other… from the held answer again, so a newer answer from the comment box is what shows, and focuses that field when the pick is typed words, so Enter keeps them.
The owner picked a short word over the star. A narrow pane moves it under the option's label, so the label keeps the row.
The accent mixed a fifth toward the text color: 5.6:1 idle and 5.2:1 hovered in light, 5.4:1 and 4.9:1 in dark (it was 4.1/3.8 and 4.4/4.0).
Mixing toward the theme's text color lowered contrast in a dark theme whose text is darker than its link color; away from the background holds AA in any theme. Built-in: 5.8:1 idle, 5.3:1 hovered (light); 5.6:1, 5.1:1 (dark).
924b038 to
4bcca39
Compare
[Medium impact] The latest fix appears safe to merge; the remaining translation issue is non-blocking. Findings
SummaryThe PR replaces answer pills with numbered rows, an Other… field, and folded answer summaries.
Reviews (2) · Last reviewed commit: "fix(bots): Change holds the shown Other…..." · Reviewed by Greptile |
| "other": "Other…", | ||
| "yourAnswer": "Your answer…", | ||
| "otherLabel": "Other answer", | ||
| "otherToBox": "Shift+Enter answers in the comment box, to attach files", | ||
| "sendOther": "Send answer", | ||
| "answered": "Answered", | ||
| "answeredCount": "{{count}} of {{total}} answered", | ||
| "sentCount": "Sent {{count}} of {{total}}", | ||
| "change": "Change", |
There was a problem hiding this comment.
Answer controls stay in English
Nine new labels exist only in English: other, yourAnswer, otherLabel, otherToBox, sendOther, answered, answeredCount, sentCount, and change. The other ten changed locale files add only suggested. Translate these keys too, so users do not get English fields, counts, and Change controls inside an otherwise translated card.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Main now posts the set when the last open line gets its answer. Change holds the shown line's words first and then reopens the line it changes, so that hold must not post: the changed line waits for its new answer.
ELI5
When a bot asks you a question in an item's side panel, you now answer it from a short list: press 1, 2 or 3, or type your own answer. Once answered, the question shrinks to one line.
What Changed
One question
1,2… and the label on one line with an ellipsis. The recommended reply is row 1, with a right-aligned Suggested label (accent, text-xs) and a light accent tint. In a very narrow panel, Suggested moves under the label.↵badge shows once text is typed.Several questions (steps)
Label: answer(the answer wraps to 2 lines, then an ellipsis; the full text is in the title), and Change on hover or focus (always shown on touch).N of M answeredon the left, Send on the right, enabled once one is answered. Send posts what's answered and leaves the rest as no answer. The card then folds to Sent N of M, and the item moves to In progress.Alignment: the key column, ✓ column, context and question start on the avatar's edge, which is the Activity rows' glyph edge. The right edge (time, Suggested, Change, Send) is the Activity rows' time edge.
Why
The old card stacked outlined pills, and a star marked the recommended one, so the question took a lot of room and had no keyboard path. The rows are denser, put the likely answer first and can be answered from the keyboard. Checked against how comparable products handle this.
Linked Issue
N/A (maintainer change, design approved by the owner)
Visual Proof
Recommended → Suggested, at AA contrast (the owner picked the short word over the long word and the star). The text is the accent mixed a fifth toward black in light and white in dark, away from any background, so it stays accent-toned, text-xs and right-aligned. Running app, head
924b038, real bot items in an isolated profile, red dashed guides on the avatar edge and the content right edge:Contrast of Suggested, measured in the running app from computed colors composited over the row's tint and card (WCAG 2.x):
Before:

Alignment: the avatar, key column and context share one left edge (x=1425 at 300 px, 1385 at 340 px, 1505 at 220 px). Suggested ends on the content and time edge (x=1696). At 220 px it sits under the label. The earlier app screenshots below show the original word or the star.
Before / after (component render, dark):
Running app, isolated dev profile, real bot item. 220 px is the panel's minimum width. Red dashed guides mark the avatar/content left edge and the content right edge; magenta marks the key column.
Final folded-steps rows (component render at 300 px; the multi-question app shots above were taken before the last layout change, which put "Label: answer" back on one wrapped line):
Measured in the app at 220 px: feed row glyph, avatar, context, question, key badges and ✓ all at x=1505. Content right edge, time, Change and Send all at x=1696.
Testing
Performance
None, because the card renders only while an item is open. It adds one keydown listener on the open item's pane while a question waits, and no polling, IPC or disk work.
Risk
Level: Medium. This is the answer path for bot questions. If something goes wrong, users would see a question they can't answer from the card, but the comment box ("Replying to") still answers it. The data format and host protocol are unchanged, so older phones and servers are unaffected. A plain revert backs it out.
Review
Final head reviewed by both seats:
aaadde11ee3.aaadde11ee3found nothing.