Upgrading to v0.10.1
v0.10.1 changes how the app looks and is laid out, and adds a CI workflow. There are no database migrations, no new settings and no API changes apps depend on. Most of the work is in the client, and how much there is depends on how far you've changed the layout.
Start from v0.10.0. At your app's root:
./upgrade-patch.sh 0.10.1
git apply -3 upgrade.patchExpect conflicts in the layout
The header is replaced by a sidebar (with accounts), so if you changed it, these files will have conflicts:
src/Client/src/components/Layout.tsx:Layoutis now the frame of the public pages (and of the whole app without accounts), andAppShellthe signed-in one (sidebar on wide screens, a top bar and menu on phones). Links you added to the header go inAppShell's navigation, as aNavItem.src/Client/src/features/account/AccountNavigation.tsx: the navigation is a list ofNavItems with icons, in groups. Re-add your own links there; step 9 of the tutorial ("The page") shows how.src/Client/src/App.WithIdentity.tsx/App.Saas.tsx: which frame to show, and what goes in it.
It's often quicker to take the template's version of these files (git checkout --theirs <file> after a conflicted apply) and add your links back than to merge them line by line.
Pages of your own still work as they are. To match the new ones, wrap each in Page (from components/Page.tsx), which gives it its heading, width and spacing: see the tutorial's Contacts page.
Links that moved
- Settings is three pages:
/settings(profile),/settings/securityand/settings/preferences./settings/notificationsredirects to Preferences. Update links of your own to a part of Settings, and move anything you added toSettingsPage.tsxto its tab: it now exportsProfileSettings,SecuritySettingsandPreferenceSettings, one per tab. - The organisation (with organisations) is
/organisation(general),/organisation/members,/organisation/billingand/organisation/integrations, and a new one is/organisation/new. Stripe's checkout and portal return to/organisation/billingalready (the URLs are sent with each request, so there's nothing to change in Stripe's dashboard). - Emails sent before the upgrade link to
/settingsor/settings/notifications, which still work.
The CI workflow
The patch adds .github/workflows/ci.yml. If you already wrote one at that path, git apply reports that it exists: compare the two, keep what suits you, and apply the rest with git apply -3 --exclude=.github/workflows/ci.yml upgrade.patch. The workflow starts the published app with settings of its own for the end-to-end tests (an admin email, a higher sign-in rate limit, email through Mailpit): if you added required settings, add them to its "Publish and run" step.
Smaller changes
- The display name: if you replaced the visible name by hand (page titles,
PageMeta.tsx'sappName,root.tsx, the two-factor issuer, the email sender), nothing changes. New apps set it with--DisplayName. The patch adds"displayName"to.saas-starter.json, set to your app's name: change it to the visible name you use, so later patches are made with it. .gitignore:Internal/Generated/is now**/Internal/Generated/. If files fromsrc/<App>/Internal/Generated/were committed by mistake, remove them from git withgit rm -r --cached src/<App>/Internal/Generated.- Bigger controls on phones:
button.tsx,input.tsxandnative-select.tsxare 40px tall belowmd. If you changed these shadcn components, keep themax-md:classes. - Tests: fields on the sign-in and account pages are found by their visible label (
getByLabel) rather than their placeholder, and the end-to-end helpers haveopenFromNavandopenTab. Tests of your own that click through the old header need the same change. - The home page is an example for customers: replace its words with your product's.