From 88339e41a5957121f986d3858590db92a21908ad Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 4 Nov 2026 13:03:10 +0100 Subject: [PATCH 1/3] :bug: Build plugin scripts before Angular copies assets (#12815) Generate plugin.js before Angular builds each of the eight Angular plugins. The previous order wrote the script to src/assets after Angular had copied assets to dist, so clean deploys published manifests without their code. Verified clean builds include all declared manifest assets for all eight plugins. Plugin lint, format checks and all 101 tests pass. AI-assisted-by: gpt-6.1-sol --- plugins/apps/colors-to-tokens-plugin/package.json | 2 +- plugins/apps/contrast-plugin/package.json | 2 +- plugins/apps/icons-plugin/package.json | 2 +- plugins/apps/lorem-ipsum-plugin/package.json | 2 +- plugins/apps/poc-state-plugin/package.json | 2 +- plugins/apps/poc-tokens-plugin/package.json | 2 +- plugins/apps/rename-layers-plugin/package.json | 2 +- plugins/apps/table-plugin/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/apps/colors-to-tokens-plugin/package.json b/plugins/apps/colors-to-tokens-plugin/package.json index 4c9690e2a2..f46efc11c4 100644 --- a/plugins/apps/colors-to-tokens-plugin/package.json +++ b/plugins/apps/colors-to-tokens-plugin/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "ng build colors-to-tokens-plugin && pnpm run build:plugin", + "build": "pnpm run build:plugin && ng build colors-to-tokens-plugin", "build:dev": "ng build colors-to-tokens-plugin --configuration development", "build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=colors-to-tokens-plugin", "watch": "node ../../tools/scripts/build-plugin.mjs --plugin=colors-to-tokens-plugin --watch", diff --git a/plugins/apps/contrast-plugin/package.json b/plugins/apps/contrast-plugin/package.json index 641618631d..13f6ca0b4f 100644 --- a/plugins/apps/contrast-plugin/package.json +++ b/plugins/apps/contrast-plugin/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "ng build contrast-plugin && pnpm run build:plugin", + "build": "pnpm run build:plugin && ng build contrast-plugin", "build:dev": "ng build contrast-plugin --configuration development", "build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=contrast-plugin", "watch": "node ../../tools/scripts/build-plugin.mjs --plugin=contrast-plugin --watch", diff --git a/plugins/apps/icons-plugin/package.json b/plugins/apps/icons-plugin/package.json index 31f25c5e8a..59f40ad593 100644 --- a/plugins/apps/icons-plugin/package.json +++ b/plugins/apps/icons-plugin/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "ng build icons-plugin && pnpm run build:plugin", + "build": "pnpm run build:plugin && ng build icons-plugin", "build:dev": "ng build icons-plugin --configuration development", "build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=icons-plugin", "build:plugin:watch": "node ../../tools/scripts/build-plugin.mjs --plugin=icons-plugin --watch", diff --git a/plugins/apps/lorem-ipsum-plugin/package.json b/plugins/apps/lorem-ipsum-plugin/package.json index f5d5be5541..ac115f61c6 100644 --- a/plugins/apps/lorem-ipsum-plugin/package.json +++ b/plugins/apps/lorem-ipsum-plugin/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "ng build lorem-ipsum-plugin && pnpm run build:plugin", + "build": "pnpm run build:plugin && ng build lorem-ipsum-plugin", "build:dev": "ng build lorem-ipsum-plugin --configuration development", "build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=lorem-ipsum-plugin", "watch": "node ../../tools/scripts/build-plugin.mjs --plugin=lorem-ipsum-plugin --watch", diff --git a/plugins/apps/poc-state-plugin/package.json b/plugins/apps/poc-state-plugin/package.json index df5bc13b27..d86158f9d4 100644 --- a/plugins/apps/poc-state-plugin/package.json +++ b/plugins/apps/poc-state-plugin/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "ng build poc-state-plugin && pnpm run build:plugin", + "build": "pnpm run build:plugin && ng build poc-state-plugin", "build:dev": "ng build poc-state-plugin --configuration development", "build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=poc-state-plugin", "watch": "node ../../tools/scripts/build-plugin.mjs --plugin=poc-state-plugin --watch", diff --git a/plugins/apps/poc-tokens-plugin/package.json b/plugins/apps/poc-tokens-plugin/package.json index 41337275df..62fa1c69fe 100644 --- a/plugins/apps/poc-tokens-plugin/package.json +++ b/plugins/apps/poc-tokens-plugin/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "ng build poc-tokens-plugin && pnpm run build:plugin", + "build": "pnpm run build:plugin && ng build poc-tokens-plugin", "build:dev": "ng build poc-tokens-plugin --configuration development", "build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=poc-tokens-plugin", "watch": "node ../../tools/scripts/build-plugin.mjs --plugin=poc-tokens-plugin --watch", diff --git a/plugins/apps/rename-layers-plugin/package.json b/plugins/apps/rename-layers-plugin/package.json index 38eb1e0939..aa15dd3551 100644 --- a/plugins/apps/rename-layers-plugin/package.json +++ b/plugins/apps/rename-layers-plugin/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "ng build rename-layers-plugin && pnpm run build:plugin", + "build": "pnpm run build:plugin && ng build rename-layers-plugin", "build:dev": "ng build rename-layers-plugin --configuration development", "build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=rename-layers-plugin", "watch": "node ../../tools/scripts/build-plugin.mjs --plugin=rename-layers-plugin --watch", diff --git a/plugins/apps/table-plugin/package.json b/plugins/apps/table-plugin/package.json index f2bc2d696b..3b930e3ab5 100644 --- a/plugins/apps/table-plugin/package.json +++ b/plugins/apps/table-plugin/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "ng build table-plugin && pnpm run build:plugin", + "build": "pnpm run build:plugin && ng build table-plugin", "build:dev": "ng build table-plugin --configuration development", "build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=table-plugin", "watch": "node ../../tools/scripts/build-plugin.mjs --plugin=table-plugin --watch", From 180b1ef7cbfa227998ad87427cbb2650b24b0a8a Mon Sep 17 00:00:00 2001 From: Alonso Torres Date: Wed, 11 Nov 2026 14:16:20 +0100 Subject: [PATCH 2/3] :bug: Fix default theme for penpot plugins (#12982) --- plugins/apps/colors-to-tokens-plugin/src/app/app.component.ts | 4 +++- plugins/apps/contrast-plugin/src/app/app.component.ts | 4 +++- plugins/apps/icons-plugin/src/app/app.component.ts | 4 +++- plugins/apps/lorem-ipsum-plugin/src/app/app.component.ts | 4 +++- plugins/apps/poc-tokens-plugin/src/app/app.component.ts | 4 +++- plugins/apps/rename-layers-plugin/src/app/app.component.ts | 4 +++- plugins/apps/table-plugin/src/app/app.component.ts | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/plugins/apps/colors-to-tokens-plugin/src/app/app.component.ts b/plugins/apps/colors-to-tokens-plugin/src/app/app.component.ts index 1e1e204541..b3a4412a00 100644 --- a/plugins/apps/colors-to-tokens-plugin/src/app/app.component.ts +++ b/plugins/apps/colors-to-tokens-plugin/src/app/app.component.ts @@ -72,7 +72,9 @@ export class AppComponent { messages$ = fromEvent>(window, 'message'); initialTheme$ = of( - new URLSearchParams(window.location.search).get('theme'), + // The theme arrives in the query string or in the query part of the hash. + new URLSearchParams(window.location.search).get('theme') ?? + new URLSearchParams(window.location.hash.split('?')[1]).get('theme'), ).pipe(filter((theme) => !!theme)); theme = toSignal( diff --git a/plugins/apps/contrast-plugin/src/app/app.component.ts b/plugins/apps/contrast-plugin/src/app/app.component.ts index 6c4e9263bf..5866d08f2d 100644 --- a/plugins/apps/contrast-plugin/src/app/app.component.ts +++ b/plugins/apps/contrast-plugin/src/app/app.component.ts @@ -115,7 +115,9 @@ export class AppComponent { #messages$ = fromEvent>(window, 'message'); #initialTheme$ = of( - new URLSearchParams(window.location.search).get('theme'), + // The theme arrives in the query string or in the query part of the hash. + new URLSearchParams(window.location.search).get('theme') ?? + new URLSearchParams(window.location.hash.split('?')[1]).get('theme'), ).pipe(filter((theme) => !!theme)); selection = toSignal( diff --git a/plugins/apps/icons-plugin/src/app/app.component.ts b/plugins/apps/icons-plugin/src/app/app.component.ts index ee24b3e356..6ed0f1ce8f 100644 --- a/plugins/apps/icons-plugin/src/app/app.component.ts +++ b/plugins/apps/icons-plugin/src/app/app.component.ts @@ -44,7 +44,9 @@ export class AppComponent { ); public initialTheme$ = of( - new URLSearchParams(window.location.search).get('theme'), + // The theme arrives in the query string or in the query part of the hash. + new URLSearchParams(window.location.search).get('theme') ?? + new URLSearchParams(window.location.hash.split('?')[1]).get('theme'), ).pipe(filter((theme) => !!theme)); public theme = toSignal( diff --git a/plugins/apps/lorem-ipsum-plugin/src/app/app.component.ts b/plugins/apps/lorem-ipsum-plugin/src/app/app.component.ts index 1016cc4a4e..775ffc4986 100644 --- a/plugins/apps/lorem-ipsum-plugin/src/app/app.component.ts +++ b/plugins/apps/lorem-ipsum-plugin/src/app/app.component.ts @@ -69,7 +69,9 @@ export class AppComponent { messages$ = fromEvent>(window, 'message'); initialTheme$ = of( - new URLSearchParams(window.location.search).get('theme'), + // The theme arrives in the query string or in the query part of the hash. + new URLSearchParams(window.location.search).get('theme') ?? + new URLSearchParams(window.location.hash.split('?')[1]).get('theme'), ).pipe(filter((theme) => !!theme)); theme = toSignal( diff --git a/plugins/apps/poc-tokens-plugin/src/app/app.component.ts b/plugins/apps/poc-tokens-plugin/src/app/app.component.ts index 849e890e16..feef780661 100644 --- a/plugins/apps/poc-tokens-plugin/src/app/app.component.ts +++ b/plugins/apps/poc-tokens-plugin/src/app/app.component.ts @@ -44,7 +44,9 @@ export class AppComponent { ); public initialTheme$ = of( - new URLSearchParams(window.location.search).get('theme'), + // The theme arrives in the query string or in the query part of the hash. + new URLSearchParams(window.location.search).get('theme') ?? + new URLSearchParams(window.location.hash.split('?')[1]).get('theme'), ).pipe(filter((theme) => !!theme)); public theme = toSignal( diff --git a/plugins/apps/rename-layers-plugin/src/app/app.component.ts b/plugins/apps/rename-layers-plugin/src/app/app.component.ts index 70055739cc..8f39f284c9 100644 --- a/plugins/apps/rename-layers-plugin/src/app/app.component.ts +++ b/plugins/apps/rename-layers-plugin/src/app/app.component.ts @@ -38,7 +38,9 @@ export class AppComponent { } initialTheme$ = of( - new URLSearchParams(window.location.search).get('theme'), + // The theme arrives in the query string or in the query part of the hash. + new URLSearchParams(window.location.search).get('theme') ?? + new URLSearchParams(window.location.hash.split('?')[1]).get('theme'), ).pipe(filter((theme) => !!theme)); theme = toSignal( diff --git a/plugins/apps/table-plugin/src/app/app.component.ts b/plugins/apps/table-plugin/src/app/app.component.ts index 4cce7de045..ad1e492806 100644 --- a/plugins/apps/table-plugin/src/app/app.component.ts +++ b/plugins/apps/table-plugin/src/app/app.component.ts @@ -40,7 +40,9 @@ export class AppComponent { messages$ = fromEvent>(window, 'message'); initialTheme$ = of( - new URLSearchParams(window.location.search).get('theme'), + // The theme arrives in the query string or in the query part of the hash. + new URLSearchParams(window.location.search).get('theme') ?? + new URLSearchParams(window.location.hash.split('?')[1]).get('theme'), ).pipe(filter((theme) => !!theme)); theme = toSignal( From 7516f1d1636ce74b61dcfdd62ed9b03e59383d06 Mon Sep 17 00:00:00 2001 From: Roshan Ramani <154859727+rawsun007@users.noreply.github.com> Date: Fri, 13 Nov 2026 13:01:37 +0530 Subject: [PATCH 3/3] :books: Fix the telemetry flag name in the configuration guide (#13032) The guide told self-hosters to add enable-telemetries to PENPOT_FLAGS. flags/parse turns that into :telemetries, which nothing reads; the telemetry task checks :telemetry, so the documented flag never enables it. AI-assisted-by: claude-opus-5-5 --- docs/technical-guide/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/technical-guide/configuration.md b/docs/technical-guide/configuration.md index e99e8d5cd5..ebade88db7 100644 --- a/docs/technical-guide/configuration.md +++ b/docs/technical-guide/configuration.md @@ -56,7 +56,7 @@ Penpot uses anonymous telemetries from the self-hosted instances to improve the Consider sharing these anonymous telemetries enabling the corresponding flag: ```bash -PENPOT_FLAGS: [...] enable-telemetries +PENPOT_FLAGS: [...] enable-telemetry ``` ## Registration and authentication