Commit Graph

20087 Commits

Author SHA1 Message Date
bflatastic f5ea2d2dfb Tests: the panel harness finds a control by its label alone again: Fixture::by_label passes over a caption link to the field it captions (craft-libs b72fc4200) 2026-11-23 21:52:58 +07:00
bflatastic 8bc4d0543d The Type tool's editor asks for the keys once, as its edit starts: the framework keeps a focus request made in a press's pass (craft-libs b14f3a313), so it no longer takes them back from its canvas each pass 2026-11-23 21:52:57 +07:00
bflatastic b2fb4f9101 The selection's Transform fields take the box as it is again: the framework keeps a running gesture's start box itself (craft-libs a7f40c447) 2026-11-23 21:52:56 +07:00
bflatastic d6ab5d69a1 The web app builds for the browser again: the host's file service is the framework's BrowserFiles (the app's WebFiles lacked Files::save, can_pick and browser_saves), the font stack fetches the served interface faces through BrowserFetcher, the page's key filter reads the running context through its slot, a drop the page followed lands where VectorcraftApp::drop_spot says, and the calls the framework replaced (want_chars, drop_paste_key_presses, the native-only embed::before_ui) are gone 2026-11-23 21:40:48 +07:00
bflatastic 16d8a42b7b Merge branch 'area/app3' into area/app4
area/app3's formatting, clippy fixes, restored behaviours, the install_fonts test and the wasm-only web-time dependency. save.rs keeps area/app3's removal of save_reporting and cancel, which nothing calls, with this branch's native-only save flow on top. A recovered copy's age is read with the recovery store's clock, which stamped it (the page's on the web, where the document clock reads none). The lock gains web-time under the UI crate.
2026-11-23 21:32:52 +07:00
bflatastic 840cebf8ef The desktop's save flow (craft-dialogs, native only) stays out of the web build, where Save downloads under the suggested name as before; a save's caller waits in Saves::then on both, and the web tells an unavailable pick by the service's cause 2026-11-23 21:25:50 +07:00
bflatastic 93eb129506 Composite Fonts' Save… saves through the file service (Files::save), which writes the file on the desktop and opens the browser's save picker or downloads it on the web 2026-11-23 21:25:39 +07:00
bflatastic c968e9dff3 The install_fonts test CI's no-bundled-fonts step runs checks the fonts embed::install sets up 2026-11-23 20:52:24 +07:00
bflatastic bc0cd31082 Merge branch 'area/app2' into area/app4 2026-11-23 20:50:20 +07:00
bflatastic a7379c6ea2 The Recover Documents dialog reads the age of a copy with the clock that stamps it, which the web build has 2026-11-23 20:35:43 +07:00
bflatastic 23bd7d7691 The web build has web-time again for the status bar's Date and Time readout 2026-11-23 20:35:42 +07:00
bflatastic d3afbf57bf Test that a lone percentage in W of Properties and the Transform panel is that share of the width 2026-11-23 20:18:29 +07:00
bflatastic 2aeb45a6d2 Tests: the toolbar footer case finds the rail by its toolbar role, not the first node named Tools: the dock grip above it is named for the pane too 2026-11-23 19:48:48 +07:00
bflatastic 4f5c4d6544 Tests: the palette, Cmd+Alt+L and Cmd+Alt+N cases tap their keys, a press and its release, as a keyboard does: the framework now reads a second press with no release between as a repeat 2026-11-23 19:48:47 +07:00
bflatastic 633e5dd390 Presentation Mode keeps its view through a middle-button drag, which the framework canvas pans on its own, as production left the view as it was 2026-11-23 19:38:54 +07:00
bflatastic 896a41629d A menu's Cut, Copy or Paste that no framework part takes, while an egui text field has the keys, goes to that field as its clipboard event, with the text of a Copy's formats written first for Paste, as production's invoke_from_system_menu did 2026-11-23 19:38:53 +07:00
bflatastic 1537aa390d Plug-in tests: an OK the effect dialog holds is filed for the app, which applies it and closes the dialog; the answer waits for that close 2026-11-23 19:31:06 +07:00
bflatastic 224fcd0f2e Native menu items carry their live titles and states, a canvas press commits a panel field's preview first, and a clicked colour swatch applies from the panel's used
- The native menu's items show the title, enabled and checked state the app has as the menus are read (Undo Move after a drag, Cut off after Escape), where the in-window bar reads them from the command states.
- A press on the canvas commits a running Transform-panel preview before the tool takes it, as the field's commit came first in production; the field's own commit in the same pass then runs nothing.
- The Swatches panel and its chip popovers apply a clicked colour swatch from `SwatchesPanelOutput::used`; the framework never forwards `PresetEvent::Select`.
- Tests: held Escape's repeats carry `repeat`, the Control bar frames get the app's frame input in a window-wide room, the canvas context menu's row is clicked instead of the task bar's button of the same name, a key-equivalent paste is answered as egui-winit answers `RequestPaste`, a Copy's text is read from egui's output, and a confirmed dialog's layer closes in the pass after its OK.
2026-11-23 19:21:33 +07:00
bflatastic 183fe82a63 Remove the helpers whose mechanism the framework replaced; their tests use that mechanism 2026-11-23 19:17:36 +07:00
bflatastic 4b350312db A script's file dialog lists the picked paths and whether files were left out to automation 2026-11-23 19:17:34 +07:00
bflatastic 83f35ba89d The drawer's Basic and Advanced set that layout and take the drawer to the Tools panel: window.toolbarAdvanced takes advanced 2026-11-23 19:17:32 +07:00
bflatastic ce256423ee User Interface > Canvas Color paints the pasteboard again 2026-11-23 19:17:31 +07:00
bflatastic cad8ba8775 Gap Options' Preview draws the gaps it finds on the canvas again 2026-11-23 19:17:28 +07:00
bflatastic 1f156be37f The Control bar's Align To button gives its picked row as its choice (IconButton::choice): it reads as the combo box "Align To:" with the choice as its value, as the Align panel's Align To does 2026-11-23 18:58:24 +07:00
bflatastic 7323bd60d8 Pin every craft-libs crate at 0c633a83c (port/stubs) and the egui fork at f5025284, the revs that commit builds with. The five crates production pinned ahead of the framework branch move too: 0c633a83c contains their commits, and split pins resolved second copies of craft-svg, craft-image-codecs, craft-tiff, hayro-jbig2 and others, which pdf-deps rejects 2026-11-23 18:53:47 +07:00
bflatastic 83968bf5a5 Merge branch 'area/app2' into area/app3
# Conflicts:
#	crates/ui-egui/src/chrome/control_bar.rs
2026-11-23 17:42:54 +07:00
bflatastic 7d1a87bf31 Web app: kept_from_browser builds only for wasm32, where its caller is 2026-11-23 17:38:28 +07:00
bflatastic dcf59f6a6b macOS: install the native menu bar at startup again, unless in-window menus are asked for 2026-11-23 17:32:57 +07:00
bflatastic cba0c9bba5 Remove UI functions and constants nothing calls since the port 2026-11-23 17:31:45 +07:00
bflatastic af511f34ea rustfmt: canvas.rs, io.rs, panels/actions.rs, tests/recolor.rs and toolbar.rs, formatting only 2026-11-23 17:26:53 +07:00
bflatastic adb4b34515 Name the complex types clippy flags and fix the other clippy lints in the UI crate and the MCP tests 2026-11-23 17:21:50 +07:00
bflatastic 9c546bbee2 The rulers' zero point is given, not bound: the document keeps it and a drag edits it once at its release, so the framework no longer reads the unchanged origin as the host changing it and cancels the drag at its first move. Tests: the ruler focus-loss case sends the window's focus event as the host does, and the 3D panel's controls are found apart from their rows' side labels of the same name 2026-11-23 17:10:54 +07:00
bflatastic 482c937100 Apply clippy's suggested fixes in the UI crate and the web app 2026-11-23 17:04:22 +07:00
bflatastic be95630105 xtask ui-commands: follow a pub use that rustfmt wraps over several lines 2026-11-23 16:48:27 +07:00
bflatastic fa7a2afc44 Format the workspace with cargo fmt 2026-11-23 16:42:57 +07:00
bflatastic cd636498fc Follow the framework: a font sample's load runs as the background job document_face now takes, a moved or resized fallback document window opens where it was left (DocumentWindowOutput::placed), the colour pickers show the working space's RGB values, the deprecated egui::Id::new merged in becomes Id::unique, and the font-traits PLAN note names what the catalog's scan records still lack 2026-11-23 16:37:14 +07:00
bflatastic e41d4a2a9b Merge branch 'area/app1' into area/app2
# Conflicts:
#	crates/ui-egui/src/panels/transform.rs
2026-11-23 16:28:23 +07:00
bflatastic 1a026ade35 Merge branch 'area/app3' into area/app2 2026-11-23 16:24:59 +07:00
bflatastic 09e9d22962 A control-channel ui.pointer or ui.tool.select waits until the synthetic input sent before it reached the tool, as production's did; without a host clipboard a copy's text goes out through egui, as production's clipboard_out did 2026-11-23 16:17:14 +07:00
bflatastic bee4b599cf Tests: the task bar's field entry selects the whole field after its click, since a popover gives its first field the keyboard as it opens and a click there places the caret 2026-11-23 16:17:14 +07:00
bflatastic 71ba9be3bf Tests: a scrub of an artboard's W with the Artboard tool runs to its release as one undo step, and Escape takes it back 2026-11-23 16:17:13 +07:00
bflatastic 9acb8a2f6e Tests: the busy worker a clipboard test holds stays busy until the test lets it go, with no 10 s limit, so a test slowed past it by a loaded machine no longer sees the held Copy's formats written early 2026-11-23 16:17:12 +07:00
bflatastic 6c95297d0d In two Tools columns the three drawing modes sit side by side, small and a tight gap apart, as production's did; the footer test checks in one column only the current mode it shows 2026-11-23 16:10:14 +07:00
bflatastic 6ad13471c6 A narrow status bar leaves out the timings, then the pointer position, before the message, as production gave the message priority over the readouts 2026-11-23 16:10:12 +07:00
bflatastic df4b510e93 The Control bar's Opacity group leaves before the other groups, so the narrower Style link and picker show without it as in production 2026-11-23 16:10:11 +07:00
bflatastic f7b5921e8f The Control bar's X, Y, W and H captions are links that open and close the Transform popover, as production's labels did; tests find a caption as the link named after its field, the panel harness takes the field where a caption link shares its name, the isolation bar's empty point is at the end of its path, and the Global Edit options are looked for after the popover's exit fade 2026-11-23 16:10:10 +07:00
bflatastic 443bb7a109 A tool rail floated by a command (a new toolbar, a strip, a copy) floats in a stepped column, so the dock fits its window to the rail's grid instead of the default float size; the drawer tests find the drawer's tools inside the drawer and the add-tool menu's items inside the menu, and move toolbar B off A as production's test did 2026-11-23 16:10:09 +07:00
bflatastic a579ca90db Docking and document windows follow production again: a tab F7 hid with its group comes back alone when a command shows it; a panel floated out of the icon column by a command opens expanded; a floating panel's OS window takes the canvas's carried art and passes its leftover Escape and Enter on as the main window does; a dimmed key does nothing while a dialog or a text field has the keys; a press anywhere on a floating document window makes it current, but not while a dialog is open; floating windows fit again when their size changes and after Presentation Mode; a tab dragged without a reorder is no click and one dropped back on its own strip docks nothing; the document-window tests read a window's bounds and the tab strip from the access tree 2026-11-23 16:05:09 +07:00
bflatastic 3c30ef69af Save for Web test: a Color Table cell is double-clicked once the dialog has stopped moving as it fills in, so the clicks land on the cell 2026-11-23 15:28:35 +07:00
bflatastic e6bc9b003c Libraries: a colour row's hex value is read with the row; the tests drag a group by its title row and keep their drag source row in place, so the rows stay where they were measured 2026-11-23 15:28:34 +07:00