Skip to content

Commit

Permalink
Merge pull request #192 from vtex-apps/fix/missing-admmin-customer
Browse files Browse the repository at this point in the history
[TICKET #1162917] Fix render when admin customer is missing
  • Loading branch information
ataideverton authored Jan 16, 2025
2 parents cbd8c54 + dec9ff7 commit 27b2ed0
Show file tree
Hide file tree
Showing 31 changed files with 49 additions and 6 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]
### Fixed
- Fix render on organization requests when admin customer is missing from organization

## [1.39.9] - 2025-01-07
### Fixed
Expand Down
1 change: 1 addition & 0 deletions messages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "طلب المنظمة",
"admin/b2b-organizations.organization-request-details.toast.created-success": "تم إنشاء المنظمة بنجاح",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "فشل التحديث. راجع وحدة التحكم للحصول على التفاصيل.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "تم تحديث طلب المنظمة بنجاح",
"admin/b2b-organizations.organization-request-details.tradeName": "الإسم التجاري",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "قم بتوفير الاسم التجاري للمنظمة، والذي سيتم تطبيقه في الدفع، إن وجد. (اختياري)",
Expand Down
1 change: 1 addition & 0 deletions messages/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Заявка за организация",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Организацията е създадена успешно",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Неуспешно актуализиране. Вижте конзолата за подробности.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Заявката за организация е актуализирана успешно",
"admin/b2b-organizations.organization-request-details.tradeName": "Търговско наименование",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Предоставете търговското наименование на организацията, което ще бъде приложено при финализирането, ако има такова. (По желание)",
Expand Down
1 change: 1 addition & 0 deletions messages/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Sol·licitud de l'organització",
"admin/b2b-organizations.organization-request-details.toast.created-success": "S'ha creat correctament l'organització",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "S'ha produït un error en fer l'actualització. Per obtenir-ne més informació, consulteu la consola.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "S'ha actualitzat correctament la sol·licitud de l'organització",
"admin/b2b-organizations.organization-request-details.tradeName": "Nom comercial",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Proporcioneu el nom comercial de l'organització, que s'aplicarà en el procés de pagament, si n'hi ha cap. (Opcional)",
Expand Down
1 change: 1 addition & 0 deletions messages/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "admin/b2b-organizations.organization-request-details.title",
"admin/b2b-organizations.organization-request-details.toast.created-success": "admin/b2b-organizations.organization-request-details.toast.created-success",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "admin/b2b-organizations.organization-request-details.toast.update-failure",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email",
"admin/b2b-organizations.organization-request-details.toast.update-success": "admin/b2b-organizations.organization-request-details.toast.update-success",
"admin/b2b-organizations.organization-request-details.tradeName": "admin/b2b-organizations.organization-request-details.tradeName",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "admin/b2b-organizations.organization-request-details.tradeName.helpText",
Expand Down
1 change: 1 addition & 0 deletions messages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Žádost o vytvoření organizace",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organizace úspěšně vytvořena",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Aktualizace selhala. Podrobnosti naleznete v konzoli.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Žádost o vytvoření organizace byla úspěšně aktualizována",
"admin/b2b-organizations.organization-request-details.tradeName": "Obchodní název",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Uveďte obchodní název organizace, který pak bude použit u pokladny. (Nepovinné)",
Expand Down
1 change: 1 addition & 0 deletions messages/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Organisation forespørgsel",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organisation oprettet med succes",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Opdatering mislykkedes. Se konsollen for detaljer.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Organisation forespørgsel opdateret med succes",
"admin/b2b-organizations.organization-request-details.tradeName": "Handelsnavn",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Angiv organisationens firmanavn, som vil blive anvendt i kassen, hvis det er muligt. (Valgfrit)",
Expand Down
1 change: 1 addition & 0 deletions messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Organisationsanforderung",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organisation erfolgreich erstellt",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Update fehlgeschlagen, siehe Konsole für Details.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Organisationsgruppe erfolgreich aktualisiert",
"admin/b2b-organizations.organization-request-details.tradeName": "Trade name",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Optional geben Sie den Handelsnamen der Organisation an, der in der Kasse angewendet wird, falls vorhanden",
Expand Down
1 change: 1 addition & 0 deletions messages/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Αίτημα οργανισμού",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Ο οργανισμός δημιουργήθηκε με επιτυχία",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Η ενημέρωση απέτυχε. Βλέπε κονσόλα για λεπτομέρειες.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Το αίτημα οργανισμού ενημερώθηκε με επιτυχία",
"admin/b2b-organizations.organization-request-details.tradeName": "Εμπορική ονομασία",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Παρέχετε το εμπορικό όνομα του οργανισμού, το οποίο θα εφαρμοστεί στην ολοκλήρωση αγοράς, αν υπάρχει. (Προαιρετικό)",
Expand Down
1 change: 1 addition & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Organization Request",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organization created successfully",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Update failed. See console for details.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Organization request updated successfully",
"admin/b2b-organizations.organization-request-details.tradeName": "Trade name",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Provide the organization's trade name, which will be applied in checkout, if any. (Optional)",
Expand Down
1 change: 1 addition & 0 deletions messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Solicitud de organización",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organización creada con éxito.",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "La actualización falló. Consulta la consola para ver los detalles.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "La solicitud de organización se actualizó con éxito",
"admin/b2b-organizations.organization-request-details.tradeName": "Nombre comercial",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Proporciona el nombre comercial de la organización que se aplicará en el checkout, si alguno. (Opcional)",
Expand Down
1 change: 1 addition & 0 deletions messages/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Organisaation pyyntö",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organisaatio luotu onnistuneesti",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Päivitys epäonnistui. Katso lisätietoja konsolista.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Organisaation pyyntö päivitetty onnistuneesti",
"admin/b2b-organizations.organization-request-details.tradeName": "Kauppanimi",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Anna organisaation toiminimi, joka otetaan tarvittaessa käyttöön kassalla. (Valinnainen)",
Expand Down
1 change: 1 addition & 0 deletions messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Demande d’organisation",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organisation créée",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "La mise à jour a échoué. Consultez la console pour plus de détails.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "La demande d’organisation a bien été mise à jour",
"admin/b2b-organizations.organization-request-details.tradeName": "Nom commercial",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Indiquez le nom de la transaction de l’organisation, qui sera appliquée lors de la commande, le cas échéant. (Facultatif)",
Expand Down
1 change: 1 addition & 0 deletions messages/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Permintaan Organisasi",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Berhasil membuat organisasi",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Pembaruan gagal. Lihat konsol untuk detailnya.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Permintaan organisasi berhasil diperbarui",
"admin/b2b-organizations.organization-request-details.tradeName": "Nama dagang",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Masukkan nama dagang organisasi yang akan diterapkan di checkout. (Opsional)",
Expand Down
1 change: 1 addition & 0 deletions messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Richiesta di organizzazione",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organizzazione creata correttamente",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Aggiornamento non riuscito. Visualizza la console per i dettagli.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Richiesta di organizzazione aggiornata correttamente",
"admin/b2b-organizations.organization-request-details.tradeName": "Nome commerciale",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Fornisci il nome commerciale dell'organizzazione. Verrà applicato nel checkout se presente. (Facoltativo)",
Expand Down
1 change: 1 addition & 0 deletions messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "組織のリクエスト",
"admin/b2b-organizations.organization-request-details.toast.created-success": "組織の作成が完了しました",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "更新できませんでした。詳細はコンソールを確認してください。",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "組織リクエストの更新が完了しました",
"admin/b2b-organizations.organization-request-details.tradeName": "商号",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "チェックアウト時に適用される組織の商号があれば、入力してください。 (任意)",
Expand Down
1 change: 1 addition & 0 deletions messages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "조직 요청",
"admin/b2b-organizations.organization-request-details.toast.created-success": "조직이 생성되었습니다.",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "업데이트 실패. 자세한 내용은 콘솔을 참조하세요.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "조직 요청이 성공적으로 업데이트되었습니다.",
"admin/b2b-organizations.organization-request-details.tradeName": "거래명",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "체크아웃 시 적용될 조직의 상호(있는 경우)를 제공합니다. (선택사항)",
Expand Down
1 change: 1 addition & 0 deletions messages/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Organisatieverzoek",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organisatie aangemaakt",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Update is mislukt. Zie de console voor meer informatie.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Organisatieverzoek bijgewerkt",
"admin/b2b-organizations.organization-request-details.tradeName": "Handelsnaam",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Geef de handelsnaam van de organisatie aan, die zal worden toegepast bij het afrekenen, indien van toepassing. (optioneel)",
Expand Down
1 change: 1 addition & 0 deletions messages/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Organisasjonsforespørsel",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organisasjonen ble opprettet",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Oppdateringen mislyktes. Se konsoll for mer informasjon.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Organisasjonsforespørselen ble oppdatert",
"admin/b2b-organizations.organization-request-details.tradeName": "Handelsnavn",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Oppgi organisasjonens handelsnavn, som vil bli brukt i kassen hvis det finnes. (Valgfritt)",
Expand Down
1 change: 1 addition & 0 deletions messages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Żądanie organizacji",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organizacja została pomyślnie utworzona",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Aktualizacja nie powiodła się. Zobacz konsolę, aby uzyskać więcej informacji.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "Missing B2B Customer Admin in organization, unable to approve it",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Żądanie organizacji zostało pomyślnie zaktualizowane",
"admin/b2b-organizations.organization-request-details.tradeName": "Nazwa handlowa",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Podaj nazwę handlową organizacji, która zostanie zastosowana w kasie, jeśli jest obecna. (Opcjonalnie)",
Expand Down
1 change: 1 addition & 0 deletions messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
"admin/b2b-organizations.organization-request-details.title": "Solicitação de organização",
"admin/b2b-organizations.organization-request-details.toast.created-success": "Organização criada com sucesso",
"admin/b2b-organizations.organization-request-details.toast.update-failure": "Falha na atualização. Consulte o console para mais detalhes.",
"admin/b2b-organizations.organization-request-details.toast.update-failure-missing-email": "B2B Customer Admin não está presente na organização, incapaz de aprovar",
"admin/b2b-organizations.organization-request-details.toast.update-success": "Solicitação da organização atualizada com sucesso",
"admin/b2b-organizations.organization-request-details.tradeName": "Nome fantasia",
"admin/b2b-organizations.organization-request-details.tradeName.helpText": "Insira o nome fantasia da organização que será aplicado no checkout, se houver. (Opcional)",
Expand Down
Loading

0 comments on commit 27b2ed0

Please sign in to comment.