24875 Commits

Author SHA1 Message Date
Michael Panchenko
aab5a4752f
✨ Add on-demand pull request reviews (#13272)
* ✨ Add on-demand pull request reviews

Run Claude Code, Copilot CLI and OpenCode Go from PR slash commands in the
official development image. Let maintainers configure a default model and
effort for each reviewer and override both in a comment. Configure MCP
for code navigation and reply to inline questions in their original thread.

AI-assisted-by: gpt-6
Signed-off-by: Michael Panchenko <michael.panchenko@oraios-ai.de>

* ✨ Add a local runner for pull request reviews

Run the CI review scripts for a PR on a local machine and print the
review instead of posting it. Use the local Claude login when no OAuth
token is set, start Serena through uvx when it is not installed, and
show OpenCode errors when it returns no answer.

AI-assisted-by: claude-opus-5-5

* ✨ Add /review and default OpenCode to DeepSeek V4.1 Flash

Accept /review at the start of a comment as an alias for /oc with the
repository defaults, and keep the typed command as the native agent's
mention. Use deepseek-v4.1-flash when no OPENCODE_MODEL is configured.

AI-assisted-by: claude-opus-5-5

* 🔧 Default OpenCode reviews to high effort

Use high effort for DeepSeek V4.1 Flash when no OPENCODE_EFFORT is
configured, in CI and in the local runner.

AI-assisted-by: claude-opus-5-5

---------

Signed-off-by: Michael Panchenko <michael.panchenko@oraios-ai.de>
Co-authored-by: alonso.torres <alonso.torres@kaleidos.net>
2026-11-25 14:56:11 +01:00
andrés gonzález
89717787c7
📚 Fix shortcut labels and ruler guide keys in the user guide (#13228)
* 📚 Fix Clear undo keys and snap labels in shortcuts docs

Clear undo is bound to alt+q on every platform, not Ctrl+Q on Linux and
Windows. The two snap rows used labels that do not match the actions
their keys toggle: Ctrl+Shift+' is "Snap to guides" and Ctrl+Shift+G is
"Snap to ruler guides" in the app.

AI-assisted-by: claude-opus-5-5

* 📚 Align guide shortcut labels and macOS keys in the user guide

Rename "Show/hide grid" to "Show/hide guides" to match the app label for
Ctrl+'. Use the macOS option symbol for Copy link to board and in the
shortcut recording note. Keep the snap rows in alphabetical order.

Fix the ruler guides shortcut in Workspace basics: ruler guides show
only while rulers (Ctrl+Shift+R) and guides (Ctrl+') are both visible.
Document Ctrl+Shift+G to toggle snap to ruler guides.

AI-assisted-by: claude-opus-5-5

* 📚 Note that toggling guides also hides board guides

Ctrl+' hides ruler guides and board guides alike, since both depend on
the same display-guides setting.

AI-assisted-by: claude-opus-5-5

---------

Co-authored-by: Roshan Ramani <roshanramani.dev@gmail.com>
2026-11-25 14:19:35 +01:00
Eva Marco
edd487cddd
🐛 Normalize legacy svg attrs of pasted shapes (#13334)
* 🐛 Normalize legacy svg attrs of pasted shapes

Shapes copied from a version before 2.20 can hold camelCase svg attrs,
for example :strokeLinejoin. Files get them normalized by migration
0037 when they load, but clipboard data skips the migrations, so the
closed SvgAttrs schema rejected the pasted shape and the whole paste was
cancelled.

Move the shape normalization of migration 0037 to csvg/normalize-shape
and run it on every pasted shape in paste-shapes.

Closes #13327

AI-assisted-by: claude-opus-5-5

* 📚 Name the shared svg repair in the data model checklist

From the review: the checklist still named the withdrawn migration 0035
as the svg repair site. Point it to csvg/normalize-shape, used by
migration 0037 and by paste-shapes.

AI-assisted-by: claude-opus-5-5
2026-11-25 13:58:36 +01:00
Eva Marco
efe420e3e4
✨ Count the trips of a throttled update loop before reporting it (#12941)
* ✨ Count the trips of a throttled update loop before reporting it

The report of a throttled update loop could not tell a loop that goes
on from a long chain of updates that ends. It now waits five seconds
and reports how many times the scheduler tripped meanwhile, the stack
of the last trip and the number of objects of the page. The trace still
shows the first trip.

Relates #12580

AI-assisted-by: claude-opus-5-5

* ♻️ Drop the bang suffix from the update loop report function

Review asked for no new functions with a ! suffix.

AI-assisted-by: claude-opus-5-5
2026-11-25 13:52:15 +01:00
Elena Torró
1438be5b26
🐛 Keep variant property order and remove the right property past eight
Variants.properties and currentValues() went through a set, which loses
order past eight items, so index-based removeProperty/renameProperty from a
plugin hit the wrong property. Use distinct to keep the order.

In the sidebar, input-with-meta* kept the input node after a real blur and
replayed a stale rename with an old position when its row unmounted,
undoing a property removal. Clear the node in on-stop-edit.

Add a unit test, a plugin-api-test-suite case and a plugins changelog entry.

Closes #13247
2026-11-25 13:39:09 +01:00
Pablo Alba
7f53bf76b6 🐛 Ignore default constraints when syncing library components
Dragging a shape into a board sets its constraints to the default for
that place (left/top, or scale inside a group) without marking them
touched. A component main on the canvas has no constraints, so the
sync saw nil against left/top and wrote nil over the copy. With nested
components that sync writes into the middle library, so any change to
the inner component, even a 1px move, showed an update banner in every
file that uses it.

Treat a missing constraint as the default for the placement of the
shape being written when comparing during sync.

Closes #12719

AI-assisted-by: claude-opus-5-5
2026-11-25 13:20:03 +01:00
Eva Marco
6337810676
🐛 Keep the image when Selected colors changes a text color (#13313)
color-att->text built the text fill without the :image of the color,
so picking an image in Selected colors left a fill with only
:fill-opacity. The backend rejected the text as an invalid shape. The
same gap made an image fill impossible to match, so changing it back
to a plain color did nothing.

AI-assisted-by: claude-opus-5-5
2026-11-25 12:42:21 +01:00
Pablo Alba
571ee80a4b 🐛 Validate and repair variant properties as a set
Validation compared each variant's property names with the first child
of its board, so it missed forbidden characters, too-long text and
repeated names, and never checked labels in deleted components. Repair
cut every variant down to the first child's names, which dropped
values, and left the file invalid.

Validation now checks the members of each board as one set: cleaned
text, and the same names in the same order, in layers-panel order as in
migration 0038. Repeated value combinations stay valid, as the editor
allows them. It also checks boards that exist only in a component's
objects, variant components that belong to no board, and the whole
board when a save touches only one of its members.

Repair writes the aligned properties and labels on each component and
its main. A live variant main outside its board is reported as
:variant-main-outside-board and detached, as the editor does, instead
of turning its parent into a board. :main-instance-not-a-variant now
repairs the main of a deleted component inside its objects.

Moving a shape or component into a board now cuts property values taken
from its name or path to 60 characters, as the schema requires.

Closes #13238

AI-assisted-by: claude-opus-5-5
2026-11-25 12:17:42 +01:00
Andrey Antukh
2b67de0e29 📎 Fix copyright header on several files 2026-11-25 09:26:43 +01:00
Andrey Antukh
70ca1f8869 📚 Keep review plans as siblings
Keep later review rounds tied to the original plan and verify code changes,

not prior review reports.

AI-assisted-by: gpt-6-luna
2026-11-25 08:13:04 +00:00
Belén Albeza
490995501d
🐛 Resize auto-width texts when a typography is applied (#13315)
With the WebGL renderer, applying a typography changed the text but left
its box at the old size, because nothing asked the renderer to measure
the text again. apply-typography now waits for the new font and resizes
the auto-grow texts inside its undo step, as the Design tab does.

The typography bar at the bottom of the canvas had its own copy of this
logic, with no resize and no undo step: the font-load heal resized the
box later without recording undo, so Ctrl+Z left the new size. It now
calls apply-typography.

Closes #13124

AI-assisted-by: claude-opus-5-5
2026-11-25 07:43:10 +01:00
andrés gonzález
b0c569d891
🐛 Submit the import audit events from the import job (#13150)
* 🐛 Submit the import audit events from the import job

Since 2.20 the dashboard imports .penpot files through the
:import-binfile job, which submitted no audit event. The outcome of
an import and the files it created were lost, so analytics could no
longer tell completed imports from failed ones.

The job now submits the import-binfile event with the name and props
of the legacy RPC event (status, file-ids, file-count, project,
version, generated-by, referer), plus the job id, the team id, the
package size and the elapsed time. A cancelled job reports the
cancelled status. A completed import also submits a create-file event
per imported file, as the legacy RPC does. As in the RPC, an import
refused by the permission check submits no event.

Closes #13148

AI-assisted-by: claude-opus-5-5

* 🐛 Audit import jobs at their terminal transition

Run optional terminal hooks in the winning job transaction and use one
for import audit events. Preserve the separate import transaction and
cover cancellation, rollback, RPC paths, and dispatcher aborts.

AI-assisted-by: gpt-6.1-terra

* ♻️ Simplify the terminal job hook contract

Pass a semantic terminal job to the hook with its final status and
decoded parameters, result or error. Adapt the import audit and tests.

AI-assisted-by: gpt-6.1-terra

* 🐛 Keep import jobs bound to their original team

Freeze the destination team when creating an import job and serialize
imports with project moves. Use the frozen team for audit and webhook
events, and keep compatibility with existing jobs.

Select import audit props explicitly to prevent new job parameters from
being included in events by default.

AI-assisted-by: gpt-6.1-terra

* 📚 Document the import team fallback removal

Mark the legacy job audit fallback for removal in version 2.21.0.

AI-assisted-by: gpt-6.1-terra

* 🔧 Validate canonical AI model IDs in commit trailers

Require bare lowercase model IDs in AI-assisted-by trailers and cover
the validation with tests. Align the commit and PR workflows with the
same attribution rules.

AI-assisted-by: gpt-6.1-terra

---------

Co-authored-by: Andrey Antukh <niwi@niwi.nz>
2026-11-24 22:39:35 +01:00
Eva Marco
dadf4d3076
🐛 Keep all padding sides when setting one on a layout without padding (#13266)
* 🐛 Keep all padding sides when setting one on a layout without padding

Setting one padding side on a board whose layout had no stored padding
(made through the API or MCP) saved only that side, for example {:p1 12}.
The backend rejected the shape as invalid.

Start a padding change from the four sides at 0 when the shape has no
padding yet.

Closes #13265

AI-assisted-by: claude-opus-5-5

* 🐛 Complete the layout padding after patching it

From the review: fill the four padding sides after the patch instead of
before, so a side cleared to nil also becomes 0, and any layout change
completes a partial padding saved before the fix.

AI-assisted-by: claude-opus-5-5
2026-11-24 16:08:08 +01:00
Eva Marco
590c3add36
🐛 Leave gradient mode when undo removes a stroke gradient (#13262)
* 🐛 Leave gradient mode when undo removes a stroke gradient

Undoing a gradient with the color picker open sent a plain color.
The picker dropped the stops but stayed in gradient mode, so adding
a stop built a gradient with no coordinates or colors and applied it
to the stroke. The backend rejected it as an invalid shape.

Switch the picker to color (or image) when the color is no longer a
gradient, and skip invalid gradients before applying them.

Closes #13261

AI-assisted-by: claude-opus-5-5

* 🐛 Cover more colorpicker cases in the stroke gradient tests

From the review: plain and image colors still reach on-change through
the gradient guard, both gradient types leave the gradient tab, and a
plain color keeps the color tab. The image tab test is renamed after
what it checks.

AI-assisted-by: claude-opus-5-5
2026-11-24 16:07:17 +01:00
Eva Marco
915d405a9c
🐛 Drop nil style attrs when the legacy text editor saves (#13253)
The legacy editor writes the attrs it gets into the data of an empty
paragraph, nil values included, so turning off a text decoration there
leaves :text-decoration nil. finalize-editor-state copied that data into
the shape content as it was, the only commit path that skipped
ensure-valid-text-content, and the backend rejected the shape. Build the
content with a helper that runs it, shared by both renderer branches.

Closes #13252

AI-assisted-by: claude-opus-5-5
2026-11-24 15:47:45 +01:00
andrés gonzález
aa5e62a417
🐛 Fix SVG upload frame when the selection is inside a group (#13282)
* 🐛 Fix SVG upload frame when the selection is inside a group

With a shape selected inside a group, an uploaded or pasted SVG goes
into that group, but its frame-id came from the board under the drop
point. When the two boards differ, the save fails with invalid-frame.
Take the frame from the group instead.

AI-assisted-by: claude-opus-5-5

* 🐛 Keep SVG upload frame aligned with its parent

Keep the SVG upload frame and parent from the same source.

When a shape inside a group was selected, the frame for the new SVG
came from the board under the cursor while the parent came from the
group, so saving failed with invalid-frame. The parent and frame now
come from one shared predicate, which also prevents a repeat of the
original drift between two copies of the condition.

Add the board-parent test for the frame branch this change rewrote,
and make the group checker assert that the SVG exists and that its
frame is the expected one. Add mutation evidence for both.

AI-assisted-by: deepseek-v4.1-flash

---------

Co-authored-by: Luis de Dios <luis.dedios@kaleidos.net>
2026-11-24 15:15:46 +01:00
Belén Albeza
e1818c88bb
✨ Remove the "Text Editor v3" label from the WebGL info overlay (#13293)
Text Editor v3 is now the default, so the label no longer tells anything.
Drop the TEXT_EDITOR_V3 render flag and the frontend code that set it.
The "WebGL rendering" label stays.

Closes #13289

AI-assisted-by: claude-opus-5-5
2026-11-24 14:50:37 +01:00
Eva Marco
271f5af784
🐛 Give a color to the stroke created when its style changes (#13264)
* 🐛 Give a color to the stroke created when its style changes

Changing the width, style or alignment of a stroke that a shape did not
have built the stroke from the style attributes only, with no color. The
backend rejected the shape as invalid.

Start from the default stroke, as the per-side width and the stroke width
tokens already do.

Closes #13263

AI-assisted-by: claude-opus-5-5

* 🐛 Read bool strokes in the multiple selection menu

The bool type lacked :strokes in its editable attrs, so the multiple
selection menu ignored bool strokes. With a bool without strokes and a
shape with one selected, the menu showed that stroke as shared, and
editing it created a stroke on the bool. Two bools with the same stroke
showed none.

Relates to #13263

AI-assisted-by: claude-opus-5-5
2026-11-24 14:34:28 +01:00
Andrey Antukh
bc3f8dd6ef Merge remote-tracking branch 'origin/staging-2.19.x' into staging 2026-11-24 12:45:02 +01:00
Andrey Antukh
b52fcc7e6d 🎉 Add a command to create pull requests
Add `gh.py create-pr` to create pull requests with automatic base detection,
optional issue linking and support for project and draft options. Normalize
and validate detected base branches, and report the created URL if issue
linking fails. Update the skill and workflow documentation, and cover the
command and base detection with tests.

AI-assisted-by: hy4-flash-free
2026-11-24 12:33:09 +01:00
Elena Torró
407ee58ddd
🐛 Fix render-wasm panic when an auto layout has only absolute children (#13146)
* 🐛 Restore the WASM stack pointer after a failed call (#12978)

A failed render-wasm call traps without popping its shadow-stack frames.
Each failure leaked stack until it overwrote static data, and from then on
every call trapped as wasm-critical. h/call now saves the stack pointer
before the call and restores it on failure.

Closes #12977
Related to #12906

AI-assisted-by: claude-opus-5-5

* 🐛 Fix render-wasm panic when an auto layout has only absolute children

An auto flex or grid layout whose children were all absolute shrank to
zero, and a rotated shape below it got a matrix that cannot be inverted,
which panicked in `_propagate_modifiers`. Skip auto-size when there is
no content, as CLJS does. A matrix that still cannot be inverted is now
a recoverable error, which shows a toast instead of the error page.

Closes #12763

AI-assisted-by: claude-opus-5-5

* 🐛 Count hidden children in render-wasm grid auto-size

A grid takes its size from its tracks, so, like CLJS, it skips auto-size
only when every child is absolute. Flex still skips hidden children,
since its line building leaves them out.

Refs #12763

AI-assisted-by: claude-opus-5-5
2026-11-24 12:25:19 +01:00
Andrey Antukh
4b72c137f1 Merge remote-tracking branch 'origin/main' into staging-2.19.x 2026-11-24 12:24:03 +01:00
Alejandro Alonso
277ca546f2
⚡ Re-present the frame when the grid overlay changes (#13248)
Hovering a grid frame requested a full render. That clears the
canvas and walks every visible tile even though the overlay is
only UI. show_grid and hide_grid now re-present the last frame.
2026-11-24 12:12:39 +01:00
Belén Albeza
76adaf86b1 🐛 Count hidden children in render-wasm grid auto-size
A grid takes its size from its tracks, so, like CLJS, it skips auto-size
only when every child is absolute. Flex still skips hidden children,
since its line building leaves them out.

Refs #12763

AI-assisted-by: claude-opus-5-5
2026-11-24 10:41:11 +01:00
Belén Albeza
f807e749db 🐛 Fix render-wasm panic when an auto layout has only absolute children
An auto flex or grid layout whose children were all absolute shrank to
zero, and a rotated shape below it got a matrix that cannot be inverted,
which panicked in `_propagate_modifiers`. Skip auto-size when there is
no content, as CLJS does. A matrix that still cannot be inverted is now
a recoverable error, which shows a toast instead of the error page.

Closes #12763

AI-assisted-by: claude-opus-5-5
2026-11-24 10:41:11 +01:00
Belén Albeza
35278f3917 🐛 Restore the WASM stack pointer after a failed call (#12978)
A failed render-wasm call traps without popping its shadow-stack frames.
Each failure leaked stack until it overwrote static data, and from then on
every call trapped as wasm-critical. h/call now saves the stack pointer
before the call and restores it on failure.

Closes #12977
Related to #12906

AI-assisted-by: claude-opus-5-5
2026-11-24 10:39:52 +01:00
Andrey Antukh
eaac3f58c4 📎 Update changelog 2.19.5 2026-11-24 09:55:26 +01:00
Andrey Antukh
04b2e0d819 Revert "🐛 Upload large imports from the kept File on the main thread (#13183)"
This reverts commit 8239bd36522774d68b1d26447de8c01b92c7ca2e.
2026-11-24 09:53:46 +01:00
andrés gonzález
deffc02098
✨ Print the cause of an error in the frontend error report (#13274)
WASM errors are thrown as an ex-info whose cause is the original failure
(the trap, `RuntimeError: unreachable`, `memory access out of bounds`,
`Aborted(OOM)`). The CLJS `format-throwable` printed only the ex-data and
the stack, so the report said where a WASM call failed but never why.

Add a "Caused by:" block with the cause message, printed on its own since
only V8 starts `.stack` with it, followed by its formatted data and stack.

Relates to #12910

AI-assisted-by: claude-opus-5-5
2026-11-24 09:47:50 +01:00
Alonso Torres
3bd549a146
🐛 Stop MCP plugin tasks from throwing after the plugin closes (#13224)
Closing a plugin removes its globals (console, penpot, ...) while a task
of the MCP plugin may still be running. Under SES a removed global reads
as undefined, so the task failed at its next use of console or penpot,
and the catch handlers failed again on console.error. The rejection
reached the workspace as "Cannot read properties of undefined (reading
'error')", for tasks that succeeded as well as for failed ones.

A task that ends after the plugin closed now returns quietly. It cannot
answer: the UI iframe and its WebSocket are gone, and the MCP server
already fails the task when the plugin connection closes. The outer
catch logs through the console reference taken at load, so it cannot
throw.

Tests: PluginTaskRequest.test.ts runs TaskHandler.ts and plugin.ts in
one sandbox, removes the globals while a task waits, and checks that no
rejection escapes and no error is logged when the task ends in success or
failure. A task that fails while the plugin is open still sends its error
response.

Closes #12503

AI-assisted-by: claude-opus-5-5
2026-11-23 17:39:03 +01:00
Pablo Alba
b58f7d2996 🐛 Build each file repair on the data left by the previous ones
repair-file built every repair of a pass from the file data taken before
the pass. Repairs write whole values (a :mod-component with the whole
component, a :set with the whole :shapes vector), so two repairs on the
same component or shape attribute undid each other: the last write won,
the lost fix came back as an error, and each clash cost another pass.

Each repair's changes are now applied before the next repair is built.
A private repair-file* returns the data and the changes; repair-file
returns the changes, which give the same result when applied in order,
and repair-file-until-valid reuses the data instead of applying the
batch again (on the backend a second apply wrote an orphan page fragment).

Repairs now see what earlier repairs of the pass did, so
:ref-shape-not-found does nothing when its shape was removed or its ref
shape resolves again; it would otherwise detach a copy that an earlier
:invalid-main-instance-id repair had already relinked.

Tests stub repair-error, through a multi-arity fn so the JS build can
call it, and cover two clashing errors on one component in either order,
three missing children fixed in one pass, and repairs on removed shapes.

Closes #13239

AI-assisted-by: claude-opus-5-5
2026-11-23 16:32:58 +01:00
Pablo Alba
8d0ff7984b 🐛 Keep swapped children on switch and undo of a nested variant copy
Switching a variant copy that sits inside another copy dropped a component
swapped inside it, and the new variant showed its default child. Undoing
a variant switch also lost a swapped child: the old variant came back with
no child in that place.

When the swap was made in the copy, the original shape of the swapped
child was looked up from the nearest main, which is the copy in the outer
main, so it had no match in the variant main. Look it up from the match
of its parent in the variant main instead.

When the swap was made in the outer main, the child had no slot of its
own, so it was deleted with the old copy and never moved. The new
ctf/get-outer-swaps finds these heads by walking their ref chain up to
the variant main. The delete step and keep-touched both use it, so they
pick the same heads: kept off the delete list, moved into the new copy
and pointed to the swapped-in component, with the slot of the child they
replace. The walk that advances the refs of a subtree moves to
ctf/get-advanced-refs, which the clipboard now shares.

When the switch kept a swapped child, the undo of its move into the new
copy put it back under the old copy id. That id is also the id of the new
copy, so undoing the creation of the new copy removed the child.
change-parent now takes the undo parent from its objects, as it already
did for the previous sibling.

When the new variant had no match for a swapped child, the child was
removed with the old copy, with no undo entry. Move it to the root first
and delete it from there, after the rest of the switch, so undo brings it
back after the old copy.

Closes #13179
Closes #13181

AI-assisted-by: claude-opus-5-5
2026-11-23 16:06:09 +01:00
Alonso Torres
70c37934af
✨ Expose the file features and active renderer to plugins (#13169)
Plugins and the MCP could not tell whether the new render engine (WebGL)
or the SVG engine draws the open file.

Add file.features with the sorted features of the open file: its stored
features plus the features active in the session. render-wasm/v1 comes
from the session alone, so it is present only when WebGL draws the file,
whether the renderer comes from the wasm query param, the profile setting
or the workspace menu. The backend never stores that feature on the file,
so the stored features alone cannot answer it. For any other file, such
as a library or a File kept after opening another file, features is null.

Add penpotUtils.isWasmRenderer() to the MCP plugin and list it in the
MCP instructions. It throws a clear error when the Penpot version does
not expose the file features. Regenerate the MCP API docs, which also
picks up the missing penpot.location entry, and the plugin API test
suite surface.

Add plugin API test suite tests for the open file and for a file that is
not open. Note in the plugins memory that every new or changed Plugin API
member gets a suite test whenever the suite can reach the case.

Closes #13167

AI-assisted-by: claude-opus-5-5
2026-11-23 15:58:41 +01:00
Yamila Moreno
1edaf6baef 🔧 Improve PRs validations
Signed-off-by: Yamila Moreno <yamila.moreno@kaleidos.net>
2026-11-23 12:56:49 +01:00
Alejandro Alonso
5c768aeca0
🐛 Skip WASM font checks while the renderer is not live (#13235)
Page switches tear down the WebGL canvas before openPage resolves, so
font-stored? must not call _is_font_uploaded against a null resource
pool. Guard with wasm/live? like the other font FFI helpers, and cover
the skip path with a unit test.

Closes #13205
2026-11-23 12:01:10 +01:00
Andrey Antukh
0498c68b5b Merge branch 'staging-2.19.x' into staging 2026-11-23 10:41:09 +01:00
Andrey Antukh
234a1e547b 📎 Update several skills 2026-11-23 10:40:10 +01:00
Andrey Antukh
174596db1d Merge remote-tracking branch 'origin/main' into staging 2026-11-23 10:08:15 +01:00
Andrey Antukh
1177a817ed 📚 Update the changelog for 2.19.4
Document the fix for importing large .penpot files in Chrome.

AI-assisted-by: gpt-6.2-sol
2.19.4
2026-11-23 08:50:58 +00:00
Andrey Antukh
eb0106e6fb ✨ Simplify changelog review and report label edits
Keep the release procedure in one place and separate review from GitHub
writes. Clarify how to prepare and verify release highlights.

Report each successful label edit so earlier changes remain visible if a
later edit fails.

AI-assisted-by: gpt-6.2-sol
2026-11-23 08:48:18 +00:00
Andrey Antukh
5e1e0bef34 ✨ Collect changelog inputs in one command
Gather milestone issues, pull requests, advisories, and changelog checks
into one JSON snapshot. Reuse it across the release workflow to avoid
repeating GitHub queries while keeping write actions separate.

AI-assisted-by: gpt-6.2-sol
2026-11-23 08:40:20 +00:00
Andrey Antukh
b822b38279 ⬆️ Update docker images 2026-11-23 09:39:45 +01:00
Andrey Antukh
f089c86a71 🐛 Fix changelog generation and advisory pagination
Use GitHub's cursor pagination for repository advisories and flatten the
returned pages.

Remove empty breaking-change sections and document the changelog contract.

AI-assisted-by: gpt-6-luna
2026-11-23 08:33:08 +00:00
Eva Marco
15871f3de6
🐛 Fix the disabled invite button in the empty invitations state (#13193)
* 🐛 Center the disabled invite button in the empty invitations state

The disabled button sits inside a tooltip trigger, a fit-content grid
that the text-align of the empty state does not center. Center the
trigger with auto inline margins.

Closes #13173

AI-assisted-by: claude-opus-5-5

* 🐛 Make the disabled primary button label readable in the light theme

In the light theme the label of a disabled primary button used the
background secondary color on the muted accent background, so both were
almost the same. Use the tertiary accent for that label in the light
theme only, as design asked. The dark theme keeps its colors.

Closes #13171

AI-assisted-by: claude-opus-5-5
2026-11-23 09:28:36 +01:00
Andrey Antukh
f2648581cc Merge branch 'main' into staging-2.19.x 2026-11-23 08:54:46 +01:00
Belén Albeza
5cd9080482
🐛 Fix typography in Password and Notifications settings (#13218)
Use the DS heading component for the page and section titles.

Closes #13216

AI-assisted-by: claude-opus-5-5
2026-11-20 19:05:09 +01:00
Andrey Antukh
e0194ce60a
✨ Deliver telemetry audit events independently (#13230)
* ✨ Ship telemetry shadows with a cursor consumer

Send anonymized audit events through a dedicated telemetry consumer,
including when Nexus or admin-console also persist full events. Keep the
legacy payload and cadence of 10,000 events per chunk and three hours
between passes. Nexus skips shadows to avoid archiving duplicates.

Move shadow deletion to the audit GC. Delete full rows and shadows along
independent cursor paths, and expire shadows after seven days even when
they have not been sent. Run the deletion paths in parallel with bounded
batches, separate time budgets and independent failure handling.

Replace the shared consumer catalog with transport definitions and one
generic pass runner. Keep the legacy telemetry report and newsletter in
the scheduled task, and update the tests, memories and rollout runbooks.

Addresses F1 of the audit-log consumer review.

AI-assisted-by: deepseek-v4-flash
AI-assisted-by: gpt-6.1-terra

* 🐛 Address audit log consumer review findings

Enable audit log GC by default and document how to pause it during rollout
or before registering a consumer that needs a complete replay.

Run GC paths in order on the runner thread. Count each committed batch and
preserve partial totals on ordinary failures while propagating interruption.

Skip full-row payloads in telemetry queries and decoding. Keep the age
limit for local retention only, and document the shared pass contract.

AI-assisted-by: gpt-6.2-sol

* 🐛 Close audit log consumer review findings

Verify telemetry counts processed and skipped events in a mixed batch.
Clarify how to pause GC, the scope of the replay race, and what the
retention warning counts. Remove private Nexus setup from the public
upgrade runbook.

AI-assisted-by: gpt-6.2-sol

* 📚 Simplify the audit log guide

Consolidate the guidance on event trust, privacy and delivery. Keep examples
that explain why the design works and link to code and runbooks for details.
Clarify replay limits and distinguish age-based deletion from missed delivery.

AI-assisted-by: gpt-6.2-sol
2026-11-20 16:28:42 +01:00
Pablo Alba
c9c9a574a0
🐛 Repair variant property set when removing a property (#12960)
* 🐛 Repair variant property set when removing a property

Removing a property could leave two variants with the same value
combination. The remaining property vectors now go through
ctv/sanitize-properties-set, and each main's variant name is refreshed, so
the set stays valid, as the 0038 migration leaves it.

On a clash, the variant higher in the layers panel keeps its values and
the lower one gets a " (n)" suffix. The plugin docs for removeProperty
say so.

The rename-in-layers path removes properties that are empty in every
variant. That cannot make two variants equal, so it skips the clean-up:
a duplicate made by the rename stays and its warning shows.

Closes #12959

AI-assisted-by: claude-opus-5-5

* 🐛 Keep the top variant on a clash in migration 0038

Migration 0038 cleaned the members of a set in :shapes order, so on a
value clash the bottom variant in the layers panel kept its values and
the top one got a " (n)" suffix. The top variant is the primary one, and
removing a property already keeps it. update-variant-container-properties
now passes the members top first, so both paths agree: the primary
variant keeps its values and its property names lead the set. 0038 is
not in a release yet, so it changes in place.

The removeProperty plugin docs now cover three or more clashing variants
and all-blank values, and the plugins CHANGELOG has an entry for the fix.

AI-assisted-by: claude-opus-5-5
2026-11-20 15:35:40 +01:00
andrés gonzález
fae248bb35
📚 Update user guide for 2.20 features (#13149)
* 📚 Update user guide for 2.20 features

- WebGL rendering is on by default for new accounts.
- Text copied in Penpot keeps its formatting when pasted.
- Detach reference in typography and shadow token forms.
- Saving: retries and read-only mode while saves fail.
- Version restore message for people who have the file open.
- Esc closes the layer search, history and shortcuts panels.
- Ctrl/Cmd+click opens files and projects in a new tab.
- Import steps and per-file export progress; current export
  option labels, including Link matching libraries on import.

AI-assisted-by: claude-opus-5-5

* 📚 Apply review precisions to the 2.20 user guide

Cancelled imports keep the files that already finished. Pasted text
detaches typographies instead of removing them, and only gets the default
fill when the image was its only fill. Detach reference is a hover icon.
A single match you can't edit also asks for the library.

AI-assisted-by: claude-opus-5-5
2026-11-20 14:16:30 +01:00
Alonso Torres
84a7471ea2
🐛 Keep the MCP connection when an account first leaves the workspace (#13192)
The MCP controller restarts its runtime when the profile id changes, and
it compared ids by object identity. Leaving the workspace clears the
transit uuid cache, and on the first visit it also saves the
workspace-visited prop, which reloads the profile. The reloaded id came
back as a new uuid instance, so MCP init ran again: it closed the plugin,
dropped the WebSocket and left the new plugin disconnected.

Compare profile ids by value, and add a regression test that sends the
same id as two distinct uuid instances.

Closes #13128

AI-assisted-by: claude-opus-5-5
2026-11-20 14:13:55 +01:00