Files
Marino Faggiana 48d27f2ca9 refactor: migrate app passcode flows to SwiftUI (#4419)
* feat: add shared SwiftUI passcode component

Support passcode authentication, creation, changes and removal with biometrics and shared lockout protection. Keep the existing passcode flow active until callers are migrated.

Signed-off-by: Marino Faggiana <[email protected]>

* feat: migrate settings to SwiftUI passcode flow

Update lock settings after passcode completion and handle reset results. Add toolbar dismissal and require the current passcode when changing it.

Signed-off-by: Marino Faggiana <[email protected]>

* fix: authenticate E2EE actions with the shared passcode view

Require authentication in Debug builds and verify the account before executing E2EE actions. Present cancellable passcode flows as sheets and handle completion during dismissal.

Signed-off-by: Marino Faggiana <[email protected]>

* refactor: migrate app passcode flows to NCPasscodeView

Use the shared passcode view for app unlock and enforced setup. Scope lifecycle handling to the presenting window scene and cancel optional operations when backgrounded.

Signed-off-by: Marino Faggiana <[email protected]>

* refactor: migrate passcode flows to shared SwiftUI components

Replace TOPasscode in the main app and Share Extension, remove the legacy implementation, and add passcode UI tests.

Signed-off-by: Marino Faggiana <[email protected]>

* Acknowledgements update

Signed-off-by: Marino Faggiana <[email protected]>

* fix

Signed-off-by: Marino Faggiana <[email protected]>

* fix: preserve passcode reset threshold across lockouts

Clear only the retry counter and lockout deadline when the delay expires. Add UI coverage verifying app reset after ten failures across lockouts.

Signed-off-by: Marino Faggiana <[email protected]>

* fix: keep app passcode lock above sheets and alerts

Present the mandatory lock in a dedicated window per scene and preserve underlying UI after unlocking.

Add UI regression coverage, improve authentication test handling, and enforce CI test timeouts with retained diagnostics.

Signed-off-by: Marino Faggiana <[email protected]>

* fix: wait for HTTP fallback in UI test login

Allow the initial HTTPS request to time out before expecting the localhost authentication page, and skip UI queries against authentication services that are not running.

Signed-off-by: Marino Faggiana <[email protected]>
Assisted-by: Codex:GPT-6

* CI

Signed-off-by: Marino Faggiana <[email protected]>

* CI

Signed-off-by: Marino Faggiana <[email protected]>

* CI

Signed-off-by: Marino Faggiana <[email protected]>

* CI

Signed-off-by: Marino Faggiana <[email protected]>

* size button

Signed-off-by: Marino Faggiana <[email protected]>

* fix: avoid redundant transfer and auto-upload state updates

Preserve the auto-upload suspension message until all reads finish, and discard cancelled or stale refreshes.

Signed-off-by: Marino Faggiana <[email protected]>

* added NCPasscodeView.embed

Signed-off-by: Marino Faggiana <[email protected]>

* fix: correct share extension passcode layout

Embed the passcode view in the content controller while hiding the enclosing navigation bar, and constrain its width to the available space.

Signed-off-by: Marino Faggiana <[email protected]>

* fix: enforce app lock after failed passcode attempts

Preserve mandatory authentication across scenes and relaunches after lockout. Require biometric authorization before enabling Touch ID or Face ID, add passcode error feedback, and update lockout UI tests.

Signed-off-by: Marino Faggiana <[email protected]>

* fix: stabilize passcode UI tests and run them for relevant changes

Shorten reset-test lockouts and let XCTest terminate the app after observing completed cleanup to avoid TSan exit issues. Run passcode UI tests when related files change and increase CI test timeouts.

Signed-off-by: Marino Faggiana <[email protected]>

---------

Signed-off-by: Marino Faggiana <[email protected]>
2026-10-28 07:57:01 +01:00
..
2025-02-25 11:06:07 +01:00
2025-03-25 15:21:26 +01:00
2026-03-17 12:30:11 +01:00
2026-03-17 12:30:11 +01:00
2025-02-25 11:06:07 +01:00