Skip to content

feat(NextcloudKitUI): onboarding, login and provider sign-up for the account setup - #278

Merged
mpivchev merged 35 commits into
mainfrom
shared-login-swiftui
Nov 26, 2026
Merged

mpivchev merged 35 commits into
mainfrom
shared-login-swiftui

Conversation

@mpivchev

@mpivchev mpivchev commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #226. Makes NextcloudKitUI cover the whole account setup of the iOS Files app: onboarding, login, provider sign-up and hosting information. The iOS app adopts it in nextcloud/ios#4493.

Login (ServerAddressView, LoginFlowConfiguration)

  • New providerSignUp and hostingInformation links. Sign-up opens an in-app page; "Host your own server" is a plain link at the bottom.
  • The other ways to log in (QR code, accounts from other apps, sign-up) are bordered secondary buttons below an "or", side by side in compact height.
  • New serverAddressPrompt to replace the address field's placeholder.
  • The QR code scanner closes on an error and shows it afterwards; camera access is checked before it opens.
  • Drops the macOS conditionals and the options only the old pushed login used (startsLoginOnAppear, embedsNavigationStack).

Provider sign-up (ProviderSignUpView, ProviderSignUpModel)

  • Ports the iOS app's sign-up web view rules: the OCS-APIRequest header on every page, ocsapi=1, a 20 s timeout, callback detection, error pages with Retry, and opening non-web links externally.
  • The bar takes the page's color.
  • Sign-up credentials refused with a 401 restart the login for that server, as on Android.

Onboarding

  • The text fades in, and the button has the continueOnboarding identifier for UI tests.

Tests

  • New ProviderSignUpModelTests; LoginFlowModelTests cover the sign-up result and the 401 restart.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

🤖 Generated with Claude Code

mpivchev and others added 27 commits November 19, 2026 17:02
- URL sanitizing trims whitespace, defaults bare hosts and host:port to
  https, keeps the leading slash when dropping a trailing index.php below
  a path prefix, drops query and fragment, and can upgrade http to https.
- Login codes accept a custom scheme, reject empty values and report
  localized errors.
- New public LoginCallbackParser for the <scheme>://login/ URL a server
  or sign-up provider redirects to, with percent and '+' decoding.
- New LoginPollingPolicy classifying transient poll errors.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
ServerAddressView takes a LoginFlowConfiguration so apps with branding,
managed configuration or their own certificate handling can adopt it:

- Prefilled, read-only or picker-based server address, custom hint text
  and foreground color, optional cancel button.
- onServerError hook to retry (e.g. after trusting a certificate or
  falling back to http), cancel or show the error.
- Configurable callback scheme; a login page redirecting to it completes
  the login without waiting for the next poll.
- AddAccountHandler is async throwing; the view stays busy until the host
  has added the account and shows a thrown error.
- Polling survives network blips and ends after the token lifetime.
- QR scanner closes on scan, has a flashlight and cancel button, and a
  denied camera permission offers Open Settings.
- Accessibility identifiers for UI tests; the view can join an existing
  navigation stack.
- SharedAccount optionally carries the login name.

Existing callers keep compiling: the new parameter is defaulted and a
synchronous closure still satisfies AddAccountHandler.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
A failed login flow request after a reachable server check is shown
directly, as an http fallback or certificate prompt would not help.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
"https:/host" and "https:host" were read as a host named "https". The
scheme is now completed to "https://" before the address is parsed.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…added

The cancel button was disabled for the whole login, so a slow server
check could not be left. It is now only disabled while the host adds
the account, and a cancel during the server error recovery is no longer
overridden by its retry.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…gs in

The scanner closed as soon as it read a code, so nothing showed that a
login was in progress. It now stays open with a progress overlay, its
buttons and swipe-to-close disabled, until the host has added the
account. Errors are shown in the scanner, which then scans again;
camera failures close it with the alert. Each code is read once, so a
code that failed does not retry in a loop while it is still in view.

The sheet moved out of the login form, so it no longer inherits the
form's disabled state and brand tint.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…amera

