Skip to content

feat: reopen analyzed repositories from saved GitHub data - #4

Open
yyeret wants to merge 4 commits into
mainfrom
feat/persist-ui-repo-cache-pr
Open

yyeret wants to merge 4 commits into
mainfrom
feat/persist-ui-repo-cache-pr

Conversation

@yyeret

@yyeret yyeret commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

Returning to a repository in the web UI now reopens its saved analysis after a page reload or server restart. The page remembers the last repository, shows when its data was captured, and offers Refresh data for a new scan. This works in both the local FastAPI app and the deployed Cloudflare Worker.

Behavior and limits

  • The deployed app keeps each public repository's metrics in Cloudflare KV until refresh. It checks that the repository remains public before serving saved analysis or using it for chat.
  • The local app saves raw GitHub data by repository and recalculates time-sensitive metrics on each visit. Incomplete collection or metric failure leaves the prior valid entry intact.
  • Existing Cloudflare KV entries created before this change retain their original six-hour expiry once; entries written by this change have no expiry. Local cache persistence across deployments requires persistent server storage.

Session-settled planning decision: repeated scans in the UI were the user-directed scope.

Validation

  • 212 Python tests passed with 92.92% coverage, above the 90% gate.
  • 6 Node UI logic tests passed, covering reload, refresh, authentication timing, overlapping requests, and storage or request failure. Chromium was not run, as requested.
  • Ruff and git diff --check passed.
  • GitHub collection and Cloudflare KV were mocked in tests; no live repository scan or deployment was used for validation.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
24e7234 2026-10-15T15:19:09.564Z View logs ↗

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