Skip to content

post(blog): promote mermaid-diagram-gallery from QA draft to public reference - #35

Merged
baladithyab merged 1 commit into
mainfrom
post/promote-mermaid-gallery
May 28, 2026
Merged

baladithyab merged 1 commit into
mainfrom
post/promote-mermaid-gallery

Conversation

@baladithyab

Copy link
Copy Markdown
Owner

Reframes the QA stress-test post as a permanent public reference gallery for every mermaid diagram type the blog supports.

  • File renamed: qa-mermaid-stress-test.mdx -> mermaid-diagram-gallery.mdx
  • Title, description, tags rewritten for public consumption
  • Body recast from 'internal QA verification' voice to 'copy-paste reference + when-to-use guide'
  • draft: true -> false

Pairs with /blog/mermaid-theme-debug-arc as the evergreen 'what does it look like' companion to that post's 'how the theming actually works'.

…eference

The old qa-mermaid-stress-test.mdx was written in private-QA voice
('Internal verification page', 'If anything renders broken, the issue
is upstream...'). Reframe as a public reference post that complements
the debug-arc post and let it surface in the blog listing.

Changes:
- File rename: qa-mermaid-stress-test.mdx -> mermaid-diagram-gallery.mdx
  (the new slug reads better in nav and in inbound links)
- Frontmatter:
  - title: 'A reference gallery: every Mermaid diagram type the blog supports'
  - description: rewritten as user-facing 'copy-paste reference'
  - tags: 'qa' -> 'reference'
  - draft: true -> false
- Body rewritten:
  - Intro pivots from 'internal QA' to 'live reference + companion to debug-arc'
  - Each section reframes 'should render with --muted/0.4 cluster bg' as
    'cluster backgrounds get a subtle muted tint so they read as a group'
    (descriptive, not normative)
  - Adds notes that explain WHY each section exists from the reader's
    perspective (when would they want a stadium? a classDef? a state diagram?)
  - Closes with an 'open an issue if you hit a broken edge case' invite
- Old URL had no inbound links; no redirect needed.

Verified: bun run build green, all 6 mermaid blocks compile.
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed

URL: https://2383254d-codeseys-personal-website.codeseys.workers.dev
Commit: 594a20a2473190adb41fb551f41cf84499b0d10f
Worker version: uploaded but not promoted (production at codeseys.io is unchanged)

Updated on every push to this PR.

@baladithyab
baladithyab merged commit 764616a into main May 28, 2026
3 checks passed
@baladithyab
baladithyab deleted the post/promote-mermaid-gallery branch May 28, 2026 02:41

@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: 594a20a247

ℹ️ 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 +133 to +135
Mermaid emits `classDef` styles as inline `style="..."` attributes on
the rendered nodes. Inline styles beat the site's class-scoped theme,
so your custom colors win — exactly what you want.

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 Fix classDef colors before advertising them

This newly public reference says classDef colors pass through untouched, but the blog theme currently forces node fills/strokes with !important selectors in src/pages/blog/[slug].astro (for both light and dark modes). CSS !important declarations override Mermaid's normal inline style attributes, so the Critical/Async nodes in this example render with the site theme instead of the red/blue colors users are told to expect and copy. Either exempt classed nodes from the theme overrides or avoid presenting classDef tinting as supported here.

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