Skip to content

Hide DeadlineCountdown for storylines without deadlines#814

Merged
realproject7 merged 1 commit intomainfrom
task/812-hide-countdown-no-deadline
Apr 3, 2026
Merged

Hide DeadlineCountdown for storylines without deadlines#814
realproject7 merged 1 commit intomainfrom
task/812-hide-countdown-no-deadline

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Adds has_deadline guard before rendering DeadlineCountdown in both locations
  • Storyline page stat box: storyline.has_deadline && storyline.last_plot_time
  • Profile page storyline card: storyline.has_deadline && storyline.last_plot_time
  • Two-line fix, no logic changes

Test Plan

  • Storyline with has_deadline=false: no countdown shown, stat box shows "—"
  • Storyline with has_deadline=true: countdown shown as before
  • Profile page: same behavior
  • Sunset storylines: "Complete" shown regardless

Fixes #812

🤖 Generated with Claude Code

Add has_deadline guard before rendering DeadlineCountdown in both
storyline page stat box and profile page storyline card. Storylines
with has_deadline=false no longer show a misleading countdown timer.

Fixes #812

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

vercel Bot commented Apr 3, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 3, 2026 2:10pm

Request Review

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 PR applies the missing has_deadline guard in both countdown render paths and stays tightly scoped to issue #812. I did not find a code-level blocker in the change.

Findings

  • No blocking findings.

Decision

Approving. Storylines without deadlines will no longer show a misleading countdown on the storyline page or profile page, while deadline-enabled and sunset storylines keep their existing behavior.

@realproject7 realproject7 merged commit a5f60c4 into main Apr 3, 2026
5 checks passed
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.

[Bug] Hide DeadlineCountdown for storylines with has_deadline=false

2 participants