@camunda/camunda-composite-components 0.2.17-rc.4 → 0.2.17-rc.6
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.
|
@@ -22,6 +22,7 @@ export const getTiles = async ({ accessToken, tileConfig, salesPlanType, cluster
|
|
|
22
22
|
responseType: "json",
|
|
23
23
|
camundaAuth: { token: accessToken },
|
|
24
24
|
});
|
|
25
|
+
console.log("currentOrgId", currentOrgId);
|
|
25
26
|
cards = cards.map((card) => {
|
|
26
27
|
card.link = card.link?.replaceAll("{cloudAudience}", cloudAudience);
|
|
27
28
|
card.link = card.link?.replaceAll("{currentOrgId}", currentOrgId);
|
|
@@ -23,7 +23,7 @@ export const StyledModalBody = styled(ModalBody) `
|
|
|
23
23
|
export const HelpCenter = ({ configuration, organization, persona, email, audience, clusters, flags = [], onRequestResumeSurvey, onRequestRetakeSurvey, onRequestClose, mixpanelTrack, theme, origin, initialTab, }) => {
|
|
24
24
|
const { tabs } = configuration;
|
|
25
25
|
const firstTab = tabs[0].id;
|
|
26
|
-
const { userToken: token } = useC3UserConfiguration() || {};
|
|
26
|
+
const { userToken: token, activeOrganizationId } = useC3UserConfiguration() || {};
|
|
27
27
|
const { showTabId } = useC3HelpCenter();
|
|
28
28
|
const [activeTab, setActiveTab] = useState(firstTab);
|
|
29
29
|
const [tabTiles, setTabTiles] = useState({});
|
|
@@ -35,6 +35,7 @@ export const HelpCenter = ({ configuration, organization, persona, email, audien
|
|
|
35
35
|
(async () => {
|
|
36
36
|
const tiles = {};
|
|
37
37
|
setIsLoadingTiles(true);
|
|
38
|
+
console.log("organization", organization);
|
|
38
39
|
for (const singleTab of tabs) {
|
|
39
40
|
if (token) {
|
|
40
41
|
tiles[singleTab.id] = await getTiles({
|
|
@@ -43,7 +44,7 @@ export const HelpCenter = ({ configuration, organization, persona, email, audien
|
|
|
43
44
|
persona,
|
|
44
45
|
clusterIds: clusters.map((cluster) => cluster.uuid),
|
|
45
46
|
email,
|
|
46
|
-
currentOrgId:
|
|
47
|
+
currentOrgId: activeOrganizationId ?? "",
|
|
47
48
|
salesPlanType: organization?.salesPlan?.type ?? "",
|
|
48
49
|
flags,
|
|
49
50
|
accessToken: token,
|
|
@@ -143,8 +144,8 @@ export const HelpCenter = ({ configuration, organization, persona, email, audien
|
|
|
143
144
|
} },
|
|
144
145
|
React.createElement("div", { style: {
|
|
145
146
|
height: persona.complete && activeTab === "recommendations"
|
|
146
|
-
? "
|
|
147
|
-
: "
|
|
147
|
+
? "634px"
|
|
148
|
+
: "696px",
|
|
148
149
|
} },
|
|
149
150
|
React.createElement(SideNav, { isFixedNav: true, expanded: true, isChildOfHeader: false, "aria-label": "Side nav" },
|
|
150
151
|
React.createElement(SideNavItems, null,
|
|
@@ -3,6 +3,7 @@ export const recommendations = (persona, flags, tileConfig, salesPlanType, hasCl
|
|
|
3
3
|
if (!tileConfig) {
|
|
4
4
|
return [];
|
|
5
5
|
}
|
|
6
|
+
console.log("persona", persona, hasClusters, salesPlanType);
|
|
6
7
|
return tileConfig
|
|
7
8
|
.filter((tile) => {
|
|
8
9
|
if (!tile.prerequestites || typeof tile.prerequestites === "boolean") {
|
|
@@ -33,6 +33,7 @@ export const C3ProfileProvider = ({ children }) => {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
getOrgs(decodedAudience, config.userToken).then((res) => {
|
|
36
|
+
console.log("loaded orgs", res, config.activeOrganizationId, res?.find((org) => org.uuid === config.activeOrganizationId), config.userToken);
|
|
36
37
|
setOrgs(res);
|
|
37
38
|
setActiveOrg(res?.find((org) => org.uuid === config.activeOrganizationId) || null);
|
|
38
39
|
});
|