Repository navigation
Conversation
Lazy-load every console page, replace the shell's HeroUI controls with dependency-free primitives, load the update dialog on demand, and poll resources/live data less often. The embedded console now preloads only the entry, jsx-runtime and GSAP instead of the HeroUI shared chunk. Also summarize request logs with one SELECT and aggregate in Go; the 20k-row local benchmark drops from ~227 ms to ~57 ms per call.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
上线前确认(必读)
Summary
ShellControls;移动抽屉改为原生实现,补齐 Escape、背板点击、滚动锁和 1024px 断点关闭。版本更新弹窗改为点击后懒加载。SELECT后在 Go 内聚合,删除原先的多轮扫描。Payload result
The generated
internal/webui/staticis rebuilt and committed, so the embedded console matchesfrontend/dist.Request stats
20k-row local benchmark:
SummarizeRequestLogsWithnow reads the window once and accumulates totals, status buckets, model/account/provider buckets, series and optional p50/p95 in Go.Verification
On the final PR head:
cd frontend && npm run lint— 0 errors (62 pre-existing warnings)cd frontend && npm run build+node scripts/sync-static.mjs— passgo test ./... -count=1 -timeout 300s— passgo vet ./...— passpython scripts/release-notes.py validate— pass127.0.0.1:3011, and checked in the in-app browser:/system,/,/usage,/accounts,/providers,/access,/logs,/keys, login page, dark/light mode, language switch, version dialog, and the 967px mobile drawer (open/Escape/backdrop/nav close/scroll-lock). No console errors.Risk / rollout
Follow-up
A second stacked PR (#574) will add key-level cross-provider model aggregation on top of this branch. It must not be merged before this PR lands.