* ♻️ Use DS icon buttons for the Measures toggles
"Clip content" and "Show in view mode" were labels over hidden
checkboxes, styled with the deprecated %button-tertiary. They become
ghost icon-button* with aria-pressed: real buttons with a name, the DS
tooltip instead of the browser title, and the DS pressed corners. The
handlers toggle the current value instead of reading the checkbox, and
the two unused refs go away.
The ratio lock, already an icon-button*, marks its state with
aria-pressed instead of the legacy .selected class; it looks the same.
A zero-tolerance visual test shows both toggles at rest, on hover and
turned off, and the ratio lock off and on.
AI-assisted-by: claude-opus-5-5
* ♻️ Drop the unused button styles of the Measures menu
The toggles and the ratio lock no longer use the legacy button
styles, so these selectors match nothing and go away: .lock-size-btn,
.lock-ratio-icon, .clip-content, .show-in-viewer, .clip-content-input,
.clip-content-label, .selected and .checkbox-button. Also
.numeric-input-measures, which no module uses. A grep over frontend/src
found no other use of any of them.
.clip-show takes the DS spacing token. The refactor/ import stays for
the presets dropdown and the inputs, which move to the DS with the
selects and inputs groups. The visual test shows 0 px against the
previous commit.
AI-assisted-by: claude-opus-5-5
* ♻️ Use the DS button in the Design tab export menu
The "Export N elements" button of the Export menu was a raw button with
the deprecated %button-secondary placeholder. It becomes a secondary
button*, as the Inspect export button already is, so it takes the DS
label, hover and disabled look. The btn-disabled class goes away: the
.scss never defined it, and button* styles the disabled state.
A zero-tolerance visual test shows the button at rest, on hover and
while exporting (the export request is held so the state stays), and
the export row, which the styles commit that follows must not change.
AI-assisted-by: claude-opus-5-5
* ♻️ Move the Design tab export menu styles to the DS
exports.scss drops the deprecated spacing, flex-row and typography
mixins and the %mixed-bar placeholder: DS sizes, borders, spacing
tokens and px2rem take their place, with logical properties. The
mixed bar colors resolve to their DS tokens. The format and size
selects share one rule. The refactor/ import stays only for
%input-element, which the suffix input keeps until the text inputs
group moves it.
The mixed bar and the suffix input take body-small (line height 1.4
to 1.3). The visual test shows 0 px against the previous commit; the
mixed bar is not in it, because the test file cannot reach that state.
AI-assisted-by: claude-opus-5-5
* ✨ Focus a new page when it is added from the Pages list
The "+" button added the page at the end of the list, often out of view,
so nothing showed that it was created. It now opens the new page, scrolls
the list to it and starts renaming it with the default name selected. A
collapsed Pages section expands first.
The new add-page event waits for the page to initialize before it starts
the rename, because page initialization replaces :workspace-local. Only
the user who adds the page gets the focus; other users get the page as a
change. create-page stays as it was for the plugin API. The rename events
move to the pages namespace so add-page can use them.
Closes#12474
AI-assisted-by: claude-opus-5-5
* ✨ Skip the rename commit when a page keeps its name
From the review: a new page now starts in rename mode, so pressing Enter
without changes committed a rename to the same name, and the next undo
did nothing visible instead of removing the page. Renaming a page to its
current name commits nothing now.
Rename add-page to create-page-and-focus, which says what it does and
does not collide with pcb/add-page.
AI-assisted-by: claude-opus-5-5
When an organization owner changes a member's org role, the admin console
audit log missed several entries:
- The consumers rework dropped update-organization-member-role and
transfer-team-ownership from the admin console allowlist, so no org role
change and no team passed to the organization owner reached it.
- set-organization-member-viewer turned pending editor and admin team
invitations into viewer invitations without leaving an event.
- The org role entry identified the member by id and email only.
Both names are back on the allowlist. set-organization-member-viewer now
records each invitation it downgrades as update-team-invitation-role, the
event of the same change made by hand, attributed to the organization
owner, inside its transaction. It takes an optional organization-id and
puts it in those events, so a team moved to another organization before
the event is archived cannot misroute it. The admin console consumer fills
:member-name from :member-id for update-organization-member-role only, from
the profile it already loads, so the role change waits on no lookup.
AI-assisted-by: claude-opus-5-5
* 🐛 Keep context menu submenus inside the window
A submenu opens at the height of its entry, so one opened from an entry
near the bottom of the window ran past it and its last entries could
not be reached. It now moves up to end 8px above the window's bottom.
Signed-off-by: Florian Schroedl <flo.schroedl@gmail.com>
Signed-off-by: Thomas Ramé <thomas@rame.fr>
* 🐛 Keep nested context submenus inside the window
* ♻️ Compute the context submenu position in a testable function
---------
Signed-off-by: Florian Schroedl <flo.schroedl@gmail.com>
Signed-off-by: Thomas Ramé <thomas@rame.fr>
Co-authored-by: Florian Schroedl <flo.schroedl@gmail.com>
Skia listed Color Emoji too early and treated broad SMP ranges as
emoji, so text-default symbols rendered in color and FE0F could stay
monochrome. Empty spans also stopped pushing styles.
Split spans by Unicode Emoji_Presentation and variation selectors,
use emoji-first stacks only for emoji runs, keep Color Emoji last on
text runs, and always push a style for empty spans. Closes#13271.
* ✨ 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>
* 📚 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>
* 🐛 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
* ✨ 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
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
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
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
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
Since #13266, a padding change on a layout without padding fills the
four sides, so the sides not chosen become 0 instead of staying nil.
The test from #13215 still expected nil and failed on develop.
AI-assisted-by: claude-opus-5-5
* 🔧 Add a render test for group shadows on nested text
The snapshot records the shadow of a group on the texts and shapes
inside it, as rendered today. Stroked text gets the shadow twice (G, I,
J, L) or partly twice (H, K), while plain text (B to F) gets it once.
The next commit fixes this and updates the snapshot.
AI-assisted-by: claude-opus-5-5
* 🐛 Remove nested_shadows, and fix double group shadows on text
The nested_shadows state is only used by text shapes to draw drop
shadows that it inherits from its parents. There's a bug where only
groups pushed onto the stack but both groups and frames popped it.
But when trying to fix this I noticed that
`render_drop_shadow_child_silhouettes` will already render the text
shapes shadow in the parent. So compared to the SVG renderer we were
applying the shadows twice.
We can just remove the stack and let the parent render the shadow
once, which brings text in line with other shapes. In the render
test, stroked text now gets the shadow once (G to L).
There's some other divergences from the SVG renderer in
`render_drop_shadow_child_silhouettes` to do with non-flattened
containers, which text shapes will now be exposed to. I hope to post a
PR after this to address these.
AI-assisted-by: claude-opus-5-5
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
* 🐛 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>
* ✨ Honor trusted alternate origins for backend links and OIDC
Add PENPOT_TRUSTED_ORIGINS, an optional list of bare scheme://host[:port]
alternate origins. A request whose Origin matches (exact, trimmed and
lowercased) uses that origin as the base for links generated while serving
it: emails, asset URLs, audit and webhook link fields, and redirects.
Unlisted origins, requests without Origin, and background or server-to-server
work keep the canonical public-uri (fail-closed). Malformed entries warn at
startup and never match.
Stamp the trusted origin on the request with a global http middleware that
binds config public-uri for the request extent; expose the chain as
root-middleware so tests assert it runs before auth and errors. Build every
backend link through the canonical cf/get-public-uri.
Carry the origin in the signed OIDC state (auth and organization SSO) so the
callback, a navigation without Origin, re-applies it with with-public-uri for
the token-exchange redirect_uri and every redirect, including logout. Verify
the state token once per callback and reuse the claims; build redirect URIs
with ensure-path-slash plus join and append-query-param for hash routes. A
removed origin does not invalidate states signed before it (up to four hours).
Bring MCP OAuth into scope: wrap its routes, stage the origin in the Redis
request record at authorize time, and re-apply it in decision so issuer,
resource, the approval redirect and the code-exchange iss agree on one base.
Keep the log-capture watch installed while waiting for the async rejection
record in the save tests; a watch removed first lost late records and read
nil. Add a delayed-executor regression test that makes the race deterministic
and document the rule in the backend testing memory.
Closes#11625
AI-assisted-by: deepseek-v4.1-flash
AI-assisted-by: qwen3.7-plus
AI-assisted-by: gpt-5.6-luna
AI-assisted-by: muse-spark-1.3-contributor
* ✨ Serve trusted alternate origins across frontend and backend
Let one installation serve a canonical domain plus trusted alternate
origins, without letting request headers pick arbitrary link bases.
The backend normalizes `PENPOT_TRUSTED_ORIGINS` on load: it drops malformed
entries with a warning and warns about HTTP origins outside localhost. It
selects the first trusted origin from `X-Penpot-Origin`, then `Origin`, and
applies only scheme, host and port to the public URI, keeping the configured
path. MCP OAuth keeps the canonical base because its authorize navigation
has no usable origin.
The frontend reads the same list from `config.js`, filled by the container
entrypoint, and selects the browser origin only on an exact match. It sends
`X-Penpot-Origin` on RPC calls (including GETs and multipart) and OIDC
initiation, not on asset, font or external requests. SSE captures the request
bindings, and export jobs store the effective base so the download link uses
it after the request ends. A closed export creation schema excludes
`:public-uri`, which the backend adds only after validation.
Register the OIDC callback for each alias. Removing an alias does not stop
already signed OIDC state, queued mail or export jobs from using it.
Add regression tests across backend, frontend and the nginx entrypoint, and
document the proxy setup, worker upgrade and rollback, and alias retirement.
Refs #11625
AI-assisted-by: hy4-flash-free
AI-assisted-by: gpt-6-luna
AI-assisted-by: gpt-6.2-sol
* ✨ Add an options button to color assets
Color assets could only be renamed, edited, duplicated or deleted from
the right-click menu, which tablet users can't open. Add a three-dot
options button, like the one on typography assets, that opens the same
menu below the button. It shows on hover and focus, and stays visible on
devices without hover.
Closes#12618
AI-assisted-by: Claude Opus 5.5
* 🐛 Keep the color asset options button reachable by keyboard
The options button was hidden with visibility, which also takes it out
of the tab order, so :focus-within could never reveal it from the
keyboard. Hide it with opacity instead, so Tab reaches the button and
shows it.
Open the menu through one helper for both the right click and the
button, so both keep clearing the selection first.
AI-assisted-by: Claude Opus 5.5
* 🐛 Toggle the color asset menu and fix its row and focus
---------
Co-authored-by: Luis de Dios <luis.dedios@kaleidos.net>
* 🐛 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
* 🐛 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
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
* 🐛 Show the full library name in a tooltip when it is cut
Long library names are cut with an ellipsis in the Libraries modal and
in the Assets panel, with no way to read the full name, so libraries
that share a long prefix cannot be told apart.
A new truncated-text* component shows the text and, only while CSS cuts
it, wraps it in the DS tooltip with the full text. A ResizeObserver
checks the size again when the box changes; it follows the node that the
tooltip mounts, so the tooltip also goes away when the text fits again.
The Libraries modal (new and legacy layouts) and the library titles in
the Assets panel use it.
Closes#13223
AI-assisted-by: claude-opus-5-5
* 🐛 Keep a cut library name visible inside its tooltip
The DS tooltip trigger sets line-height: 0. A cut name inside it
inherited that value and collapsed, so the Assets panel hid the name of
a long shared library. The trigger of truncated-text* now inherits the
line height of its parent through an inline style; a class would tie
with the trigger class and depend on the order of the stylesheets.
AI-assisted-by: claude-opus-5-5
* 🐛 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>
* 🐛 Add opt-in MCP JSON replies and deliver pending outcomes on shutdown
Stateless legacy POST requests can opt in to a single correlated JSON reply
with PENPOT_MCP_JSON_RESPONSE=true; SSE remains the default.
Shutdown now rejects pending plugin tasks before closing HTTP
connections and gives in-flight requests a bounded grace period to send
their replies, so a tool call interrupted by shutdown reports an
unknown outcome instead of a dropped stream (both JSON and SSE).
Tool execution failures now set isError on the MCP result.
Refs #12497
AI-assisted-by: claude-opus-5-5
* 📎 Give the 100-round JSON reply test room on loaded CI machines
AI-assisted-by: claude-opus-5-5
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
* 🐛 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
* ✨ Add nitrate methods to bring owned teams into an organization
Nitrate lets an organization owner add the teams they own, outside any
organization, from the Admin Console. Three management methods give it
what it needs:
- get-owned-teams-detail lists the owned, non-default teams of the
current profile with the get-teams-detail fields plus member ids, so
Nitrate can count members new to the organization.
- count-organization-team-invitations-for-non-members counts, per team,
the pending invitations for people outside the organization.
- send-organization-setup-sso-emails-for-team sends the SSO email to
the people an added team brings in, as add-team-to-organization does.
get-teams-detail now shares its row query with the new method.
AI-assisted-by: claude-opus-5-5
* ♻️ Rename the team detail row helper apart from its method
The private helper shared by get-teams-detail and get-owned-teams-detail
had the same name as the get-teams-detail RPC method, which read as one
calling the other. It is now get-teams-detail-rows.
AI-assisted-by: claude-opus-5-5
* 🔧 Test empty lists in the invitation count
Cover count-organization-team-invitations-for-non-members at the
method boundary: an empty team-ids list gives no counts, and an empty
member-ids list, or one whose profiles give no email, counts every
pending invitation of the requested teams.
AI-assisted-by: claude-opus-5-5
* 🐛 Keep trailing spaces in WASM text bounds
Skia's longest_line() and line widths leave out the spaces at the end
of a line, so auto-width texts lost their trailing spaces in the
selrect, and the tight text bounds cut them off too. Fonts that draw
a glyph for spaces, like Zilla Slab Highlight, showed the gap.
- Measure auto-width text with max_intrinsic_width(), which keeps
trailing spaces.
- Extend each line's tight bounds with the rects of its whole range,
trailing spaces included.
Closes#12998
AI-assisted-by: claude-opus-5-5
* 🐛 Paint trailing spaces in WASM text
Skia lays out the spaces at the end of a line but never paints them.
Fonts that draw a glyph for spaces, like Zilla Slab Highlight, lost
those glyphs on the WebGL renderer.
- End each paragraph that ends in whitespace with a zero-size
placeholder. The spaces are no longer trailing, so Skia measures and
paints them with the right glyphs and paints.
- Add it to the fill and stroke builders alike, so their layouts match.
- Leave it out when it would wrap onto a line of its own in a fixed or
auto-height box, which would add an empty line. A probe layout per
paragraph decides this, cached per content version and box width.
Closes#12998
AI-assisted-by: claude-opus-5-5
Point the public CSS export to the generated file and test its build.
Clarify component restoration and cover the deleted-file path. Update
integration test documentation for the release bundle.
AI-assisted-by: gpt-6.1-terra
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
* 🐛 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
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.
Warn that recovery may discard unsaved edits instead of implying that
reopening is the only recovery path. Update the API docs and test.
AI-assisted-by: gpt-6.1-terra
Correct session, upload and validation boundaries and consolidate
related testing and frontend recovery guidance by task.
AI-assisted-by: gpt-6.1-terra