You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stories that should be expired/completed are showing the "Active" badge. Their deadline stat box shows "Open" (meaning has_deadline = false), but they should actually be expired.
Investigation needed
Check lib/story-status.ts (or wherever getStoryStatus() / active status is determined):
How is "active" determined? Likely: sunset === false AND (has_deadline === false OR deadline not expired)
The bug: Stories with has_deadline = false are treated as "active" (open-ended, no deadline). But these stories may have been created with a deadline that already expired — or the has_deadline field is wrong in the DB.
Check the DB: Query storylines where has_deadline = false but last_plot_time is old (weeks/months ago). Are these truly open-ended, or should they have has_deadline = true?
Possible root causes:
has_deadline is wrong in DB — some stories were created with hasDeadline = true on-chain but indexed as false
Active status logic doesn't check sunset — story might be effectively dead even without a formal deadline
Problem
Stories that should be expired/completed are showing the "Active" badge. Their deadline stat box shows "Open" (meaning
has_deadline = false), but they should actually be expired.Investigation needed
Check
lib/story-status.ts(or wherevergetStoryStatus()/ active status is determined):sunset === false AND (has_deadline === false OR deadline not expired)has_deadline = falseare treated as "active" (open-ended, no deadline). But these stories may have been created with a deadline that already expired — or thehas_deadlinefield is wrong in the DB.has_deadline = falsebutlast_plot_timeis old (weeks/months ago). Are these truly open-ended, or should they havehas_deadline = true?Possible root causes:
has_deadlineis wrong in DB — some stories were created withhasDeadline = trueon-chain but indexed asfalseFiles
lib/story-status.ts— active/expired logicsrc/components/StoryCard.tsx— reads statusSELECT storyline_id, title, has_deadline, last_plot_time, sunset FROM storylines WHERE has_deadline = falseAcceptance Criteria