Keep development conventions in the MCP entry point. Move connection
ownership and save guarantees into focused notes, and point to the
current API data generator.
AI-assisted-by: gpt-6.2-sol
Keep the plugins entry point focused on package boundaries. Document SES
startup and plugin lifetime separately, and align sample commands and
ports with the workspace configuration.
AI-assisted-by: gpt-6.2-sol
Keep the shared composition rules in one entry point and document what
each suite can verify without duplicating its test catalog or README.
AI-assisted-by: gpt-6.2-sol
Keep catalog and validation rules in the main memory. Move Catalan and
Russian conventions into locale notes and drop historical coverage counts.
AI-assisted-by: gpt-6.2-sol
Keep actor attribution and privacy in the audit entry point. Move cursor
ordering, replay, and retention into a focused backend memory to avoid
loading delivery details for changes to event producers.
AI-assisted-by: gpt-6.2-sol
Distinguish touched objects from unfinished uploads and explain the pool
boundary. Keep file-data reference and offload rules in a focused memory.
AI-assisted-by: gpt-6.2-sol
Document shared Valkey and tenant-scoped jobs without duplicating runtime
configuration. Keep durable production constraints and remove release-
specific instructions from the infrastructure memories.
AI-assisted-by: gpt-6.2-sol
Keep cross-file change and validation rules in focused memories. Route
migration work to its own note and point to code for implementation
details, including the current SVG repair.
AI-assisted-by: gpt-6.2-sol
* 🐛 Keep fitted content clear of the rulers
Fit actions pass padding in document units, so the margin on screen
shrinks with the zoom. On large designs the margin became smaller than
the fixed 22px ruler overlay and part of the content was hidden under
it.
Add a :min-screen-padding option to adjust-to-viewport. The existing
design-space padding is kept when it already leaves enough margin on
screen; otherwise the viewport is fitted again with a fixed screen
margin. Use it in fit-to-all, fit-to-selected and fit-to-shapes so all
fit paths behave the same at any zoom level.
Closes#12609
AI-assisted-by: deepseek-v4.1-flash
* 🐛 Keep page-open fits clear of rulers
Pass the minimum screen padding when initializing the viewport, and cover all
four fit margins for wide and tall content with the call-site minimum zoom.
AI-assisted-by: gpt-6-luna
Keep policy, recovery, and release ordering in the workflow memories.
Use the command help for option details and distinguish preview, local
writes, and GitHub mutations.
AI-assisted-by: gpt-6.2-sol
Route readers to focused notes for workspace changes, app shell behavior,
testing, and diagnostics. Keep cross-file constraints and reference the
code for implementation details.
Replace conflicting debug recipes and retain old memory paths where local
plans still use them.
AI-assisted-by: gpt-6.2-sol
Route backend readers to focused job and binfile notes. Keep cross-file
invariants and point to code for implementation details.
Drop stale graph details and an obsolete audit alias. Link the URI note
from the module cores so URL changes can find it.
AI-assisted-by: gpt-6.2-sol
Keep the memory reading order and hard rules visible before agents act.
Move detailed coverage and CI guidance out of the common entry points,
and keep the backend assertion flag explicit for direct test runs.
AI-assisted-by: gpt-6.2-sol
* 🐛 Fix batch edit of colors in the selected colors menu
Restore the colorpicker flag that commit 20d2d22 lost when it replaced
the flag with the row index. Every change was treated as a picker change,
so the colors already applied were kept and reused by the next edit. That
made an edit on one row change the first color instead.
Direct edits of the color and opacity inputs now target the exact color
of the row. Picker changes keep the previous-color fallback needed while
the selected shapes are still updating.
Add unit tests for the new operation resolver.
AI-assisted-by: deepseek-v4.1-flash
* ♻️ Remove unused picker history from token detachment
Resolve token detachment operations directly from the current groups.
Picker color history is not needed for token detachment.
AI-assisted-by: gpt-6-luna
* ♻️ Clarify color row change arguments
Bind the row color once and name the change arguments.
Treat the picker flag as optional for direct edits.
AI-assisted-by: gpt-6-luna
* 🐛 Fix linting issue
Both menus get a Copy link option after Move to. The file menu copies
the workspace URL of the file and the project menu the URL of the
project page, then show a confirmation toast. A copy error shows a
toast that closes on its own; errors that are not clipboard ones are
also logged.
Also tidy both menus:
- Add a separator before Import Penpot files in the project menu.
- Rename "Open file in a new tab" to "Open in new tab".
- Add a separator before the download option in the multiple files
menu, as in the single file menu.
- Show Pin or Unpin depending on the project state.
Viewers already had no project menu in the project list and on the
project page. Disable it, and rename on double-click, for pinned
projects in the sidebar too, so viewers can copy file links but not
project links. The user guide documents both options.
New translation keys are in en and es only.
Closes#13182
AI-assisted-by: claude-opus-5-5
Covers how dimension, spacing and sizing tokens change position,
corners, stroke sides, paddings, gaps, margins and size limits, the
fallback to the closest font weight with its warning, and detaching
tokens from attributes without knowing the token.
The sizing test in token_actions_test now applies the token through
the function the app uses for sizing tokens, not the dimensions one.
Signed-off-by: Florian Schroedl <flo.schroedl@gmail.com>
Covers the error and warning messages, how token values and color
bullets show, which token attributes each shape type takes, group
and set renaming helpers, and the duplicated set id migration.
Signed-off-by: Florian Schroedl <flo.schroedl@gmail.com>
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
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
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
* 🐛 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
Set a default key for exporter tests and use the library format script.
Add dry-run tests for both commands. Format the backend merge resolution.
Align the token test with its selected fixture.
AI-assisted-by: gpt-6-luna
* ♻️ Merge duplicated e2e loads and harden ten spec groups
Collapse multi-case Playwright specs into one test with a named step per
case, so the app or document loads once per group instead of once per
case. No case is dropped. In scope, the affected cases fall from 85 to
52 tests and from about 1300 to 760 worker-seconds.
- stroke-to-path and toolbar (15 to 2 tests, -80%): each step anchors a
layer row to its exact name, checks the count grows by one and that the
clicked row is selected before the context menu. The skipped path case
now uses the tool's click-per-node and Enter gesture. The curve step
counts exact Path rows; the update-file override that returned a whole
file is gone; the toolbar test runs on the DOM renderer because the
prebuilt WASM bundle creates no text.
- dimension tokens and colorpicker (12 to 6, -45%): steps assert the
resolved pill value, not just the pill; the width/height step detaches
the extra pill. HSB now awaits isVisible on real labels, gradient steps
count stops and the radial case switches its own type.
- export frames and multiselection (11 to 3, -70%): rows use aria-checked
instead of a 500 ms sleep, and steps wait for the sidebar before editing
so a stale render cannot write to the previous selection. The frames
entry is checked by row count and the "file" item by id.
- variants and workspace (41 to 37, -29%): waits now follow rendered
state, the duplicated setupEmptyFile is gone, and the layer tree derives
its children container from the row's own id. The copy/paste flake is
fixed with a selectRow retry, Escape to deselect, hover instead of
clicks and idempotent container expansion.
- grid editor and sidebar scroll (6 to 4, -24%): the editor opens once and
blind 200/500 ms waits are gone; hover checks computed opacity because
the button is hidden with opacity: 0. Only the second scroll test stays;
the store has nine unit tests in ui/sidebar_scroll_test.cljs.
Also drop a dead binding, restore two Taiga links and fix comments that
cited the wrong drawing.cljs ranges and cancel-drawing's docstring.
AI-assisted-by: deepseek-v4.1-flash
* ♻️ Close the e2e merge review findings
Restore the renderer coverage the merge lost and make the merged steps
measure their own work.
The five shape tools run under WASM again, and the text tool runs there
too with the v2 editor flag: WasmWorkspacePage already enables it, so
the toolbar gesture keeps its drag and typing assertions. Curve now
compares the exact Path rows with their own baseline.
WorkspacePage gains layerRows, and layerRow delegates to it; toolbar,
stroke-to-path and export-frames use them instead of local copies. The
variants setup waits for the component icon and the variant rows
instead of two fixed sleeps, selectRow clicks once, and the cut/paste
step asserts its own delta. The stale comments lose their line numbers,
Path is no longer called the pencil, the orphan fixture is deleted, and
the sidebar smoke regains the Assets round trip.
Document the local e2e bundle prerequisite in the frontend testing
memory.
Closes#13093
AI-assisted-by: deepseek-v4.1-flash
* 🐛 Wait for the layer selection in the token spec
The dimension-token test clicked a layer row and went back to the Tokens
tab without proving the selection. A lost click left the previous shape
selected, and the border-radius step could pass on that shape. The
selection now goes through WorkspacePage.selectRow, which clicks once and
waits for aria-checked.
selectRow moves from variants.spec.js into the page object, and
selectLayer delegates to it, so the click-and-wait selection lives in one
place.
AI-assisted-by: deepseek-v4.1-flash
* 🐛 Check pages added with a full page value in soft mode
An :add-page change can carry a whole page under :page instead of an
id and a name. extract-affected-ids reads the page to check from the
change's top-level :id, so that form left the new page unchecked and
a referential error in it was stored.
Collect those page ids after the changes are applied and run the
affected check on them in soft mode: log the file id, the page ids
and the error codes, and never refuse the save. This is the first
step of the two-step rollout. The follow-up moves the page id into
extract-affected-ids and makes the check hard. The counters of
#12665 decide when to flip it.
Relates to #12666
AI-assisted-by: claude-opus-5-5, deepseek-v4.1-flash
Signed-off-by: Álvaro Tejero Cantero <alvorithm@teje.ro>
* 🐛 Collect the page of a whole-page add-page in the affected check
An `:add-page` change that carries the page alone, with its id inside
`:page` and none at the top level, escaped the referential check:
`extract-affected-ids` read only the top-level `:id`. The schema side
(`touched-page-ids`) already reads `(or id (:id page))`; the referential
side now does the same.
This replaces the separate soft-mode check of the first commit. The page
now goes through `validate-file-affected` like any page a save touches,
so the deployment's flags decide whether an invalid page is refused
(`:file-validation`) or only logged (`:soft-file-validation`), and no
second log hint or rollout step is needed.
AI-assisted-by: claude-opus-5-5
* 🐛 Check the page an add-page stores, not its top-level id
An :add-page that carries the page whole stores it under the id inside
:page. extract-affected-ids and touched-page-ids read the top-level :id
first, so a change whose two ids differ stored one page and checked
another, which does not exist. Both now read the id of the page first.
The unit test of the affected check moves to the common validate tests,
with a case for the differing ids on the referential and the schema
side. The backend test sends that form through update-file as well,
and a new test sends the page as a commit group, the way the editor
does, and expects the commit under :rejected and no stored page.
AI-assisted-by: claude-fable-5-2
* ♻️ Derive the add-page change ID from the page
Use the page ID for both redo and undo so the builder cannot emit
conflicting IDs. Keep the change format and the library API unchanged.
AI-assisted-by: gpt-6.2-sol
---------
Signed-off-by: Álvaro Tejero Cantero <alvorithm@teje.ro>
Co-authored-by: Andrey Antukh <niwi@niwi.nz>
* ♻️ Reduce the routes, viewer, theme and typography e2e specs
The five specs of Task 10 (routes, theme, viewer and roles) go from 14
tests to 6, and the two of Task 11 (missing font and add typography)
from 9 to 4. Nine unit tests cover rules that had none: five for the
private legacy-match and four for the viewer frame navigation. No
skipped test and no fixture removed.
The browser keeps the wiring: the known and unknown hash as two steps
of one test, the theme applied live without a reload, the viewer role
walked in two loads with the context menu counted instead of trusted,
and the typography states merged around shared fixtures. The viewer
zoom click comes back as a header step; the arrows e2e becomes unit
tests, with the Next button still clicked by the child-click test. The
missing-font test asserts the renamed, disabled typography button
instead of a hidden one it never described.
WorkspacePage gains reloadWorkspace, which clears the socket registry,
reloads and reopens the mock, and settles on the sitemap page name or
on the canvas when the restored sidebar tab hides it. layerRow matches
rows by anchored text, because a selected row's action buttons can join
its accessible name, and selectLayer accepts click options for the
shift-click steps. The font specs use both and no longer import
MockWebSocketHelper.
The viewer role asserts its two absences by testid: new-project-button
already existed and add-custom-font is new in fonts.cljs, the only
product change, with the visible side covered by dashboard.spec.
routes_test adds the path-params case for legacy-match; viewer_test
asserts the first event and the page id of the frame navigation, and
watch-events delivers asynchronously and handles the nil a watch can
return.
Measured at four workers: 23 to 10 tests; Task 10 from 141.3 to
68.5/72.3 worker-seconds and Task 11 from 150.1 to 109.0/109.3.
Closes#13058
AI-assisted-by: deepseek-v4.1-flash
* 🐛 Let the two reduced e2e steps fail when they should
The typography step selected the next layer with Shift, which in the layers
panel is a range selection: the range also brought in the text with a
typography token, so the button was hidden by the applied token and not by
the mixed values. A mod-click adds only that shape, and two new assertions
keep the token and the asset texts out of the selection.
The logo step clicked 100 px below the logo and asserted the URL, which
potok updates after the click returns, so the assertion matched the old URL
on its first poll. Probing elementFromPoint under the logo answers the
hit-area question directly.
AI-assisted-by: deepseek-v4.1-flash
* ✨ 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
* ♻️ Cut shortcuts and inspect e2e specs and harden their assertions
Shortcuts spec: drop the enable-custom-shortcuts mock, since no frontend,
common or backend code reads the flag, and cut 18 tests to 6. A header
comment records where the removed rules went: named steps here and the
77 unit tests of settings_shortcuts_test.cljs. The six keep only what a
browser proves: the file input and diff modal, the alert for a file with
nothing to apply, the download of a bound and an empty entry, the RPC
write with reload, the conflict that disables the previous binding, and
both reset flows.
Fix the shortcuts review findings: the invalid-file step dismisses the
timeout-free toast before the next import and covers both removed payloads
in one import. The conflict test records a default-bound and a custom-bound
key on one page load, then resets and imports a key a default binding
holds, so the diff modal's apply path runs with a default in the way, and
checks the alert, the disabled row and the exported payload; the export
test resets and imports the file it just downloaded.
Inspect tab spec: cut 27 tests to 8 with 25 named steps, from 622.9 to
181.5 worker-seconds and 162.5 to 46.7 seconds of wall time. Layout,
shadow and blur, fill, stroke, typography and clipboard cases run as steps
in one page load per group; the two cases that mutate the shape with
Design-tab controls keep their own. Replace 500 ms sleeps with waits on
rendered state, make layer expansion idempotent, match layer names exactly,
poll row counts and await every matcher. Drop the false comment about name
capitalisation, the three unused shapeToLayerName entries and the skip the
"Layer info" assertion now covers.
Move layerRow and selectLayer into WorkspacePage with the helpers the next
PR in the stack needs: layerRow matches an anchored name on the layer-row
test id, because a selected row's hide and lock button titles join its
accessible name, and selectLayer waits for aria-checked instead of the
shape name. waitForSelectedShapeName takes options. The inspect spec drops
its escapeRegExp, getLayerRow and inline selection. Rename the fixture
token to radius-md so the radius assertion is not satisfied by the row
label.
Closes#13009
AI-assisted-by: deepseek-v4.1-flash
* 🐛 Pass the translation flag in the sync text undo test
The merge of staging into develop brought back the required :translation
key of an undo entry, and the test added in ef0333eafe calls append-undo
without it. check-undo-entry throws, the exception escapes the promise
and the whole frontend run exits before printing the summary.
The entry stands for the commit of a component sync, which is not a
translation, so it carries :translation false, the value the production
watcher derives from the commit.
AI-assisted-by: deepseek-v4.1-flash
* 🐛 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
* 📚 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
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
With the tokenscript flag every resolution rebuilt the whole library:
each sidebar render, each propagation and each keystroke in a token
form. The adapter now keeps the interpreter state of the last
resolutions and updates it with set-sets, so only the tokens that
changed and their dependents are re-resolved and converted. Every other
output token stays the same object.
- common/deps.edn moves penpot/tokenscript-interpreter to v0.3.0:
token readers and writers and a set-sets that looks only into changed
sets (#1), on top of the DTCG import and export (#4) Penpot already
uses.
- The sidebar, token propagation, token application and the plugin API
pass the active sets unmerged (cfo/get-active-token-sets and its
force variant); the interpreter merges them. The plugin API's own
resolution cache is gone.
- The adapter hands Penpot's token records to the interpreter with a
reader (value and DTCG type, an error for a token without a value)
and a writer (the conversion to :resolved-value or :errors), which
runs only for the re-resolved names.
- The cache resolves new sets from the last resolution with the same
set ids, else from one sharing a set id, else from scratch.
- The token form controls resolve the draft in a set of its own on top
of the library's sets, the selected set last
(cfo/get-token-sets-for-edit). The form leaves the edited token's old
name out of them (cfo/without-token). A keystroke re-resolves only
the draft and its dependents. The last draft is cached apart, so
typing doesn't evict the sidebar's resolutions. Without the flag the
controls don't build these sets. The plugin API's token name and
value setters validate the candidate the same way.
- The token form hint shows resolved font families as a name list.
- Tests cover the unmerged set helpers, a plugin rename to a name below
the old one (which needs the old name left out), and compare renames,
with and without updating the references, against StyleDictionary.
Signed-off-by: Florian Schroedl <flo.schroedl@gmail.com>
The component sync emits a `:reg-objects` for the parents of every
shape it touches, so a component swap collected 291 of them for 36
containers. Recomputing a group's geometry N times in a row gives the
same result as doing it once, so most of that work was thrown away,
in the browser and on the server, on every save.
`mch/merge-reg-objects` collapses them into one per container, with
the union of the shapes. The merged change moves to the end of the
batch: a group has to be recomputed after the shapes that resized
it, not before, or it keeps a stale `:selrect` until something else
touches it. That is also why it must not stay in the position of the
first change it replaces.
It runs on every commit, redo and undo alike, so the undo stack gets
the same benefit, and again when the buffer is batched for saving.
Measured on the swap that motivated this: 291 `:reg-objects` become
36, and the batch goes from 806 changes / 6.4 MB to 551 / 324 KB.
AI-assisted-by: space-bunny
Move the pure subscription rules out of the browser specs and into unit
tests, then keep only the cases a browser can prove.
- Extract show-manage-subscription-link? and show-main-menu-power-up? from
the dashboard team panel and the workspace main menu, and use them at
both call sites. A new subscription_dashboard_test.cljs covers which
plan a subscription reads to, including unpaid and canceled demotion, the
owner and enterprise sides of both affordances, and the banner and
members-CTA boundaries: four editors over the seats, no usage data, and
the demoted plans.
- Add get-versions-stored-days tests to workspace_versions_test.cljs: an
active nitrate or enterprise license keeps 90 days, a canceled one lets
the team plan decide, a license without the admin console does not count,
and unlimited, enterprise, professional and planless teams keep 30, 90
and 7 days.
- Rewrite the profile usage tests as async tests with mock/with-mocks* and
an async transport double: the editors from the usage call reach
[:props :subscription :editors], a failing call leaves the profile
untouched and logs once, and the call is skipped without the
subscriptions flag.
- Cut the e2e suite from 13 cases to 7. Five dashboard cases keep the menu
icon, the two sidebar plan names, the owner-only settings link and the
members CTA; two workspace cases keep the translated days warning with
the upsell step and the enterprise menu with no upsell. Assert the
unlimited glyph and drop the CTA count.
- Drop the three get-team-info mocks the dashboard never calls and six
unreferenced subscription fixtures, reusing the invitations fixture.
- Sort the subscription test requires in runner.cljs: cljfmt's
:sort-ns-references? wants subscription-dashboard-test first.
Closes#13005
AI-assisted-by: deepseek-v4.1-flash
The new backend flag `file-change-retention`, off by default, makes
file-gc skip its media clean-up (deleted components, unused media
objects, and thumbnails). That clean-up roots only in the head and the
snapshots, so it would remove media that a kept revision row still
names. The file and fragment clean-up still run: revision rows name
neither.
penpot#13187 keeps revision rows under the same flag. Set the flag only
where both are deployed. An instance that rolls back to this release
with the flag still set keeps the media its retained history needs.
AI-assisted-by: claude-opus-5-5
* 🐛 Scope share-link component reads to the allowed pages
A page-scoped share link exposed the primary file's components
map in get-view-only-bundle and authorized the file's components
fragment in get-file-fragment, leaking the stored shapes of
deleted components from pages the link excludes.
The share-link bundle now trims the primary file's components to
those referenced transitively from the allowed pages and emits them
inline; the membership path keeps the full map. The fragment scope
check no longer grants the components pointer to share links;
allowed page pointers remain readable.
AI-assisted-by: inkling-2-small-free
* 🐛 Tighten share-link bundle component retention
The share-link view-only bundle now carries only live components
referenced transitively from the allowed pages; deleted components
never travel (their stored shapes are the main vehicle of leaked
excluded-page content). This drops the reachability walk at deleted
references and removes the duplicated subtree helper in favor of the
canonical get-component-shapes.
Also adds membership retention and cycle regression tests, and drops
the private advisory identifiers from the new test comments.
AI-assisted-by: inkling-2-small-free
* ♻️ Apply the second review's fixes to the share-link fix
Ordering the namespace require so the format gate passes, renaming
the working bindings to what they hold, documenting the eager-realize
limitation at the realization site, sharing the same-file reference
predicate, and switching the fragment scope check to an allowlist of
the pages scope.
Test markers are anonymized; the walk-through-deleted contract and
the full-scope link get dedicated tests; pointer-mapped files assert
an inline referenced component and the empty-components form.
AI-assisted-by: inkling-2-small-free
* ♻️ Apply the third review's minor fixes to the share-link fix
Correct the comment about realization reuse, align the new test bindings,
and drop the tautological fixture assertions. Cover the fragment scope
for excluded pages, membership on pointer-mapped files, and the legacy
same-file reference form; make both permission memories state the
actual invariants.
AI-assisted-by: inkling-2-small-free
* 🐛 Scope the share-link library trim to the emitted bundle
The library trim walked the primary file's full components map, deleted
components included. A deleted component keeps its main-instance subtree
in :objects, so a library component instanced only inside those stored
shapes was retained in the linked libraries of the view-only bundle and
reached anonymous share-link viewers, metadata and stored shapes
included.
Walk the data the bundle emits instead: pages scoped to the link plus the
trimmed components map. Pages still come from the realized file, because
pointer-mapped pages only load in their own loader.
Covered by a regression test that instances two library components inside
a deleted primary component: only the library component the link's page
references survives the trim.
AI-assisted-by: deepseek-v4.1-flash