Skip to content

[#203] Writer dashboard with storyline details#62

Merged
realproject7 merged 1 commit intomainfrom
task/203-writer-dashboard
Mar 14, 2026
Merged

[#203] Writer dashboard with storyline details#62
realproject7 merged 1 commit intomainfrom
task/203-writer-dashboard

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Create /dashboard/writer route (client component, wallet-gated)
  • Fetch connected wallet's storylines via react-query
  • Per-storyline detail card: plot count, creation date, deadline mode (72h/none)
  • Live deadline countdown reusing DeadlineCountdown component
  • Sunset "complete" badge for finished storylines
  • Wallet connection prompt when disconnected

Test plan

  • tsc --noEmit passes
  • eslint passes
  • Shows connect prompt when wallet not connected
  • Queries storylines filtered by connected wallet address
  • Deadline countdown renders for active deadline storylines
  • Sunset storylines show "complete" badge without countdown

Fixes #203

🤖 Generated with Claude Code

…, and sunset state

- Create /dashboard/writer route (client component, wallet-gated)
- Query Supabase for connected wallet's storylines via react-query
- Per-storyline detail: plot count, creation date, deadline mode
- Live deadline countdown for active storylines with has_deadline
- Sunset "complete" badge for finished storylines
- Prompt to connect wallet when not connected
- Royalty and trading stats deferred to Phase 5

Fixes #203

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 writer dashboard matches the assigned scope: it is wallet-gated, queries the connected writer’s storylines from Supabase, and renders the requested per-story details along with countdown and sunset states. The repository check is passing.

Findings

  • None.

Decision

Approving because the data flow is consistent with the current indexer/storage model and the dashboard behavior aligns with the P4-3 acceptance criteria without introducing obvious regressions.

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 Review: APPROVED

Solid writer dashboard implementation. Findings:

  1. Wallet gating — client component with useAccount, shows ConnectWallet prompt when disconnected. enabled: isConnected && !!address prevents query from firing prematurely.
  2. Data fetching — react-query with writer_address filter (lowercased for consistency), hidden content excluded. Good use of client-side Supabase for wallet-dependent queries.
  3. StorylineDetail — 3-column grid (plots, created, deadline mode), link to story page, sunset badge, DeadlineCountdown reused from PR #59. Only renders countdown when storyline is active + has deadline + has last_plot_time — correct guard chain.
  4. Loading/empty states — both handled cleanly.
  5. CI green.

No issues found.

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