24684 Commits

Author SHA1 Message Date
Miguel de Benito Delgado
e192ea6798 📎 Improve clj-kondo hooks, including if-let 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
29ea58da83 🚧 WIP Step 22 nicer macros 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
7ec9a88f35 📎 clj-kondo hooks for benchmark macros 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
777dc0c176 🚧 WIP Step 21.2 Cosmetic simplifications 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
03906b89c2 🚧 WIP Step 21.2 Docstrings 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
ed4671fc9a 🚧 WIP Step 21.2 Docstrings 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
81652c9111 🚧 WIP Step 21.1 Remove unnecessary kondo rule 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
8b4d55405c 🚧 WIP Step 21 Refactor namespaces 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
aa248ce50d 🚧 WIP Step 20 test last round of features 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
60bd917036 🚧 WIP Step 19.2 Missing browser utils 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
6a822906dd 🚧 WIP Step 19.1 Allow selecting cases in pilot 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
43fdbf4c9f 🚧 WIP Step 19 New scenes, use camera 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
53250d3a29 🚧 WIP Step 18 Camera ops 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
0c68b3f0b1 🚧 WIP Step 17 Support path construction 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
b71924c411 🚧 WIP Step 16.4 Refactor failures, remove legacy validation, cleanup 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
8277f10bae 🚧 WIP Step 16.3 Cleanup pilot 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
e89dcecae1 🚧 WIP Step 16.2 Renames and fixes 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
e455cf7a44 🚧 WIP Step 16.1 Relax scene macro constraints 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
670a63dcc7 🚧 WIP Step 16 Introduce hooks for the browser and load-scene 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
34b4847460 🚧 WIP Step 15.1, cosmetic 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
3102034769 🚧 WIP Step 15, Use transit to simplify validation 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
39002a86ce 🚧 WIP Step 14, Grab correct w/h attrs from context 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
1cf818f701 🚧 WIP Step 13, Track failure causes
AI-assisted-by: muse-spark, GLM-5.3
2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
f4c2662250 🚧 WIP Step 12.4, Comments
AI-assisted-by: gpt6-astra
2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
67d1f68968 🚧 WIP Step 12.3, Test cleanup + missing coverage
AI-assisted-by: muse-spark, deepseek-flash
2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
6f5b8094b8 🚧 WIP Step 12.2, Fix browser bridge, lifecycle
AI-assisted-by: muse-spark, glm-5.3
2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
999506e481 🚧 WIP Step 12.1, Improve case validation
AI-assisted-by: muse-spark, glm-5.3
2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
767299866b 🚧 WIP Step 12, temporary pilot
- pilot runner for testing
- will be entirely removed later

