feat(P4b): 五视图前端重写——本地静态资源、零 CDN、模块下钻与调用树 - #64
Merged
Conversation
Replace the 3877-line single-file template (Tailwind/Alpine/mermaid CDN deps) with an embedded static/ directory: hand-written CSS, plain JS modules per view, vendored vis-network (no CDN, works offline). Five task-oriented views over the P4a APIs: - overview: stats cards, resolved topN, problem providers, recent errors - graph: module list + ego subgraph centered on any type (vis-network) - search: server-side filtered search, one-click jump to graph - trace: trace list (error-first) + nested call tree via /api/trace-tree - diag: recent injection errors + provider startup timings Dropped for now: mermaid export, SVG download, group-rules editing UI (Go API remains); documented in README.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
概要
按 spec §6 完成 P4b:五视图前端重写,落地"代码即文档/大图不可渲染只能分层聚焦"的设计决策。
两个 spike 决策(结论并入 #20):
五视图(hash 路由,一视图一主任务):
工程:3877 行单文件 template.html 删除;
go:embed static/目录(index.html + css/app.css + js/* + vendor/);全局搜索框 + 视图 Tab 顶栏,basePath 兼容保留。暂时移除(Go API 保留,后续按需回归):Mermaid 导出、SVG 下载、分组规则编辑 UI。
验证