Skip to content

feat: Modal disconnect from account details#181

Merged
baillyjamy merged 20 commits into
mainfrom
feat-modal-disconnect
May 18, 2026
Merged

feat: Modal disconnect from account details#181
baillyjamy merged 20 commits into
mainfrom
feat-modal-disconnect

Conversation

@baillyjamy
Copy link
Copy Markdown
Contributor

@baillyjamy baillyjamy commented May 13, 2026

Modal disconnect from account details

Depends on #176

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new 2-step “disconnect/remove account” flow launched from the Account Details screen, implemented as Navigation3 dialog destinations with new warning/confirmation dialogs and updated localized strings.

Changes:

  • Added disconnect/remove warning + confirmation dialogs and wired them into the Navigation3 back stack (DialogSceneStrategy).
  • Extended AccountDetailsUiState.Success with a disconnect configuration to drive dialog content (titles/descriptions/buttons/URLs).
  • Updated strings across multiple locales and added a new info icon vector.

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
gradle/libs.versions.toml Bumps Navigation3 core version to support dialog scene strategy usage.
app/src/main/res/values/strings.xml Adds new disconnect/remove labels and warning copy (EN).
app/src/main/res/values-sv/strings.xml Adds Swedish translations for new disconnect/remove strings.
app/src/main/res/values-pt/strings.xml Adds Portuguese translations for new disconnect/remove strings.
app/src/main/res/values-pl/strings.xml Adds Polish translations for new disconnect/remove strings.
app/src/main/res/values-nl/strings.xml Adds Dutch translations for new disconnect/remove strings.
app/src/main/res/values-nb/strings.xml Adds Norwegian Bokmål translations for new disconnect/remove strings.
app/src/main/res/values-it/strings.xml Adds Italian translations for new disconnect/remove strings.
app/src/main/res/values-fr/strings.xml Adds French translations for new disconnect/remove strings.
app/src/main/res/values-fi/strings.xml Adds Finnish translations for new disconnect/remove strings.
app/src/main/res/values-es/strings.xml Adds Spanish translations for new disconnect/remove strings.
app/src/main/res/values-el/strings.xml Adds Greek translations for new disconnect/remove strings.
app/src/main/res/values-de/strings.xml Adds German translations for new disconnect/remove strings.
app/src/main/res/values-da/strings.xml Adds Danish translations for new disconnect/remove strings.
app/src/main/res/drawable/ic_circle_information_outlined.xml Adds a new info icon used in the warning dialog.
app/src/main/kotlin/com/infomaniak/auth/ui/screen/main/MainScreen.kt Registers DialogSceneStrategy with NavDisplay to render dialog destinations.
app/src/main/kotlin/com/infomaniak/auth/ui/screen/accountdetails/AccountDetailsViewModel.kt Builds a disconnect configuration in UI state and changes account removal behavior.
app/src/main/kotlin/com/infomaniak/auth/ui/screen/accountdetails/AccountDetailsScreen.kt Routes “disconnect/remove” click to navigation with the computed configuration and updates button label for NotConnected.
app/src/main/kotlin/com/infomaniak/auth/ui/navigation/NavigationEntryProvider.kt Adds dialog entries and navigation transitions for warning/confirmation dialogs.
app/src/main/kotlin/com/infomaniak/auth/ui/navigation/NavDestination.kt Adds new dialog destinations for disconnect warning/confirmation.
app/src/main/kotlin/com/infomaniak/auth/ui/components/dialog/DisconnectWarningDialog.kt New warning dialog UI, including “check methods/add step” action.
app/src/main/kotlin/com/infomaniak/auth/ui/components/dialog/DisconnectConfirmDialog.kt New confirmation dialog UI that triggers the configured confirm action.
Comments suppressed due to low confidence (1)

app/src/main/kotlin/com/infomaniak/auth/ui/screen/accountdetails/AccountDetailsScreen.kt:281

  • The preview passes onRemoveAccountClicked = {} but the parameter type is (DisconnectConfiguration) -> Unit. This won’t compile because the lambda is missing the required parameter. Update the preview to accept (and ignore) the parameter.
        AccountDetailsScreen(
            uiState = { AccountDetailsUiState.Success(
                account = accountPairs.first,
                user = accountPairs.second,
                disconnectConfiguration = DisconnectConfiguration.DisconnectSecuredAccount(
                    onConfirmButton = {},
                    accessToken = "fake_access_token",
                )
            ) },
            onLoginPressed = {},
            onBackPressed = {},
            onChallengesRefreshClicked = {},
            onRemoveAccountClicked = {},
        )

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Base automatically changed from feat-security-status to main May 13, 2026 12:52
@github-actions
Copy link
Copy Markdown
Contributor

This PR/issue depends on:

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 25 out of 25 changed files in this pull request and generated 6 comments.

Comment thread app/src/main/kotlin/com/infomaniak/auth/ui/navigation/NavigationEntryProvider.kt Outdated
@sonarqubecloud
Copy link
Copy Markdown

@baillyjamy baillyjamy merged commit 9c4f0d2 into main May 18, 2026
9 checks passed
@baillyjamy baillyjamy deleted the feat-modal-disconnect branch May 18, 2026 11:42
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.

3 participants