Commit Graph

20029 Commits

Author SHA1 Message Date
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
bflatastic c179bc82f9 Library panels: a folder is a row of its own that a click selects, as production's folder tiles were, and the footer stays under the browser, which scrolls in the room above it 2026-11-23 15:28:33 +07:00
bflatastic f7d0016c4c Freehand test: the window's first frames run before the first Pencil stroke, so both strokes the live curve fitting test compares are drawn at one zoom (the Fidelity is in screen pixels and the dialog's frames fit the view) 2026-11-23 15:10:56 +07:00
bflatastic 23bee29aba Menu access test: frames run with motion off, so a menu closed by an outside press leaves at once instead of keeping focus through its exit fade 2026-11-23 14:53:26 +07:00
bflatastic a86c084560 Graphic Styles: Delete removes every selected style, the Default Graphic Style too when others go with it, as production's Delete button and panel menu did; the Default alone stays undeletable 2026-11-23 14:31:57 +07:00
bflatastic 3cbbdda741 Merge remote-tracking branch 'origin/main' into area/app1
# Conflicts:
#	Cargo.toml
#	apps/vectorcraft-web/Cargo.toml
#	crates/text/Cargo.toml
2026-11-23 13:24:01 +07:00
bflatastic 26fabc041d A key bound only to commands that can't run now does what production's key did, its menu item's action, which says why it can't run or does nothing, unless the commands' gate holds the keys (a file dialog, a shortcut being recorded, Presentation Mode); the frame's gate and this check share one rule 2026-11-23 13:18:01 +07:00
FredApps 0b25f2ab6f Merge pull request #9160 from FredApps/imo778-craft-libs-pin-205042e
deps: pin all craft-libs crates to 205042e (craft-libs#778)
2026-11-23 13:02:13 +07:00
bflatastic 08854f4e89 Palette: results that match a query as well rank a tool, a menu bar command, a panel, an effect, a filter plug-in, then a command with no menu item, as production's did 2026-11-23 12:42:19 +07:00
bflatastic 8417ce7a03 A PostScript name gives an installed face before a bundled face of another family with the same name, as the installed faces alone answered before the bundled ones were cataloged 2026-11-23 12:40:50 +07:00
bflatastic 6fa7ea56fb Units tests: drop the millimetre helper no test reads 2026-11-23 12:36:55 +07:00
bflatastic 5dead075d5 Every engine command the palette lists has a state, dimmed with its reason where it can't run, also those no menu row or shortcut names (Asset Export's Remove and Rename) 2026-11-23 12:36:54 +07:00
bflatastic e9cf81cc01 Follow the framework: the type editor applies its inputs and commands in arrival order and no typing after a command ended the edit; a dragged swatch carries its paint to the app's drop targets; a key pressed for a dimmed command says why it can't run; the bundled fonts are in the font catalog as bundled faces, and a rescan still counts the installed faces 2026-11-23 12:36:53 +07:00
bflatastic 6c702fd5c7 PDF import's kept fonts read the interpreter's glyph type through the craft facade 2026-11-23 12:36:51 +07:00
bflatastic ef45e2675b Merge remote-tracking branch 'origin/main' into area/app1
# Conflicts:
#	Cargo.toml
#	crates/text/Cargo.toml
#	crates/text/src/fontdb.rs
#	crates/text/src/fontdb/db.rs
#	crates/text/src/lib.rs
#	crates/ui-egui/src/opening.rs
#	crates/ui-egui/src/prefs_dialog/tests.rs
2026-11-23 12:23:02 +07:00
bflatastic de7a6c96ac Effect dialog: the Free Distort reset target is built where the dialog is 2026-11-23 12:16:32 +07:00
bflatastic 398398a8cc Tools rail: regular draws at the comfortable density and Compact Tools at the chrome's compact one, as production's 36 and 30 pt cells; each rail's dock spec gives its rail grid in that density, so its column is whole rail steps wide; the footer's paint chips are small and its rows wrap inside the rail; the workspace test goes back to the saved workspace with Reset, since a switch to the current one keeps its changes 2026-11-23 11:55:35 +07:00
bflatastic e7ffbbec55 Recolor Artwork: Undo Changes, Redo Changes and the Randomize buttons act on every click, a quick second one too, as production's did; the Edit tab's colour chips are named New Color N, apart from the bars and markers named Color N; Import PDF's path can be set as production's fields took it (OK checks the roots). Tests: a channel rail is clicked along its thumb's travel 2026-11-23 11:45:35 +07:00
FredApps 4811e6d414 Merge branch 'main' into imo778-craft-libs-pin-205042e
Bring in #9157 (SonarCloud archive job-cap note) so this Rule-10 pin
contains current main before landing.
2026-11-23 11:45:17 +07:00
bflatastic 46d02f9d75 Art moved with a Selection tool leaves the canvas where another window covers it, as production's canvas checked the layer under the pointer, so it drops into a floating view or window; art released over a pane drawn outside Tile in the frame the pointer reached it drops there, from the panes the last frame drew, once the windows have drawn (one helper with the tiled split); Window menu panels with no place float, only Dock and Move put them in the dock, as production placed them; the shape tools' Hide/Show Shape Widgets button names itself and runs its command, as production's did (the command is in no menu, so it has no catalog title). Tests: the docking harness answers a held OK through the pump and finds a library panel's tab by its library's name; the Hand fit makes the first artboard active again after the Artboard tool made the second active (production's own test had one artboard) 2026-11-23 11:39:52 +07:00
bflatastic 14b2eafb4e Color panel: the RGB rows show and edit the working space's own numbers through a working-RGB colour model the panel takes; the slider test starts its red off the thumb a mid-track click lands on 2026-11-23 11:36:37 +07:00
bflatastic 6e871532e1 Restore the type editor's shortcut rows in Keyboard Shortcuts (79e83d1709's shortcut_editor.rs hunk), which the plug-in shortcut commit dropped by staging the file from an older tree 2026-11-23 11:30:04 +07:00
bflatastic 8ebd729792 Tests: the palette's dialog answers go through the window's pump, which runs what OK does (Delete Selection's layer delete); a dialog closed in the shortcut tests is drawn gone in the window's next pass before the next key 2026-11-23 11:29:13 +07:00
bflatastic 7a75e0ca98 While a tool's gesture runs, a key that is neither an arrow nor a digit reaches the tool's own-shortcut check: W with the Blend tool's first pick held finishes the blend 2026-11-23 11:29:11 +07:00
bflatastic 98760f7ffb On a Mac, Cmd+, opens Settings as production did, unless a shortcut has the chord 2026-11-23 11:29:06 +07:00
bflatastic 9e3921f850 A menu item's and Discover's shortcut is the one the set in use gives it: until the window's keymap takes a change (shortcuts.set) in its next frame, the set is read 2026-11-23 11:29:01 +07:00
bflatastic aa22e93801 A live-effect plug-in's shortcut follows what its item runs: the menus move a saved shortcut to the plug-in's command when it is installed, removed or back with other options, the shortcut commands read the set that way before the next frame, a command the window's keymap takes only from its next frame lists the shortcut its set gives it, and an open Keyboard Shortcuts takes the commands of a plug-in installed or removed meanwhile, keeping its edits 2026-11-23 11:28:57 +07:00
bflatastic 8d86958d21 Print dialog's Document Ink Options on the framework grid: each ink's Print box named by the ink, a spot ink's Convert to process / Keep as spot toggle, its name, and Frequency and Angle fields named by the ink, in aligned columns; the print tests answer synthetic input (ui.text, ui.key) once the frames after it have run 2026-11-23 11:28:37 +07:00
bflatastic a77f35c151 Units test: the Rectangle dialog, held open, is read in the frame after the one it opened in 2026-11-23 11:28:29 +07:00
bflatastic 79e83d1709 Canvas part C: a type edit the tool host starts (a double-click on type) shows its editor in the same pass, so the next frame's Escape ends the edit and goes back to the tool used before; a chord the user binds with shortcuts.set leaves the type editor's own commands, as production's editor let a bound Cmd+Enter run its command instead of committing 2026-11-23 11:26:57 +07:00
FredApps 3e3d1d1386 Merge pull request #9157 from storytold/ci/sonar-archive-build-jobs-note
ci: note the shared SonarCloud archive job cap
2026-11-23 10:58:37 +07:00
bflatastic f1feaef739 3D panel lighting tests draw the panel as tall as a docked one: Move Light to Back sits below the sphere, past the 300-point room the fixture starts with, where no click reached it 2026-11-23 10:39:36 +07:00
bflatastic 1f5c94f59c Artboards panel: a Shift-click's range keeps its rows selected when the list then goes to its last row, as a Ctrl/Cmd-click's toggle already did; the Export for Screens test reads the range in the frame after the click, where the list reports it 2026-11-23 10:32:20 +07:00
FredApps c9c2d711d1 xtask: keep pdf-deps aligned with the 205042e craft-libs pin (craft-libs#778)
Shard 5 (Checks) failed because cargo xtask pdf-deps still expected
craft-pdf and the hayro/krilla backends at d7c9632, and hayro-jbig2 at
the leftover stream-codec pin. All of those crates now resolve at the
shared 205042e revision.
2026-11-23 04:26:33 +01:00
bflatastic 5cce6d270f Strips torn off a tool rail close when the rail is hidden and come back when it shows again (Window › Tools and a New Toolbar's own toggle); a New Toolbar's footer has its Add Tool… button, with the menu only in the pass that shows the rail; the toolbar tests find a tool's button by its label, which names it now (the shortcut is in its tip), and ask whether the Shapes group floats by its first tool, as is_floating reads 2026-11-23 10:25:37 +07:00
bflatastic 5f63bc091a A tool change ends a control Rotate View press, as production's did; a paste goes into text only while a field that takes it or the Type tool has the keyboard (focus on the canvas or a label's selection writes no formats first); Image Trace runs start on the progress window's clock; Enter reaches no tool in Presentation Mode. Tests: Save As's dialog opens on the host's next pass, a dialog's Escape closes it on the next pass, a fired command reaches a selected label in the next pass, a pasted number shows its unit, the action under test is the set added after the Default Actions, a menu row's title is its state's, the dialog host names an unknown field so, the trace's delay is backdated on the monotonic clock, the ruler fields' window is wide enough for the Control bar's inline fields 2026-11-23 10:21:56 +07:00
bflatastic ef2c848411 Panels m-z: Enter in Pattern Options' Name field ends the editing, the keys going to the document canvas. Tests as production drove them: Appearance rows are pressed and dragged past their link's text and an effect's name is clicked on its link, the weight and length fields read with their unit, the Move dialog's lengths read from its drawn field and typed there, the pie link takes the focus before Space, the artboard history keys follow a whole window frame, and art reaches the Symbols panel carried off the canvas, not from a Layers row (harness helpers: click_role_with, click_at_with, drag_between, rect_role, focus, shows_value_with) 2026-11-23 10:17:30 +07:00
FredApps a3b0b3dec0 deps: pin all craft-libs crates to 205042e (craft-libs#778)
Rule 10: every storytold/craft-libs crate is at the same rev, now
205042e406b630cda653990649264a78fea6296b, the merge of #3136 on
craft-libs main. That rev still skips a form already on the drawing
stack (ISO 32000-2 §8.10.1) but no longer reports it as
ContentTruncated, so a 200-shape knockout-mask PDF imports completely.

Also moves the leftover per-crate pins of craft-font-catalog and
craft-web-api onto the same rev.
2026-11-23 03:59:59 +01:00
bflatastic 1f561ca7f0 Alt chords as production read them: the type editor claims its Alt+digit character chords (bullet, paragraph, section, trademark), which the framework's Windows Alt-code entry otherwise takes, as production read codes from the keypad only; a tool that takes a lone Alt tap (the Quick Pen switching its action) says so to the canvas host 2026-11-23 09:58:32 +07:00
bflatastic 834c781c36 Before the app has a window its background jobs run on the platform's default, a worker thread per job (in line on the web), as production's did: a windowless save no longer runs on the caller's thread and waits there for its own release 2026-11-23 09:58:27 +07:00
bflatastic dbbca26a21 Appearance inline editor: Load Texture's path stays the dialog's, so an edit sends only the effect's parameters; an effect with no rows of its own (a removed plug-in) shows its stored values by type, as production's editor did. Layers tests: thumbnail uploads are read at the end of the pass that made them, the store counting per frame; the locate test Shift-clicks the selection squares as production's did 2026-11-23 09:56:04 +07:00
bflatastic 08ae473b61 Repair the previous commit's misplaced hunks: Escape's release reaches the tool after the host runs (it sat inside the hover match, which did not compile), a cancel by Escape marks the press, not every claims query, and the clicked-row helper sits before the test module 2026-11-23 09:49:59 +07:00
bflatastic 1db6dc9df3 Dialogs n-z and addons: the 3D dialog sits at the window's right edge and passes the gizmo's presses through its modal layer, and an Escape puts the gizmo's fields back as they were; Map Art's Done is in the footer; the 3D preview leaves out light settings a classic effect doesn't take; Rasterize's dialog turns its resolution preset back into the effect's params; Zoom to Selection fits at once; Save PDF drops Custom flattener options when another flattener preset is chosen, checks them in the Summary, takes flattener.* fields from automation, refuses a taken preset name at OK and tells a failed Save Summary over the dialog; the Proof Setups folder stays until the pick's answer has written into it; a group's colours go first to the Recolor rows that hold them; Swatch Conflict lists the conflicts it asks about. Tests: the controls' real names, Preview ticked as command dialogs open with it off, a cell double-clicked to ask for its colour, the frame's paste settlement, pick answers taken with the frame input, renders counted by new images, numbers compared as numbers 2026-11-23 09:36:02 +07:00
FredApps 5022ba5593 ci: note the shared SonarCloud archive job cap
The reusable workflow now defaults build-jobs to 2 so a cold instrumented
archive stays within hosted-runner memory (craft-common-actions#333).
2026-11-23 03:21:18 +01:00
bflatastic 91c76fb1e7 New Brush…, dimmed with no document, says why as the menus' dimmed rows do: the Brushes panel's state gives the catalog's reason 2026-11-23 09:04:22 +07:00
bflatastic b70b7fc681 Menu clicks and held keys as production ran them: a menu row ending in … that carries params opens its dialog on them (Clean Up…); Enter that opens the held tool's dialog uses the tool; the window losing the keyboard ends its holds without going back; Cut, Copy and Paste take F2, F3 and F4 back when only a component's own command (a preset row's Rename) also has the key. Tests: Find and Replace and the Smooth and Simplify sliders are named by their command, a held OK is answered through the pump, the colour picker is read by its key, the modifier-only override test uses a tool that has a default key 2026-11-23 09:04:02 +07:00
bflatastic baf0e3c633 Canvas part C: a tab rest leaves carried art to any canvas while the tab's document is current; a view tool's press (middle pan, Space Hand) counts as a press elsewhere for the tool's clicks; the type editor is its command scope's instance, and Commit and Escape run the tool's requests; the window's Escape goes to a tool that claims it first; tests run a frame for a held second press, rest the tooltip delay on a tab, keep oversized canvases inside the size guard and the Ctrl-only Enter case to macOS 2026-11-23 08:51:01 +07:00
bflatastic abb84048ca Tests: the lifecycle frames hand the app the commands they fired as the host's next frame begins, and a paste's text is on the clipboard service before the frames start, as the platform has it; the paste event is the paste chord 2026-11-23 08:50:33 +07:00
bflatastic d9aaac629a Layers reveal test follows the ruled order: a new selection asks for its object even when the current layer changed too, and a new current layer alone (the highlighted row made current again) asks for the layer 2026-11-23 08:46:12 +07:00
bflatastic 3f9c719d2d Tests: the replace question is read as the ReplaceFilesPrompt it opens as; a dropped file is held over the window in the pass before its drop, as the OS drag the window's drop target takes has it (contract fl.A18); the script report's real path is compared as people read it, without Windows' verbatim prefix 2026-11-23 08:39:11 +07:00