Skip to content

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:

bash
./upgrade-patch.sh 0.10.1
git apply -3 upgrade.patch

Expect 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: Layout is now the frame of the public pages (and of the whole app without accounts), and AppShell the signed-in one (sidebar on wide screens, a top bar and menu on phones). Links you added to the header go in AppShell's navigation, as a NavItem.
  • src/Client/src/features/account/AccountNavigation.tsx: the navigation is a list of NavItems 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.

  • Settings is three pages: /settings (profile), /settings/security and /settings/preferences. /settings/notifications redirects to Preferences. Update links of your own to a part of Settings, and move anything you added to SettingsPage.tsx to its tab: it now exports ProfileSettings, SecuritySettings and PreferenceSettings, one per tab.
  • The organisation (with organisations) is /organisation (general), /organisation/members, /organisation/billing and /organisation/integrations, and a new one is /organisation/new. Stripe's checkout and portal return to /organisation/billing already (the URLs are sent with each request, so there's nothing to change in Stripe's dashboard).
  • Emails sent before the upgrade link to /settings or /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's appName, 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 from src/<App>/Internal/Generated/ were committed by mistake, remove them from git with git rm -r --cached src/<App>/Internal/Generated.
  • Bigger controls on phones: button.tsx, input.tsx and native-select.tsx are 40px tall below md. If you changed these shadcn components, keep the max-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 have openFromNav and openTab. 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.

Documentation for v0.10.1. Released under the MIT licence.