Commit Graph

5 Commits

Author SHA1 Message Date
Innei ffaa7d2a1c 🐛 fix(nav-panel): keep the Home sidebar scroll offset across route round trips (#19441)
* 🐛 fix(nav-panel): keep the Home sidebar scroll offset across route round trips

Claude-Session: https://claude.ai/code/session_01974sCT5qKNQpP7mMiT5mn6

* ✅ test: scope sidebar e2e locators to visible elements and drop flaky parse timing assertion

Claude-Session: https://claude.ai/code/session_01ARGf412bndxNwVrxYxQBEa

* ✅ test(e2e): wait for a visible search control before typing in the sidebar

Claude-Session: https://claude.ai/code/session_01ARGf412bndxNwVrxYxQBEa

* 👷 ci(size-gate): record resolved dependency versions and report drift against the baseline

Claude-Session: https://claude.ai/code/session_01ARGf412bndxNwVrxYxQBEa
2026-09-12 00:01:23 +08:00
Innei 633ea4c279 🔧 chore(ci): lower the first-screen chunk gate to 40 (#19301)
* 🔧 chore(ci): lower the first-screen chunk gate to 40

The $initial chunking (#19288) brought the web entry graph from ~68 eager
chunks to 17, so the previous ceiling of 100 no longer catches a regression.

Claude-Session: https://claude.ai/code/session_01QKr8CsFLYmrgqbRTSipTNH

* 🔧 chore(ci): gate Vite JS chunks by baseline growth
2026-09-09 02:59:46 +08:00
Innei 4868d996ce 🔧 chore(ci): gate first-screen chunk count on a fixed ceiling (#19252)
Replace the "any newly reachable chunk fails" rule with an absolute cap of
100 chunks (--max-chunks / SIZE_GATE_MAX_CHUNKS) so chunk-name churn no
longer blocks PRs. The gzip size comparison against the canary baseline is
unchanged.

Claude-Session: https://claude.ai/code/session_017UYFqYL4YYeVFn4gr54Eew
2026-09-07 22:00:47 +08:00
Innei fabe719a18 ⚡️ perf(spa): gate the first-screen import graph and shrink it 41% (#19033)
* 👷 ci(perf): gate the first-screen static import graph

Total dist size cannot see a lazy chunk being pulled back into the entry's
sync graph. Walk static imports from each SPA entry, gzip the reachable
chunks, and fail a PR when the total grows past the threshold or a chunk
name that was lazy in the canary baseline now sits on the first-screen path.

Claude-Session: https://claude.ai/code/session_01C2wPWhzukH4pniaLy6vkhD

* ⚡️ perf(spa): keep heavy @lobehub/ui members out of the first-screen chunk

Rolldown assigns chunks by static reachability, so the @lobehub/ui barrel
promoted shiki, katex, elkjs, emoji-mart and @pierre/diffs into the entry
chunk as soon as any lazy route used Markdown, Mermaid or EmojiPicker.
Rewrite the ui barrels to deep imports (same approach as lobeIconImports),
stop the tool store from importing the Claude Code render registry, lazy-load
ProfileSetupModal and the error-page Highlighter, and add a boot-path lint
rule for the known heavy members. Desktop entry graph: 3.84 MB -> 2.26 MB gz.

Claude-Session: https://claude.ai/code/session_01C2wPWhzukH4pniaLy6vkhD

* 🐛 fix(vite): resolve bare barrel specifiers from the @lobehub/ui package itself

The virtual proxy re-exported `ErrorBoundary` from "react-error-boundary",
a dependency of @lobehub/ui that pnpm does not hoist to the app root, so the
auth build failed in CI. Resolve such specifiers with the barrel's real path
as the importer.

Claude-Session: https://claude.ai/code/session_01QP9qfw629JNyNeNCwizuHY

* 👷 ci(perf): run the size gates on feature-branch pushes too

skip-duplicate-actions cancels the pull_request run of same-repo PRs in favour
of the push run, and the push run skipped every gate step, so neither the web
dist gate nor the entry-graph gate ever checked a same-repo PR. Gate on a
SIZE_GATE_ENABLED flag that is true for PRs and for pushes to non-release
branches, and resolve the PR number from the commit when commenting.

Claude-Session: https://claude.ai/code/session_01QP9qfw629JNyNeNCwizuHY
2026-09-02 20:54:05 +08:00
Innei df629b17ee 👷 ci: add bundle size gate for web dist and desktop asar (#17970)
* 👷 ci: add bundle size gate for web dist and desktop asar

- measure web dist (dist/desktop|auth|workbench) in e2e workflow builds
- measure app.asar in desktop builds (pr-build-desktop, release-desktop-canary)
- baseline stored as workflow artifacts from latest successful canary runs
- PR runs compare against baseline and fail when increase > max(3%, 512KB)
- upsert PR comment with per-entry size report

* 👷 ci: address codex review on size gate

- add result-encoding: string to baseline finder steps (raw run id,
  empty-string check works, graceful degrade no longer broken)
- emit a visible skipped section when baseline/current report is missing
  instead of the misleading comment fallback
- per-gate comment identifiers (web / asar) so e2e and desktop workflows
  no longer overwrite each other's PR comment
2026-08-06 22:31:29 +08:00