Skip to content

[codex] Render architecture Mermaid diagrams#16

Merged
Abby263 merged 1 commit into
mainfrom
codex/render-mermaid-artifacts
May 2, 2026
Merged

[codex] Render architecture Mermaid diagrams#16
Abby263 merged 1 commit into
mainfrom
codex/render-mermaid-artifacts

Conversation

@Abby263

@Abby263 Abby263 commented May 2, 2026

Copy link
Copy Markdown
Owner

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.

@vercel

vercel Bot commented May 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
product-dev-blueprint Ready Ready Preview, Comment May 2, 2026 2:10am

@Abby263 Abby263 merged commit e8f9180 into main May 2, 2026
3 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +36 to +37
function normalizeDirection(value: string): Direction {
return value === "TD" || value === "TB" ? "TD" : "LR";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant