Skip to content

Releases

1.11.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 20:43
56117b6

Added

  • A team invitation now opens to a preview that fits whoever clicked it, so a guest, an unregistered invitee, a signed-in invitee and a signed-in stranger each reach the team or see the next step. MagicStarterTeamInvitationAcceptView loads the backend's public GET /invitations/{token} (team name, inviter or null, invited address, role, expiry) before asking for anything. A visitor with no session, or only a guest-auth one, gets "Create account" (the register route with next, email and invitation in the query; only with registration on) and "Sign in" (the login route with next), and the invitation is where they land afterwards. A signed-in visitor whose email matches gets "Join :team". A signed-in visitor whose email differs sees both addresses with "Join with this account", which repeats the accept with confirm_email_mismatch: true, and "Use another account", which signs out and opens the sign-in screen with a next back to the invitation. A 403 wrong_email keeps the server's message and offers only "Use another account"; a 410 and a 404 get their own "Invitation expired" and "Invitation not found" cards. MagicStarterTeamController gains fetchInvitationPreview(token), useAnotherAccount(token) and the state invitationPreview, invitationIssue and invitationMaskedEmail, with the new MagicStarterInvitationPreview and MagicStarterInvitationIssue (notFound, expired, emailMismatch, wrongEmail). It needs the next magic-starter-laravel release, which adds the preview endpoint and the 409 email_mismatch, 403 wrong_email and 410 answers of the accept call. The English copy ships as teams.invitation_* in assets/stubs/install/en.stub; an app installed earlier merges the thirteen keys into its own lang files. lib/src/ui/views/teams/magic_starter_team_invitation_accept_view.dart, lib/src/http/controllers/magic_starter_team_controller.dart, lib/src/routes/team_routes.dart, assets/stubs/install/en.stub, doc/basics/teams.md, doc/basics/views-and-layouts.md, doc/architecture/controllers.md, skills/magic-starter/
  • Registering from an invitation link fills the invited address and joins the team in the same step. MagicStarterRegisterView reads ?email= into the email field and ?invitation= once when it opens, and MagicStarterAuthController.doRegister takes the new invitation argument, sent as invitation while teams is on. When the answer logs the user in and carries a top-level joined_team, the controller drops an intended url that points at the invitation, shows teams.invite_accepted and lands home through navigateHome(); a registration without that answer behaves as before. NavigatesRoutes gains forgetIntendedPath(path), which drops the stored intended url when its path is path and keeps any other. lib/src/ui/views/auth/magic_starter_register_view.dart, lib/src/http/controllers/magic_starter_auth_controller.dart, lib/src/http/controllers/concerns/navigates_routes.dart, doc/basics/authentication.md, doc/architecture/controllers.md, skills/magic-starter/

Changed

  • Every layout.guest group registers under the new MagicStarterLayoutIds.guest, so the signed-out pages share one shell ahead of the app shell. go_router takes the first match, and a guest page registered after the app shell (the invitation page, in its own shell) lost to a host's signed-in catch-all such as /:path(.*) behind auth, which sent a signed-out invitee to sign-in. The sign-in screens, email verification, handoff, device approval and the invitation now merge into the shell of the first guest group, the sign-in screens, which registerMagicStarterAuthRoutes() registers before the app shell; moving between them no longer swaps the shell either. A host's own guest-card group should use the same id. lib/src/routes/layout_ids.dart, lib/src/routes/auth_routes.dart, lib/src/routes/team_routes.dart, test/routes/team_routes_test.dart, test/routes/layout_ids_test.dart
  • /invitations/:token/accept is no longer behind auth; it renders in layout.guest. A signed-out invitee used to be bounced to sign-in before the invitation showed. registerMagicStarterTeamRoutes() now registers the accept page in its own group with no middleware and layout.guest, while create and settings stay behind auth in layout.app. A host that overrides teams.invitation_accept has to handle a visitor with no session (read Auth.check() and MagicStarter.isGuest()). lib/src/routes/team_routes.dart, test/routes/team_routes_test.dart, doc/basics/teams.md, doc/basics/views-and-layouts.md, skills/magic-starter/references/controllers-and-routes.md
  • MagicStarterTeamController.doAcceptInvitation navigates home by itself and takes confirmEmailMismatch. On success it restores the session, toasts teams.invite_accepted, drops an intended url pointing at the invitation and calls navigateHome(), so the view no longer navigates; a host view that did MagicRoute.to(homeRoute) after a true answer has to stop, or it navigates twice. confirmEmailMismatch: true sends {confirm_email_mismatch: true} in the body. A 409 email_mismatch is not an error: it answers false and sets invitationIssue and invitationMaskedEmail for the view to ask. The controller now mixes in NavigatesRoutes. lib/src/http/controllers/magic_starter_team_controller.dart, doc/basics/teams.md, doc/architecture/controllers.md, skills/magic-starter/references/controllers-and-routes.md

1.10.1

Choose a tag to compare

@github-actions github-actions released this 03 Dec 16:32
8578e63

Fixed

  • A sign-in that a gated link bounced now returns to the link with its query. EnsureAuthenticated overrode redirectTarget, which receives the matched location without its query, so the intended url it recorded dropped a ?token=..., and a signed-out phone opening a device approval link came back to an empty code field. It now overrides redirectTargetFor, records the full uri (?code=ABC included) through MagicRouter.setIntendedUrl, and still matches the login route and the guest-only auth routes on the path alone. The magic floor rises to ^1.4.0, the release that adds the hook. A host subclass that overrode redirectTarget on EnsureAuthenticated is no longer reached and has to override redirectTargetFor. pubspec.yaml, lib/src/middleware/ensure_authenticated.dart, test/middleware/ensure_authenticated_test.dart, doc/basics/middleware.md, doc/basics/device-code-sign-in.md, doc/getting-started/installation.md, README.md, llms.txt, skills/magic-starter/

  • An identity prompt opened to approve one TV code can no longer approve another. Once the approve screen reopened on a new ?code=, a step-up prompt left open for the earlier code sent its proof with the new code. The prompt now closes when the visit changes, and a proof given after the code or the visit moved is never sent. lib/src/ui/views/auth/magic_starter_device_approve_view.dart, test/ui/views/auth/magic_starter_device_approve_view_test.dart

  • A countdown listener that cancels or restarts the TV sign-in no longer leaves the old flow running. remaining notifies synchronously, so a listener that cancelled on the first value left a ticker started after the cancel, and one that restarted on a tick let the old tick poll with the cleared code and leave the new flow never polling. The controller reads its epoch again after each publish. lib/src/http/controllers/magic_starter_device_code_controller.dart, test/http/controllers/magic_starter_device_code_controller_test.dart

  • The TV code screen now fits a 1280 by 720 television, and no longer overflows a narrow guest card. On a TV host's guest layout (a logo header and overscan above a 640 wide card) "Continue as Guest" was clipped below the bottom edge. On a window under 800 high the screen now draws the QR at w-32 in a p-2 frame, the code at text-3xl, the address at text-base and tighter gaps, so the title, the QR, the code, the address, the countdown and both actions fit; the guest layout's scroll covers a host that leaves even less. The QR went beside the code from md up, a breakpoint that reads the window, so in the package's own 480 wide guest card on a wide window the row overflowed to the right; the arrangement is now measured on the card (beside from 400 wide, stacked below), and the text column beside the QR wraps rather than overflows. lib/src/ui/views/auth/magic_starter_device_code_view.dart, test/ui/views/auth/magic_starter_device_code_view_test.dart, doc/basics/device-code-sign-in.md

  • The TV countdown no longer repaints the whole screen every second. Each tick called refreshUI(), which rebuilt the view and the QR code with it. The ticks now go through the new MagicStarterDeviceCodeController.remaining (ValueListenable<int>) and only the countdown text listens; secondsRemaining still reads the value. A host's own auth.device_code view that read secondsRemaining in build has to listen to remaining for its countdown to move. lib/src/http/controllers/magic_starter_device_code_controller.dart, lib/src/ui/views/auth/magic_starter_device_code_view.dart, test/ui/views/auth/magic_starter_device_code_view_test.dart, doc/basics/device-code-sign-in.md

  • A throttled lookup, approval or denial on the approve screen now says to wait instead of blaming the connection. A 429 showed "Something went wrong. Check the connection and try again."; it now shows the new magic_starter.device_approve.throttled string, "Too many attempts. Wait a minute and try again.", and the screen stays retryable as before. An app installed earlier merges the key into its own lang files from assets/stubs/install/en.stub. lib/src/http/controllers/magic_starter_device_approve_controller.dart, assets/stubs/install/en.stub, test/http/controllers/magic_starter_device_approve_controller_test.dart, doc/basics/device-code-sign-in.md

  • Opening the approve screen again on the same route starts over instead of showing the last visit's result. The view opened its controller once per mount, and a move that only changes the route's query rebuilds the page rather than remounting it, so after an approval a visit without a code still showed "Approved". The view now opens again whenever the route location changes; a code it carries is still only looked up, never approved, and a theme or window change keeps the visit. lib/src/ui/views/auth/magic_starter_device_approve_view.dart, test/ui/views/auth/magic_starter_device_approve_view_test.dart, doc/basics/device-code-sign-in.md

