Repository navigation
style(desktop): Files changed as cards that share one edge, with a quiet fold and a clearer header #3794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style(desktop): Files changed as cards that share one edge, with a quiet fold and a clearer header #3794
Changes from all commits
ceeafba
92655cb
b5b312d
6eafcab
e454bc1
c20be68
c1e257c
c415bbb
88a5818
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,7 @@ import { | |
| FOLD_CHORD, | ||
| LIST_WORDS, | ||
| useChangesList, | ||
| VIEWED_CHORD, | ||
| } from "./changes-list.js"; | ||
| import { | ||
| blobShaOf, | ||
|
|
@@ -732,11 +733,16 @@ function ViewedBox({ | |
| onToggle: () => void; | ||
| }): React.JSX.Element { | ||
| return ( | ||
| <span className="diff-list-viewed"> | ||
| <Checkbox checked={viewed} onChange={onToggle}> | ||
| {LIST_WORDS.VIEWED} | ||
| </Checkbox> | ||
| </span> | ||
| <Tooltip | ||
| label={viewed ? LIST_WORDS.UNMARK_VIEWED : LIST_WORDS.MARK_VIEWED} | ||
| chord={VIEWED_CHORD} | ||
| > | ||
| <span className="diff-list-viewed"> | ||
| <Checkbox checked={viewed} onChange={onToggle}> | ||
| {LIST_WORDS.VIEWED} | ||
| </Checkbox> | ||
| </span> | ||
|
Comment on lines
+740
to
+744
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Viewed shortcut missing from checkbox When the Viewed checkbox takes focus, Learn moreA tooltip attaches Example: A screen-reader user tabs to a file's Viewed checkbox. The tooltip advertises V visually, while the focused input announces only “Viewed, checkbox.” Recommended fix: Attach the shortcut to the checkbox input, either by extending Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| </Tooltip> | ||
| ); | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Viewed hint lacks a behavior test
The new
Tooltipchanges Viewed's interaction without a test that fails when the hint is absent. Existing Files changed tests cover marking and V separately, but not this hint.Learn more
The Viewed checkbox gains a hover and focus hint with a label that depends on its checked state. No test was added in this PR, and Files changed tests verify the checkbox and the V action separately without checking the new hint. The testing rule in AGENTS.md requires a test that fails without every behavior change.
Example: Removing this tooltip leaves the existing tests green, even though a file no longer displays “Mark as viewed V” on hover.
Recommended fix: Add a focused panel test that hovers or focuses the Viewed control, verifies the hint and its V chord, and checks that marking the file changes the hint to “Mark as not viewed.”
Was this helpful? React with 👍 or 👎 to provide feedback.