Skip to content

docs: render Mermaid diagrams and add architecture and flow diagrams - #33

Merged
ValgulNecron merged 2 commits into
mainfrom
docs/mermaid-diagrams
Nov 17, 2026
Merged

ValgulNecron merged 2 commits into
mainfrom
docs/mermaid-diagrams

Conversation

@ValgulNecron

@ValgulNecron ValgulNecron commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Website follow-up to GameplanePanel/Gameplane#994.

Mermaid rendering

  • astro.config.ts excludes mermaid from Shiki, so a ```mermaid fence stays a <pre><code class="language-mermaid"> block.
  • src/scripts/mermaid-diagrams.ts (loaded by DocsLayout) imports mermaid@11.17.2 only on pages that have a diagram and renders each block with securityLevel: "strict". Colours come from the semantic tokens in global.css (no raw hex). A diagram that fails to parse leaves its source visible.
  • global.css styles the block like the existing terminal code blocks. No page layout changes; valgul chose to skip the Pencil step for this follow-up because only diagram blocks inside docs pages change.

Diagrams (25, copied verbatim from the reviewed main-repo docs)

architecture (component map, start-server sequence), status-phases-conditions (GameServer phases), backups-recovery (backup sequence, restore flow), backup-repository-operations (snapshot forget on delete), lifecycle-probes (idle sleep), multi-cluster, remote-agent-gateway (topology, request sequence), users-auth-rbac (OIDC login, role resolution), server-networking-tunnels (topology, sleeping join), modules-sources (module flow, Module phases), standalone-panel, ci-releases-signing (PR flow, release jobs, signing keys), telemetry-provider-kubernetes, security, installation, notification-events-payloads, metrics-alerts-dashboards.

Stale facts fixed (checked against the operator and API code)

  • GameServer phases: the operator never sets Stopped; a stopped or sleeping server reads Suspended, and Failed is re-evaluated on every reconcile.
  • Deleting a restic Backup (including retention trims) runs restic forget <id> --prune, so retention now reclaims repository space.
  • OIDC first login: the role comes from group mappings when configured.

Not changed: platform-disaster-recovery keeps its current steps; the main repo's panel-recovery flow differs and needs a separate look.

Verified locally with npm run check, npm run build, and a headless browser: every diagram renders, no console errors.


Generated by Claude Code

Exclude mermaid fences from Shiki and draw them in the browser with
mermaid, loaded only on pages that have a diagram. Colours come from
the semantic tokens in global.css.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Add 25 diagrams from the main repo docs (component map, GameServer
phases, backup, restore and snapshot forget, idle sleep, multi-cluster,
gateway, OIDC, tunnels, modules, standalone, CI and release, telemetry,
security, install, notifications, monitoring).

Fix stale facts: GameServer phases (no Stopped phase, Failed is not
terminal), deleting a Backup now forgets its restic snapshot, and the
OIDC first-login role with role mappings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron ValgulNecron self-assigned this Nov 17, 2026
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 334e188e-46fc-4eb8-a29d-f5ebf41798e9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron
ValgulNecron merged commit 0a65468 into main Nov 17, 2026
4 checks passed
@ValgulNecron
ValgulNecron deleted the docs/mermaid-diagrams branch November 17, 2026 11:30
ValgulNecron pushed a commit to GameplanePanel/Gameplane that referenced this pull request Nov 17, 2026
Brings in GameplanePanel/website#33: Mermaid rendering on docs pages,
25 diagrams and stale-fact fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants