[codex] Render architecture Mermaid diagrams#16
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2903f3d497
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| function normalizeDirection(value: string): Direction { | ||
| return value === "TD" || value === "TB" ? "TD" : "LR"; |
There was a problem hiding this comment.
Honor RL/BT flowchart directions
The parser accepts flowchart RL and flowchart BT in directionMatch, but normalizeDirection maps every non-TD/TB value to LR, so reverse-direction Mermaid diagrams render in the wrong orientation instead of preserving direction or falling back. This silently misrepresents diagram flow whenever an artifact (or user note) contains RL/BT syntax.
Useful? React with 👍 / 👎.
Fixes architecture artifacts so Mermaid flowchart blocks render as visual SVG diagrams instead of plain code. Adds an internal flowchart renderer for the Mermaid subset generated by the app, avoiding a Mermaid runtime dependency after audit checks showed package-level issues. Also patches Next/PostCSS within the current major line. Validation: npm run typecheck, npm run build, git diff --check. Note: Codex in-app browser automation was unavailable in this turn, so visual browser automation was not completed.