Skip to content

[Bug] Hide DeadlineCountdown for storylines with has_deadline=false #812

@realproject7

Description

@realproject7

Problem

PR #810 correctly gates the AddPlotButton and API on has_deadline, but the DeadlineCountdown component is still rendered for ALL storylines with a last_plot_time — regardless of has_deadline. Storylines without deadlines show a misleading countdown timer.

Affected locations

  • src/app/story/[storylineId]/page.tsx (~line 357): renders DeadlineCountdown when !storyline.sunset && storyline.last_plot_time — no has_deadline check
  • src/app/profile/[address]/page.tsx (~line 947): same pattern, no has_deadline check

Solution

Add storyline.has_deadline && to the condition before rendering DeadlineCountdown in both files.

Acceptance Criteria

  • Storyline page: DeadlineCountdown only renders when has_deadline=true
  • Profile page: DeadlineCountdown only renders when has_deadline=true
  • Storylines with deadlines unchanged (still show countdown)
  • No visual changes for sunset storylines ("Story complete" still shows regardless)

Branch

task/<issue>-hide-countdown-no-deadline

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/T3Assigned to T3 builder agentbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions