Skip to content

Ignore stale tracked IDs in My HackHQ counts#108

Merged
Jose-Gael-Cruz-Lopez merged 1 commit into
Hack-HQ:mainfrom
ChimdumebiNebolisa:fix/tracker-stale-ids
Jul 13, 2026
Merged

Ignore stale tracked IDs in My HackHQ counts#108
Jose-Gael-Cruz-Lopez merged 1 commit into
Hack-HQ:mainfrom
ChimdumebiNebolisa:fix/tracker-stale-ids

Conversation

@ChimdumebiNebolisa

Copy link
Copy Markdown
Contributor

Summary

Ignore tracked IDs that no longer exist in the current hackathon list when computing counts and deadline-radar messaging.

Problem

My HackHQ stored tracked IDs in localStorage, but counts and empty-state copy used the raw map while columns only rendered IDs still present in listings.json. Removed listings inflated the count and made the deadline radar claim you were clear while invisible stale IDs remained.

Changes

  • Add countKnownTracked helper
  • Use it for tracked count and empty-state gating
  • Use countdown() for deadline radar copy (fixes "closes in 0 days")

Validation

  • npm test in web/ - 54 tests OK

Scope

Does not auto-prune stale IDs from localStorage (separate UX decision).

Co-authored-by: Cursor <cursoragent@cursor.com>
@Jose-Gael-Cruz-Lopez Jose-Gael-Cruz-Lopez merged commit c0f0255 into Hack-HQ:main Jul 13, 2026
2 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.

2 participants