Skip to content

feat(phases): add live now/next to schedule#147

Open
chiptus wants to merge 2 commits into
mainfrom
claude/implement-138-5rxll1
Open

feat(phases): add live now/next to schedule#147
chiptus wants to merge 2 commits into
mainfrom
claude/implement-138-5rxll1

Conversation

@chiptus

@chiptus chiptus commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Leads the Schedule tab with "On now" / "Up next" sets when the edition is Live, built from a pure injected-clock classifier, plus Live copy in the shared phase banner. Skipped below reveal level full so hidden times never leak; no background timer. Closes #138.

Verification

  • With an edition at reveal full and dates spanning today, open the edition: it lands on the Schedule tab, shows the Live banner, and leads with "On now" (pulsing dot) and "Up next" sections for the current and nearest upcoming sets.
  • Vote from a Now/Next card and open its set-detail link; both behave like the List view cards.
  • Two sets sharing the nearest upcoming start on different stages both appear under "Up next".
  • Lower the reveal level below full while Live: the Now/Next section disappears, the banner remains, and no set times are visible anywhere.
  • Visit before the first set starts or after the last set ends: the section hides gracefully (no empty groups); Timeline/List remain reachable.

🤖 Generated with Claude Code

https://claude.ai/code/session_016AXf1EyBWLa985JwjYwvKX


Generated by Claude Code

Adds a pure now/next set classifier, a Live-only Now/Next section
leading the Schedule tab (reusing MobileSetCard), and Live copy in the
shared phase banner. Skipped below reveal level full; no background
timer. Closes #138.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016AXf1EyBWLa985JwjYwvKX
Copilot AI review requested due to automatic review settings July 10, 2026 15:45
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
upline Ready Ready Preview, Comment Jul 10, 2026 3:52pm

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds “Live” phase enhancements to the Schedule tab by introducing a Now/Next lead-in section (backed by a pure, injected-clock classifier) and Live-specific copy in the shared phase banner, while ensuring the Now/Next UI is only shown when schedule reveal level is full.

Changes:

  • Introduces classifyNowNext(sets, now) for Live-mode now/next classification, plus unit tests covering boundary conditions and tie-handling.
  • Adds a Live-only NowNextSection to the Schedule tab that renders “On now” / “Up next” groups using existing MobileSetCard behavior.
  • Updates the shared PhaseBanner to show Live copy when the festival phase is live.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/pages/EditionView/tabs/ScheduleTab/NowNextSection.tsx Adds Live-only “On now / Up next” UI built from the classifier and existing set cards.
src/pages/EditionView/tabs/ScheduleTab.tsx Renders the new Now/Next section above existing schedule navigation/content.
src/pages/EditionView/PhaseBanner.tsx Adds Live-phase banner copy.
src/lib/nowNext.ts Implements the pure now/next classifier with injected now.
src/lib/nowNext.test.ts Adds unit tests for classifier behavior across edge cases and time boundaries.

Comment on lines +101 to +103
})),
stageName: stage?.name ?? "",
stageColor: stage?.color ?? undefined,
Falls back to the sets query's stage_name when the stage lookup misses,
hides the stage badge entirely for stage-less sets, and loads stages
non-blocking so the Now/Next section never suspends the Schedule tab.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016AXf1EyBWLa985JwjYwvKX
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.

Festival phase: Live — now / next

3 participants