Commit Graph
773 Commits
Author SHA1 Message Date
Dylan M. TaylorandClaude Opus 5.5 e356d38cd3 Text fields: opening at the start is an opt-in (TextField::open_at_start), set by form dialog multi-line rows
94cfd1df0 opened every multi-line field a layer opens on at its start, which broke the comment composer's whole-text selection (review note_popup trial). Only form dialog rows ask for it now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 00:31:09 +00:00
Dylan M. TaylorandClaude Opus 5.5 e7d328a278 About: the column layout's credit tabs open as a wide dialog
AboutLayout::Column (DeckCraft's) keeps its About tab as narrow as its
text, and gives the Contributors, Models and Licenses bodies the wide
dialog's least width (LeastWidth::WideDialog), so the contributors
toolbar and the Models table show whole, as production's do. The other
layouts are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:21:57 +00:00
Dylan M. TaylorandClaude Opus 5.5 4b872d8672 Form dialogs: a radio row with its options in a row keeps its caption in a shared caption column
Where a document dialog's captions share a column (caption_column), an
options_in_row radio row shows its caption there, before the options,
instead of hiding it (production DeckCraft's Orientation and Apply to).
Only DeckCraft sets caption_column, so other apps are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:06:07 +00:00
Dylan M. TaylorandClaude Opus 5.5 805c89c6ea About: the contributors count line reads as counted phrases (10 contributors · 41 commits)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 19:49:41 +00:00
Dylan M. TaylorandClaude Opus 5.5 94cfd1df00 Form dialogs: RadioLayout::Column heads a document dialog's radio options one per line; full-width text rows span the form and a multi-line field opens at its start, nothing selected
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 19:05:43 +00:00
Dylan M. TaylorandClaude Opus 5.5 3e06f8189d Design lint: Bar and CommandPalette setters come from the props macro
CommandPalette::state and Bar::background_press are #[prop] fields. Bar::look(BarLook) becomes Bar::over_picture(), since choosing the look also clears the container surface; Bar forwards no container builders, so its own surface() stays. The bar stories stand the bar over the stage with Stack::show_at and read clicks with contract::clicked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:46 +00:00
Dylan M. TaylorandClaude Opus 5.5 7abd484260 Framework sync: cargo fmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:54:35 +00:00
Dylan M. TaylorandClaude Opus 5.5 c219d0c6fa Framework sync: merge craft-libs main (186a229c8, with the egui numpad rev)
Conflicts: the paragraph trials keep both sides' trials; the pass pointer keeps upstream's stirred (moved to a new position) and the port's moved (a move event this pass); the shell's slot visibility, overlay and covering tests combine the port's page rule with upstream's standard-mode bar reveal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:53:40 +00:00
BFlat e18f4d8819 Merge pull request #4242 from dotCooCoo/fix/palette-pinned-top
ui-patterns: the command palette keeps its top and field in place as the query changes its rows
2026-11-29 20:24:48 +07:00
BFlat b48026cb3e Merge pull request #4261 from dotCooCoo/fix/properties-dialog-measuring-tab
form_dialogs: a properties dialog keeps its bound tab when the body does not run
2026-11-29 20:24:37 +07:00
David MannandClaude Opus 5.5 a959117beb New Document: Advanced Options holds Color Profile and Pixel Aspect Ratio; the depth reads 32 bit
The details pane puts Color Profile and Pixel Aspect Ratio in an Advanced Options disclosure under
Background Contents, open by default; folding it keeps their values. The float depth entry reads
"32 bit" (storytold/photocraft#14035).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:36:19 +01:00
dotCooCoo 3709b7690b form_dialogs: a properties dialog keeps its bound tab when the body does not run
PropertiesDialog wrote the shown tab back to its `tab` binding after
every pass, starting from tab 0. A pass in which the body did not run
(a measuring run that ends before the body, or a closed dialog) wrote
0 back, so a dialog bound to its second tab showed the first one after
its first frame. The tab is now written back, and Reset Panel applied,
only when the body ran.
2026-11-29 02:57:22 -08:00
Dylan M. TaylorandClaude Opus 5.5 689fcfe509 Framework sync: runtime (layer 2) no longer imports contract::text or primitives
The draft calls (drafts_parse, with_draft_owner, retire_drafts) are public in contract, where they live, and the
form dialogs call them there; the runtime::focus forwarders are gone. The editor widget id moves down to
runtime::ime::editor_widget, which ImeSurface::of uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 07:59:07 +00:00
dotCooCoo 9397987668 ui-patterns: the command palette keeps its top and field in place as the query changes its rows
The dialog face of CommandPalette was a modal centered on both axes and
sized to its rows, so its search field moved up and down with each query.
The box is now centered across the window with its top 15% of the window's
height down, and only its bottom edge moves as the rows come and go.

- ui-contract: FloatPlace::top_centered(share) places a float centered
  across its bounds with its top at that share of their height. Its room is
  held to the height that leaves the same share below it, measured in the
  overlay's own bounds, so a body as tall as it may grow (in an embedded
  shell, whose region lifts the modal's cap) does not push the top up.
- ui-patterns: the palette's dialog face uses it, at the share that matches
  its 70% height cap.
- Tests: the palette's top and field stay put between a 12-row and a 1-row
  query; in an embedded shell a 50-row list leaves the top in place; a
  bounded float keeps its top for a short and a tall scrolling body.
2026-11-28 23:01:52 -08:00
BFlat 4aef487a0c Merge pull request #4231 from dotCooCoo/fix/form-dialog-radio-control-column
form_dialogs: a radio row's options start in the control column
2026-11-29 13:01:31 +07:00
dotCooCoo 8a2729d7c8 form_dialogs: a radio row's options start in the control column
In a form whose rows share a label column, a radio row started at the
form's left edge, in the label column, while the check boxes and the
fields of the other rows started past it. A radio group lays out apart
from the label column of the form around it, so its radios never read
the column.

A radio row now shows its group in a field with a hidden caption, in
each of its three layouts (a caption over the options, stacked_options
and options_in_row), so the first radio starts where a check box row
starts. A radio row in a shared line and a row nested under an option
stand where they stood. A document form without a shared caption column
is unchanged.

The new test shows a text row, a check box row and a radio row in each
layout, and compares where the check box label and the first option
start.
2026-11-28 21:33:54 -08:00
dotCooCoo d1dbb74d0c form_dialogs: a length Range row's field steps and snaps by the set step
A Range row with Param::length and Param::step kept the step for the
slider only. The permanent row's number field stepped by the shown
unit's default, and the popup row's field stepped by the set step but
did not snap typed values to it.

SliderField now converts a set step from the stored unit to the shown
unit for its length field and snaps typed values to it unless
typed_decimals is set. Without a step the field keeps the shown unit's
own step. The length field also takes the slider field's pointer
modifiers, which the plain field already does. The popup row's length
field snaps typed values to its set step.

With points stored, inches shown and a step of 144 pt, Up on either
field moves 2 in, and typing 1.4 stores 144 pt.
2026-11-28 21:03:19 -08:00
dotCooCoo 04bb4d1bb8 Merge main into fix/range-row-length-unit 2026-11-28 20:58:38 -08:00
Dylan M. TaylorandClaude Opus 5.5 0663f18e62 Framework sync, patterns area: resolve the merge of craft-libs main 07a8c471ed
- dialog host: upstream's per-opening serials (OpenedDialog, take_by_open_serial,
  get_by_open_serial, typed get_by_id) carried into the port's kept-actions store.
- ParamDialog: upstream's tagged footer toggles and per-instance flips replace the
  port's session flip; the port's accepting extras and their OK gating stay.
- Param: upstream's and_enabled_when_in is the port's enabled_when list (one
  mechanism; RowOptions::enabled_when_also dropped).
- New Document cards: upstream's Your Recent Items zoom on the port's ColumnRule.
- CommandPalette: upstream's least_width and field look on the port's bound state.
- PreferencesWindow: upstream's Classic layout, page steps and size beside the
  port's LiveCancel mode and page-only disable while nested.
- AppShell: upstream's versioned, memoized page view inside the port's PageKind
  ordering (after the slots, band only when the page covers the title).
- Tests and docs: both sides' pane trials, About imports and dialog host notes kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 04:31:24 +00:00
Dylan M. TaylorandClaude Opus 5.5 a3bd3e5e07 Merge craft-libs main 07a8c471ed into the port (skeleton: conflict markers left in for the area merges)
Cargo.toml takes main's egui pin (932a73b2) and vendor list; Cargo.lock is main's, resolved again after the combine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 04:24:10 +00:00
dotCooCoo e7d4d7e3e5 form_dialogs: a Range row with Param::length shows its value in the shown unit
Only Number rows read Param::length, so a Range row over points showed
points in an inch or millimeter document.

- SliderField::lengths makes its number field a length field: it shows
  and reads the value in the shown unit at that unit's step and
  decimals, while the binding, the range and the slider stay in the
  stored unit.
- Range rows pass Param::length to their SliderField. A popup-slider
  range row builds a length field too, and a set step, which is in the
  stored unit, steps the field by the same length in the shown unit.
2026-11-28 19:46:38 -08:00
BFlat 78cac93016 Merge pull request #4180 from dotCooCoo/fix/page-card-resting-tile
ui-widgets: page cards can rest on a tile
2026-11-29 10:10:32 +07:00
dotCooCoo d512037910 ui-patterns: a path row keeps its Browse button whole in a narrow column
PathRow showed its FillWidth text field in a content-sized Row, where a
filling leaf keeps its measured width. The field stayed at its full field
length and the row narrowed the Browse button instead, so in a column
narrower than about 280 pt the label was cut to "Brows...". The row now
fills its width: the field takes the room the button leaves.
2026-11-28 18:23:01 -08:00
dotCooCoo 655a251549 Merge main into fix/page-card-resting-tile 2026-11-28 18:02:44 -08:00
autocraft-bot[bot] 325ae14c28 Merge pull request #4192 from storytold/integration-craft-libs-20261129-5
Integration batch integration-craft-libs-20261129-5
2026-11-29 01:29:51 +00:00
BFlat 25ece08ddf Merge pull request #4134 from dotCooCoo/fix/title-bar-switcher-spacing
ui-shell: the title bar keeps an item gap between controls, and dropdown lists fit the window
2026-11-29 08:11:33 +07:00
dotCooCoo 7398402aed ui-widgets: page cards can rest on a tile
CardText::PageTile is a page card whose rest state lays a light veil of
surface.scrim over the surface under it. Hover, pressed and selected
fills and the selection edge are the same as CardText::Page, which keeps
its flat card. PresetCardLook::PageTile shows New Document's preset
cards this way. No default changes: the start page and apps that set
PresetCardLook::Page draw as before.

Stories show both new looks. Tests check that a PageTile card paints the
veil at rest and a Page card paints no fill, and that New Document's
PageTile cards rest on the veil with the paper on it while the selected
card takes the hover fill.
2026-11-28 15:32:27 -08:00
autocraft-bot[bot] 1f65084b15 Merge main into design-port/pr-dialog-looks 2026-11-28 23:15:38 +00:00
Dylan M. TaylorandClaude Opus 5.5 d83543ade0 clippy: ui-widgets and ui-patterns clean (doc-comment blank lines, a Copy clone, struct init, the span bar trial's checks in helpers)
The span bar trial keeps every assertion in its order; its drag and access-step checks moved
into helpers to stay under the cognitive-complexity limit. Left: craft-ui-shell screen_mode.rs:182
too_many_arguments, which is on craft-libs main (0b8bbaf4c).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:14:48 +00:00
autocraft-bot[bot] 4f87f81dc8 Merge pull request #3447 2026-11-28 22:08:52 +00:00
FredApps 7f4fbeb9da Merge remote-tracking branch 'origin/main' into HEAD 2026-11-28 22:30:52 +01:00
FredApps e058e4d58e Merge branch 'main' into fix/ui-perf-1-floating-windows 2026-11-28 22:02:54 +01:00
FredApps 6c65ee321d Merge remote-tracking branch 'origin/main' into HEAD 2026-11-28 21:55:10 +01:00
Martin BallandClaude Sonnet 5.5 bd4f24ac1e fix(ui-patterns): a preferences text row takes a placeholder (#4028) (#4091)
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:18:48 +00:00
Martin BallandClaude Opus 5.5 1a09c8ad77 ListManager list keeps its height; tabbed Colors dialog's Standard page shows the compare block (storytold/wordcraft#7979, #7984) (#4032)
* fix(list-manager): the list takes height from its rows so the empty message and rows clear the section under it (storytold/wordcraft#7979)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

* fix(color-ui): the tabbed dialog's Standard page shows the compare block

Part of storytold/wordcraft#7984.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:18:37 +00:00
dotCooCoo 5c84c026e2 Docking: a native window's move records its place once, when it ends
While the app moved a floating window shown in an OS window, the dock
area recorded the window's new place (Action::SetNative) in every pass
of the drag. Each record was a workspace edit, which changed the
workspace revision and rebuilt the dock's kept specs, titles and
geometry in every frame of the drag.

FloatingGroupOutput gains `moving`, kept in the group's memory from a
move's Begin to its Commit or Cancel. DockArea skips native::reported
while it is set; the Commit pass and the passes after it record the
place where the window was let go.

The new trial counts the placement records during a six-step drag of
a palette the app moves: 6 without the change, 0 with it, and the
release still records the final place.
2026-11-28 12:01:20 -08:00
dotCooCoo f2b9450d82 ui-shell: the title bar keeps an item gap between controls, and dropdown lists fit the window
TitleBar puts space.gap.item between its leading controls (it used
space.gap.row, 5 pt in the compact sizes), and show_fitted lays out the
trailing controls at space.gap.item as well.

Overlay::dropdown() sets the new Overlay::off_edge: an anchored dropdown
stays space.pad.regular inside the window's edges, except where its field
reaches nearer the edge. The fit's cap is still a share of the window.

A content-sized collection whose rows run past its room ends on the last
row that fits whole and scrolls the rest, so a Select list no longer ends
part way through a row.

The workspace switcher's doc comment says its commands are in the More
options menu of the list's header.
2026-11-28 11:30:13 -08:00
autocraft-bot[bot] 03bd2112a5 Merge main into design-port/pr-dialog-looks 2026-11-28 19:19:47 +00:00
autocraft-bot[bot] b6a27eda05 Merge main into design-port/pr-fields-values 2026-11-28 19:18:15 +00:00
autocraft-bot[bot] 604941c4ba Merge pull request #3446 2026-11-28 18:35:45 +00:00
autocraft-bot[bot] 82180bb27c Merge pull request #3217 2026-11-28 18:35:25 +00:00
skylartaylor a9fca8edb1 Merge craft-libs main and keep both sets of text trials 2026-11-28 18:31:24 +01:00
skylartaylor 7e7128ad21 Merge craft-libs main and regenerate the contract catalog 2026-11-28 18:22:22 +01:00
BFlat a665282eb2 Merge pull request #3422 from dotCooCoo/fix/prefs-previous-next
ui-patterns: PreferencesWindow can show Previous and Next to step through the pages
2026-11-28 23:11:14 +07:00
skylartaylor e53c73b054 Merge craft-libs main after the body read refactor 2026-11-28 16:18:25 +01:00
dotCooCoo 4c14eb978d Save for Web: Optimize to File Size's OK waits while the size text does not parse
Clicking the Optimize rows' OK while Desired File Size held text that does
not parse filed a search with the size the rows held before. Clearing the
field had the same effect for both OK and Enter, since the field took empty
text as a blank value and the rows kept their old size.

The size field now holds an f32, which has no blank value, so empty text
does not parse either, and OK is disabled while the field's text does not
parse, as the parameter dialogs hold their OK. Enter in the field already
filed nothing for text that is not a number.
2026-11-28 00:06:53 -08:00
Dylan M. TaylorandClaude Opus 5.5 90912a7200 about: a centred column layout, as an app's own About shows it
AboutLayout::Column: the mark large, the name as a heading, the version muted, the blurb's
lines, the links one to a line and the built-with line, every one centred, and Close. A
named variant with its own story; the listed layout is unchanged. Trial:
the_column_about_centres_every_line_in_order_and_closes_with_close.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 08:03:09 +00:00
dotCooCoo c3419b76ba Merge main into fix/prefs-previous-next 2026-11-27 23:57:04 -08:00
Dylan M. TaylorandClaude Opus 5.5 6552b63812 preferences window: a nested dialog takes clicks while it is open; only the page and Cancel wait for it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:04:56 +00:00
FredApps 6da2be899a Merge branch 'main' into newdoc-dont-color-manage
# Conflicts:
#	crates/ui-patterns/tests/it/form_dialogs/new_document.rs
2026-11-28 05:33:42 +07:00