Skip to content

design: move the dashboard and telemetry designs from .pen to .fig - #1041

Merged
ValgulNecron merged 12 commits into
masterfrom
design/switch-to-fig
Nov 22, 2026
Merged

ValgulNecron merged 12 commits into
masterfrom
design/switch-to-fig

Conversation

@ValgulNecron

Copy link
Copy Markdown
Collaborator

Summary

This PR replaces Pencil .pen designs with .fig files, edited through OpenPencil (fork ValgulNecron/open-pencil master) or Figma. The website does the same in GameplanePanel/website#34. This PR bumps the website pointer once that one merges.

Designs

Export (assets/design-export/, telemetry-receiver/design-export/)

  • The new hack/design/fig-export.ts writes one standalone .fig, one JSON dump and one 2x PNG per screen, plus screens.json.
    • The dashboard has 189 screens and the telemetry design 6.
    • File names keep the old .pen node IDs, so web/scripts/compare-screenshots.mjs baselines still resolve.
  • parts.json exports the 19 dialogs and badges the visual diff crops against. They sit below screen level.
  • Output is byte-stable between runs: exported_at and the zip entry times are fixed.
  • The REFERENCE_CROP_ALLOWLIST rects for o1uEP and zhLZN are re-measured on the new renders, as that file asks. The others still match. S7SCDc keeps its deliberate +4 px of backdrop.

Rules and tooling (approved on the decision card: "Yes, all in this PR")

  • AGENTS.md/CLAUDE.md rules 1, 2 and 17 and the common workflows change. Constitution Principle II changes too, bumping it 2.2.1 → 2.3.0.
  • Agents updated: pencil-designer, web-builder, pr-reviewer.
  • Skills updated: design-export, local-prompt, pen-canvas-layout, pen-componentize.
    • The Pencil-only helpers are removed: pen-cli-export.sh, check-layout.js, audit.js, promote.js.
    • check-layout.fig.js ports the canvas check to OpenPencil's Figma plugin API.
    • The componentize audit and promote helpers are described, not ported yet.
  • Config: .coderabbit.yaml (!**/*.fig) and .claudeignore. The CI path filter !design.fig is in ci.yaml.
  • hack/ci_scope.py, hack/auto_label.py and its test hack/test_auto_label.py change one line each, from design.pen to design.fig.
  • Docs: README, contributing, architecture, agent-architecture, remote-parity, unified-dashboard, web/specs.md, telemetry-receiver/specs.md.

Known, not changed here

  • test/e2e/ci_selection_e2e_test.go still excludes design.pen from its archive. That path no longer exists, and an exclude pathspec that matches nothing is harmless. I left it alone because it is a test file.
  • check-layout.fig.js reports existing layout issues on the canvas:
    • 4 loose components at the root (the Nodes screens);
    • small row gaps in rows 10, 22 and 38;
    • the board dialogs that were .pen refs convert to frames, not components.
  • Code comments in web/src that name old design.pen frames are unchanged.

Checks

  • Locally: the two Python label scripts' maps and the renders were checked (spot-checked UdnBT and EZFW0).
  • No test or lint runs locally. CI, including the design-vs-browser visual diff, verifies.

Generated by Claude Code

Adds the design pass that #1019, #1022, #1023, #1024 and #1025 shipped
without: Backups/Schedules/Restores empty states, a mobile Settings
Placement screen with the horizontal section tab row, the Mod registries
card without a section Save button plus a Saved state, the Players
Operators stat card and list, and the Share link Stopped and Start timed
out states. Touched nodes are exported to assets/design-export.

Refs #1030

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Converts design.pen and telemetry-receiver/telemetry-dashboard.pen to
design.fig and telemetry-dashboard.fig with OpenPencil and removes the
.pen files and their Pencil MCP export. Each screen is now exported as a
standalone .fig, a JSON property dump and a 2x screenshot, listed in
screens.json; screens keep their old .pen node IDs as file names so the
browser visual diff still finds its baselines. hack/design/fig-export.ts
regenerates the export.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
The dashboard and telemetry designs moved from Pencil .pen files to .fig.
Rules 1, 2 and 17, constitution Principle II (2.3.0), the design agents
and skills, the CodeRabbit filters, the CI path filter, the auto-labeler
and its test, and the docs now name design.fig, OpenPencil and
hack/design/fig-export.ts. The website keeps website.pen and Pencil.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
The per-screen export dropped the 19 component-level reference PNGs that
web/scripts/compare-screenshots.mjs crops against. fig-export.ts now also
exports each layer listed in assets/design-export/parts.json, under its
old file name, and the crop rects for o1uEP and zhLZN are re-measured on
the design.fig renders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
The .fig export stamped each archive with the export time, so every run
rewrote all 204 files. fig-export.ts now fixes meta.json's exported_at
and the zip entry times, so only changed screens show in a diff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Brings in #1039 and #1040. design.pen stays deleted here; the next commit
converts the #1030 design pass merged with #1040's design changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
design.pen from the #1030 design pass and master's design.pen (spec 034
screens from #1040) merged cleanly (git merge-file, valid JSON, no
duplicate IDs) and were converted with the OpenPencil fork's master.
The telemetry design is reconverted with the same build. Both exports
are regenerated: 189 dashboard screens, 19 parts, 6 telemetry screens.
parts.json now prefers a top-level layer when names repeat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Every design is a .fig file now (dashboard, telemetry, website), so the
rules, constitution, agents and skills no longer describe Pencil. The
Pencil-only helpers (pen-cli-export.sh, check-layout.js, audit.js,
promote.js) are removed; check-layout.fig.js ports the canvas check to
OpenPencil's Figma plugin API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron ValgulNecron added type: ci CI, workflows, or build tooling type: chore Maintenance, deps, or housekeeping area: web React dashboard area: specs spec-kit feature specs and design docs area: optional-components sentinel, capture-sidecar, mcp-server, tunnel, audit-syslog-bridge, telemetry-receiver labels Nov 22, 2026 — with Claude
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Walkthrough

Warning

Review details and warnings were omitted to fit the comment limit.

…s mode

The .pen conversion kept the light-mode colour on layers inside nested
component instances (the top bar search field, 318 layers on 138
screens), so dark screens rendered a white search box and the visual
diff failed. Set each bound fill and stroke to its variable's value in
the layer's effective mode and regenerate the export.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

CI Report - ed7a683

run 44968534923 - attempt 1

0 failed - 33 passed - 0 skipped - 24m51s elapsed

Test selection: full (selection-rule change) - per-suite table

Coverage

Module Measured Gate Margin
web L94.43 S92.62 B87.31 F90.79 L92 S92 B82 F76 +0.62

Changed

Area Files +/-
assets/ 1176 +99620/-62215
(root) 7 +20/-143983
telemetry-receiver/ 23 +10330/-30633
.claude/ 11 +99/-354
hack/ 4 +257/-3
.specify/ 1 +32/-26
docs/ 5 +13/-11
web/ 2 +12/-12
.github/ 1 +1/-1
api/ 1 +1/-1

Slowest jobs

Job Duration
e2e telemetry / arm64 (kind) 22m59s
e2e telemetry / amd64 (kind) 22m59s
e2e postgres / amd64 (kind) 18m55s
e2e restricted-workloads / amd64 (kind) 13m57s
e2e restricted-workloads / arm64 (kind) 13m45s

e2e buckets run

api-agent, api-auth, api-mods, api-rbac, api-roles, backup-preparation, bot-fast, management-placement, monitoring, multicluster, network-isolation, operator, optional-components, postgres-availability, postgres-ha, postgres-pitr, ratelimit, recovery, restricted-workloads, telemetry, upgrade, wake-hostport

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron
ValgulNecron merged commit 73389d7 into master Nov 22, 2026
120 checks passed
@ValgulNecron
ValgulNecron deleted the design/switch-to-fig branch November 22, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: optional-components sentinel, capture-sidecar, mcp-server, tunnel, audit-syslog-bridge, telemetry-receiver area: specs spec-kit feature specs and design docs area: web React dashboard type: chore Maintenance, deps, or housekeeping type: ci CI, workflows, or build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants