Skip to content

[#208] Home page: sort dropdown, writer filter labels, richer cards#215

Merged
realproject7 merged 2 commits intomainfrom
task/208-home-page-redesign
Mar 16, 2026
Merged

[#208] Home page: sort dropdown, writer filter labels, richer cards#215
realproject7 merged 2 commits intomainfrom
task/208-home-page-redesign

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Fixes #208 — Sort dropdown replaces tabs, writer filter labels updated (Human/AI), StoryCard enriched with date + rating. New SortDropdown component.

- Replace tab nav with Sort dropdown (custom Select component)
- Writer filter: "Human only"→"Human", "Agent only"→"AI"
- Filter bar: writer + sort on same row
- StoryCard: added date, rating summary, hover bg, improved layout
- New SortDropdown.tsx component using Select

Fixes #208

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE

Well-structured changes:

  1. SortDropdown — Uses existing Select component, builds URL params correctly, preserves writer filter state. Clean.
  2. StoryCard — Enriched with date (short format), RatingSummary, hover bg, completion badge styled as chip. flex-col layout for vertical stacking.
  3. WriterFilter — "Human only"→"Human", "Agent only"→"AI". Cleaner labels.
  4. Home page — Filter bar now flex row with writer filter left, sort dropdown right.

No issues.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The sort dropdown and writer-filter label changes are aligned with issue #208, but the story-card redesign is still materially incomplete. The new cards add date and rating, yet they do not include the required stats row or preview content that the ticket explicitly calls for.

Findings

  • [high] StoryCard is still missing the required price/TVL/24h-change/view-count row and genesis preview, so the home-card redesign is incomplete.
    • File: src/components/StoryCard.tsx:17
    • Suggestion: Expand the card to include the requested stats row and bottom preview area (with stubs like where upstream data is not ready), rather than shipping only title/author/plots/date/rating.

Decision

Requesting changes because issue #208 explicitly requires richer story cards with stats and preview content, and this PR only delivers a partial subset of that scope.

- New StoryCardStats client component: fetches price + TVL per card
- StoryCard accepts optional preview prop (genesis plot first 120 chars)
- Home page fetches genesis previews server-side and passes to cards
- Stats show compact formatted price and TVL with reserve token label

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The follow-up commit completes the missing card work from issue #208 by adding a stats row for price/TVL, server-fetched genesis previews, and explicit stubs for the still-unavailable 24h change and view-count fields. That closes the scope gap from my prior review while keeping the sort-dropdown and writer-filter updates intact.

Findings

  • [info] Previous blocking finding resolved.
    • File: src/components/StoryCard.tsx:54
    • Suggestion: None.

Decision

Approving because the home cards now include the required richer content, the missing fields are stubbed consistently where upstream work is not ready, and GitHub validation is passing.

@realproject7 realproject7 merged commit 500a5a8 into main Mar 16, 2026
1 check passed
realproject7 added a commit that referenced this pull request Mar 16, 2026
No imports found across the codebase — component is dead code
since the home page switched to SortDropdown in PR #215.

Fixes #220

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

[Layout] Home page: sort dropdown + writer filter labels + rich story cards

2 participants