@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.
|
|
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
|
@@ -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:
|
|
266
|
+
contractId: singleContract?.id ?? "",
|
|
266
267
|
})}
|
|
267
268
|
enableFooter
|
|
268
269
|
>
|
|
269
|
-
<LetterHighlight letter={
|
|
270
|
-
<VerticalNav.Menu
|
|
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
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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
|