Checkmark marks the active highlight swatch (YPE-1034) (3/4)#286
Merged
Conversation
🦋 Changeset detectedLatest commit: d384cbe The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Collaborator
Author
|
Superseded by #288, which consolidates the full YPE-1034 stack into a single PR rebased onto main. |
cameronapak
force-pushed
the
claude/ype-1034-pr2-highlight-auth-flow
branch
from
July 20, 2026 20:15
f275bbf to
879e04e
Compare
cameronapak
force-pushed
the
claude/ype-1034-pr3-recent-colors
branch
from
July 20, 2026 20:15
eef219b to
2f47c5f
Compare
This was referenced Jul 20, 2026
cameronapak
marked this pull request as ready for review
July 20, 2026 20:18
cameronapak
force-pushed
the
claude/ype-1034-pr2-highlight-auth-flow
branch
4 times, most recently
from
July 21, 2026 17:07
10f47c6 to
65a2ab2
Compare
cameronapak
force-pushed
the
claude/ype-1034-pr3-recent-colors
branch
from
July 21, 2026 19:46
2f47c5f to
8a6ae88
Compare
Collaborator
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
Dustin-Kelley
previously approved these changes
Jul 22, 2026
Dustin-Kelley
left a comment
Collaborator
There was a problem hiding this comment.
Just address the nitpicks and you good 👊
Add aria-hidden to CheckIcon and drop duplicate clear-highlight click test. Co-authored-by: Cursor <cursoragent@cursor.com>
jaredhightower-youversion
approved these changes
Jul 22, 2026
cameronapak
added a commit
that referenced
this pull request
Jul 22, 2026
Take aria-hidden from main; keep this branch's checkmark-tap remove test. Co-authored-by: Cursor <cursoragent@cursor.com>
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
The active highlight swatch renders a 24px checkmark (matching iOS) instead of an X. This PR's original recent-colors feature was dropped from the SDK entirely — the
/v1/highlights/recent-colorscontract is still changing and must not ship (per bbelyeu; main removed the API in #291) — leaving the checkmark as the surviving slice.Stack: 1/4 #283 → 2/4 #285 → 3/4 (this PR) → 4/4 #294 · restored from #288
Changes
CheckIcon(24px, iOS-matching path) instead of the X.Test plan
pnpm build && pnpm typecheck && pnpm lint && pnpm testat this branch: all green (core 315 + checkmark suite; ui 258 / hooks 284).verse-action-popover.test.tsxasserts the checkmark SVG path on active/remove swatches.Greptile Summary
Replaces the X icon on active highlight swatches with a 24 px checkmark, matching iOS parity (
platform-sdk-swift #179). Behavior is unchanged — tapping a checkmark swatch still removes the highlight; only the indicator icon changes.packages/ui/src/components/icons/check.tsx: newCheckIconwitharia-hiddendefault and{...props}spread, consistent with other icon files.packages/ui/src/components/verse-action-popover.tsx: swapsXIcon→CheckIconon active swatches; renames theshowXprop toshowRemovefor clarity.Confidence Score: 5/5
Safe to merge — the change is a pure icon swap with no behavioral or API surface changes.
The change is minimal and well-contained: a new icon component, a single prop rename, and two targeted tests that directly verify the checkmark path. Behavior (highlight removal on tap, aria-labels, flag gating) is untouched. The new icon correctly sets aria-hidden before the props spread, changeset and ADR are both present, and no new i18n strings or public API exports were added.
No files require special attention.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD VAP[VerseActionPopover] --> CC[ColorCircle] CC -->|showRemove = true\nactive highlight| CHK[CheckIcon\n24px checkmark] CC -->|showRemove = false\napply highlight| EMPTY[no icon] CHK -->|onClick| CLR[onClearHighlight] EMPTY -->|onClick| APP[onHighlight] CHK -->|aria-hidden=true| A11Y[Screen reader ignores icon\nbutton's aria-label carries meaning]Reviews (3): Last reviewed commit: "Merge branch 'main' into claude/ype-1034..." | Re-trigger Greptile