Skip to content

Commit

Permalink
Merge pull request #179 from Josmar-jr/feat/add-warning-topbar-inacti…
Browse files Browse the repository at this point in the history
…ve-org

feat: add warning topbar when inactive organization
  • Loading branch information
ataideverton authored Dec 9, 2024
2 parents 7ce2304 + 2231a50 commit 87fdb8b
Show file tree
Hide file tree
Showing 36 changed files with 407 additions and 46 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Add topbar and allow customization of content and colors by the merchant via storeframework.

## [1.37.3] - 2024-11-14
### Fixed
Expand Down
8 changes: 7 additions & 1 deletion messages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "حدد مركز التكلفة",
"admin/b2b-organizations.user-details.placeholder-role": "حدد دور",
"admin/b2b-organizations.user-details.role": "الدور",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "البحث عن منظمة",
"store/b2b-organizations.autocomplete-searching.cost-center": "مركز تكلفة البحث",
"store/b2b-organizations.back": "عودة",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "الحالة المنظمة:",
"store/b2b-organizations.user-widget.status.active": "نشطة",
"store/b2b-organizations.user-widget.status.inactive": "غير مفعّلة",
"store/b2b-organizations.user-widget.status.on-hold": "قيد الانتظار"
"store/b2b-organizations.user-widget.status.on-hold": "قيد الانتظار",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now. Please contact us for more information."
}
8 changes: 7 additions & 1 deletion messages/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Избор на разходен център",
"admin/b2b-organizations.user-details.placeholder-role": "Избор на роля",
"admin/b2b-organizations.user-details.role": "Роля",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Търсене на организация",
"store/b2b-organizations.autocomplete-searching.cost-center": "Търсене на разходен център",
"store/b2b-organizations.back": "Назад",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Статус на организацията:",
"store/b2b-organizations.user-widget.status.active": "Активен",
"store/b2b-organizations.user-widget.status.inactive": "Неактивен",
"store/b2b-organizations.user-widget.status.on-hold": "В изчакване"
"store/b2b-organizations.user-widget.status.on-hold": "В изчакване",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
8 changes: 7 additions & 1 deletion messages/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Seleccioneu un centre de costs",
"admin/b2b-organizations.user-details.placeholder-role": "Seleccioneu un rol",
"admin/b2b-organizations.user-details.role": "Funció",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Cerca una organització",
"store/b2b-organizations.autocomplete-searching.cost-center": "Cerca un centre de costs",
"store/b2b-organizations.back": "Enrera",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Estat de l'organització:",
"store/b2b-organizations.user-widget.status.active": "Actiu",
"store/b2b-organizations.user-widget.status.inactive": "Inactiu",
"store/b2b-organizations.user-widget.status.on-hold": "En espera"
"store/b2b-organizations.user-widget.status.on-hold": "En espera",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
8 changes: 7 additions & 1 deletion messages/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "admin/b2b-organizations.user-details.placeholder-costCenter",
"admin/b2b-organizations.user-details.placeholder-role": "admin/b2b-organizations.user-details.placeholder-role",
"admin/b2b-organizations.user-details.role": "admin/b2b-organizations.user-details.role",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "store/b2b-organizations.warning-topbar-inative-org.form.title",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "store/b2b-organizations.warning-topbar-inative-org.form.help-text",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "store/b2b-organizations.warning-topbar-inative-org.form.color-picker-label",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "store/b2b-organizations.warning-topbar-inative-org.form.textarea-label",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "store/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text",
"store/b2b-organizations.autocomplete-searching": "store/b2b-organizations.autocomplete-searching",
"store/b2b-organizations.autocomplete-searching.cost-center": "store/b2b-organizations.autocomplete-searching.cost-center",
"store/b2b-organizations.back": "store/b2b-organizations.back",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "store/b2b-organizations.user-widget.status",
"store/b2b-organizations.user-widget.status.active": "store/b2b-organizations.user-widget.status.active",
"store/b2b-organizations.user-widget.status.inactive": "store/b2b-organizations.user-widget.status.inactive",
"store/b2b-organizations.user-widget.status.on-hold": "store/b2b-organizations.user-widget.status.on-hold"
"store/b2b-organizations.user-widget.status.on-hold": "store/b2b-organizations.user-widget.status.on-hold",
"store/b2b-organizations.warning-topbar-inative-org.message": "store/b2b-organizations.warning-topbar-inative-org.message"
}
8 changes: 7 additions & 1 deletion messages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Vyberte nákladové středisko",
"admin/b2b-organizations.user-details.placeholder-role": "Vyberte roli",
"admin/b2b-organizations.user-details.role": "Role",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Hledat organizaci",
"store/b2b-organizations.autocomplete-searching.cost-center": "Vyhledat nákladové středisko",
"store/b2b-organizations.back": "Zpět",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Stav organizace:",
"store/b2b-organizations.user-widget.status.active": "Aktivní",
"store/b2b-organizations.user-widget.status.inactive": "Neaktivní",
"store/b2b-organizations.user-widget.status.on-hold": "Pozastaveno"
"store/b2b-organizations.user-widget.status.on-hold": "Pozastaveno",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
8 changes: 7 additions & 1 deletion messages/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Vælg et omkostningscenter",
"admin/b2b-organizations.user-details.placeholder-role": "Vælg en rolle",
"admin/b2b-organizations.user-details.role": "Rolle",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Søg organisation",
"store/b2b-organizations.autocomplete-searching.cost-center": "Søg omkostningscentre",
"store/b2b-organizations.back": "Tilbage",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Organisations status:",
"store/b2b-organizations.user-widget.status.active": "Aktiv",
"store/b2b-organizations.user-widget.status.inactive": "Inaktiv",
"store/b2b-organizations.user-widget.status.on-hold": "Afventer"
"store/b2b-organizations.user-widget.status.on-hold": "Afventer",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
8 changes: 7 additions & 1 deletion messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Wählen Sie eine Kostenstelle",
"admin/b2b-organizations.user-details.placeholder-role": "Eine Rolle auswählen",
"admin/b2b-organizations.user-details.role": "Funktion",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Organisation suchen",
"store/b2b-organizations.autocomplete-searching.cost-center": "Kostenstelle suchen",
"store/b2b-organizations.back": "Zurück",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Organisationsstatus:",
"store/b2b-organizations.user-widget.status.active": "Aktiv",
"store/b2b-organizations.user-widget.status.inactive": "Inaktiv",
"store/b2b-organizations.user-widget.status.on-hold": "In der Warteschleife"
"store/b2b-organizations.user-widget.status.on-hold": "In der Warteschleife",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
8 changes: 7 additions & 1 deletion messages/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Επιλογή κέντρου κόστους",
"admin/b2b-organizations.user-details.placeholder-role": "Επιλογή ρόλου",
"admin/b2b-organizations.user-details.role": "Ρόλος",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Αναζήτηση οργανισμού",
"store/b2b-organizations.autocomplete-searching.cost-center": "Αναζήτηση κέντρου κόστους",
"store/b2b-organizations.back": "Πίσω",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Κατάσταση οργανισμού:",
"store/b2b-organizations.user-widget.status.active": "Ενεργό",
"store/b2b-organizations.user-widget.status.inactive": "Ανενεργό",
"store/b2b-organizations.user-widget.status.on-hold": "Σε αναμονή"
"store/b2b-organizations.user-widget.status.on-hold": "Σε αναμονή",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
8 changes: 7 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Select a cost center",
"admin/b2b-organizations.user-details.placeholder-role": "Select a role",
"admin/b2b-organizations.user-details.role": "Role",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Search organization",
"store/b2b-organizations.autocomplete-searching.cost-center": "Search cost center",
"store/b2b-organizations.back": "Back",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Organization Status:",
"store/b2b-organizations.user-widget.status.active": "Active",
"store/b2b-organizations.user-widget.status.inactive": "Inactive",
"store/b2b-organizations.user-widget.status.on-hold": "On Hold"
"store/b2b-organizations.user-widget.status.on-hold": "On Hold",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
8 changes: 7 additions & 1 deletion messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Selecciona un centro de costos",
"admin/b2b-organizations.user-details.placeholder-role": "Selecciona un rol",
"admin/b2b-organizations.user-details.role": "Rol",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Buscar organización",
"store/b2b-organizations.autocomplete-searching.cost-center": "Buscar centro de costos",
"store/b2b-organizations.back": "Atrás",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Status de la organización:",
"store/b2b-organizations.user-widget.status.active": "Activa",
"store/b2b-organizations.user-widget.status.inactive": "Inactiva",
"store/b2b-organizations.user-widget.status.on-hold": "Suspendida"
"store/b2b-organizations.user-widget.status.on-hold": "Suspendida",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
8 changes: 7 additions & 1 deletion messages/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Valitse kustannuspaikka",
"admin/b2b-organizations.user-details.placeholder-role": "Valitse tehtävä",
"admin/b2b-organizations.user-details.role": "Rooli",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Hae organisaatiota",
"store/b2b-organizations.autocomplete-searching.cost-center": "Hae kustannuspaikkaa",
"store/b2b-organizations.back": "Takaisin",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Organisaation tila:",
"store/b2b-organizations.user-widget.status.active": "Aktiivinen",
"store/b2b-organizations.user-widget.status.inactive": "Epäaktiivinen",
"store/b2b-organizations.user-widget.status.on-hold": "Pidossa"
"store/b2b-organizations.user-widget.status.on-hold": "Pidossa",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
8 changes: 7 additions & 1 deletion messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
"admin/b2b-organizations.user-details.placeholder-costCenter": "Sélectionnez un centre de coûts",
"admin/b2b-organizations.user-details.placeholder-role": "Sélectionner un rôle",
"admin/b2b-organizations.user-details.role": "Rôle",
"admin/b2b-organizations.warning-topbar-inative-org.form.title": "Topbar customization",
"admin/b2b-organizations.warning-topbar-inative-org.form.help-text": "Customize the message and color of the top bar notifications that are displayed when the organization is disabled",
"admin/b2b-organizations.warning-topbar-inative-org.form.color-picker-label": "Topbar color",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-label": "Message",
"admin/b2b-organizations.warning-topbar-inative-org.form.textarea-help-text": "If no message is entered, a default message will be displayed.",
"store/b2b-organizations.autocomplete-searching": "Rechercher une organisation",
"store/b2b-organizations.autocomplete-searching.cost-center": "Rechercher un centre de coûts",
"store/b2b-organizations.back": "Retour",
Expand Down Expand Up @@ -411,5 +416,6 @@
"store/b2b-organizations.user-widget.status": "Statut de l’organisation :",
"store/b2b-organizations.user-widget.status.active": "Actif",
"store/b2b-organizations.user-widget.status.inactive": "Inactif",
"store/b2b-organizations.user-widget.status.on-hold": "En attente"
"store/b2b-organizations.user-widget.status.on-hold": "En attente",
"store/b2b-organizations.warning-topbar-inative-org.message": "Your organization's account is paused, and you cannot complete purchases now."
}
Loading

0 comments on commit 87fdb8b

Please sign in to comment.