perf: lazy-load file content + fix oversized tile labels #5

Merged
fam merged 3 commits from perf/lazy-load-and-font-fix into master 2026-04-07 09:38:49 +00:00

3 Commits

Author SHA1 Message Date
Fam Zheng
398ae64ed9 perf: lazy-load file content and fix oversized tile labels
- Server now returns metadata-only tree on initial load (no file content
  in the JSON payload); content is served on-demand via the new
  GET /api/repos/{key}/file?path=... endpoint
- Cache still stores full content; strip_content() runs in-memory before
  the response is sent
- Frontend fetches file content lazily in _fetchContent() when a tile
  enters the LOD view, preventing a massive upfront JSON download for
  large repos (e.g. claude code)
- computeColorRanges() is now deferred to first _showCode() call instead
  of running synchronously for every file during load()
- Cap label fontSize at 5 world units to prevent giant text on large tiles
2026-04-07 10:37:31 +01:00
Fam Zheng
37d2b33f32 ci: fix branch name to master 2026-04-07 10:33:47 +01:00
Fam Zheng
71cce2dd44 ci: add Gitea Actions workflow for auto-deploy to OCI on main push 2026-04-07 10:33:10 +01:00