AI-assisted-by: muse-spark-1.3, deepseek-flash, glm-5.3
2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
abf8e58a7e 🚧 WIP Step 11, browser bridge
- New schema:viewport
- Browser bridge (with some temp code)
- Move prepare-scene out measured regions
-
AI-assisted-by: muse-spark-1.3, deepseek-flash, glm-5.3
2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
1aa3f49e31 🚧 WIP Step 10, scene upload 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
08aba8d571 🚧 WIP Step 10, defcase body validation, docs 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
0ff3bb593a 🚧 WIP Step 9, fix naming conventions 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
f4f02c3d96 🚧 WIP Step 8, simplify and clean up tests 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
12fc07f6ee 🚧 WIP Step 7, scene and case declarations 2026-11-06 16:20:42 +01:00
Miguel de Benito Delgado
330cda8880 🚧 WIP Step 6, ellipses 2026-11-06 16:20:41 +01:00
Miguel de Benito Delgado
407c56c0eb 🚧 WIP Step 5, bools 2026-11-06 16:20:41 +01:00
Miguel de Benito Delgado
7946bb5c3f 🚧 WIP Step 4, frames and groups 2026-11-06 16:20:41 +01:00
Miguel de Benito Delgado
2bee689101 🚧 WIP Step 3, fixture macros, prng, defaults, placeholder scene 2026-11-06 16:20:41 +01:00
Miguel de Benito Delgado
46b50d7e21 🚧 WIP Step 2, common scene code, validation 2026-11-06 16:20:41 +01:00
Miguel de Benito Delgado
0c6a23d59e 🚧 WIP Step 1, scaffold cljs benchmark runner 2026-11-06 16:20:41 +01:00
Elena Torró
7ecf48c52c
⚡ Speed up uploading page shapes to wasm (#12854)
* ⚡ Compute text fonts once per shape when uploading to wasm

* ⚡ Write the shapes batch in place and coerce fills once

* 🐛 Free the upload buffer when a batch record write fails
2026-11-06 15:45:34 +01:00
Belén Albeza
988cde3c9d
✨ Make WebGL the default renderer for new accounts (#12880)
New profiles now store renderer `wasm` in their props at creation, so
every signup path (email, OIDC, LDAP, Nitrate, demo, CLI) starts on
WebGL. A renderer passed by the caller still wins.

Existing profiles without a stored renderer keep the frontend fallback
to SVG, so no backfill or version check is needed to leave them as they
are.

The `register-profile` audit event gains `renderer-default` when the
profile is created in that call, so signups before and after this
change can be told apart.

Closes #11855

AI-assisted-by: claude-opus-5-5
2026-11-06 14:44:24 +01:00
Álvaro Tejero-Cantero
87fc15b5aa
🐛 Open the first page in view mode when the URL has no page id (#12687)
A view URL without a page-id crashed builds with assertions enabled:
the viewer passes a nil page-id to `initialize`, whose schema accepted
a missing key but not a nil value. Release builds skip that check and
draw the first page, but every viewer event reads the page from the
route, so zoom to fit and fill, the next-board arrow, Navigate To
interactions, and comment pins did not work.

`initialize` now accepts a nil page-id, `fetch-bundle` makes it
optional, and `bundle-fetched` replaces a route without page-id by one
naming the file's first page. The viewer then initializes again on the
completed route, as it does when the user changes page. A file with no
pages keeps its route.

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

Signed-off-by: Álvaro Tejero Cantero <alvorithm@teje.ro>
2026-11-06 13:05:39 +01:00
Andrey Antukh
a77cb2608e
🐛 Normalize stored SVG attribute keys to kebab-case (#12006)
* 🐛 Normalize stored SVG attribute keys to kebab-case

The v3 reader already emits kebab-case keys, but birth stored the
camelCase React prop names, so import and export never converged:
fill rules painted wrongly and filter defs lost their blur.

Birth now normalizes every stored attribute key to kebab-case
through the `svg-props` whitelist (`attrs->kebab-props`), applied on
all element paths of the svg importer, on the file builder and on
defs. svg-raw `:content` is kebab-ized in spelling only and keeps
unknown keys, because the sidebar reads them. Non-spec attrs Penpot
must keep live in `penpot-extra-attrs`, seeded with `:stroke-style`.
Render boundaries translate back to camelCase for React and for the
wasm props, and the shape schema declares the closed kebab contract
derived from that same whitelist, so birth and validation cannot
drift.

Migration `0035-fix-shape-svg-attrs-and-defs` converts old files
once with the birth transforms, and carries back the svg-viewbox
rect normalization the withdrawn `0021` had. That old id leaves
`available-migrations`, so files recording it migrate again through
this one, and the binfile cleaner drops its own svg repair.

Review fixes included here: `setup-opacity` and the blend mode read
the stored keys, gradient stops accept `:style` as a CSS string or a
map, `inherit-attributes` reads `:style` so a child's inline style
beats the inherited group attr per CSS, and the svg-attrs menu shows
spec spelling (`viewBox`, `class`) through `stored-attr-display-name`.

Tests cover the migration, the closed svg-attr schemas and the
import/export round trip; the svg-content schema test pins its
sample seed, which dealt no svg-raw shape on unlucky runs.

Closes #11947

AI-assisted-by: muse-spark-1.3-contributor

* 🐛 Keep legacy svg node tags and transforms valid in migration 0035

The closed svg node schemas require keyword tags and map attrs, but
stored files hold def and svg-raw content tags as strings, and some
node `:attrs` as nil. Migration 0035 left them as they were, so the
file data check that runs after migrating rejected those files and
they could not be opened. `normalize-node-tree` now turns string tags
into keywords and nil attrs into an empty map, at birth and in 0035.

With keyword tags, the svg defs renderer applies the shape transform
to user-space defs. Legacy `:svg-transform` values are plain maps,
which multiply into NaN matrices. `gmt/coerce` turns them into
matrices, in 0035 and in the binfile cleaner, because every v3 import
decodes the transform as a plain map again. Legacy masks and gradients
now render as designed in the svg renderer.

The binfile test helper calls `export-files!` with the current config
keys.

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

---------
2026-11-06 12:52:53 +01:00
Elena Torró
93ed713a29
🐛 Free the wasm renderer state on clean up (#12877)
Each page switch leaked the six wasm states (~200 MB on a large page).
Null state getters now panic instead of reading address 0.
2026-11-06 11:43:50 +01:00
María Valderrama
2df4d10bd5
✨ Enforce attribute-based organization permissions (#12868)
* ✨ Enforce attribute-based organization permissions

* 📎 Code review
2026-11-06 11:40:50 +01:00
Elena Torró
7fa225115e
⚡ Reuse uuid instances when decoding transit on the frontend (#12792) 2026-11-06 11:33:37 +01:00
Andrey Antukh
6a1b58c310 Merge remote-tracking branch 'origin/staging' into develop 2026-11-06 10:16:02 +01:00
Andrés Moya
018b857de1
🐛 Improve sync of layout item attributes in components (#12851)
* 🐛 Preserve layout item touched groups when switching variant

* 🔧 Add systematic tests to check layout items component sync

* 🔧 Add small updates after comments

* 🔧 Add tests for partial overrides
2026-11-06 09:51:12 +01:00
Andrey Antukh
0333410482 Merge remote-tracking branch 'origin/staging' 2.19.0-RC6 2026-11-06 09:50:49 +01:00