Runtime mode: embedded — in-app WASM via the public embedder host (FetchBundleLoader + bundled doc-approval manifest). No traverse-cli serve sidecar is required.
React UI shell for the doc-approval reference application. Submitter surface: paste document text, run doc-approval.pipeline, and render runtime-provided analysis + recommendation fields.
- UI is a rendering layer only — pipeline fields (
analysis.*,recommendation.*) come from the runtime. The UI displays them; it does not compute them. - Strict boundary isolation — no private Traverse internals are imported. All communication uses public runtime surfaces.
| Variable | Default | Purpose |
|---|---|---|
VITE_DOC_APPROVAL_MANIFEST |
/bundles/doc-approval/app.manifest.json |
FetchBundleLoader manifest path |
Sync a local bundle (requires TRAVERSE_REPO):
export TRAVERSE_REPO=/path/to/Traverse
bash scripts/ci/sync_web_doc_approval_bundle.shFrom the repository root:
npm install
npm run dev -w apps/doc-approval/web-react
npm run build -w apps/doc-approval/web-react
npm run typecheck -w apps/doc-approval/web-react
npm run lint -w apps/doc-approval/web-react
npm run test -w apps/doc-approval/web-react
npm run test:coverage -w apps/doc-approval/web-react