@vtex/faststore-plugin-buyer-portal 2.0.16 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.0.17] - 2026-07-30
11
+
12
+ ### Fixed
13
+
14
+ - Org Unit Details' single-contract card showed the Org Unit's name and initial under the avatar instead of the linked contract's, in the pre-`suma` `OrgUnitDetailsLayout` flow
15
+
10
16
  ## [2.0.16] - 2026-07-28
11
17
 
12
18
  ### Added
@@ -803,7 +809,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
803
809
  - Add CHANGELOG file
804
810
  - Add README file
805
811
 
806
- [unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v2.0.16...HEAD
812
+ [unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v2.0.17...HEAD
807
813
  [1.3.55]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.54...v1.3.55
808
814
  [1.3.54]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.53...v1.3.54
809
815
  [1.3.53]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.52...v1.3.53
@@ -901,6 +907,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
901
907
  [2.0.10]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v2.0.9...v2.0.10
902
908
  [2.0.9]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/2.0.9
903
909
 
910
+ [2.0.17]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v2.0.16...v2.0.17
904
911
  [2.0.16]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v2.0.15...v2.0.16
905
912
  [2.0.15]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v2.0.14...v2.0.15
906
913
  [2.0.14]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v2.0.13...v2.0.14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/faststore-plugin-buyer-portal",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "description": "A plugin for faststore with buyer portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -80,6 +80,7 @@ export const OrgUnitsDetailsLayout = ({
80
80
  const { t } = useLocalization();
81
81
 
82
82
  const isSingleContract = contracts.length <= 1;
83
+ const singleContract = contracts[0];
83
84
 
84
85
  const { orgUnit: userUnit } = useOrgUnitByUser(user?.id ?? "");
85
86
 
@@ -262,12 +263,15 @@ export const OrgUnitsDetailsLayout = ({
262
263
  footerMessage={t("orgUnitDetails.links.manageContractSettings")}
263
264
  footerLink={buyerPortalRoutes.profileDetails({
264
265
  orgUnitId: orgUnit.id,
265
- contractId: contracts[0]?.id ?? "",
266
+ contractId: singleContract?.id ?? "",
266
267
  })}
267
268
  enableFooter
268
269
  >
269
- <LetterHighlight letter={orgUnit.name[0]} />
270
- <VerticalNav.Menu title={orgUnit.name} loading={loading}>
270
+ <LetterHighlight letter={singleContract?.name ?? ""} />
271
+ <VerticalNav.Menu
272
+ title={singleContract?.name ?? ""}
273
+ loading={loading}
274
+ >
271
275
  {loading ? (
272
276
  Array(8)
273
277
  .fill(null)
@@ -293,34 +297,35 @@ export const OrgUnitsDetailsLayout = ({
293
297
  subTitle={contracts.length}
294
298
  data-fs-bp-contracts-list-card
295
299
  >
296
- {contracts.map((contract) => (
297
- <BasicCard.Line
298
- key={contract.id}
299
- title={contract.name ?? ""}
300
- icon={
301
- <LetterHighlight
302
- size="small"
303
- letter={contract.name ?? ""}
304
- />
305
- }
306
- href={buyerPortalRoutes.profileDetails({
307
- orgUnitId: orgUnit.id,
308
- contractId: contract.id,
309
- })}
310
- menu={
311
- <BasicDropdownMenu>
312
- <DropdownItem>
313
- <Icon
314
- name="Edit"
315
- width={ICON_SIZE}
316
- height={ICON_SIZE}
317
- />
318
- {t("orgUnitDetails.actions.edit")}
319
- </DropdownItem>
320
- </BasicDropdownMenu>
321
- }
322
- />
323
- ))}
300
+ {contracts.map((contract) => {
301
+ const contractName = contract.name ?? "";
302
+
303
+ return (
304
+ <BasicCard.Line
305
+ key={contract.id}
306
+ title={contractName}
307
+ icon={
308
+ <LetterHighlight size="small" letter={contractName} />
309
+ }
310
+ href={buyerPortalRoutes.profileDetails({
311
+ orgUnitId: orgUnit.id,
312
+ contractId: contract.id,
313
+ })}
314
+ menu={
315
+ <BasicDropdownMenu>
316
+ <DropdownItem>
317
+ <Icon
318
+ name="Edit"
319
+ width={ICON_SIZE}
320
+ height={ICON_SIZE}
321
+ />
322
+ {t("orgUnitDetails.actions.edit")}
323
+ </DropdownItem>
324
+ </BasicDropdownMenu>
325
+ }
326
+ />
327
+ );
328
+ })}
324
329
  </BasicCard>
325
330
  )}
326
331
  <BasicCard
@@ -22,4 +22,4 @@ export const SCOPE_KEYS = {
22
22
  CREDIT_CARDS: "creditCards",
23
23
  } as const;
24
24
 
25
- export const CURRENT_VERSION = "2.0.16";
25
+ export const CURRENT_VERSION = "2.0.17";