From 0a71af9b945107933c946a5de3e89ef592bbbcfb Mon Sep 17 00:00:00 2001 From: Felitendo Date: Mon, 14 Sep 2026 14:48:32 +0200 Subject: [PATCH] fix: route the onboarding checklist at the account chooser --- README.md | 5 +- patches/0004-Add-offline-accounts.patch | 53 +++++++++++++++---- patches/0005-Make-the-sidebars-foldable.patch | 2 +- patches/0006-Add-Ely.by-accounts.patch | 2 +- ...icrosoft-in-the-player-s-own-browser.patch | 2 +- scripts/check.sh | 2 + 6 files changed, 50 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2f61df0..76d2aef 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,9 @@ The player UUID is derived exactly the way Minecraft itself derives it — an MD launcher. Offline accounts can play singleplayer and join servers running in offline mode. Servers in online mode reject them, as they do in every other launcher. -Both sit next to "Sign in to Microsoft" in the account card, and in the "Minecraft required" modal -you get when pressing Play with no account. +Both sit next to "Sign in to Microsoft" everywhere an account can be added: the account card, the +modal you get when pressing Play with no account, and "Sign in to Minecraft" in the getting started +checklist. Upstream offered Microsoft and nothing else at all three. ### Microsoft sign-in diff --git a/patches/0004-Add-offline-accounts.patch b/patches/0004-Add-offline-accounts.patch index b7fd4d8..c92c898 100644 --- a/patches/0004-Add-offline-accounts.patch +++ b/patches/0004-Add-offline-accounts.patch @@ -22,24 +22,31 @@ data when they are opened elsewhere. Usernames are validated the way Mojang validates them: 3 to 16 characters of letters, numbers and underscores. -Two places had to be opened up for any of this to be reachable. The -account card was hidden until a Microsoft account had been added, which -left offline sign-in unreachable for exactly the people who want it, and -the "Minecraft required" modal - what you actually hit on pressing Play -with no account - offered Microsoft and nothing else. +Three places had to be opened up for any of this to be reachable, all of +which offered Microsoft and nothing else: + +* The account card was hidden until a Microsoft account had been added, + which left offline sign-in unreachable for exactly the people who want + it. +* The "Minecraft required" modal - what you hit on pressing Play with no + account - now lists the alternatives too. It is no longer only about + something being required, so it is titled "Sign in to Minecraft". +* "Sign in to Minecraft" in the getting started checklist went straight + to Microsoft. It opens that same modal now, so every way in offers the + same choice. --- Cargo.lock | 1 + Cargo.toml | 1 + - apps/app-frontend/src/App.vue | 10 +- + apps/app-frontend/src/App.vue | 12 +- .../src/components/ui/AccountsCard.vue | 30 ++++ .../src/components/ui/OfflineAccountModal.vue | 136 ++++++++++++++++++ - .../MinecraftRequiredModal.vue | 26 +++- + .../MinecraftRequiredModal.vue | 30 +++- apps/app-frontend/src/helpers/auth.js | 13 ++ apps/app/src/api/auth.rs | 7 + packages/app-lib/Cargo.toml | 1 + packages/app-lib/src/api/minecraft_auth.rs | 39 +++++ packages/app-lib/src/state/minecraft_auth.rs | 68 +++++++++ - 11 files changed, 327 insertions(+), 5 deletions(-) + 11 files changed, 330 insertions(+), 8 deletions(-) create mode 100644 apps/app-frontend/src/components/ui/OfflineAccountModal.vue diff --git a/Cargo.lock b/Cargo.lock @@ -67,10 +74,16 @@ index a4a779c..a85f576 100644 modrinth-log = { path = "packages/modrinth-log" } modrinth-util = { path = "packages/modrinth-util" } diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue -index 6e7b27d..532f104 100644 +index 6e7b27d..e5c6fd4 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue -@@ -2472,10 +2472,12 @@ provideAppUpdateDownloadProgress(appUpdateDownload) +@@ -2467,15 +2467,17 @@ provideAppUpdateDownloadProgress(appUpdateDownload) + > +