Add XSD visual viewer and drop dagre dependency to fix build#84
Conversation
💡 Codex ReviewProcessGit/web_src/js/features/xsdvisual/serialize.ts Lines 146 to 148 in 43a6f7c The serializer only writes ProcessGit/web_src/js/features/xsdvisual/serialize.ts Lines 88 to 91 in 43a6f7c
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Motivation
.xsdfiles as a diagram and supports light-weight edits/exports and raw toggle via the ProcessGit viewer frame.dagredependency which madepnpm-lock.yamldiffer frompackage.jsonunder a frozen-lockfile policy.PGV_SET_CONTENT/PGV_REQUEST_SAVEflow.Description
web_src/js/features/xsdvisual/includingindex.ts,parse.ts,graph.ts,render.ts,ui.ts,editor.ts,serialize.ts, andtypes.tsto implement parsing, graph model, rendering, UI, editor operations and serialization.web_src/js/index-domready.ts, add a templatetemplates/repo/view_file_xsd_visual.tmpl, and wire routing/payload generation inrouters/web/repo/view_file.goby introducingxsdVisualPayloadand settingIsXSDVisual/XSDVisualPayloadfor.xsdfiles.dagre-based layout with a deterministic column/row layout implemented inweb_src/js/features/xsdvisual/graph.ts, and removedagrefrompackage.jsonas well as its module shim intypes.d.tsto avoid lockfile mismatch.web_src/js/features/processgitviewer/index.tsto buffer pending content with apendingContentmap, handlePGV_SET_CONTENTmessages, and use buffered content when processingPGV_REQUEST_SAVE.Testing
http://127.0.0.1:3000and capture a screenshot, but it failed withnet::ERR_EMPTY_RESPONSEbecause the local server was not running (failed).dagreremoval was chosen to avoid thepnpmfrozen-lockfile error rather than bumpingpnpm-lock.yaml(no build attempted after the change).Codex Task