Skip to content

[codex] Fix architecture diagram viewing#18

Merged
Abby263 merged 1 commit into
mainfrom
codex/fix-architecture-diagram-viewer
May 2, 2026
Merged

[codex] Fix architecture diagram viewing#18
Abby263 merged 1 commit into
mainfrom
codex/fix-architecture-diagram-viewer

Conversation

@Abby263

@Abby263 Abby263 commented May 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • add an enlarge modal for rendered architecture Mermaid diagrams
  • replace the legacy fenced architecture box with a normal fallback architecture summary table so it no longer appears as code

Validation

  • npm run build
  • npm run typecheck

Browser note: no Chrome/headless testing used.

@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:48am

@Abby263 Abby263 merged commit b4294cb 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: 6f4f7df3d3

ℹ️ 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 +166 to +168
`| Cache | Hot reads, session state, computed summaries, and stampede protection | ${fallback(v.cachingStrategy, p.platform.caching ? "Cache required; define owner, TTL, and invalidation." : "Defer until measured.")} |`,
`| Primary data | Transactional source of truth and migration ownership | ${p.platform.database} (${p.platform.dataShape}) |`,
`| Queue / events | Async jobs, retries, dead-letter handling, and workflow consumers | ${fallback(v.queueStrategy, p.platform.eventDriven || p.platform.backgroundJobs ? "Managed queue/event bus required." : "Introduce when long-running work appears.")} |`,

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 Sanitize strategy text before placing it in table cells

This section now injects v.cachingStrategy / v.queueStrategy directly into a GFM table, but both values are free-form textarea input and can contain newlines or |. In that case the row is split/terminated by the markdown parser, so the fallback architecture table (and sometimes following markdown structure) renders incorrectly. Escaping table metacharacters (and normalizing line breaks to <br>) is needed before interpolating these fields into table rows.

Useful? React with 👍 / 👎.

Comment on lines +357 to +359
<div className="min-h-0 flex-1 overflow-auto p-4">
{renderSvg("h-auto max-w-none", { width: Math.max(activeLayout.width, 1100) })}
</div>

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 Use distinct marker ids for expanded diagram SVG

When expanded is true, the component renders the diagram SVG twice (inline and modal) via renderSvg, and both instances define the same <marker id={markerId}> while edges use markerEnd="url(#...)". That produces duplicate IDs in one DOM, and SVG fragment resolution with duplicate IDs is browser-dependent, which can make arrowheads resolve unpredictably in the enlarged view. Assign separate marker IDs per rendered SVG instance.

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