From f81851445e1c5d3af8fff6a644c0adfe5c909f28 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sun, 29 Mar 2026 23:39:31 +0200 Subject: [PATCH] fix(tenancy): align columns and actions in merchant team table - Fixed header/column alignment: Member | Role | Status | Actions - Store count + chevron moved inline with member name (not a separate column) - Role column shows single role, "Owner", or "Multiple roles" on main row - Actions use fixed 4-slot grid (resend | view | edit | remove) ensuring icons always align vertically between main rows and sub-rows - Empty slots render as blank space to maintain alignment i18n: added multiple_roles key in 4 locales. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/modules/tenancy/locales/de.json | 1 + app/modules/tenancy/locales/en.json | 1 + app/modules/tenancy/locales/fr.json | 1 + app/modules/tenancy/locales/lb.json | 1 + .../templates/tenancy/merchant/team.html | 100 ++++++++++++------ 5 files changed, 70 insertions(+), 34 deletions(-) diff --git a/app/modules/tenancy/locales/de.json b/app/modules/tenancy/locales/de.json index 09cfdca8..a1ad5bd6 100644 --- a/app/modules/tenancy/locales/de.json +++ b/app/modules/tenancy/locales/de.json @@ -53,6 +53,7 @@ "personal_info": "Persönliche Informationen", "resend_invitation": "Einladung erneut senden", "save_profile": "Profil speichern", + "multiple_roles": "Mehrere Rollen", "view_member": "Mitglied anzeigen", "account_information": "Kontoinformationen", "username": "Benutzername", diff --git a/app/modules/tenancy/locales/en.json b/app/modules/tenancy/locales/en.json index 62f70c69..26c3a9cc 100644 --- a/app/modules/tenancy/locales/en.json +++ b/app/modules/tenancy/locales/en.json @@ -53,6 +53,7 @@ "personal_info": "Personal Information", "resend_invitation": "Resend Invitation", "save_profile": "Save Profile", + "multiple_roles": "Multiple roles", "view_member": "View Member", "account_information": "Account Information", "username": "Username", diff --git a/app/modules/tenancy/locales/fr.json b/app/modules/tenancy/locales/fr.json index bcfc570c..9ffd5351 100644 --- a/app/modules/tenancy/locales/fr.json +++ b/app/modules/tenancy/locales/fr.json @@ -53,6 +53,7 @@ "personal_info": "Informations personnelles", "resend_invitation": "Renvoyer l'invitation", "save_profile": "Enregistrer le profil", + "multiple_roles": "Rôles multiples", "view_member": "Voir le membre", "account_information": "Informations du compte", "username": "Nom d'utilisateur", diff --git a/app/modules/tenancy/locales/lb.json b/app/modules/tenancy/locales/lb.json index db6bf5ea..0c15b6c7 100644 --- a/app/modules/tenancy/locales/lb.json +++ b/app/modules/tenancy/locales/lb.json @@ -53,6 +53,7 @@ "personal_info": "Perséinlech Informatiounen", "resend_invitation": "Aluedung nei schécken", "save_profile": "Profil späicheren", + "multiple_roles": "Méi Rollen", "view_member": "Member kucken", "account_information": "Konto Informatiounen", "username": "Benotzernumm", diff --git a/app/modules/tenancy/templates/tenancy/merchant/team.html b/app/modules/tenancy/templates/tenancy/merchant/team.html index 13785994..b5c61c8c 100644 --- a/app/modules/tenancy/templates/tenancy/merchant/team.html +++ b/app/modules/tenancy/templates/tenancy/merchant/team.html @@ -78,7 +78,14 @@
{% call table_wrapper() %} - {{ table_header([_('tenancy.team.member'), _('tenancy.team.stores_and_roles'), _('tenancy.team.status'), _('tenancy.team.actions')]) }} + + + {{ _('tenancy.team.member') }} + {{ _('tenancy.team.role') }} + {{ _('tenancy.team.status') }} + {{ _('tenancy.team.actions') }} + + - {# Per-store actions #} + {# Per-store actions: same 4-slot grid (resend | view | edit | remove) #} -
- {# Resend — pending only #} - - {# Remove from this store #} - +
+ {# Slot 1: resend (pending only) #} + + + {# Slot 2: view (empty at store level) #} + + {# Slot 3: edit (empty at store level) #} + + {# Slot 4: remove from store #} + +