Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Public marketing + docs site for Gameplane; the `website/` submodule of `Gamepla

## House rules

- **Design-first:** visual source of truth is `website.pen` in this repo (Pencil MCP only — never read/edit the file directly). Update the design first; export touched nodes to `website-export/json/<id>.json` + `website-export/screenshots/<id>.png` in the same commit. Palette follows the main app's HeroUI theme (`web/src/styles/globals.css` in the main repo).
- **Design-first:** visual source of truth is `website.fig` in this repo, edited only through OpenPencil (desktop app, `openpencil-mcp`, or `openpencil eval -w` from a [ValgulNecron/open-pencil](https://github.com/ValgulNecron/open-pencil) `master` checkout) or Figma; never read or edit the file directly. Update the design first, then regenerate `website-export/` (one `.fig`, JSON and 2x PNG per screen, plus `screens.json` and `parts.json`) with the main repo's `hack/design/fig-export.ts` (`bun fig-export.ts <website>/website.fig <website>/website-export`) in the same commit. Palette follows the main app's HeroUI theme (`web/src/styles/globals.css` in the main repo).
- **CI verifies:** locally only `npm run build` / `npm run check`; never run lint/tests locally. Fix what CI flags; no suppressions or loosened rules.
- **Git:** signed commits (`git commit -s`), conventional prefixes, one logical unit each; one branch per unit of work, PR to `main`, delete branch after merge. Then bump the submodule pointer in the main repo (`git add website`).
- **TypeScript:** strict; `no-explicit-any` and `no-floating-promises` are errors.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Live site: **https://gameplane.net/**

Built with [Astro](https://astro.build), Tailwind CSS 4, and self-hosted JetBrains Mono / Geist fonts. Fully static — no client framework.

This repo is mounted as the `website/` git submodule of the main [Gameplane](https://github.com/GameplanePanel/Gameplane) repo. The visual source of truth is the **Group/Public Website** screens in the main repo's `design.pen` (Pencil); design changes happen there first, then get translated to code here.
This repo is mounted as the `website/` git submodule of the main [Gameplane](https://github.com/GameplanePanel/Gameplane) repo. The visual source of truth is the **Group/Public Website** screens in the main repo's `design.fig`; design changes happen there first, then get translated to code here.

## Commands

Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ make web-dev # Vite dev server, proxied to the API

## Design first

UI changes start in design.pen — the designed screens are the source of truth — then get translated to React.
UI changes start in design.fig — the designed screens are the source of truth — then get translated to React.

## Code standards

Expand All @@ -41,7 +41,7 @@ UI changes start in design.pen — the designed screens are the source of truth
1. Fork the repository and create a feature branch.
2. Run only quick compile checks locally (`go build ./...`, `npx tsc --noEmit`). The full test and lint suites run on CI, where they are gated; see [Testing, coverage, and E2E](../testing-coverage-e2e/).
3. If you change `.github/workflows/` or `.github/actions/`, run the static workflow checks before pushing: `actionlint .github/workflows/*.yaml` and `zizmor .github/workflows/ .github/actions/`. Pin every external action to a full 40-character commit SHA with a `# vX.Y.Z` comment (Dependabot keeps the pins current), and give every job an explicit least-privilege `permissions` block and a `timeout-minutes`.
4. For UI work, include the Pencil node IDs you touched in the PR description.
4. For UI work, include the `design.fig` screen IDs you touched in the PR description.
5. Sign your commits (`git commit -s`).
6. Check that the PR carries at least one `type:` label and one `area:` label (CodeRabbit applies them; you verify them). Breaking CRD, API or chart-value changes also take `breaking`.

Expand Down
18 changes: 9 additions & 9 deletions src/content/docs/contribution-design-workflow.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Contribution & Design Workflow"
description: "Move a change from issue to reviewed code while keeping Pencil, generated artifacts, submodules, and evidence synchronized."
description: "Move a change from issue to reviewed code while keeping the design file, generated artifacts, submodules, and evidence synchronized."
section: develop
group: local-development
order: 4
Expand All @@ -15,8 +15,8 @@ import DocsQuickReference from "../../components/docs/DocsQuickReference.astro";

Gameplane contributions flow through a design-first cycle for UI changes, a code-only path for backend work, and synchronized submodule updates. This guide covers the complete workflow from planning through PR review.

<DocsCallout icon="git-pull-request" title="UI work begins in design.pen before code.">
Dashboard changes start in `design.pen` (Pencil) with maintainer review, then translate to React. Module and public-site work originates in their own repositories before a submodule bump.
<DocsCallout icon="git-pull-request" title="UI work begins in design.fig before code.">
Dashboard changes start in `design.fig` (OpenPencil or Figma) with maintainer review, then translate to React. Module and public-site work originates in their own repositories before a submodule bump.
</DocsCallout>

## Plan the change
Expand All @@ -32,8 +32,8 @@ Identify component ownership, public contracts, security boundaries, design impa
},
{
icon: "check",
label: "Pencil pass for UI",
text: "Dashboard changes require a design review in design.pen; backend work does not.",
label: "Design pass for UI",
text: "Dashboard changes require a design review in design.fig; backend work does not.",
},
{
icon: "github",
Expand All @@ -56,8 +56,8 @@ Update and validate the shared visual system first, then translate the approved
},
{
icon: "list",
label: "Capture Pencil IDs",
text: "Record exact Pencil node IDs for the implementation handoff and PR description.",
label: "Capture design screen IDs",
text: "Record the exact `design.fig` screen IDs for the implementation handoff and PR description.",
},
{
icon: "activity",
Expand All @@ -72,7 +72,7 @@ Update and validate the shared visual system first, then translate the approved
Compile and commit focused changes with sign-off; CI verifies the full test, lint, and integration suite.

<DocsCallout icon="check" title="Every PR requires signed commits.">
Use `git commit -s` to add the Developer Certificate of Origin footer. Include risk, affected test tiers, new tests, docs, and Pencil node IDs in the PR description.
Use `git commit -s` to add the Developer Certificate of Origin footer. Include risk, affected test tiers, new tests, docs, and `design.fig` screen IDs in the PR description.
</DocsCallout>

<DocsQuickReference
Expand All @@ -81,7 +81,7 @@ Compile and commit focused changes with sign-off; CI verifies the full test, lin
"Compilation checks (go build ./..., npx tsc --noEmit) — run locally",
"make generate && make manifests — if CRD/schema changes",
"Full test, lint, e2e suite runs in CI after push",
"Pencil exports synced; submodule changes committed separately",
"Design exports synced; submodule changes committed separately",
]}
/>

Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/public-website-development.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Public website and docs development
description: Extend the Astro marketing site and MDX documentation while preserving navigation, canonical URLs, accessibility, and the Pencil source.
description: Extend the Astro marketing site and MDX documentation while preserving navigation, canonical URLs, accessibility, and the design source (`website.fig`).
section: develop
group: local-development
order: 7
Expand Down Expand Up @@ -69,7 +69,7 @@ Run the submodule locally, validate every static route, and check responsive, ke

## Publish a docs change

Update Pencil first for visual changes, edit MDX and navigation together, merge the website repo, then bump and verify the submodule.
Update `website.fig` first for visual changes, edit MDX and navigation together, merge the website repo, then bump and verify the submodule.

<DocsQuickReference
label="WEBSITE LOOP"
Expand Down
6 changes: 3 additions & 3 deletions src/content/docs/web-dashboard-development.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Monaco ships inside the dashboard image instead of loading from a CDN, and the d

## Develop and verify

Use strict build, lint, Vitest/MSW, and the appropriate Playwright mode; UI changes cite Pencil node IDs.
Use strict build, lint, Vitest/MSW, and the appropriate Playwright mode; UI changes cite `design.fig` screen IDs.

<DocsQuickReference
label="WEB CHECK"
Expand Down Expand Up @@ -110,10 +110,10 @@ See [Languages & Translations](../languages/) and the [translating guide on GitH

### Design and PRs

UI changes must be designed first in `design.pen` (Pencil MCP, never edit directly) before writing React code. When submitting a PR with visual changes:
UI changes must be designed first in `design.fig` (OpenPencil or Figma, never edit the file directly) before writing React code. When submitting a PR with visual changes:

- Export the touched design nodes to `design-export/json/<id>.json` and `design-export/screenshots/<id>.png` (automated during design export).
- Cite the Pencil node ID in your PR description (e.g., "Implements design node `ZwM1N` (Web Dashboard Development…)").
- Cite the `design.fig` screen ID in your PR description (e.g., "Implements design node `ZwM1N` (Web Dashboard Development…)").
- Reference the screenshot in the PR for visual comparison.

This ensures the design source remains canonical and reviewers can compare intent to implementation without re-opening the design tool.
2 changes: 1 addition & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/*
* Design tokens — mirror the `c:` theme of the Group/Public Website screens
* in the main repo's design.pen. Dark is the default; `.theme-light` rescopes
* in the main repo's design.fig. Dark is the default; `.theme-light` rescopes
* the same variables for light-themed bands (e.g. the landing page Features
* section). Components must use the semantic utilities these back
* (bg-background, text-foreground, …), never raw hex — that is what makes a
Expand Down
Loading