Skip to content

feat: Event disconnected#182

Merged
baillyjamy merged 11 commits into
mainfrom
feat-event-disconnected
May 18, 2026
Merged

feat: Event disconnected#182
baillyjamy merged 11 commits into
mainfrom
feat-event-disconnected

Conversation

@baillyjamy
Copy link
Copy Markdown
Contributor

Depends on #181

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 “account disconnected” priority event surfaced to the user via the same dialog mechanism previously used for “password changed”, and wires the event into MainScreen.

Changes:

  • Added new localized strings for the “account disconnected” event title/description across supported locales.
  • Generalized the existing password-changed alert into PriorityEventAlertDialog with a PriorityEventAlert enum.
  • Displayed the new disconnected-account priority dialog from MainScreen using viewModel.accountsDisconnected.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
app/src/main/res/values/strings.xml Adds default (EN) strings for the disconnected-account alert.
app/src/main/res/values-da/strings.xml Adds Danish strings for the disconnected-account alert.
app/src/main/res/values-de/strings.xml Adds German strings for the disconnected-account alert.
app/src/main/res/values-el/strings.xml Adds Greek strings for the disconnected-account alert.
app/src/main/res/values-es/strings.xml Adds Spanish strings for the disconnected-account alert.
app/src/main/res/values-fi/strings.xml Adds Finnish strings for the disconnected-account alert.
app/src/main/res/values-fr/strings.xml Adds French strings for the disconnected-account alert.
app/src/main/res/values-it/strings.xml Adds Italian strings for the disconnected-account alert.
app/src/main/res/values-nb/strings.xml Adds Norwegian Bokmål strings for the disconnected-account alert.
app/src/main/res/values-nl/strings.xml Adds Dutch strings for the disconnected-account alert.
app/src/main/res/values-pl/strings.xml Adds Polish strings for the disconnected-account alert.
app/src/main/res/values-pt/strings.xml Adds Portuguese strings for the disconnected-account alert.
app/src/main/res/values-sv/strings.xml Adds Swedish strings for the disconnected-account alert.
app/src/main/kotlin/com/infomaniak/auth/ui/screen/main/MainScreen.kt Shows priority-event dialogs for password-changed and account-disconnected using a shared stack dialog.
app/src/main/kotlin/com/infomaniak/auth/ui/components/dialog/PriorityEventAlertDialog.kt Introduces the generalized priority-event alert dialog and event enum.
Comments suppressed due to low confidence (1)

app/src/main/kotlin/com/infomaniak/auth/ui/components/dialog/PriorityEventAlertDialog.kt:85

  • For PriorityEventAlert.AccountDisconnected, the dialog still uses password-change button labels/actions (alertDialogReportButton / alertDialogNeutralButton). This makes the UI misleading (e.g., "I understand" triggers removeAccount) and the confirm action routes into unauthorized-password-change flow. Consider branching the buttons (text + callbacks) based on event (e.g., a single confirm like "OK"/"Disconnect" for disconnected, and keep "It wasn’t me" only for password-changed).

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

Comment thread app/src/main/res/values/strings.xml
…-event-disconnected

# Conflicts:
#	app/src/main/kotlin/com/infomaniak/auth/ui/components/dialog/PasswordChangedDialog.kt
#	app/src/main/kotlin/com/infomaniak/auth/ui/components/dialog/PriorityEventAlertDialog.kt
#	app/src/main/kotlin/com/infomaniak/auth/ui/dialog/PasswordChangedDialog.kt
#	app/src/main/kotlin/com/infomaniak/auth/ui/screen/main/MainScreen.kt
Base automatically changed from feat-modal-disconnect to main May 18, 2026 11:42
@github-actions
Copy link
Copy Markdown
Contributor

This PR/issue depends on:

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

This PR/issue depends on:

@sonarqubecloud
Copy link
Copy Markdown

@baillyjamy baillyjamy merged commit 3e5214b into main May 18, 2026
9 checks passed
@baillyjamy baillyjamy deleted the feat-event-disconnected branch May 18, 2026 12:14
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