Commit Graph
123 Commits
Author SHA1 Message Date
ZacharyZhang-NY 5c596337fb PRD 1.1: scope 500 components; extensions 101-500 from ELY GPUI list 2026-10-05 13:51:43 -04:00
ZacharyZhang-NY e65f7e2708 AGENTS: result Element field and shared helpers 2026-10-05 13:50:55 -04:00
ZacharyZhang-NY 43c96a7a81 Refactor: one colorFade transition replaces internal.Fade
textInputFade becomes colorFade in theme.go and serves AvatarGroup,
Image retry, Tag and EditableText, which used internal.Fade. MyGo already
skips element transitions under ReduceMotion, so dropping the Motion
check keeps behaviour.
2026-10-05 13:50:47 -04:00
ZacharyZhang-NY c0be05d043 Refactor: EditableTextView.Changed() and the Canceled spelling
EditableTextView.Changed is a method like every other result's.
AlertDialogResult, PopconfirmResult and DateTimeResult spell Canceled
the American way, matching EditableTextView and LoadingOverlayResult.
Callers, Gallery and docs updated.
2026-10-05 13:50:02 -04:00
ZacharyZhang-NY 5d395ad789 Refactor: Toaster returns its wake time instead of storing it
toastQueue.wake kept state only tests read. Toaster now reports the
frame's wake time in an unexported ToasterResult field, and
TestToastExpiresAndHoverPauses asserts on the returned value.
2026-10-05 13:49:09 -04:00
ZacharyZhang-NY 5f217100ff Refactor: delete StackItem
Callers skip a hidden child with if !hidden { build() }; an unbuilt
child already takes no room and no gap. Docs, Example and Gallery
updated.
2026-10-05 13:48:13 -04:00
ZacharyZhang-NY dbed3b603f Refactor: a disabled wrapper alone blocks choice bases
TestBasesBlockedByDisabledWrapper focuses CheckboxBase, RadioBase,
SwitchBase and ToggleBase, flips their wrapper to Disabled and presses
Space: none changes its value, and each does without the flip. So
choiceTarget goes from Switch, Toggle and MultiSelect, and PopupMenu
Check drops its copy; TestChoiceDisabledWhileFocused and
TestDropdownMenuCheckDisabledThisFrameKeepsValue still pass.

ComboboxBase is different: TestComboboxBaseIgnoresDisabledWrapper shows
a focused one still takes typing under a disabled wrapper, so Combobox
keeps a copy, now inline as its only user.
2026-10-05 13:47:09 -04:00
ZacharyZhang-NY 0651debf9d Refactor: internal.RuleDiamond and internal.Frame ornaments
RuleDiamond draws the rule-diamond-rule of Heading, Dialog, Result, Card
titles and the ornament Divider; Frame draws the inset line with corner
diamonds of Card and decorated Dialog. Both snap the diamonds, and the
rule's diamond sits on the pixel-aligned line.

Snapshots: card (all densities, light and dark) moves the title rule's
diamond onto the rule's pixel row, an 8x8 region. Decorated dialog
(both densities, light and dark) loses the surface-colored halo under
each corner diamond, so the frame line now runs into the diamond as on
Card and the panel border is no longer notched at the corners.
Heading, Divider and Result render unchanged.
2026-10-05 13:44:59 -04:00
ZacharyZhang-NY c22a09d327 Refactor: popups share overlayStyle and overlayEnter
internal.PopIn is gone. Breadcrumb, NavigationMenu, Pagination, Menubar
panels, CommandPalette, Select (and the other selectPanel users),
datetime popups, ColorPicker and the StatusBar overflow now style their
panel with overlayStyle(c, panel, overlayEnter(c, panel)): one shadow
(0 6 18, 16% black, scaled by entry) and one 160 ms entry fade.

Snapshots: color_picker and command_palette (light and dark) change only
in the panel shadow. ColorPicker loses its 0 4 12 18% shadow for the
softer shared one; CommandPalette loses its heavy 0 12 32 30% shadow,
and its backdrop now fades by alpha with the panel instead of through
the backdrop's opacity. Fade and reduced-motion tests pass unchanged.
2026-10-05 13:41:29 -04:00
ZacharyZhang-NY 21249605fb Refactor: share iconAction for borderless 16 DIP icon buttons
datetimeIconButton moves to icon_button.go as iconAction(c, icon, label)
and replaces the identical copies in Dialog close, PasswordInput toggle
and AppShell collapse. Hover and press now set Text on every caller,
including the date and time pickers, which kept TextMuted on hover.
Image retry (bordered, danger ink), TagsInput remove (14 DIP icon, no
press state) and Tag close (12 DIP icon, fade) are different buttons
and stay as they are.
2026-10-05 13:37:34 -04:00
ZacharyZhang-NY dd1e9597af Refactor: CheckboxGroup and RadioGroup return ChoiceResult
They returned InputResult with an Input nobody read (nil for RadioGroup).
2026-10-05 13:36:29 -04:00
ZacharyZhang-NY 8880865021 Refactor: results expose Element as a named field
Every component result type now names its element Element instead of
embedding *ui.Element. The eleven element-plus-changed results
(AccordionView, CarouselView, CollapsibleView, ImageViewerView,
PaginationResult, StepsResult, SidebarResult, TabsResult, RatingParts,
FileDropZoneParts, TransferParts) fold into ChoiceResult.

