Repository navigation
Theme: paste a theme into the Import tile (#8226) - #8227
Conversation
Ctrl/Cmd+V on Preferences > Interface imports a copied theme file, the tile's menu offers Paste theme, and a theme file dropped on the tile imports instead of opening as a design. Pasted text that is not a theme keeps its usual meaning. The tile reads "file or paste".
83b3860 to
3c53b94
Compare
Head branch was pushed to by a user without write access
|
@raykholo, the theme-drop handler has a wasm build blocker that we encountered during the current X2 validation run for #8435: This is the observed failure of the 12-crate wasm stage. The 82-native-binary queue was still running at the captured snapshot; this is not a final overall CI result. egui 0.36.2 exposes There is already an async read/completion path in Could you confirm whether a fix for the #8226/#8227 theme-drop path is already underway, or who should own the coordinated UI/web correction? We have not changed the handler or published a competing fix. Owner follow-upThanks for the correction. We are tracking #8534 at Follow-up: original owner fix adopted in the Drawings WIPWe have now included the original three-file correction from #8534 in our Drawings/DXF draft #8515, with Ray credited. We checked it against the frozen source rather than adopting later main or a different fix. The earlier-source wasm failure remains preserved. Fresh validation on |
|
Thanks for catching this. Fix in #8534: the desktop app reads the dropped file as before, and the web app now routes a drop on the Import tile through its async file path (a new Theme intent in files::take_drops), so a theme dropped in the browser imports instead of opening as a design. |
…ncy changes (tangency-labs#8652) The wasm compile ran only by hand, so tangency-labs#8227 (a native-only DroppedFile::bytes() call in crates/ui-egui) passed PR CI and the merge queue and broke the web build on main (tangency-labs#8534). A merge group that touches the crates below the apps, the web app, the vendored crates, the manifests, the toolchain or this workflow now runs `cargo xtask wasm`, and `ci` requires it. Dependency advisories ran only nightly. A pull request or merge group that changes Cargo.lock or a Cargo.toml now runs `cargo deny --locked check --warn unmaintained advisories`, and `ci` requires it then. The nightly keeps the full advisories, bans and sources scan. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Fixes #8226
The theme Import tile also takes a theme as text, with no new UI:
solidcraft-theme/1file and turns it on, as Import… does with a file. It goes through the sametheme_importchecks, and an invalid theme reports why in the status bar. Text that isn't a theme keeps its usual meaning: the paste is only taken when it is a theme, so pasting copied components or into a text field works as before.The paste is caught before the global Copy/Paste shortcuts, so on the Interface page a copied theme never reaches the component paste.
The right-hand shot is a real Ctrl+V on an X display with the theme on the clipboard, in a release build of this branch.
Tests:
a_theme_pasted_or_dropped_on_the_interface_page_imports_and_other_pastes_pass_through(prefs tests) covers a theme pasted on another page (ignored), plain text on the Interface page (ignored), a theme (imported and on), an invalid theme (refused), and a file dropped on the tile (imported, no design opened). The user guide's theme section describes paste and drop.Changes a default: no