Skip to content

Refresh personal competitions while showing cached results - #100

Merged
coder13 merged 2 commits into
mainfrom
codex/refresh-home-personal-competitions
Nov 23, 2026
Merged

coder13 merged 2 commits into
mainfrom
codex/refresh-home-personal-competitions

Conversation

@coder13

@coder13 coder13 commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

A signed-in home-page reload could restore a recently cached empty personal-competitions result and skip the API request, incorrectly leaving “No competitions found” visible.

Always refresh personal competitions when the query mounts, including on home-page reloads and return visits. Keep cached competitions visible while fetching, show the loading bar during cache restoration and refreshes, and defer the empty state until refreshing finishes.

Regression tests cover restoring both empty and populated fresh caches, keeping cached data visible during a delayed request, and refetching on a return visit within the five-minute freshness window.

This PR also removes the require-beta-source GitHub Action that blocked direct fix PRs into main.

Validation of the app changes:

  • yarn check:type
  • yarn lint (no errors; three existing warnings in unrelated files)
  • yarn test --runInBand (62 suites, 416 tests, and 2 snapshots passed)

@netlify

netlify Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for competition-groups ready!

Name Link
🔨 Latest commit 90ee236
🔍 Latest deploy log https://app.netlify.com/projects/competition-groups/deploys/6b047e1826564f69614fad1a
😎 Deploy Preview https://deploy-preview-100--competition-groups.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 68
Accessibility: 93
Best Practices: 100
SEO: 96
PWA: 90
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coder13
coder13 merged commit 407c1f8 into main Nov 23, 2026
7 of 8 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.

1 participant