diff --git a/changelog/unreleased/1148-official-themes.md b/changelog/unreleased/1148-official-themes.md new file mode 100644 index 000000000..69a3dfb4b --- /dev/null +++ b/changelog/unreleased/1148-official-themes.md @@ -0,0 +1,3 @@ +# 33 official themes in the theme catalog + +The official theme source now lists 33 themes from [GameplanePanel/themes](https://github.com/GameplanePanel/themes): color palettes such as Nord, Dracula, Catppuccin, Gruvbox and Solarized, plus layout, shape, type and motion themes. They show up in the Theme catalog (Settings → Theme) after the upgrade; nothing to configure. Installs that set `themes.officialSource.themes` themselves keep their own list. [PR #1148](https://github.com/GameplanePanel/Gameplane/pull/1148) diff --git a/charts/gameplane/values.yaml b/charts/gameplane/values.yaml index 519bd7d27..9002821f3 100644 --- a/charts/gameplane/values.yaml +++ b/charts/gameplane/values.yaml @@ -1056,9 +1056,42 @@ themes: officialSource: enabled: true url: ghcr.io/gameplanepanel/gameplane-themes - # Theme names the official source indexes. Empty for now; GameplanePanel/themes releases - # add names here (like the module list above). - themes: [] + # Theme names the official source indexes, one per folder in GameplanePanel/themes + # (like the module list above). A new official theme is added here after its release. + themes: + - arcade-neon + - arctic-blue + - blueprint-board + - brutalist + - catppuccin + - compact-density + - cyberpunk-neon + - dashboard-bento + - deep-ocean + - dracula + - elegant-serif + - ember-forge + - flat-workbench + - forest-camp + - glass-observatory + - gruvbox + - high-contrast-focus + - kinetic-hover + - large-type + - lavender-dream + - no-motion + - nord + - ocean-deep + - paper-map + - pastel-sakura + - phosphor-terminal + - rounded-playful + - sepia-paper + - sidebar-right + - soft-3d-controls + - solarized + - terminal-green + - top-nav-blue # Cosign signature verification (keyed, offline). Off by default, as for official modules. verify: enabled: false diff --git a/specs/043-theme-marketplace/tasks.md b/specs/043-theme-marketplace/tasks.md index bfff95b80..0fbf87589 100644 --- a/specs/043-theme-marketplace/tasks.md +++ b/specs/043-theme-marketplace/tasks.md @@ -162,16 +162,16 @@ - [X] T055 New bucket `themes` in `test/e2e/buckets.sh` and `test/e2e/api_themes_e2e_test.go` (`t.Parallel()`, unique names, `ociPushMu` around pushes, ≤ 7 logins): push a signed and an unsigned theme to the Kind registry, add a source, catalog lists both with the unsigned one flagged after enabling verify, user A installs and selects, user B unaffected, update, disable source (installed copy keeps working), remove (fallback to Pink). Done: `test/e2e/api_themes_e2e_test.go` (`TestAPI_ThemeMarketplaceLifecycle`, 3 logins), fixtures `test/e2e/fixtures/theme-oras-push{,-v2}-job.yaml` and `theme-cosign-sign{,-v2}-job.yaml`, bucket `themes` in `test/e2e/buckets.sh`, wired in `.github/workflows/ci.yaml` (amd64), `hack/ci_scope.py` and `test/e2e/suite-components.json`. - [X] T056 [P] Standalone case in `test/e2e/standalone_panel_e2e_test.go` (new test function): add a local or OCI theme source and install a theme with no operator (OD-4). Done in a new file, `test/e2e/standalone_themes_e2e_test.go` (`TestStandalone_ThemeSourceInstall`, bucket `standalone`), because `standalone_panel_e2e_test.go` exists on master; it installs its own panel-only release and uses an OCI source, since the chart has no local theme root setting. - [X] T057 [P] Update `api/specs.md` (themes service, routes, indexer, tables) and `web/specs.md` (catalog, preview, installed render order, safe mode). Done: `api/specs.md` "Theme marketplace (spec 043)", `web/specs.md` "Theme marketplace (spec 043)". -- [ ] T058 [P] `changelog/unreleased/-theme-marketplace.md` per `changelog/unreleased/README.md` (feature, new Helm value `themes.officialSource.enabled`, new permission `themes:manage`). +- [X] T058 [P] `changelog/unreleased/-theme-marketplace.md` per `changelog/unreleased/README.md` (feature, new Helm value `themes.officialSource.enabled`, new permission `themes:manage`). Done: one entry per PR (`1135-theme-marketplace-api.md`, `1136-gp-module-theme-commands.md`, `1141-theme-marketplace-dashboard.md`). - [ ] T059 Run `quickstart.md` sections 1–6 on a dev cluster and a standalone panel (valgul's manual walk); record results in `specs/043-theme-marketplace/quickstart-results.md`. --- ## Phase 9: Official themes repository (`GameplanePanel/themes`, after T003) -- [ ] T060 Scaffold `themes/` like `GameplanePanel/module`: `README.md`, `CLAUDE.md`, `AGENTS.md`, `themes//{theme.yaml,theme.css,previews/}` layout, `build.sh` (`gp-module theme validate` then `gp-module theme package --push ghcr.io/gameplanepanel/gameplane-themes/:`), CI workflow that validates every theme on PRs. -- [ ] T061 Release workflow `themes/.github/workflows/release.yaml`: on tag, push changed themes and sign each with cosign using the project key pair (the module key; the public half is `signing/cosign.pub`, which T021 pins); the workflow signs with the key, not keyless. OD-6 settled 2026-11-27. -- [ ] T062 Seed themes from `example/custom-css/*.css` on branch `feat/example-theme-gallery`: run each through `gp-module theme validate`, keep those that pass, write `theme.yaml` with tokens taken from each overlay's CSS variables, capture light and dark previews with a Playwright script against the dev cluster (`themes/hack/capture-previews.ts`); at least 10 themes (SC-002). +- [X] T060 Scaffold `themes/` like `GameplanePanel/module`: `README.md`, `CLAUDE.md`, `AGENTS.md`, `themes//{theme.yaml,theme.css,previews/}` layout, `build.sh` (`gp-module theme validate` then `gp-module theme package --push ghcr.io/gameplanepanel/gameplane-themes/:`), CI workflow that validates every theme on PRs. Done in GameplanePanel/themes#1: themes sit at the repository root (`/`), as modules do in GameplanePanel/module; `build.sh validate|push`; `validate.yaml` builds `gp-module` from a pinned Gameplane commit. +- [X] T061 Release workflow `themes/.github/workflows/release.yaml`: on tag, push changed themes and sign each with cosign using the project key pair (the module key; the public half is `signing/cosign.pub`, which T021 pins); the workflow signs with the key, not keyless. OD-6 settled 2026-11-27. Done in GameplanePanel/themes#1: a `v*` tag pushes every unpublished theme version and signs its manifest digest with the key (`--skip-existing`, same cosign flags as the module bundles). Needs the `release-signing` environment with `COSIGN_PRIVATE_KEY` and `COSIGN_PASSWORD` in that repository. +- [X] T062 Seed themes from `example/custom-css/*.css` on branch `feat/example-theme-gallery`: run each through `gp-module theme validate`, keep those that pass, write `theme.yaml` with tokens taken from each overlay's CSS variables, capture light and dark previews with a Playwright script against the dev cluster (`themes/hack/capture-previews.ts`); at least 10 themes (SC-002). Done in GameplanePanel/themes#1: all 33 overlays pass and are kept; tokens are the values each overlay resolves to per mode (overlays without color changes keep the Modern Pink tokens). Previews come from the dashboard in mock mode, not a dev cluster, with the theme applied through `applyThemePreferences`, so the capture needs no cluster. The names are listed in `themes.officialSource.themes`. - [ ] T063 First release tag in `themes`; confirm the `official` source on a fresh install lists every seeded theme as `valid` and signed. ---