Repository navigation
fix(bots): mark a question's suggested reply with a star - #52236
Merged
Merged
Conversation
[Low impact] The PR appears safe to merge; no actionable defects were found. SummaryReplaces the recommended reply’s “Suggested” text with a filled star.
No actionable issues were found. Build checks and visual capture were not run; dependencies were unavailable. Reviews (2) · Last reviewed commit: "fix(bots): mark a question's suggested r..." · Reviewed by Greptile |
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
On a question's reply rows, the recommended reply no longer carries the word "Suggested". It shows a 14px filled star in the theme accent, right-aligned and
flex-none. The star has a "Suggested" tooltip (title) and is announced as "Suggested" (role="img"+aria-label), so the button's name stays " Suggested". This is option A from the approved mockup.The label now gets the whole row at every width. The narrow-pane rule that wrapped "Suggested" under the label (and made that row 43px tall below 18rem) is gone. The row stays at its existing
min-h-9(36px) height and 13px text, the same as the other rows.Overlaps #52224. That PR restyles the "Suggested" text marker this PR removes, in the same lines. If this one lands, #52224 can close. Whichever lands second will conflict.
Checked against how comparable products handle this.
Edges, measured (CSS px, card at x=24)
The star's right edge (row right − 4) is the same edge the "Suggested" text sat on. It also matches the selected-reply check column. The star is vertically centered in the row (offset 0). The key column and the label's left edge don't move. Long labels truncate with an ellipsis in front of the star at every width.
Contrast (non-text, WCAG 1.4.11: 3:1)
The star is the plain accent (
text-theme-accent), measured against the row's composited tint (accent 8% idle, 14% hover) over the card surface:Every theme clears 3:1. The narrowest margin is the Ghostty default dark theme while hovered.
Screenshots (2x, rendered through the component fixture harness)
Short label, light / dark:
Long label, light / dark (220 / 300 / 380px):
Match Terminal themes (Ghostty Default Dark, Dracula, Solarized Dark, Solarized Light):
Performance
This swaps one text span and its container-query wrapper for one inline SVG on one row per question. There are no new effects, listeners, state, or re-renders. The options list doesn't change, so there's no list-scale or scroll impact.
Verification
pnpm check:changedpasses.