mirror of
https://github.com/penpot/penpot.git
synced 2026-11-12 13:00:37 +00:00
✨ Add shape count to the apply-tokens audit event (#12970)
The apply-tokens event fires once per apply call, so a plugin or MCP script that loops over shapes sends one event per shape while the UI sends one per selection. Add a shape-count prop with the number of shapes the token was applied to, so analytics can compare origins in the same unit. Closes #12900 AI-assisted-by: claude-opus-5-5
This commit is contained in:
parent
bcac14a4a8
commit
54b1eb5d5f
@ -743,7 +743,8 @@
|
||||
(-> {::ev/name "apply-tokens"
|
||||
:type type
|
||||
:applied-to attributes
|
||||
:applied-to-variant any-variant?}
|
||||
:applied-to-variant any-variant?
|
||||
:shape-count (count shape-ids)}
|
||||
(merge (meta it)))))
|
||||
(dwu/start-undo-transaction undo-id)
|
||||
(dwsh/update-shapes shape-ids (fn [shape]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user