Repository navigation
Releases
1.11.0
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.
MagicStarterTeamInvitationAcceptViewloads the backend's publicGET /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 withnext,emailandinvitationin the query; only withregistrationon) and "Sign in" (the login route withnext), 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 withconfirm_email_mismatch: true, and "Use another account", which signs out and opens the sign-in screen with anextback to the invitation. A403 wrong_emailkeeps the server's message and offers only "Use another account"; a410and a404get their own "Invitation expired" and "Invitation not found" cards.MagicStarterTeamControllergainsfetchInvitationPreview(token),useAnotherAccount(token)and the stateinvitationPreview,invitationIssueandinvitationMaskedEmail, with the newMagicStarterInvitationPreviewandMagicStarterInvitationIssue(notFound,expired,emailMismatch,wrongEmail). It needs the nextmagic-starter-laravelrelease, which adds the preview endpoint and the409 email_mismatch,403 wrong_emailand410answers of the accept call. The English copy ships asteams.invitation_*inassets/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.
MagicStarterRegisterViewreads?email=into the email field and?invitation=once when it opens, andMagicStarterAuthController.doRegistertakes the newinvitationargument, sent asinvitationwhileteamsis on. When the answer logs the user in and carries a top-leveljoined_team, the controller drops an intended url that points at the invitation, showsteams.invite_acceptedand lands home throughnavigateHome(); a registration without that answer behaves as before.NavigatesRoutesgainsforgetIntendedPath(path), which drops the stored intended url when its path ispathand 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.guestgroup registers under the newMagicStarterLayoutIds.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(.*)behindauth, 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, whichregisterMagicStarterAuthRoutes()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/acceptis no longer behindauth; it renders inlayout.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 andlayout.guest, while create and settings stay behindauthinlayout.app. A host that overridesteams.invitation_accepthas to handle a visitor with no session (readAuth.check()andMagicStarter.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.mdMagicStarterTeamController.doAcceptInvitationnavigates home by itself and takesconfirmEmailMismatch. On success it restores the session, toaststeams.invite_accepted, drops an intended url pointing at the invitation and callsnavigateHome(), so the view no longer navigates; a host view that didMagicRoute.to(homeRoute)after atrueanswer has to stop, or it navigates twice.confirmEmailMismatch: truesends{confirm_email_mismatch: true}in the body. A409 email_mismatchis not an error: it answersfalseand setsinvitationIssueandinvitationMaskedEmailfor the view to ask. The controller now mixes inNavigatesRoutes.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
Fixed
-
A sign-in that a gated link bounced now returns to the link with its query.
EnsureAuthenticatedoverroderedirectTarget, 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 overridesredirectTargetFor, records the full uri (?code=ABCincluded) throughMagicRouter.setIntendedUrl, and still matches the login route and the guest-only auth routes on the path alone. Themagicfloor rises to^1.4.0, the release that adds the hook. A host subclass that overroderedirectTargetonEnsureAuthenticatedis no longer reached and has to overrideredirectTargetFor.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.
remainingnotifies 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-32in ap-2frame, the code attext-3xl, the address attext-baseand 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 frommdup, 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 newMagicStarterDeviceCodeController.remaining(ValueListenable<int>) and only the countdown text listens;secondsRemainingstill reads the value. A host's ownauth.device_codeview that readsecondsRemaininginbuildhas to listen toremainingfor 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
429showed "Something went wrong. Check the connection and try again."; it now shows the newmagic_starter.device_approve.throttledstring, "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 fromassets/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
Added
- Device-code sign-in for a device that cannot type in (an Apple TV), behind the new
features.device_codetoggle. Two screens and two controllers. The TV screen (auth.device_code,MagicStarterDeviceCodeView, guest route/auth/device) asksPOST auth/device/codefor a pair, shows theXXXX-XXXXcode, the verification address and a QR code of the address with the code in it, then pollsPOST auth/device/token, never sooner thanintervalseconds after the previous answer, and concludes throughcompleteSignIn; 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=behindauth) 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 itsentryquery 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 throughconfirmIdentityon a 423.MagicStarterConfig.hasDeviceCodeFeatures(),deviceCodeRoute()anddeviceApproveRoute()read the toggle and the two paths, the config helper and the install stubs know the key, and the English strings ship undermagic_starter.device_code.*,magic_starter.device_approve.*andmagic_starter.titles.device_code/device_approve; an app installed earlier merges them into its own lang files fromassets/stubs/install/en.stub. Whiledevice_codeis on,EnsureAuthenticatedtreats 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 thedevice-codefeature onmagic-starter-laravel. The screen draws the QR code with the new direct dependencypretty_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
Fixed
- A keyboard or TV remote focus on
MSSettingsNavRow, and on a tappableMSSettingsRow, now draws a ring, so a remote user can see which settings row is focused; a host colours it through the newMagicStarterNavigationTheme.settingsRowFocusClassName. Neither recipe had afocus: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 isfocus:ring-2 focus:ring-insetinprimary-500(primary-400dark): inset becauseMSSettingsSectionclips 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 withoutonTapgets no focus classes, because afocus:class alone makes aWDiva 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
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. OnMagicPlatform.isTvOS,MagicStarterStoreReview.maybeRequestandcanOpenStoreListingstay quiet (the platform prohibits the review sheet),MagicStarterAppBuild.isStoreInstallanswersfalse,MagicStarterAppUpdateBannerrenders nothing and starts no check (so it never reads the package info, which tvOS may not implement, nor marks the session inert), andMagicStarterSupportClientContext.collectreportstvOSas the platform. iOS and Android answers are unchanged. Themagicfloor rises to^1.3.0, the release that shipsMagicPlatform.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
Fixed
- A store build whose store cannot transact no longer shows "Restore purchases" or a store purchase button. The store gate (
offersStorePurchase, andcanPurchaseViaStorewith it) checked only that the build has a store rail, and on iOS and AndroidPayments.storeis 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 withBillingErrorCode.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. Returningnullfrommagic_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 andMagicStarterPlan.storeProductsshare.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
Fixed
- A long
MSDropdownMenuItemlabel wraps inside a menu whose panel pins a width, instead of overflowing its row. The row laid the label out as a plainWTextin aflex-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 aw-48panel) painted the overflow stripe and was clipped. The label is nowflex-initial, a looseFlexible, in both the active and the disabled row.flex-1was 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
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 fromnotifications.title, and the shell still folded its ownnav.notificationslabel 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'ssemanticLabeland wraps the bell in nothing. Leaving the name to the dropdown whenever the catalogue hadnotifications.titlewas tried first and rejected: the raw key still rode along in the other case, and a host that renamednav.notificationswould have lost its name. The tests now assert the merged label a screen reader hears, becausefind.bySemanticsLabelreads a node's own label and missed the second name. Themagic_notificationsfloor rises to^1.2.1, the release that takessemanticLabel, andstarter:installwrites 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
Added
-
MSSpinner, a wind spinner that follows the host'sprimaryanddark:setup. It is a spinningWIcon(animate-spin) in three sizes (SpinnerSize.sm,mdandlg: 16, 20 and 32 px) colouredtext-primary-600 dark:text-primary-500, the shades thebg-primaryalias uses, with aspinnerRecipeand a catalog preview; aclassNameis appended after the recipe, so a spinner on a filled surface passes its text role (text-on-primary). Material'sCircularProgressIndicatorcould 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 -
MSComboboxtakesitemBuilderandemptyBuilder, 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 onWFormSelect(searchable: true)because the component forwarded neither, which bypassed the starter's recipe and theme. Both are optional, typed asWSelect's ownSelectItemBuilder<T>andEmptyStateBuilder, and pass straight through, sonullrenders exactly as before; the menu surface stays reachable throughclassNames['popup']. (#295)lib/src/ui/components/combobox/combobox.dart,doc/basics/components.md -
MSButtontakesfocusNodeandautofocus, 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 ownFocus, which added a second focus stop or fought the one inside. Both forward toWButtonand through it to theWAnchorfocus 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 thewind_kitfloor to ^1.13.0, the first release whoseWButtontakes 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 aWDiv; 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. TheMSButton.fullWidthdoc and the components rule blamed Material widgets for ignoring cross-axis stretch, butWButtonandWInputhave no Material ancestry; aColumnchild is simply not stretched unless the column asks, so theSizedBox(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.
WPopoverlays its panel out in an invisible measuring frame first, so the dropdown menu test pumps a second frame before tapping an item, and a loadingWButtonkeeps 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; nolib/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, andMSAccordion's chevron was a bareIconcoloured by the ambientIconTheme, so a host with a non-blueprimaryor dark mode saw Material's defaults on those screens. The spinners are now oneMSSpinnereach (the send circle passestext-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 aWIconstyled by a newiconslot inaccordionRecipe(text-[18px] text-fg), soclassNames: {'icon': ...}recolours or resizes it and it carries itsdark:pair through the alias. OnlyIconsstay 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
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
applyAnalyticsOptOuthook. 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 withoutAuth.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 callMagicStarterAnalyticsPreferenceController.updateAnalyticsPreferenceor 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()andforgetOnDevice(), and an optionalisCurrentargument onapplyOnDevice(). 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;isCurrentis asked again when the apply's turn comes and afalsedrops 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