Skip to content

fix: correct daily history and cache public pages - #170

Merged
f0rr0 merged 3 commits into
nextfrom
f0rr0/fix-token-history-gaps
Sep 28, 2026
Merged

f0rr0 merged 3 commits into
nextfrom
f0rr0/fix-token-history-gaps

Conversation

@f0rr0

@f0rr0 f0rr0 commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Daily publication reposted unchanged work because PostgreSQL JSONB reorders object keys. Compare facts structurally and remove identical repeated revisions with a one-time migration. A read-only production replay identifies 29 false Monday cards and preserves the four genuine cards plus all original dated entries.

Missing token dates display zero daily usage and a flat cumulative line, fixing the gaps introduced by the one-year history query without changing stored data or totals.

Home, Work, and Tokens now cache rendered pages for 60 seconds and prefetch navigation. Successful syncs/publications warm the relevant data cache after invalidation, keeping the previous snapshot available during refresh. No loaders.

Validation: full suite (289 tests), targeted regression tests, typecheck, lint, both Knip passes, and production build. Browser checks covered all three routes; local cached responses took 7–17 ms. Production replay fills all 84 token gaps with the same 136,465,979,496 total. The repair query selects exactly 29 duplicates and passes PostgreSQL EXPLAIN in a read-only transaction; no production rows were changed during testing.

@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
f0rr0-github-io Ready Ready Preview Sep 27, 2026 9:16pm UTC

@f0rr0 f0rr0 changed the title fix: restore continuous token history and fast page navigation fix: correct daily history and cache public pages Sep 27, 2026
@f0rr0
f0rr0 merged commit ae2f8f5 into next Sep 28, 2026
4 checks passed
@f0rr0
f0rr0 deleted the f0rr0/fix-token-history-gaps branch September 28, 2026 06:57

This branch was successfully deployed

1 active deployment
Preview — f3d29c2e Deployed Sep 27, 2026 by vercel[bot]
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.

1 participant