1.10.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 07:27
23a2bf5

Added

  • Device-code sign-in for a device that cannot type in (an Apple TV), behind the new features.device_code toggle. Two screens and two controllers. The TV screen (auth.device_code, MagicStarterDeviceCodeView, guest route /auth/device) asks POST auth/device/code for a pair, shows the XXXX-XXXX code, the verification address and a QR code of the address with the code in it, then polls POST auth/device/token, never sooner than interval seconds after the previous answer, and concludes through completeSignIn; a declined or expired code, or a success that does not read as a session, stops the poll and offers "Get a new code", and nothing is issued again unless the viewer asks. The approval screen (auth.device_approve, MagicStarterDeviceApproveView, route /auth/device/approve?code= behind auth) runs on a signed-in phone: opening it only looks the code up, it shows the client and the name the TV gave itself under one "reported by the device" marker (both come from the device), then the server's own facts (both countries and the age of the code), and gives Approve and Deny the same intent and size. Approve acts only on the code whose facts are on screen; a different typed code is looked up first. Every code in the route is treated as a link code whatever its entry query says, so a forwarded URL cannot skip the typing step: from another network it is cleared and must be typed from the TV. A strong warning naming both countries shows whenever the facts say another network, typed code or link. A request with no answer leaves the screen retryable, an answer from a superseded visit is dropped, and an account with two-factor confirmed is asked for proof through confirmIdentity on a 423. MagicStarterConfig.hasDeviceCodeFeatures(), deviceCodeRoute() and deviceApproveRoute() read the toggle and the two paths, the config helper and the install stubs know the key, and the English strings ship under magic_starter.device_code.*, magic_starter.device_approve.* and magic_starter.titles.device_code / device_approve; an app installed earlier merges them into its own lang files from assets/stubs/install/en.stub. While device_code is on, EnsureAuthenticated treats the TV screen's path as a guest route and records no intended url for it; with the toggle off it records that path as before, so a host's own page there is unaffected. It needs the device-code feature on magic-starter-laravel. The screen draws the QR code with the new direct dependency pretty_qr_code: ^3.6.0. lib/src/http/controllers/magic_starter_device_code_controller.dart, lib/src/http/controllers/magic_starter_device_approve_controller.dart, lib/src/ui/views/auth/magic_starter_device_code_view.dart, lib/src/ui/views/auth/magic_starter_device_approve_view.dart, lib/src/routes/auth_routes.dart, lib/src/magic_starter_manager.dart, lib/src/configuration/magic_starter_config.dart, lib/config/magic_starter.dart, assets/stubs/install/, pubspec.yaml, doc/basics/device-code-sign-in.md, doc/basics/authentication.md, doc/getting-started/configuration.md, doc/getting-started/installation.md, doc/architecture/manager.md, doc/architecture/controllers.md, skills/magic-starter/

