Skip to content

refactor: Add delete button string to common - #871

Merged
solrubado merged 2 commits into
mainfrom
delete-button-string-to-common
Oct 12, 2026
Merged

solrubado merged 2 commits into
mainfrom
delete-button-string-to-common

Conversation

@solrubado

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings October 12, 2026 14:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Removing the ContactCard resource breaks its non-transitive R API without a compatibility path or documented migration.

2 open findings
What changed in this PR

Moves the localized delete-button label from ContactCard into Common and updates ContactCard usages.

Changes:

  • Adds deleteButton to Common in all supported locales.
  • Removes duplicate ContactCard translations.
  • Updates three Compose components to reference Common resources.
File Description
Common/​src/​main/​res/​values/​strings.xml Adds English delete label.
Common/​src/​main/​res/​values-da/​strings.xml Adds Danish delete label.
Common/​src/​main/​res/​values-de/​strings.xml Adds German delete label.
Common/​src/​main/​res/​values-el/​strings.xml Adds Greek delete label.
Common/​src/​main/​res/​values-es/​strings.xml Adds Spanish delete label.
Common/​src/​main/​res/​values-fi/​strings.xml Adds Finnish delete label.
Common/​src/​main/​res/​values-fr/​strings.xml Adds French delete label.
Common/​src/​main/​res/​values-it/​strings.xml Adds Italian delete label.
Common/​src/​main/​res/​values-nb/​strings.xml Adds Norwegian delete label.
Common/​src/​main/​res/​values-nl/​strings.xml Adds Dutch delete label.
Common/​src/​main/​res/​values-pl/​strings.xml Adds Polish delete label.
Common/​src/​main/​res/​values-pt/​strings.xml Adds Portuguese delete label.
Common/​src/​main/​res/​values-sv/​strings.xml Adds Swedish delete label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values/​strings.xml Removes the local English label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-da/​strings.xml Removes the local Danish label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-de/​strings.xml Removes the local German label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-el/​strings.xml Removes the local Greek label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-es/​strings.xml Removes the local Spanish label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-fi/​strings.xml Removes the local Finnish label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-fr/​strings.xml Removes the local French label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-it/​strings.xml Removes the local Italian label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-nb/​strings.xml Removes the local Norwegian label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-nl/​strings.xml Removes the local Dutch label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-pl/​strings.xml Removes the local Polish label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-pt/​strings.xml Removes the local Portuguese label.
Ui/​Compose/​ContactCard/​src/​main/​res/​values-sv/​strings.xml Removes the local Swedish label.
Ui/​Compose/​ContactCard/​src/​main/​kotlin/​com/​infomaniak/​core/​ui/​compose/​contactcard/​component/​PreviewActionsBottomSheet.kt Uses the Common delete label.
Ui/​Compose/​ContactCard/​src/​main/​kotlin/​com/​infomaniak/​core/​ui/​compose/​contactcard/​component/​EditorContent.kt Uses Common for delete accessibility text.
Ui/​Compose/​ContactCard/​src/​main/​kotlin/​com/​infomaniak/​core/​ui/​compose/​contactcard/​component/​DefaultContactCardDialog.kt Uses Common for confirmation text.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Ui/Compose/ContactCard/src/main/res/values/strings.xml
@sonarqubecloud

Copy link
Copy Markdown

@solrubado
solrubado merged commit 0343860 into main Oct 12, 2026
9 checks passed
@solrubado
solrubado deleted the delete-button-string-to-common branch October 12, 2026 14:50
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