Fixes four Gallery demos where .Width(...).Changed() read the element's
flag instead of the component's: Accordion, MultiSelect, Cascader,
TreeSelect. TestDataAccordionDemoLogsChange covers the Accordion.
2026-10-05 13:35:53 -04:00
ZacharyZhang-NY 078dcab8b4 Docs: record MyGo path-cache order dependence for snapshots 2026-10-05 13:32:41 -04:00
ZacharyZhang-NY 90a27c58a3 Merge branch 'worktree-agent-ac0c9e7144c57cf07' 2026-10-05 13:31:28 -04:00
ZacharyZhang-NY 40a37dfd92 Choices: review r2 fixes 2026-10-05 13:31:15 -04:00
ZacharyZhang-NY bb04bb1840 TASKS: record T08, T11 status 2026-10-05 13:22:19 -04:00
ZacharyZhang-NY 332d38b9d8 Test: doc snippets must be compiled Examples 2026-10-05 13:21:10 -04:00
ZacharyZhang-NY 2ccecd5c16 Docs: snippets match compiled Examples 2026-10-05 13:20:59 -04:00
ZacharyZhang-NY 824154f163 README example lives in examples/minimal; CI keeps them equal 2026-10-05 13:20:41 -04:00
ZacharyZhang-NY b8242d4e28 Tests: one snapshot helper (snapshot, snapshotAfter) replaces three copies 2026-10-05 13:19:52 -04:00
ZacharyZhang-NY d934918fbb Merge branch 'worktree-agent-ae66cd6d621c16060' 2026-10-05 13:18:36 -04:00
ZacharyZhang-NY b63ee82494 Merge branch 'worktree-agent-ad7403b5194d75449' 2026-10-05 13:18:08 -04:00
ZacharyZhang-NY e3eaef7437 Date & Time: review r3 fixes 2026-10-05 13:17:52 -04:00
ZacharyZhang-NY a4e5683f57 Overlays: review r2 fixes 2026-10-05 13:17:47 -04:00
ZacharyZhang-NY 9329ce2ed3 TASKS: close T05; record T07 T09 T10 T12 status 2026-10-05 13:16:33 -04:00
ZacharyZhang-NY 0e4553b219 Merge branch 'worktree-agent-a3c9c595e531146d2' 2026-10-05 13:15:52 -04:00
ZacharyZhang-NY 0acf0c30eb Merge branch 'worktree-agent-a085d9a07ef787c18' 2026-10-05 13:15:52 -04:00
ZacharyZhang-NY f45afbd850 Merge branch 'worktree-agent-acb1218b465c60e42' 2026-10-05 13:15:52 -04:00
ZacharyZhang-NY f68ff4ee09 Web mirror: handler constructor and e2e tests 2026-10-05 13:15:52 -04:00
ZacharyZhang-NY 6601c90b16 Merge branch 'main' into worktree-agent-ad7403b5194d75449 2026-10-05 13:15:30 -04:00
ZacharyZhang-NY 49b3b7840a Forms: review r3 fix 2026-10-05 13:15:30 -04:00
ZacharyZhang-NY 4a0c3a789f wip r3 2026-10-05 13:15:30 -04:00
ZacharyZhang-NY 07a90f4e80 Inputs: review r3 fixes 2026-10-05 13:15:22 -04:00
ZacharyZhang-NY 7e4d862c12 Navigation: review r3 fix 2026-10-05 13:15:17 -04:00
ZacharyZhang-NY 634c5ec7fd Merge branch 'worktree-agent-a6a6a7e2b56f82ab2' 2026-10-05 13:14:49 -04:00
ZacharyZhang-NY 26af757692 Baseline state snapshots: Button, TextInput, Checkbox hover/pressed/focus 2026-10-05 13:14:34 -04:00
ZacharyZhang-NY 20279eff29 Merge branch 'main' into worktree-agent-a6a6a7e2b56f82ab2 2026-10-05 13:13:47 -04:00
ZacharyZhang-NY 746c776be3 Gallery: composite demos 2026-10-05 13:13:47 -04:00
ZacharyZhang-NY 529aea6fa4 Merge branch 'worktree-agent-ac0c9e7144c57cf07' 2026-10-05 13:12:04 -04:00
ZacharyZhang-NY 82471ab0bf Choices: review r1 fixes 2026-10-05 13:11:39 -04:00
ZacharyZhang-NY 9ffee19733 TASKS: close T03, T04 2026-10-05 13:07:07 -04:00
ZacharyZhang-NY b34958b01b Layout: review r3 fix 2026-10-05 13:06:24 -04:00
ZacharyZhang-NY 93acbdec68 Merge branch 'worktree-agent-ae66cd6d621c16060' 2026-10-05 13:04:49 -04:00
ZacharyZhang-NY 2b1d6415e9 Merge branch 'worktree-agent-acb1218b465c60e42' 2026-10-05 13:04:28 -04:00
ZacharyZhang-NY 46238320ce Docs: upstream mapping and MyGo gaps 2026-10-05 13:04:23 -04:00
ZacharyZhang-NY 0e5a03707a Overlays: review r1 fixes (lifecycle goroutine settle) 2026-10-05 13:04:19 -04:00
ZacharyZhang-NY 01f5c1ca08 Navigation: review r2 fixes 2026-10-05 13:04:05 -04:00
ZacharyZhang-NY 0e64ec3afd Gallery: display demos use the shell's code card 2026-10-05 13:04:01 -04:00
ZacharyZhang-NY bb5828da96 Merge branch 'worktree-agent-ab9ba373bc47c2352' 2026-10-05 13:03:31 -04:00
ZacharyZhang-NY 8a3bd17ba9 Merge branch 'worktree-agent-a3c9c595e531146d2' 2026-10-05 13:03:31 -04:00