♻️ Create hidden theme on token lib creation (#5991)

* ♻️ Create hidden theme on token lib creation

* 📎 Fix tests

* 🎉 Add migration

* 🎉 Remove comment

* ♻️ Remove unused changes

* 📎 Remove unused fn
This commit is contained in:
Eva Marco 2025-03-07 13:17:36 +01:00 committed by GitHub
parent 97fb1e00c2
commit e729e85c42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 70 additions and 93 deletions

View file

@ -253,18 +253,21 @@
(ctob/add-token token))
hidden-theme
(ctob/make-hidden-token-theme :sets [set-name])
(ctob/make-hidden-token-theme)
hidden-theme-with-set
(ctob/enable-set hidden-theme set-name)
changes
(pcb/add-token-set (pcb/empty-changes) token-set)
changes
(-> changes
(pcb/add-token-theme hidden-theme)
(pcb/update-token-theme hidden-theme-with-set hidden-theme)
(pcb/update-active-token-themes #{ctob/hidden-token-theme-path} #{}))]
(rx/of (set-selected-token-set-name set-name)
(dch/commit-changes changes))))))
(rx/of (dch/commit-changes changes)
(set-selected-token-set-name set-name))))))
(defn create-token
[params]