@vtex/faststore-plugin-buyer-portal 1.3.82 → 1.3.84
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 +14 -1
- package/package.json +1 -1
- package/src/features/org-units/components/OrgUnitDetailsNavbar/OrgUnitDetailsNavbar.tsx +3 -0
- package/src/features/org-units/layouts/OrgUnitDetailsLayout/OrgUnitDetailsLayout.tsx +1 -0
- package/src/features/shared/layouts/BaseTabsLayout/Navbar.tsx +3 -0
- package/src/features/shared/layouts/BaseTabsLayout/about-drawer/AboutDrawer.tsx +36 -24
- package/src/features/shared/layouts/BaseTabsLayout/about-drawer/about-drawer.scss +31 -16
- package/src/features/shared/layouts/ContractTabsLayout/ContractTabsLayout.tsx +1 -0
- package/src/features/shared/layouts/ErrorTabsLayout/ErrorTabsLayout.tsx +1 -0
- package/src/features/shared/layouts/FinanceTabsLayout/FinanceTabsLayout.tsx +1 -0
- package/src/features/shared/layouts/OrgUnitTabsLayout/OrgUnitTabLayout.tsx +2 -1
- package/src/features/shared/utils/constants.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.3.84] - 2026-05-07
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Align payment methods scope-config requests with the new `payment-groups` BFF by changing `SCOPE_KEYS.PAYMENT_SYSTEMS` value from `paymentSystemIds` to `paymentGroups`. The sync vs custom mode toggle and read on the payment methods page now hit `/scopes/configs?scopeName=paymentGroups`
|
|
15
|
+
|
|
16
|
+
## [1.3.83] - 2026-05-05
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- Show Contract ID in AboutDrawer component
|
|
20
|
+
|
|
10
21
|
## [1.3.82] - 2026-04-29
|
|
11
22
|
|
|
12
23
|
### Changed
|
|
@@ -610,7 +621,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
610
621
|
- Add CHANGELOG file
|
|
611
622
|
- Add README file
|
|
612
623
|
|
|
613
|
-
[unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.
|
|
624
|
+
[unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.84...HEAD
|
|
614
625
|
[1.3.55]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.54...v1.3.55
|
|
615
626
|
[1.3.54]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.53...v1.3.54
|
|
616
627
|
[1.3.53]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.52...v1.3.53
|
|
@@ -678,6 +689,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
678
689
|
[1.3.65]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.64...v1.3.65
|
|
679
690
|
[1.3.64]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.64
|
|
680
691
|
[1.3.69]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.69
|
|
692
|
+
[1.3.84]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.83...v1.3.84
|
|
693
|
+
[1.3.83]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.82...v1.3.83
|
|
681
694
|
[1.3.82]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.81...v1.3.82
|
|
682
695
|
[1.3.81]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.80...v1.3.81
|
|
683
696
|
[1.3.80]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.79...v1.3.80
|
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ import { doLogout } from "../../../shared/utils";
|
|
|
12
12
|
|
|
13
13
|
export type OrgUnitDetailsNavbarProps = {
|
|
14
14
|
orgId: string;
|
|
15
|
+
contractId?: string;
|
|
15
16
|
orgName: string;
|
|
16
17
|
person: {
|
|
17
18
|
image?: string;
|
|
@@ -26,6 +27,7 @@ export const OrgUnitDetailsNavbar = ({
|
|
|
26
27
|
person,
|
|
27
28
|
orgName,
|
|
28
29
|
orgId,
|
|
30
|
+
contractId = "",
|
|
29
31
|
}: OrgUnitDetailsNavbarProps) => {
|
|
30
32
|
const {
|
|
31
33
|
open: openAboutMenu,
|
|
@@ -73,6 +75,7 @@ export const OrgUnitDetailsNavbar = ({
|
|
|
73
75
|
</div>
|
|
74
76
|
{isOpenAboutMenu && (
|
|
75
77
|
<AboutDrawer
|
|
78
|
+
contractId={contractId}
|
|
76
79
|
{...aboutMenuDrawerProps}
|
|
77
80
|
isOpen={isOpenAboutMenu}
|
|
78
81
|
unitId={orgId}
|
|
@@ -18,6 +18,7 @@ import type { OrgUnitBasicData } from "../../../org-units/types";
|
|
|
18
18
|
|
|
19
19
|
export type NavbarProps = {
|
|
20
20
|
orgUnit?: OrgUnitBasicData | null;
|
|
21
|
+
contractId?: string;
|
|
21
22
|
pageName: string;
|
|
22
23
|
person: {
|
|
23
24
|
image?: ReactNode;
|
|
@@ -34,6 +35,7 @@ export const Navbar = ({
|
|
|
34
35
|
person,
|
|
35
36
|
pageName,
|
|
36
37
|
loading = false,
|
|
38
|
+
contractId = "",
|
|
37
39
|
...otherProps
|
|
38
40
|
}: NavbarProps) => {
|
|
39
41
|
const {
|
|
@@ -111,6 +113,7 @@ export const Navbar = ({
|
|
|
111
113
|
)}
|
|
112
114
|
{isOpenAboutMenu && (
|
|
113
115
|
<AboutDrawer
|
|
116
|
+
contractId={contractId}
|
|
114
117
|
{...aboutMenuDrawerProps}
|
|
115
118
|
unitId={orgUnit?.id ?? ""}
|
|
116
119
|
isOpen={isOpenAboutMenu}
|
|
@@ -6,10 +6,16 @@ import { CURRENT_VERSION } from "../../../utils/constants";
|
|
|
6
6
|
|
|
7
7
|
export type AboutDrawerProps = Omit<BasicDrawerProps, "children"> & {
|
|
8
8
|
unitId: string;
|
|
9
|
+
contractId?: string;
|
|
9
10
|
close: () => void;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
|
-
export const AboutDrawer = ({
|
|
13
|
+
export const AboutDrawer = ({
|
|
14
|
+
unitId,
|
|
15
|
+
close,
|
|
16
|
+
contractId = "",
|
|
17
|
+
...props
|
|
18
|
+
}: AboutDrawerProps) => {
|
|
13
19
|
const { dependenciesVersion, isDependenciesVersionLoading } =
|
|
14
20
|
useGetDependenciesVersion(unitId);
|
|
15
21
|
|
|
@@ -22,24 +28,20 @@ export const AboutDrawer = ({ unitId, close, ...props }: AboutDrawerProps) => {
|
|
|
22
28
|
>
|
|
23
29
|
<BasicDrawer.Heading title="About" onClose={close} />
|
|
24
30
|
<BasicDrawer.Body data-bp-about-menu-drawer-body>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
<div data-fs-bp-about-information>
|
|
32
|
+
<p data-fs-bp-about-information-title>Version details</p>
|
|
33
|
+
{isDependenciesVersionLoading ? (
|
|
28
34
|
<Skeleton size={{ width: "100%", height: "3.5rem" }} />
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
dependenciesVersion.buyerPortalApps.map((buyerPortalApp) => {
|
|
40
|
-
return (
|
|
41
|
-
<div key={buyerPortalApp.appName}>
|
|
42
|
-
<div data-fs-bp-about-row>
|
|
35
|
+
) : (
|
|
36
|
+
<>
|
|
37
|
+
<div data-fs-bp-about-row>
|
|
38
|
+
<span data-fs-bp-about-row-label>Organization Account</span>
|
|
39
|
+
<span data-fs-bp-about-row-value>{CURRENT_VERSION}</span>
|
|
40
|
+
</div>
|
|
41
|
+
{dependenciesVersion &&
|
|
42
|
+
dependenciesVersion.buyerPortalApps.map((buyerPortalApp) => {
|
|
43
|
+
return (
|
|
44
|
+
<div data-fs-bp-about-row key={buyerPortalApp.appName}>
|
|
43
45
|
<span data-fs-bp-about-row-label>
|
|
44
46
|
{buyerPortalApp.appName}
|
|
45
47
|
</span>
|
|
@@ -47,12 +49,22 @@ export const AboutDrawer = ({ unitId, close, ...props }: AboutDrawerProps) => {
|
|
|
47
49
|
{buyerPortalApp.appVersion}
|
|
48
50
|
</span>
|
|
49
51
|
</div>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
);
|
|
53
|
+
})}
|
|
54
|
+
</>
|
|
55
|
+
)}
|
|
56
|
+
</div>
|
|
57
|
+
<div data-fs-bp-about-information>
|
|
58
|
+
<p data-fs-bp-about-information-title>Navigation Details</p>
|
|
59
|
+
{!!contractId && (
|
|
60
|
+
<>
|
|
61
|
+
<div data-fs-bp-about-row data-fs-bp-about-row-contract-id>
|
|
62
|
+
<span data-fs-bp-about-row-label>Contract ID</span>
|
|
63
|
+
<span data-fs-bp-about-row-value>{contractId}</span>
|
|
64
|
+
</div>
|
|
65
|
+
</>
|
|
66
|
+
)}
|
|
67
|
+
</div>
|
|
56
68
|
</BasicDrawer.Body>
|
|
57
69
|
</BasicDrawer>
|
|
58
70
|
);
|
|
@@ -29,29 +29,44 @@
|
|
|
29
29
|
|
|
30
30
|
[data-fs-bp-about-row] {
|
|
31
31
|
display: flex;
|
|
32
|
-
padding: 1
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
padding: var(--fs-bp-padding-4) var(--fs-bp-padding-1);
|
|
33
|
+
color: var(--fs-bp-color-black);
|
|
34
|
+
border-bottom: var(--fs-border-width) solid var(--fs-bp-color-neutral-3);
|
|
35
|
+
@include text-style('body');
|
|
36
|
+
line-height: var(--fs-bp-line-height-lg);
|
|
37
|
+
|
|
38
|
+
&[data-fs-bp-about-row-contract-id] {
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
gap: var(--fs-bp-gap-2);
|
|
42
|
+
|
|
43
|
+
[data-fs-bp-about-row-value] {
|
|
44
|
+
word-break: break-word;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-fs-bp-about-row-label] {
|
|
48
|
+
flex: 0 0 auto;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
36
51
|
|
|
37
52
|
[data-fs-bp-about-row-label] {
|
|
38
|
-
|
|
39
|
-
color:
|
|
40
|
-
font-size: var(--fs-text-size-1);
|
|
41
|
-
font-weight: 500;
|
|
53
|
+
flex: 0 0 12.5rem;
|
|
54
|
+
color: var(--fs-bp-color-neutral-7);
|
|
42
55
|
}
|
|
43
56
|
|
|
44
|
-
[data-fs-bp-about-row-
|
|
45
|
-
|
|
46
|
-
font-size: var(--fs-text-size-1);
|
|
47
|
-
font-weight: 500;
|
|
57
|
+
[data-fs-bp-about-row-value] {
|
|
58
|
+
flex: 1;
|
|
48
59
|
}
|
|
49
60
|
}
|
|
50
61
|
|
|
51
|
-
[data-fs-bp-about-divider] {
|
|
52
|
-
border: calc(var(--fs-border-width) / 2) solid #e0e0e0;
|
|
53
|
-
}
|
|
54
62
|
[data-fs-bp-about-information] {
|
|
55
|
-
padding-
|
|
63
|
+
padding-bottom: var(--fs-bp-padding-8);
|
|
64
|
+
|
|
65
|
+
[data-fs-bp-about-information-title] {
|
|
66
|
+
@include text-style('body-big');
|
|
67
|
+
color: var(--fs-bp-color-black);
|
|
68
|
+
padding-bottom: var(--fs-bp-padding-4);
|
|
69
|
+
font-weight: var(--fs-bp-weight-semibold);
|
|
70
|
+
}
|
|
56
71
|
}
|
|
57
72
|
}
|
|
@@ -15,13 +15,14 @@ export const OrgUnitTabsLayout = ({
|
|
|
15
15
|
children,
|
|
16
16
|
loading = false,
|
|
17
17
|
}: OrgUnitTabsLayoutProps) => {
|
|
18
|
-
const { currentOrgUnit, currentUser } = useBuyerPortal();
|
|
18
|
+
const { currentOrgUnit, currentUser, currentContract } = useBuyerPortal();
|
|
19
19
|
|
|
20
20
|
const verticalLinks = getOrganizationSettingsLinks(currentOrgUnit?.id ?? "");
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<BaseTabsLayout data-fs-bp-org-unit-tabs-layout>
|
|
24
24
|
<BaseTabsLayout.Navbar
|
|
25
|
+
contractId={currentContract?.id ?? ""}
|
|
25
26
|
orgUnit={currentOrgUnit}
|
|
26
27
|
pageName={pageName}
|
|
27
28
|
person={{
|
|
@@ -18,11 +18,11 @@ export const SCOPE_KEYS = {
|
|
|
18
18
|
ADDRESSES: "addresses",
|
|
19
19
|
CUSTOM_FIELDS: "customFields",
|
|
20
20
|
COLLECTIONS: "collectionIds",
|
|
21
|
-
PAYMENT_SYSTEMS: "
|
|
21
|
+
PAYMENT_SYSTEMS: "paymentGroups",
|
|
22
22
|
CREDIT_CARDS: "creditCards",
|
|
23
23
|
} as const;
|
|
24
24
|
|
|
25
|
-
export const CURRENT_VERSION = "1.3.
|
|
25
|
+
export const CURRENT_VERSION = "1.3.84";
|
|
26
26
|
|
|
27
27
|
export const CHANGES_TIMEOUT_MESSAGE =
|
|
28
28
|
"Changes may take up to 10 minutes to apply.";
|