Skip to content

feat(account): extend the "other" category controls to every country - #23345

Open
jmalnuit wants to merge 1 commit into
masterfrom
feat/MANAGER-22512
Open

jmalnuit wants to merge 1 commit into
masterfrom
feat/MANAGER-22512

Conversation

@jmalnuit

@jmalnuit jmalnuit commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Description

The "Autre" account category can no longer be kept, whatever the country. The controls that existed for France only, behind the account:fr-e-invoicing-other-category feature flag, now apply everywhere, without the flag.

  • Home page reminder modal (container): shown at every login to every account whose category is "Autre". France and its overseas departments (FR, GP, MQ, GF, RE, YT) keep the e-invoicing reform wording and link; every other country gets the same request without it (new other_category_modal_description_generic key).
  • Account edition:
    • "Autre" is no longer offered in the category list (an account still holding it keeps seeing its current value).
    • Saving is blocked while it is selected.
    • Switching from it to a company, association or administration prompts for the company data.

French translations only (Messages_fr_FR.json), as required by the contribution rules.

Ticket Reference: #MANAGER-22512

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

The new guard blocks all saves for KYC-locked Indian-subsidiary accounts using other, including permitted edits, while directing customers to change a category selector they cannot use.

1 open issue
What changed in this PR

Extends the account’s “Other” category restrictions to every country, removing the France-only feature flag while retaining country-specific reminder wording.

Changes:

  • Shows the reminder globally, with e-invoicing wording for France and its overseas departments and generic wording elsewhere.
  • Removes “Other” from available category choices unless currently saved, blocks saving it, and extends company-data prompts globally.
  • Adds French generic wording and tests for country coverage, category filtering, and switching behavior.
File Description
packages/​manager/​modules/​account/​src/​user/​components/​newAccountForm/​new-account-form-controller.spec.js Tests global save restrictions and category-switch prompts.
packages/​manager/​modules/​account/​src/​user/​components/​newAccountForm/​new-account-form-controller.js Removes country and feature-flag gates from category controls.
packages/​manager/​modules/​account/​src/​user/​components/​newAccountForm/​new-account-form-component.constants.js Removes the category-control feature flag constant.
packages/​manager/​modules/​account/​src/​user/​components/​newAccountForm/​field/​new-account-form-field-component.controller.spec.js Adds category-list filtering tests.
packages/​manager/​modules/​account/​src/​user/​components/​newAccountForm/​field/​new-account-form-field-component.controller.js Filters “Other” while preserving an account’s saved value.
packages/​manager/​apps/​container/​src/​public/​translations/​other-category-modal/​Messages_fr_FR.json Adds generic reminder wording in French.
packages/​manager/​apps/​container/​src/​components/​other-category-modal/​OtherCategoryModal.spec.tsx Tests wording selection and removal of feature gating.
packages/​manager/​apps/​container/​src/​components/​other-category-modal/​otherCategoryModal.helpers.ts Broadens eligibility and selects country-specific wording.
packages/​manager/​apps/​container/​src/​components/​other-category-modal/​otherCategoryModal.helpers.spec.ts Tests global eligibility and wording selection.
packages/​manager/​apps/​container/​src/​components/​other-category-modal/​otherCategoryModal.constants.ts Defines French territories and description keys.
packages/​manager/​apps/​container/​src/​components/​other-category-modal/​OtherCategoryModal.component.tsx Removes feature gating and uses country-specific descriptions.

Review effort: Balanced

this.isOtherCategoryControlActive() &&
this.model?.legalform === USER_TYPE_OTHER
);
return this.model?.legalform === USER_TYPE_OTHER;
The "Autre" category can no longer be kept, whatever the country, and
without a feature flag.

Home page: the reminder modal is shown at every login to every account
whose category is "Autre". Customers in France and its overseas
departments keep the e-invoicing reform wording and its link; every
other country gets the same request without it.

Account edition: "Autre" is no longer offered in the category list (an
account still holding it keeps seeing its current value), saving is
blocked while it is selected, and switching from it to a company,
association or administration prompts for the company data, in every
country.

Signed-off-by: jmalnuit <jonathan.malnuit@ovhcloud.com>
Copilot AI balanced review requested due to automatic review settings November 6, 2026 08:32

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.

🔵 Needs a closer look

The unconditional category check blocks every save for Indian-subsidiary accounts categorized as other when open or validated KYC locks the selector, leaving customers unable to correct the category or save unrelated changes.

1 open issue

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants