Skip to content

feat(shelf): green checkmark for read chapter cards - #43

Merged
jsolly merged 2 commits into
mainfrom
cursor/shelf-read-check-c8f0
Jul 19, 2026
Merged

feat(shelf): green checkmark for read chapter cards#43
jsolly merged 2 commits into
mainfrom
cursor/shelf-read-check-c8f0

Conversation

@jsolly

@jsolly jsolly commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replaced the gray secondary Read badge on shelf chapter cards with a green circular checkmark at the top-right.
  • Reading-time stays top-left; unread chapters show no indicator.
  • Accessible label kept via sr-only “Read” text.
  • Added a Hide read / Show read toggle (shown when any chapter is read) so learners can focus on unread chapters. Preference persists in localStorage. Empty state when everything is hidden.

Test plan

  • Open /learn/fundamentals/ (Master the Basics)
  • Confirm unread cards have no Read pill and no check
  • Open a chapter, return to the shelf
  • Confirm a green check circle appears top-right on that card
  • Click Hide read — read cards disappear; button becomes Show read
  • Click Show read — read cards return
  • Reload page with hide on — preference sticks
  • Smoke desktop and mobile widths; console clean

Verification

  • Green check on read cards (desktop + mobile)
  • Hide/Show read toggle filters the list, persists via learn-the-far:shelf-hide-read:v1
  • Console clean aside from a pre-existing unrelated 404
Open in Web Open in Cursor 

Replace the gray Read badge with a green circular checkmark at the
top-right of each chapter card so read status is clearer at a glance.

Co-authored-by: John Solly <jsolly@users.noreply.github.com>
Add a Hide read / Show read control on shelf pages so learners can
focus on unread chapters. Preference persists in localStorage.

Co-authored-by: John Solly <jsolly@users.noreply.github.com>
@cursor
cursor Bot marked this pull request as ready for review July 18, 2026 23:02
@jsolly
jsolly merged commit cfee7d5 into main Jul 19, 2026
4 checks passed
@jsolly
jsolly deleted the cursor/shelf-read-check-c8f0 branch July 19, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants