You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 143752a
Browse filesBrowse the repository at this point in the historyBrowse files
feat(ui): serve the upstream browser viewer (#298)
Port upstream v1.6.1's browser viewer as the codegraph-ui crate: a loopback server that answers the viewer API from an existing index (stats, search, node, source, file, routes, entry points, map, dead code, flow, screens, trails, and live updates over server-sent events) with upstream's wire shapes, limits, error codes and security boundary, serving the upstream ui/ frontend embedded in the binary, changed in one adapter line.
- Engine ports the routes need, all read-only: dead code, named-symbol flow, flow continuations, symbol lookup, type hierarchy, ICU-order collation and the viewer's aggregate store queries; WatchOptions::observe_only lets the live channel reuse the watcher without writing the index.
- codegraph ui (alias web), gated by CODEGRAPH_UI=1 exactly as upstream gates it.
- A UI CI job rebuilds the committed bundle and fails on any drift.
- Steps and screen navigation wait for their ports; docs/ui.md lists every difference from upstream.
No extraction, resolution or schema change; golden output is unchanged.
| extraction/language rules | extractor tests; affected golden corpus; incremental/full equivalence |`languages.md`, `grammar-manifest.md`, and golden recipe when behavior moves |
99
-
| resolution/framework rules | resolver unit/integration tests; ambiguity negatives; affected golden |`equivalence.md` or framework reference when public behavior moves |
| extraction/language rules | extractor tests; affected golden corpus; incremental/full equivalence |`languages.md`, `grammar-manifest.md`, and golden recipe when behavior moves |
100
+
| resolution/framework rules | resolver unit/integration tests; ambiguity negatives; affected golden |`equivalence.md` or framework reference when public behavior moves |
| viewer (`codegraph-ui`, `ui/`) | crate tests over indexed fixtures; `cli_ui`; `make ui-check` (rebuilds and byte-checks the committed bundle) |`ui.md`; `cli.md` for the command |
108
+
| docs/community files |`python3 scripts/docs-check.py`; formatter; link/anchor checks | update the canonical page, not a duplicate summary |
107
109
108
110
If a change alters nodes, edges, reference resolution, file classification, or
109
111
stored graph meaning, decide explicitly whether the extraction version must move.
@@ -136,7 +138,10 @@ The authoritative local/CI entry point is:
136
138
make check
137
139
```
138
140
139
-
`make ci` is a compatibility alias for the same complete gate. `make pre-ci` adds a package/unpack/execute smoke over the built release bytes.
141
+
`make ci` is a compatibility alias for the same complete gate. `make pre-ci` adds the
142
+
viewer frontend gate (`make ui-check`: `npm ci`, svelte-check, vitest, a production
143
+
build, and a byte check of the committed bundle under `crates/codegraph-ui/viewer`)
144
+
and a package/unpack/execute smoke over the built release bytes.
140
145
It validates workspace-version consistency before any Cargo subprocess, required
141
146
tool versions, Rust and repository-text formatting, workflow/shell linting,
142
147
Clippy with warnings denied, locked tests, a locked release build, guardrails,
0 commit comments