Skip to content

Commit

Permalink
Users who can't update Whiteboard have explanatory message (#5408)
Browse files Browse the repository at this point in the history
* Users who can't update Whiteboard have explanatory message

* Providing missing details to Whiteboard readonly explanation message

* cleanup

* ActivityBaseView codestyle fix

* type fixes

* owner link opens directMessageDialog
  • Loading branch information
me-andre authored Jan 22, 2024
1 parent 282d74d commit 7ae067a
Show file tree
Hide file tree
Showing 26 changed files with 570 additions and 341 deletions.
129 changes: 68 additions & 61 deletions src/core/apollo/generated/apollo-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ export const WhiteboardRtDetailsFragmentDoc = gql`
myPrivileges
anonymousReadAccess
}
contentUpdatePolicy
createdBy {
id
profile {
Expand All @@ -544,7 +545,7 @@ export const WhiteboardRtDetailsFragmentDoc = gql`
country
city
}
visual(type: AVATAR) {
avatar: visual(type: AVATAR) {
id
uri
}
Expand Down Expand Up @@ -2174,6 +2175,7 @@ export const ChallengeInfoFragmentDoc = gql`
displayName
tagline
description
url
tagset {
...TagsetDetails
}
Expand All @@ -2191,6 +2193,7 @@ export const ChallengeInfoFragmentDoc = gql`
}
community {
id
myMembershipStatus
authorization {
id
myPrivileges
Expand Down Expand Up @@ -2460,6 +2463,7 @@ export const OpportunityProviderFragmentDoc = gql`
displayName
description
tagline
url
visuals {
...VisualFull
}
Expand All @@ -2486,6 +2490,7 @@ export const OpportunityProviderFragmentDoc = gql`
}
community {
id
myMembershipStatus
authorization {
id
myPrivileges
Expand Down Expand Up @@ -2535,6 +2540,7 @@ export const SpaceDetailsFragmentDoc = gql`
displayName
description
tagline
url
tagset {
...TagsetDetails
}
Expand Down Expand Up @@ -2576,6 +2582,7 @@ export const SpaceInfoFragmentDoc = gql`
}
community {
id
myMembershipStatus
authorization {
id
myPrivileges
Expand Down Expand Up @@ -17238,6 +17245,66 @@ export function refetchChallengeDashboardReferencesQuery(
return { query: ChallengeDashboardReferencesDocument, variables: variables };
}

export const ChallengeInfoDocument = gql`
query challengeInfo($spaceId: UUID_NAMEID!, $challengeId: UUID_NAMEID!) {
space(ID: $spaceId) {
id
nameID
challenge(ID: $challengeId) {
...ChallengeInfo
}
}
}
${ChallengeInfoFragmentDoc}
`;

/**
* __useChallengeInfoQuery__
*
* To run a query within a React component, call `useChallengeInfoQuery` and pass it any options that fit your needs.
* When your component renders, `useChallengeInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useChallengeInfoQuery({
* variables: {
* spaceId: // value for 'spaceId'
* challengeId: // value for 'challengeId'
* },
* });
*/
export function useChallengeInfoQuery(
baseOptions: Apollo.QueryHookOptions<SchemaTypes.ChallengeInfoQuery, SchemaTypes.ChallengeInfoQueryVariables>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<SchemaTypes.ChallengeInfoQuery, SchemaTypes.ChallengeInfoQueryVariables>(
ChallengeInfoDocument,
options
);
}

export function useChallengeInfoLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<SchemaTypes.ChallengeInfoQuery, SchemaTypes.ChallengeInfoQueryVariables>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<SchemaTypes.ChallengeInfoQuery, SchemaTypes.ChallengeInfoQueryVariables>(
ChallengeInfoDocument,
options
);
}

export type ChallengeInfoQueryHookResult = ReturnType<typeof useChallengeInfoQuery>;
export type ChallengeInfoLazyQueryHookResult = ReturnType<typeof useChallengeInfoLazyQuery>;
export type ChallengeInfoQueryResult = Apollo.QueryResult<
SchemaTypes.ChallengeInfoQuery,
SchemaTypes.ChallengeInfoQueryVariables
>;
export function refetchChallengeInfoQuery(variables: SchemaTypes.ChallengeInfoQueryVariables) {
return { query: ChallengeInfoDocument, variables: variables };
}

export const CreateChallengeDocument = gql`
mutation createChallenge($input: CreateChallengeOnSpaceInput!) {
createChallenge(challengeData: $input) {
Expand Down Expand Up @@ -17525,66 +17592,6 @@ export function refetchChallengeApplicationTemplateQuery(
return { query: ChallengeApplicationTemplateDocument, variables: variables };
}

export const ChallengeInfoDocument = gql`
query challengeInfo($spaceId: UUID_NAMEID!, $challengeId: UUID_NAMEID!) {
space(ID: $spaceId) {
id
nameID
challenge(ID: $challengeId) {
...ChallengeInfo
}
}
}
${ChallengeInfoFragmentDoc}
`;

/**
* __useChallengeInfoQuery__
*
* To run a query within a React component, call `useChallengeInfoQuery` and pass it any options that fit your needs.
* When your component renders, `useChallengeInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useChallengeInfoQuery({
* variables: {
* spaceId: // value for 'spaceId'
* challengeId: // value for 'challengeId'
* },
* });
*/
export function useChallengeInfoQuery(
baseOptions: Apollo.QueryHookOptions<SchemaTypes.ChallengeInfoQuery, SchemaTypes.ChallengeInfoQueryVariables>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<SchemaTypes.ChallengeInfoQuery, SchemaTypes.ChallengeInfoQueryVariables>(
ChallengeInfoDocument,
options
);
}

export function useChallengeInfoLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<SchemaTypes.ChallengeInfoQuery, SchemaTypes.ChallengeInfoQueryVariables>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<SchemaTypes.ChallengeInfoQuery, SchemaTypes.ChallengeInfoQueryVariables>(
ChallengeInfoDocument,
options
);
}

export type ChallengeInfoQueryHookResult = ReturnType<typeof useChallengeInfoQuery>;
export type ChallengeInfoLazyQueryHookResult = ReturnType<typeof useChallengeInfoLazyQuery>;
export type ChallengeInfoQueryResult = Apollo.QueryResult<
SchemaTypes.ChallengeInfoQuery,
SchemaTypes.ChallengeInfoQueryVariables
>;
export function refetchChallengeInfoQuery(variables: SchemaTypes.ChallengeInfoQueryVariables) {
return { query: ChallengeInfoDocument, variables: variables };
}

export const ChallengeInnovationFlowDocument = gql`
query challengeInnovationFlow($spaceId: UUID_NAMEID!, $challengeId: UUID_NAMEID!) {
space(ID: $spaceId) {
Expand Down
Loading

0 comments on commit 7ae067a

Please sign in to comment.