Skip to content

1.8.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 04:39
· 56 commits to master since this release
58503c4

Added

  • MSSpinner, a wind spinner that follows the host's primary and dark: setup. It is a spinning WIcon (animate-spin) in three sizes (SpinnerSize.sm, md and lg: 16, 20 and 32 px) coloured text-primary-600 dark:text-primary-500, the shades the bg-primary alias uses, with a spinnerRecipe and a catalog preview; a className is appended after the recipe, so a spinner on a filled surface passes its text role (text-on-primary). Material's CircularProgressIndicator could not do any of this, because its colour comes from Material's theme. lib/src/ui/components/spinner/, lib/magic_starter.dart, lib/previews.dart

  • MSCombobox takes itemBuilder and emptyBuilder, so a row with an icon, a secondary line or a count and a translated "no results" state no longer need a hand-rolled searchable select. A consuming app had rebuilt one on WFormSelect(searchable: true) because the component forwarded neither, which bypassed the starter's recipe and theme. Both are optional, typed as WSelect's own SelectItemBuilder<T> and EmptyStateBuilder, and pass straight through, so null renders exactly as before; the menu surface stays reachable through classNames['popup']. (#295) lib/src/ui/components/combobox/combobox.dart, doc/basics/components.md

  • MSButton takes focusNode and autofocus, so a D-pad or keyboard first screen can focus its primary action on open, or move focus to it from a key handler, with no wrapper (#296). An app had to wrap the button in its own Focus, which added a second focus stop or fought the one inside. Both forward to WButton and through it to the WAnchor focus stop, so the activation key presses the button the node focuses; the caller owns the node and the button never disposes it, and a disabled or loading button takes no focus. Raises the wind_kit floor to ^1.13.0, the first release whose WButton takes them. lib/src/ui/components/button/button.dart, pubspec.yaml, doc/basics/components.md

Changed

  • Two notes that described wind limitations wind_kit has since fixed now say what the code does today. The feedback card's doc block claimed the focus border is what shows on a wind release that does not yet paint focus:ring-* on a WDiv; wind_kit has painted rings as outlines since 1.9.0 and this package requires ^1.12.0, so the doc now describes the offset ring and the thicker border as two cues. The MSButton.fullWidth doc and the components rule blamed Material widgets for ignoring cross-axis stretch, but WButton and WInput have no Material ancestry; a Column child is simply not stretched unless the column asks, so the SizedBox(width: double.infinity) wrapper stays and only the reason changed. The border fallback was kept because no test proves the ring alone shows the focus. Comment and rule text only (#298). lib/src/ui/widgets/magic_starter_feedback_card.dart, lib/src/ui/components/button/button.dart, .claude/rules/components.md

Quality

  • Four tests now hold on wind_kit 1.12 and on 1.13. WPopover lays its panel out in an invisible measuring frame first, so the dropdown menu test pumps a second frame before tapping an item, and a loading WButton keeps its child mounted but unpainted, so the three store purchase tests in the billing view read the idle buttons' label instead of expecting the text to vanish while a purchase is confirmed. Found by running the suite against wind_kit master; no lib/ change was needed. test/ui/components/dropdown_menu/dropdown_menu_test.dart, test/ui/views/teams/magic_starter_billing_view_test.dart

Fixed

  • The five Material spinners and the accordion chevron now take the host's colours (#297). The handoff and email verification screens, the support reply's send circle, the busy social login button and the timezone select's loading box drew a CircularProgressIndicator, and MSAccordion's chevron was a bare Icon coloured by the ambient IconTheme, so a host with a non-blue primary or dark mode saw Material's defaults on those screens. The spinners are now one MSSpinner each (the send circle passes text-on-primary, as the old spinner read the circle's text colour), at the sizes they had, so the timezone select's loading box is still as tall as the loaded trigger. The chevron is a WIcon styled by a new icon slot in accordionRecipe (text-[18px] text-fg), so classNames: {'icon': ...} recolours or resizes it and it carries its dark: pair through the alias. Only Icons stay Material in these files. lib/src/ui/views/auth/magic_starter_handoff_view.dart, lib/src/ui/views/auth/magic_starter_verify_email_view.dart, lib/src/ui/views/support/magic_starter_support_thread_body.dart, lib/src/ui/widgets/magic_starter_social_buttons.dart, lib/src/ui/widgets/magic_starter_timezone_select.dart, lib/src/ui/components/accordion/accordion.dart, lib/src/ui/components/accordion/accordion.recipe.dart