1.9.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 16:44
73eeac4

Fixed

  • A keyboard or TV remote focus on MSSettingsNavRow, and on a tappable MSSettingsRow, now draws a ring, so a remote user can see which settings row is focused; a host colours it through the new MagicStarterNavigationTheme.settingsRowFocusClassName. Neither recipe had a focus: class, so a focused row looked exactly like the others; a host app's Apple TV QA walk could not find focus anywhere in Settings. The default is focus:ring-2 focus:ring-inset in primary-500 (primary-400 dark): inset because MSSettingsSection clips its rows, which would cut an outside ring at the card edges, and an inset ring also takes no wind_kit focus lift. It is a theme field rather than a recipe constant because a host whose focus colour is not its primary (one that keeps the gold for selection, as a switch's on state) has no other way to restyle a starter row. A row without onTap gets no focus classes, because a focus: class alone makes a WDiv a focus stop. lib/src/configuration/magic_starter_theme.dart, lib/src/magic_starter_manager.dart, lib/src/ui/components/settings_nav_row/settings_nav_row.dart, lib/src/ui/components/settings_nav_row/settings_nav_row.recipe.dart, lib/src/ui/components/settings_row/settings_row.dart, test/ui/components/settings_nav_row/settings_nav_row_test.dart, test/ui/components/settings_row/settings_row_test.dart, test/configuration/magic_starter_theme_test.dart, doc/basics/components.md, doc/basics/views-and-layouts.md (#313)

1.8.4

Choose a tag to compare

@github-actions github-actions released this 01 Dec 13:59
7d9ae3c

Fixed

  • tvOS no longer takes the iOS arms of the store gates. flutter-tvos reports an Apple TV as iOS, so the store review prompt, the "Rate us" listing and the App Store update banner all fired there, and the support client context reported iOS. On MagicPlatform.isTvOS, MagicStarterStoreReview.maybeRequest and canOpenStoreListing stay quiet (the platform prohibits the review sheet), MagicStarterAppBuild.isStoreInstall answers false, MagicStarterAppUpdateBanner renders nothing and starts no check (so it never reads the package info, which tvOS may not implement, nor marks the session inert), and MagicStarterSupportClientContext.collect reports tvOS as the platform. iOS and Android answers are unchanged. The magic floor rises to ^1.3.0, the release that ships MagicPlatform.isTvOS. pubspec.yaml, lib/src/support/app_build.dart, lib/src/support/store_review.dart, lib/src/support/support_client_context.dart, lib/src/ui/widgets/magic_starter_app_update_banner.dart, test/support/, test/ui/widgets/magic_starter_app_update_banner_test.dart

1.8.3

Choose a tag to compare

@github-actions github-actions released this 29 Nov 21:51
5db6707

Fixed

  • A store build whose store cannot transact no longer shows "Restore purchases" or a store purchase button. The store gate (offersStorePurchase, and canPurchaseViaStore with it) checked only that the build has a store rail, and on iOS and Android Payments.store is non-null whether or not the RevenueCat key is set. So a consuming app's Android build, whose catalogue names App Store ids only and whose key was blank, offered a team owner "Restore purchases", and the tap failed with "Purchases are not set up in this app yet." The gate now also refuses when the catalogue on screen names no product, grandfathered ones included, with an id in this store, and when the price read fails with BillingErrorCode.notConfigured. magic_payments raises that code for a blank key and for any store configuration error RevenueCat reports, a slow StoreKit fetch included, so a later price read that succeeds gives the controls back; any other price failure leaves them, since a purchase may succeed. An empty catalogue refuses nothing, because it cannot be told apart from one still loading. Returning null from magic_payments' store rail for a blank key was rejected: its README documents a non-null rail at a blank key, and with no rail the plan cards would show web prices on a store build. MagicStarterProduct.storeIdIn(ManageVia) is the per-store id lookup the gate and MagicStarterPlan.storeProducts share. lib/src/http/controllers/magic_starter_billing_controller.dart, lib/src/models/magic_starter_product.dart, lib/src/models/magic_starter_plan.dart, test/http/controllers/magic_starter_billing_controller_test.dart, test/ui/views/teams/magic_starter_billing_view_test.dart, doc/basics/teams.md

1.8.2

Choose a tag to compare

@github-actions github-actions released this 26 Nov 09:43
09979a8

Fixed

  • A long MSDropdownMenuItem label wraps inside a menu whose panel pins a width, instead of overflowing its row. The row laid the label out as a plain WText in a flex-row, so a label wider than the panel (a translated row, or any row at a large text scale: a consuming app's three-row depth menu overflowed at 1.3x in a w-48 panel) painted the overflow stripe and was clipped. The label is now flex-initial, a loose Flexible, in both the active and the disabled row. flex-1 was rejected because it would stretch an unpinned panel, which sizes to its widest row, to the screen width. lib/src/ui/components/dropdown_menu/dropdown_menu.dart, test/ui/components/dropdown_menu/dropdown_menu_test.dart, doc/basics/components.md

1.8.1

Choose a tag to compare

@github-actions github-actions released this 26 Nov 07:38
dd8a002

Fixed

  • The app layout's notification bell has exactly one name, nav.notifications, so a screen reader no longer reads it twice or with a raw key. magic_notifications 1.2.0 names the bell from notifications.title, and the shell still folded its own nav.notifications label in beside it, so the merged node read "Notifications Notifications" in an app with both keys (a live walk of a consuming app at 1440 wide heard "Bildirimler Bildirimler") and "Notifications notifications.title" in one without the dropdown's key (a semantics probe). The shell now passes its name as the dropdown's semanticLabel and wraps the bell in nothing. Leaving the name to the dropdown whenever the catalogue had notifications.title was tried first and rejected: the raw key still rode along in the other case, and a host that renamed nav.notifications would have lost its name. The tests now assert the merged label a screen reader hears, because find.bySemanticsLabel reads a node's own label and missed the second name. The magic_notifications floor rises to ^1.2.1, the release that takes semanticLabel, and starter:install writes the same constraint into a host. lib/src/ui/layouts/magic_starter_app_layout.dart, lib/src/cli/commands/magic_starter_install_command.dart, test/ui/layouts/magic_starter_app_layout_test.dart, pubspec.yaml, doc/getting-started/installation.md, doc/basics/views-and-layouts.md, CLAUDE.md (#305)

1.8.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 04:39
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

1.7.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 00:41
7110105

Fixed

  • An older "Share usage data" apply can no longer finish after a newer one. Every change to the device's opt-out (a saved switch, the account's answer after a sign-in or restore, the cached choice on boot, the lift on sign-out) now takes its turn in one queue, and a turn includes the host's applyAnalyticsOptOut hook. A hook that awaits, as one combining the account's choice with a device-level consent does, used to be called in order but could finish out of order, leaving the device collecting for an account that had opted out. A sign-in answer is now checked again when its turn comes, so one that went stale behind a slower apply (the account signed out, or a newer save was accepted) is dropped instead of applied; a saved choice is dropped the same way when the account changed while it waited. A hook that throws does not stall the applies behind it. A save that arrives while a slow hook is running waits for that hook. The sign-out lift joins the queue behind it without Auth.logout() waiting, so a hook whose authenticated request loses its token (magic then signs the user out) cannot deadlock the queue. A host hook must not call MagicStarterAnalyticsPreferenceController.updateAnalyticsPreference or its device applies, which would wait on the call it runs inside. lib/src/http/controllers/magic_starter_analytics_preference_controller.dart, lib/src/providers/magic_starter_service_provider.dart

Added

  • MagicStarterAnalyticsPreferenceController.applyCachedOnDevice() and forgetOnDevice(), and an optional isCurrent argument on applyOnDevice(). They are the queued entry points the service provider now uses for the cached choice on boot, the lift on sign-out and a sign-in answer; isCurrent is asked again when the apply's turn comes and a false drops it. applyOptOut() itself stays outside the queue, so a host that calls it directly gets no ordering. lib/src/http/controllers/magic_starter_analytics_preference_controller.dart