Skip to content

Commit 826f2ef

Browse files
Merge pull request #5474 from alkem-io/develop
Release: Whiteboards, Fixes
2 parents 47b86cc + 9d59fd0 commit 826f2ef

File tree

59 files changed

+3033
-1189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+3033
-1189
lines changed

package-lock.json

+998-273
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alkemio/client-web",
3-
"version": "0.53.1",
3+
"version": "0.53.2",
44
"description": "Alkemio client, enabling users to interact with Challenges hosted on the Alkemio platform.",
55
"author": "Alkemio Foundation",
66
"repository": {
@@ -26,7 +26,7 @@
2626
"analyze": "source-map-explorer 'build/static/js/*.js'"
2727
},
2828
"dependencies": {
29-
"@alkemio/excalidraw": "^0.16.1-alkemio-1",
29+
"@alkemio/excalidraw": "^0.17.0-alkemio-2",
3030
"@alkemio/visualization": "0.1.6",
3131
"@apollo/client": "^3.6.9",
3232
"@elastic/apm-rum": "^5.12.0",

src/core/apollo/generated/apollo-helpers.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,7 @@ export type PlatformLocationsKeySpecifier = (
18951895
| 'impact'
18961896
| 'innovationLibrary'
18971897
| 'inspiration'
1898+
| 'landing'
18981899
| 'newuser'
18991900
| 'opensource'
19001901
| 'privacy'
@@ -1918,6 +1919,7 @@ export type PlatformLocationsFieldPolicy = {
19181919
impact?: FieldPolicy<any> | FieldReadFunction<any>;
19191920
innovationLibrary?: FieldPolicy<any> | FieldReadFunction<any>;
19201921
inspiration?: FieldPolicy<any> | FieldReadFunction<any>;
1922+
landing?: FieldPolicy<any> | FieldReadFunction<any>;
19211923
newuser?: FieldPolicy<any> | FieldReadFunction<any>;
19221924
opensource?: FieldPolicy<any> | FieldReadFunction<any>;
19231925
privacy?: FieldPolicy<any> | FieldReadFunction<any>;

src/core/apollo/generated/apollo-hooks.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,12 @@ export const SpaceDashboardNavigationProfileFragmentDoc = gql`
26872687
tagset {
26882688
...TagsetDetails
26892689
}
2690-
visual(type: CARD) {
2690+
avatar: visual(type: AVATAR) {
2691+
id
2692+
uri
2693+
alternativeText
2694+
}
2695+
cardBanner: visual(type: CARD) {
26912696
id
26922697
uri
26932698
alternativeText
@@ -3083,6 +3088,7 @@ export const ConfigurationFragmentDoc = gql`
30833088
locations {
30843089
environment
30853090
domain
3091+
landing
30863092
about
30873093
blog
30883094
feedback

src/core/apollo/generated/graphql-schema.ts

+14-3
Original file line numberDiff line numberDiff line change
@@ -3639,6 +3639,8 @@ export type PlatformLocations = {
36393639
innovationLibrary: Scalars['String'];
36403640
/** URL to a page about the collaboration tools */
36413641
inspiration: Scalars['String'];
3642+
/** URL to the landing page of the platform */
3643+
landing: Scalars['String'];
36423644
/** URL where new users can get onboarding help */
36433645
newuser: Scalars['String'];
36443646
/** URL for the link Opensource in the HomePage of the application */
@@ -26127,7 +26129,10 @@ export type SpaceDashboardNavigationChallengesQuery = {
2612726129
type: TagsetType;
2612826130
}
2612926131
| undefined;
26130-
visual?:
26132+
avatar?:
26133+
| { __typename?: 'Visual'; id: string; uri: string; alternativeText?: string | undefined }
26134+
| undefined;
26135+
cardBanner?:
2613126136
| { __typename?: 'Visual'; id: string; uri: string; alternativeText?: string | undefined }
2613226137
| undefined;
2613326138
};
@@ -26185,7 +26190,10 @@ export type SpaceDashboardNavigationOpportunitiesQuery = {
2618526190
type: TagsetType;
2618626191
}
2618726192
| undefined;
26188-
visual?:
26193+
avatar?:
26194+
| { __typename?: 'Visual'; id: string; uri: string; alternativeText?: string | undefined }
26195+
| undefined;
26196+
cardBanner?:
2618926197
| { __typename?: 'Visual'; id: string; uri: string; alternativeText?: string | undefined }
2619026198
| undefined;
2619126199
};
@@ -26222,7 +26230,8 @@ export type SpaceDashboardNavigationProfileFragment = {
2622226230
type: TagsetType;
2622326231
}
2622426232
| undefined;
26225-
visual?: { __typename?: 'Visual'; id: string; uri: string; alternativeText?: string | undefined } | undefined;
26233+
avatar?: { __typename?: 'Visual'; id: string; uri: string; alternativeText?: string | undefined } | undefined;
26234+
cardBanner?: { __typename?: 'Visual'; id: string; uri: string; alternativeText?: string | undefined } | undefined;
2622626235
};
2622726236

2622826237
export type SpaceDashboardNavigationContextFragment = {
@@ -28501,6 +28510,7 @@ export type ConfigurationQuery = {
2850128510
__typename?: 'PlatformLocations';
2850228511
environment: string;
2850328512
domain: string;
28513+
landing: string;
2850428514
about: string;
2850528515
blog: string;
2850628516
feedback: string;
@@ -28545,6 +28555,7 @@ export type ConfigurationFragment = {
2854528555
__typename?: 'PlatformLocations';
2854628556
environment: string;
2854728557
domain: string;
28558+
landing: string;
2854828559
about: string;
2854928560
blog: string;
2855028561
feedback: string;

src/core/auth/components/IdentityRouteLink.tsx

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
import React from 'react';
22
import { Button, ButtonProps, Link } from '@mui/material';
3-
import { useConfig } from '../../../domain/platform/config/useConfig';
4-
import { ButtonTypeMap } from '@mui/material/Button/Button';
5-
import { buildReturnUrlParam } from '../../../main/routing/urlBuilders';
63
import { useLocation } from 'react-router-dom';
4+
import { ButtonTypeMap } from '@mui/material/Button/Button';
5+
import { buildLoginUrl } from '../../../main/routing/urlBuilders';
76

87
const IdentityRouteLink = <D extends React.ElementType = ButtonTypeMap['defaultComponent'], P = {}>({
98
children,
109
to,
1110
...props
1211
}: ButtonProps<D, P> & { to: string }) => {
13-
const config = useConfig();
14-
15-
const rootUrl = config.authentication?.providers[0].config.issuer;
16-
1712
const { pathname } = useLocation();
1813

1914
return (
20-
<Button component={Link} href={`${rootUrl}${to}${buildReturnUrlParam(pathname)}`} {...props}>
15+
<Button component={Link} href={buildLoginUrl(pathname)} {...props}>
2116
{children}
2217
</Button>
2318
);

0 commit comments

Comments
 (0)