The camera preview runs under the scanner's navigation bar, so on a
device its title and buttons could disappear against the dark image.
The bar now has its own background.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…gets a 404

A 404 while adding the account showed "The file or folder could not be
found on the server." It now uses the login's own "No server was found
at this address.", while an unreadable reply keeps the generic text, as
it can come from a proxy in front of a server that exists.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
LoginFlowConfiguration.startsLoginOnAppear starts the login for the
initial server address once, as soon as the view appears, and skips the
shared accounts suggestion. A host uses it for a server the user just
signed up on but whose sign-up credentials don't work. Off by default.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
A web view that sends the OCS API header with every page load, shows
load errors with a retry, and reports the login callback URL the
sign-up ends on. Ported from the Files app.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…on the login screen

Both are optional links in the design of the Scan QR Code button. The
sign-up result adds the account like a login QR code; when the server
refuses its credentials, the login starts again for that server. The
form scrolls where it does not fit, such as on phones in landscape.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…n used

Files no longer pushes a login, so startsLoginOnAppear and
embedsNavigationStack have no user. Neither was released.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…its error

The scanner read each code only once while it was open, so a code that
failed could not be tried again. It now reads continuously and ignores
a failed code only while it stays in front of the camera. The camera
preview stays below the bar, which kept no visible background over it.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
The scrolling form drew the scroll edge effect behind the bars.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Scan QR Code, the provider sign-up and the hosting link share one
prominent button style in the foreground color, glass on iOS 26.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
The login view shows the error once the scanner has closed, and the
user opens the scanner again to retry. Denied or restricted camera
access and a missing camera are reported before the scanner opens,
since the scanner reports them late or not at all. The camera runs
under a material bar, which keeps the title readable over it.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
As in Safari, the bar takes the page's theme color, or its background,
with a title that stays readable on it. It no longer shows the window
background above a page of another color.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
The QR code button now reads "Log in with QR code", and the buttons
are smaller. Their labels wrap, and they stack at accessibility text
sizes.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…ottom

The prominent glass buttons are as wide as the server address field
and large. The hosting link sits apart at the bottom of the screen.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
The title and the features fade in one after another, sliding up
slightly unless Reduce Motion is on.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
The views only run on iOS today; macOS support can be added again when
an app needs it. The desktop client uses NextcloudKit, not this module.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Replace the toolbar entry for accounts from other apps with a full-width
action button next to the QR code and provider sign-up buttons, and stop
auto-presenting the shared accounts sheet on appear.

Also drop the remaining macOS conditionals from ServerAddressView and
tweak the spacing around the brand image, the address field and the
action buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
The other ways to log in use bordered buttons tinted with the foreground color, so the server address stays the main action. The form follows the background's appearance, and "Host your own server" is a plain text button.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…lder

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
mpivchev and others added 2 commits November 26, 2026 12:14
Inline the error alert back into ServerAddressView and fold the content
property into body. Replace the one-case AlertAction with a Bool and drop
dismissAlert(), since the alert clears its binding itself. Collapse the
host text overrides into single Text views, inline actionsMaxWidth, use the
VStack spacing instead of a spacer, drop a stale "iOS only." remark, and
remove the stray empty catalog key and restore its trailing newline.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Setting onCancel now shows the cancel button, replacing showsCancelButton. The polling timeout becomes a private constant, as it follows the server's token lifetime. LoginFlowModel keeps one task for the whole login, polling inline after the login page opens, and treats a missing server error handler as presentError.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
mpivchev and others added 6 commits November 26, 2026 12:16
Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Drop the server-redirect callback check, which the navigation policy already covers, and the two forwarding seams pageDidFinish() and webContentProcessDidTerminate(); the tests now call the delegate methods. The model keeps the page color as a SwiftUI Color, WebView builds its web view directly in makeUIView(context:), and the optional user agent is assigned without an if let.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Remove the public LoginCallbackParser and make LoginCredentials internal again, since no app uses them. The login callback is now parsed by parseLoginCallback in QRCodeParsing, next to parseLogin, and the test-only parse(_:) requirement is gone. Parser tests become one invalid-code table plus the callback cases. The always-true isEmpty checks on user and password are dropped.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Drop the empty-input guard, which the host check already covers, and build the path with its trailing slash in one step. Remove the lowercasesScheme test, which repeats a mistypedSchemeSlashes row, and the swiftlint comments in ProviderSignUpModelTests, which have no effect because Tests is excluded from linting.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…d servers

