Commit Graph
7039 Commits
Author SHA1 Message Date
aiongg eac80b4404 Merge pull request #2360 from storytold/perf/2334-ui-inspection
Record UI inspection data on demand
2026-11-19 11:04:52 -05:00
aiongg 7a040c1f3b ci: the Workspace gate keeps compiled workspace crates on its Linux leg
The Linux leg restores the newest rolling cache entry of the workspace
crates (cache-workspace-crates), so a pull request rebuilds only the
crates its change reaches. Each main run saves an entry of its own and
cache-prune deletes the older ones; the midnight scheduled run builds from
source and starts the entry afresh.

gate.yml's cache-workspace-crates covers a whole call, so the macOS and
Windows legs move to a call of their own with dependency-only entries. A
select platforms job decides whether that call runs, since an empty leg
list would fail it.

To fit the 10 GB cache budget, the lint legs and the sonarcloud
instrumented build keep no cache.
2026-11-19 16:02:38 +00:00
FredApps 2e307a79bc Keep gallery registrations in owned catalogs 2026-11-19 17:02:11 +01:00
aiongg c7f5e7654c craft-ui-gallery: trials for the memoized viewer panels
An idle viewer runs no panel body; a filter edit runs the tree and the
Overview; a selection change runs the panels that read it; a Properties
edit runs Properties, the Overview and one card. A saved layout round-trips
its component tabs by name and drops the ones the catalog lacks. The idle
Overview and shell-region trials account for the Overview's own view.
2026-11-19 15:53:27 +00:00
Dylan M. Taylor d7c9632bfb image-codecs: add jpeg_with_icc and jpeg_without_icc to jpeg_inks (#2400) 2026-11-19 10:53:18 -05:00
FredApps 6e36fda086 Generate the facade suite feature 2026-11-19 16:50:33 +01:00
aiongg 2028470e8f craft-ui-gallery: the viewer's panels are memoized views over tracked browser state; tab names are owned and resolved through the catalog
The tree, stories, properties, inspector, Overview, component tabs and the
Variants view each read only their props. The browser's panel state is
Tracked and written only on a change; tab opens and Variants requests leave
through outboxes. The shell places the Variants view from the dock layout.
PanelId::Component holds an owned TabName; a saved layout drops the tabs the
catalog does not list, which replaces the interned static names.
2026-11-19 15:45:22 +00:00
aiongg d125e4e094 craft-ui: bind_tracked! binds a whole Tracked value; Selection, OpenSet and Level are plain data 2026-11-19 15:38:39 +00:00
haranishi 60b4ce469e Preserve exact Save for Web dimensions and restore proportions control 2026-11-20 00:34:35 +09:00
aiongg 765c2ca9f7 craft-ui-gallery: story cards and their stories as memoized views
Each card is a memoized view over its spec and the states of its stories; each story's surface is a memoized view
keyed by its data's revision, which the end of its run, the Properties editors and the dialog opener move through
StoryData::settle. The story's surface is inside its view, so a story that fills takes its content's height there.
The card Lazy no longer settles; inspection records and value texts are journaled, so a replay keeps them. The
browse places and relink stories ask for their next run with the framework's repaint, which reruns the view.
Trials: an idle Overview runs no card or story, a story data edit runs one card, a scroll runs only cards in view,
a story with its dialog open runs every frame, and the inspected card replays with its run's record.
2026-11-19 15:20:13 +00:00
aiongg 9c1a2abdf9 craft-ui: story data has a revision that moves when a compare finds its values changed
StoryData's accessors hand out &mut T, so a write leaves no trace of its own: settle() compares the values with the
copy the last call kept and moves the revision only on a change. A memoized view of a story keys on the revision
(MemoProps for &mut StoryData) and settles at the end of its run; restore settles too. Pad derives MemoProps.
2026-11-19 15:20:13 +00:00
Martin Ball 9a046dfc46 look-5: the width-roles Stack story stacks its two roles, so a denser side menu no longer squeezes the column inside the trial's room (Stack::reads text-size case); a ribbon's font box is held at the small field length (FieldStyle::held_at), as wide as the old ribbon's, with its story and trial 2026-11-19 15:09:32 +00:00
aiongg d6880de674 craft-ui: a memoized view takes its grid cell at its extent, in its run and its replay alike
The run placed a child Ui at the cell's region and moved past its content without taking the cell, so two views in a
grid row overlapped, and the replay took the cell through take_in_flow at the row's height, so the body around it found
a measure its kept transcript did not hold and discarded the pass. Both now place the view through one function: the
next cell at the view's extent in a Grid or spread Row, else past the kept rect, which a real replay has at the place
its run was.
2026-11-19 15:08:39 +00:00
haranishi b186402675 feat(ui): let parameter forms pair adjacent fields 2026-11-20 00:05:13 +09:00
Dylan M. Taylor 48c57b5faf http-url: add parse_content_range (#2395) 2026-11-19 10:00:32 -05:00
Dylan M. Taylor cfadb66dbf midi: add live MIDI 1.0 channel-voice message decoder (#2392) 2026-11-19 10:00:27 -05:00
aiongg 2287e9f3d1 design-lint: bind_tracked!'s own definition is not a call of __split_for_bind 2026-11-19 14:59:11 +00:00
haranishi d0c7789b29 fix(shortcuts): activate tabs picked from the overflow menu 2026-11-19 23:55:18 +09:00
Martin Ball 73d8eab31b Merge branch 'red/look-rest-4' into area/ribbon-fw 2026-11-19 14:48:55 +00:00
FredApps 91c69dc2b1 Merge remote-tracking branch 'origin/next' into perf/text-layout-2333
# Conflicts:
#	crates/ui-contract/src/testing/mod.rs
2026-11-19 15:48:08 +01:00
Martin Ball 6a82c551d6 look-rest-4: suite-themes documents an app's own shape 2026-11-19 14:47:52 +00:00
Martin Ball b3e1c96a5b look-rest-4: a theme's app layer can carry its own shape, which replaces the theme's for that app (parsed, checked, written, resolved); WordCraft's buttons are 4 pt rounded rectangles under ArtCraft, as WordCraft's were, not capsules; test 2026-11-19 14:47:44 +00:00
Martin BallandClaude Opus 5.5 3b5496df6b look-ribbon-4: a ribbon group sizes the spacer under its content and its separator from the content height the last real run kept, so the measuring run and the real run place the same sizes: the group no longer measures one body too tall (the band under the titles goes) and a settled ribbon measures no group again; the flat-button trial checks the outlined toggle by its edge (a toggle's style has one variant, so a ghost toggle draws it too)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:45:54 +00:00
Martin Ball 171eea0cd1 look-rest-4: a side menu's selected row (the page shown) rests in the band its hover shows, as WordCraft's File menu marks its current page; a push Button drew no on look, so selected changed nothing; trial; the side menu story's current row shows it 2026-11-19 14:45:12 +00:00
haranishi f926a7dd92 fix(ui): show declared units on parameter dialog number fields 2026-11-19 23:44:50 +09:00
Martin Ball ca51f08b14 look-rest-4: WordCraft's app layer of ArtCraft takes WordCraft's own panel, window, hover, pressed, line and text colours in both modes (dialogs and menus #2b2b2b dark / white light, window #292929 / #f9f9f9, borders #3a3a3a / #e1e1e1, field edges #7a7a7a / #8a8a8a); only accent, canvas and chrome were set, so dark dialogs, panes and the File page took ArtCraft's #535353 2026-11-19 14:42:47 +00:00
Martin Ball 500dd7ec26 look-rest-4: a labelled leaf in a grid takes the grid's next cell (its row is the cell's region, the cursor takes it, under the cell's column group); round 3 only measured it content-sized, so it still stood under the cell before it (grid_least::labelled_check_boxes_stand_two_to_a_line) 2026-11-19 14:37:39 +00:00
aiongg 1176a26a4c craft-menu: cargo fmt 2026-11-19 14:34:08 +00:00
aiongg 541160ff27 craft-ui-panels: the tool rail's slot grid is a memoized view
The grid's events leave through an Outbox; the Edit Toolbar response is read back by id. ToolRail needs T: MemoProps.
commands::resolver_in resolves commands for a view with no component context.
2026-11-19 14:34:08 +00:00
haranishi 3f936c68f4 fix(color-range): keep the sampling controls within the dialog 2026-11-19 23:32:23 +09:00
haranishi b6f736d1d6 fix(gradient-map): show the current preset and stop hint 2026-11-19 23:31:59 +09:00
aiongg 4208dee323 craft-ui-widgets: bar member types derive MemoProps; trials of host-written bar views
BarItem, ItemDisplay, MoreMenu, BarKind, StatusMessage, StatusProgress, StatusItem, StatusValues and StatusReadout key
a memoized view; Axis, Side and PixelSize implement MemoProps.
2026-11-19 14:30:07 +00:00
aiongg 8b784b4bdb craft-menu: the in-window menu bar is a memoized view
MenuBarUi takes its English hook as a stateless fn item or capture-free closure; the menu model derives MemoProps.
2026-11-19 14:30:07 +00:00
FredAppsandFredApps 30a568b97f image-codecs: expose raw BMP density probe (#2354) [skip ci]
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-19 21:26:09 +07:00
Martin Ball 596a204cc1 FindingsList: its items are a collection (max_rows), as UndoList's 2026-11-19 14:25:22 +00:00
Martin Ball fe8d3b054f look-rest-3: read Env::measure as the field it is 2026-11-19 14:24:33 +00:00
Martin Ball de091d4186 Merge branch 'red/look-rest-3' into area/ribbon-fw 2026-11-19 14:24:06 +00:00
Martin BallandClaude Opus 5.5 1ff6c71b62 look-ribbon-3: the gallery's thumbnail size field is thumb_size, apart from the common size prop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:22:18 +00:00
Martin BallandClaude Opus 5.5 874e096445 look-ribbon-3: Gallery::thumb names its tiles' thumbnail size (medium unless set), so a gallery of small pages (style sets) takes the large size and reads as the old ribbon's did; trial and story
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:21:15 +00:00
aiongg 8e6490f618 craft-ui: a sizing replay measures again in a room its last sizing run was not offered
Each kind's extent keeps the room the run was offered beside the key of its content.
A sizing call takes the kept sizing extent only when both match; a new room runs it
once as a measuring run, as new content does, and the real call still decides by the
settled rules. A container offered another room so follows the view's new extent.
2026-11-19 14:21:08 +00:00
Martin BallandClaude Opus 5.5 e2ed478fea look-ribbon-3: a ribbon group ends with its title: Divider::length gives a separator its own length (no fill), a group's separator is as tall as the group; the title sits directly under the body on one caption line in every group; the dialog launcher sits on that line at the group's end, shown at its place so it never makes the title line taller; trials and story
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:19:21 +00:00
FredApps 7a98690f4a Merge remote-tracking branch 'origin/next' into publish/registry-2332
# Conflicts:
#	crates/design-lint/src/contract/mod.rs
#	crates/ui-contract/tests/it/contract/mod.rs
2026-11-19 15:18:42 +01:00
Martin Ball 1b11ec4ac6 look-rest-3: the listed About's tabs are a strip of tab faces (TabKind::Panel), as WordCraft's; the centred layout keeps text tabs; trial 2026-11-19 14:18:29 +00:00
Martin Ball a3a5d14e05 look-rest-3: Page Setup's Mirror margins (Facing Pages) at its section's start, outside the field group's label column, as WordCraft's; trial pins it and the wrapped grid kinds 2026-11-19 14:17:34 +00:00
Martin Ball cc0293e33b look-rest-3: a wrapping row wraps at its container's paragraph line length (a dialog's wrap width) instead of widening a content-sized dialog; Page Setup's grid kinds take two lines as WordCraft's; trial 2026-11-19 14:16:43 +00:00
aiongg fb32576d60 craft-ui: cargo fmt 2026-11-19 14:16:10 +00:00
aiongg da6e6509fd craft-ui: a sizing replay measures content its last sizing run did not
A child keeps each kind's extent with the key of the content it showed. A sizing call
of a pass that replays takes the sizing extent only when it was measured from the
kept run's content; otherwise it runs once as a measuring run, which keeps no record
and leaves the pass's decision alone, so the real run still replays. Before, the
sizing call took the extent of an older run, so a container measured a changed view
at its old size.

A change now costs one real run and one measuring run: in the sizing pass that first
measures the new content, or before the real run where the container measures first.
2026-11-19 14:16:10 +00:00
aiongg 19965d3588 craft-ui-panels: the dock's chrome views hold no size their measuring runs see as zero
The tab row's group size and the column bar's ghost extent came from the run's rect,
which is zero in a measuring run, so every re-measure ran both views in the sizing
call and again in the real one. The extent goes on the drag with drag::amend when it
starts, outside the view, as the arrangement does. GroupGrip starts its drag with no
extent and takes only the name its drop region shows.

testing::last_frame_memo_runs lists every call of the last frame, sizing and
measuring calls included; the dock trials count the frame with it.
2026-11-19 14:16:02 +00:00
Martin BallandClaude Opus 5.5 cb16b12a49 look-ribbon-3: trials broken by round 2: a ribbon toggle is checked against the ribbon's flat button (round 2 made it flat; a ghost toggle outside a ribbon keeps its edge); the width-roles story holds a dialog's least width so its width does not follow where its paragraph breaks; the side-menu story uses the catalog's save icon
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:15:30 +00:00
David MannandClaude Opus 5.5 6195b126d2 craft-automation: re-export the agents code from craft-control (#2390)
craft_automation::agents kept its own copy of the agent settings, the
launcher's switch and the connection file beside craft_control::agents.
It now re-exports craft-control's (and with it the CLI's live client)
and keeps only the egui link host. The Agents page is unchanged.

Callers see two API changes: AgentSwitch::watch takes a closure
instead of craft_host::Wake, and the connection functions return
std::io::Error. AgentSettings is #[non_exhaustive] in another crate
now, so the trials set fields on a default instead of using struct
update syntax.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 15:14:26 +01:00