With enforcedServers set, a QR code, a one-time QR code or a provider sign-up for another host is refused, and accounts of other apps on other hosts are not offered. Hosts match without regard to letter case, as on Android.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
@mpivchev
mpivchev marked this pull request as ready for review November 26, 2026 11:53
@mpivchev
mpivchev enabled auto-merge (squash) November 26, 2026 11:53
@mpivchev
mpivchev disabled auto-merge November 26, 2026 11:56
@mpivchev
mpivchev merged commit 5898f5d into main Nov 26, 2026
6 checks passed
mpivchev added a commit to nextcloud/ios that referenced this pull request Nov 26, 2026
7.7.0 contains the shared onboarding, login and provider sign-up of nextcloud/NextcloudKit#278.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
mpivchev added a commit to nextcloud/ios that referenced this pull request Nov 26, 2026
…ing and login (#4493)

* chore: use local NextcloudKit-shared-login package

Temporary: points NextcloudKit and NextcloudKitUI at the sibling
worktree. Swap back to a tagged NextcloudKit release before merging.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* feat: host the shared NextcloudKitUI login

NCLoginHostingController shows NextcloudKitUI's ServerAddressView. Its
NCLoginCoordinator maps the brand and MDM options to the login
configuration, offers the untrusted-certificate and http fallback
prompts, runs the managed-configuration auto-login, lists accounts of
other Nextcloud apps and creates the account. NCProviderSignUp handles
signing up with a provider through the login callback URL.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fixup! feat: host the shared NextcloudKitUI login

Add the login sources to the Nextcloud target and Login group, and the
tests to NextcloudUnitTests, instead of Action Assistant and
NextcloudUITests.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* refactor: replace the UIKit login with the shared NextcloudKitUI login

Every login entry point (window root, add-account modal, Intro push)
now shows NCLoginHostingController. NCAccount.createAccount throws
instead of presenting its own alert, so the login view can show the
error and stay usable.

Remove the old login screens (NCLogin, NCLoginProvider, NCLoginQRCode,
NCShareAccounts), the QRCodeReader package, the unused client
certificate delegate, the login-flow v2 state in AppDelegate and the
English strings only they used.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: harden the managed configuration auto-login

Accounts of other apps are not suggested while the managed
configuration logs in by itself, because their sheet would keep the
login screen from closing. Managed server and user values are trimmed,
and an invalid server address shows an error instead of doing nothing.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: stop offering a removed account to other apps

The shared accounts file kept a removed account until the next export,
so the login shown right after removing it offered that account again.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* refactor: drop the login status bar override and empty string sections

The override only applied when the login was pushed from the intro, as
the embedded navigation stack decides otherwise. The old login used the
default style too.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: hand the provider sign-up back to the app

Signing up with a provider ended on the provider's web home screen. The
sign-up page only returns the app login URL to page loads that carry the
OCS API header, which a browser session cannot send. Show the sign-up in
a web view that sends the header and the app user agent, as before the
browser session, and add the account from the nc://login/ URL it ends on.

nextcloud.com caches the sign-up page without regard to the header, so
the first load adds a query to get a fresh page.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: show an error when the provider sign-up page does not load

The sign-up web view stayed blank when the page failed to load, for
example while nextcloud.com is unreachable. It now shows the error with
Retry and Close. Loads the web view replaces itself are not reported.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: close the QR code scanner together with the login

The QR code scanner now stays open while its code logs in. The login
is dismissed from its presenter so the scanner sheet closes with it,
and a login replaced as the window root dismisses what it still shows.
Only a sheet that is already closing is waited for before adding the
account.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: always show why the provider sign-up page does not load

The sign-up page could end on a blank screen without an error: a dead
server only showed a spinner for a minute, the spinner vanished after
the first redirect, HTTP error pages loaded as if they were fine, and a
connection refused while the screen slid in dropped its alert.

The first load now starts once the screen is shown, loads give up after
20 seconds without data, error responses and empty or unshowable pages
show NextcloudKit's readable message, and the screen keeps its own
spinner while loading. Retry loads the page that failed, a redirect
loop ends in an error, a crashed web content process reloads once, and
errors after the sign-up completes show in the sign-up's own window.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: show an error when the server answers the profile request with another page

A reply that is no profile, such as the login page of a proxy, has no
error kind, so the sign-up and managed configuration banners showed
nothing. It is now reported as an invalid response.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: show the readable error instead of the http prompt when offline or the host is unknown

Without a network or with a mistyped host name, the login offered to
retry over insecure http, saying a secure connection had failed. Plain
http can't help in those cases, so NextcloudKit's readable message is
shown instead. Other https failures still offer the fallback, which is
how http-only servers are reached.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: say no server was found when adding an account gets a 404

The managed configuration and provider sign-up banners said "The file
or folder could not be found on the server." for a 404 while adding the
account. A new login error context titles them "Couldn't log in" and
words a 404 as "No server was found at this address."; other errors
keep NextcloudKit's readable message. A kind-less reply to the app
password request is reported as an invalid response instead of nothing.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: log in to the new account when the server refuses the sign-up credentials

Providers running the current preferred_providers app hand over a
temporary session token after the sign-up, which Nextcloud 33 refuses,
so adding the account failed with 401. The sign-up now opens the login
for the provider's server and starts it right away, so the user logs in
to the new account in the browser and the app gets a lasting app
password. The managed configuration auto-login doesn't run there.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* refactor: move the navigation controller status bar override out of the intro

The override applies to the whole app, so it lives with the other
navigation controller extensions before the intro goes away.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* feat: account setup in SwiftUI with the shared onboarding and login

NextcloudKitUI's onboarding replaces the intro carousel, and its login
offers signing up with a provider and hosting a server, unless the brand
disables the intro. One SwiftUI view and its model replace the intro,
the login hosting controller, the login coordinator and the UIKit
sign-up page. The certificate and insecure connection prompts are
SwiftUI alerts.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* chore: remove the unused intro images and string

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* feat: keep the onboarding and login in portrait on iPhone

The app delegate allows only portrait while the account setup is shown,
including the pages it presents, and the Info.plist orientations
otherwise.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* refactor: reword why shared accounts are hidden during the managed login

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: bring back the "Server address https:// …" placeholder on the login

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: show the onboarding only once

Continuing the onboarding is remembered in the preferences, so later launches without an account open the login directly. UI tests accept either screen.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* chore: use the NextcloudKit shared-login-swiftui branch

Replaces the local package reference with the branch of nextcloud/NextcloudKit#278, so CI can build this. Switch to a release once that is merged.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* chore: update the package pins hash for the NextcloudKit branch

Assisted-by: Claude Code:claude-fable-5-2
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* refactor: trim account setup leftovers

Fold the managed auto-login error banners into one do/catch, set onCancel only
when the cancel button should show (NextcloudKit drops showsCancelButton),
replace the certificate details delegate and coordinator with an onClose
closure, drop the unused intro selector constants and NCAccount.appDelegate,
fix the stale transition comment and merge the cancelled classifier test into
the unreachable cases.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* style: put the managed login's URL guard body on its own lines

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* chore: update NextcloudKit to the simplified shared-login-swiftui branch

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* fix: trust a server certificate only after the prompt

Adding an account copied the last certificate the server presented into the trusted ones. A second QR code scan for a server with an untrusted certificate was therefore trusted without asking. Certificates are now trusted only from the certificate prompt.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* chore: update NextcloudKit for the enforced server check on QR code logins

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

* chore: use NextcloudKit 7.7.0

7.7.0 contains the shared onboarding, login and provider sign-up of nextcloud/NextcloudKit#278.

Assisted-by: Claude Code:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>

---------

Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant