diff --git a/src/domain/challenge/challenge/challenge.default.callouts.ts b/src/domain/challenge/challenge/challenge.default.callouts.ts index d765e4841a..42f85ed3f6 100644 --- a/src/domain/challenge/challenge/challenge.default.callouts.ts +++ b/src/domain/challenge/challenge/challenge.default.callouts.ts @@ -9,7 +9,10 @@ import { EMPTY_WHITEBOARD_VALUE } from '@domain/common/whiteboard/whiteboard.ent export const challengeDefaultCallouts: CreateCalloutInput[] = [ { + nameID: 'welcome', type: CalloutType.POST, + state: CalloutState.OPEN, + sortOrder: 1, profile: { displayName: 'Why do you care about this Challenge?', description: @@ -18,16 +21,16 @@ export const challengeDefaultCallouts: CreateCalloutInput[] = [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, type: TagsetType.SELECT_ONE, - tags: [CommonDisplayLocation.HOME_LEFT], + tags: [CommonDisplayLocation.HOME_RIGHT], }, ], }, - nameID: 'challenge-welcome', - state: CalloutState.OPEN, - sortOrder: 1, }, { + nameID: 'recommendations', type: CalloutType.LINK_COLLECTION, + state: CalloutState.CLOSED, + sortOrder: 3, profile: { displayName: 'Recommended by the Leads', description: 'Some quick links to get started 💥', @@ -39,44 +42,41 @@ export const challengeDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - nameID: 'recommendations', - state: CalloutState.CLOSED, - sortOrder: 3, }, { + nameID: 'general-chat', type: CalloutType.POST, + state: CalloutState.OPEN, + sortOrder: 2, profile: { - displayName: 'Suggestions, Questions, and Feedback', - description: '✍️ Please share it here :)', + displayName: 'General chat 💬', + description: 'Things you would like to discuss with the community.', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, type: TagsetType.SELECT_ONE, - tags: [CommonDisplayLocation.HOME_RIGHT], + tags: [CommonDisplayLocation.HOME_LEFT], }, ], }, - nameID: 'suggestions', - state: CalloutState.OPEN, - sortOrder: 3, }, { + nameID: 'news', type: CalloutType.POST_COLLECTION, + state: CalloutState.OPEN, + sortOrder: 1, profile: { - displayName: 'Contribute', + displayName: 'Relevant news, research or use cases 📰', description: - '✍️ Contribute your insights to understanding the context. It is about surfacing up the wisdom of the community. Add your own post, or comment on posts added by others.', + 'Please share any relevant insights to help us better understand the Challenge. You can describe why it is relevant and add a link or upload a document with the article. You can also comment on the insights already submitted by other community members!', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, type: TagsetType.SELECT_ONE, - tags: [ChallengeDisplayLocation.CONTRIBUTE_RIGHT], + tags: [ChallengeDisplayLocation.CONTRIBUTE], }, ], }, - nameID: `${CalloutType.POST_COLLECTION}-default`, - state: CalloutState.OPEN, - sortOrder: 5, postTemplate: { type: 'contribution', defaultDescription: @@ -89,11 +89,14 @@ export const challengeDefaultCallouts: CreateCalloutInput[] = [ }, }, { - type: CalloutType.WHITEBOARD_COLLECTION, + nameID: 'stakeholder-map', + type: CalloutType.WHITEBOARD, + state: CalloutState.OPEN, + sortOrder: 2, profile: { - displayName: 'Collaborate visually', + displayName: 'Who are the stakeholders?', description: - '🎨 Collaborate visually using Whiteboards. Create a new Whiteboard from a template, or explore Whiteboards already created.', + 'Choose one of the templates from the library to map your stakeholders here!', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, @@ -102,14 +105,73 @@ export const challengeDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - nameID: `${CalloutType.WHITEBOARD_COLLECTION}`, - state: CalloutState.OPEN, - sortOrder: 10, - whiteboardTemplate: { + whiteboard: { value: EMPTY_WHITEBOARD_VALUE, + nameID: 'stakeholders', + profileData: { + displayName: 'stakeholder map', + }, + }, + }, + { + nameID: 'documents', + type: CalloutType.LINK_COLLECTION, + state: CalloutState.OPEN, + sortOrder: 3, + profile: { + displayName: 'Reference / important documents', + description: 'Please add links to documents with reference material.💥', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [ChallengeDisplayLocation.CONTRIBUTE], + }, + ], + }, + }, + { + nameID: 'opportunity-ideas', + type: CalloutType.POST, + state: CalloutState.OPEN, + sortOrder: 1, + profile: { + displayName: 'What Opportunities do you see?', + description: + '👋 Please share any relevant direction for a solution that you can think of or have seen.', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [ChallengeDisplayLocation.OPPORTUNITIES_LEFT], + }, + ], + }, + }, + { + nameID: 'proposals', + type: CalloutType.POST_COLLECTION, + state: CalloutState.OPEN, + sortOrder: 1, + profile: { + displayName: 'Opportunity proposals 🎯', + description: + 'Do you have a specific Opportunity you would like to pick up with other community members? Please share your proposal here! You can also comment on proposals by others if you want to work on that Opportunity as well!', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [ChallengeDisplayLocation.OPPORTUNITIES_RIGHT], + }, + ], + }, + postTemplate: { + type: 'opportunity', + defaultDescription: + '✍️ Describe your Opportunity, what the impact is, and who you would like to involve.', profile: { - displayName: 'blank whiteboard', - description: 'A blank whiteboard to be worked further.', + displayName: 'opportunity', + description: 'To share proposals for Opportunities to be worked on.', }, }, }, diff --git a/src/domain/challenge/challenge/challenge.service.ts b/src/domain/challenge/challenge/challenge.service.ts index 90455b4ba0..8294958a25 100644 --- a/src/domain/challenge/challenge/challenge.service.ts +++ b/src/domain/challenge/challenge/challenge.service.ts @@ -206,7 +206,8 @@ export class ChallengeService { challenge.collaboration = await this.collaborationService.addDefaultCallouts( challenge.collaboration, - challengeDefaultCallouts + challengeDefaultCallouts, + agentInfo?.userID ); if (agentInfo && challenge.community) { @@ -581,7 +582,6 @@ export class ChallengeService { const opportunity = await this.opportunityService.createOpportunity( opportunityData, spaceID, - challenge.storageBucket.id, agentInfo ); diff --git a/src/domain/challenge/space/space.default.callouts.ts b/src/domain/challenge/space/space.default.callouts.ts index baaa79c997..f9b261323c 100644 --- a/src/domain/challenge/space/space.default.callouts.ts +++ b/src/domain/challenge/space/space.default.callouts.ts @@ -1,4 +1,3 @@ -import { CalloutDisplayLocation } from '@common/enums/callout.display.location'; import { CalloutState } from '@common/enums/callout.state'; import { CalloutType } from '@common/enums/callout.type'; import { CommonDisplayLocation } from '@common/enums/common.display.location'; @@ -9,9 +8,87 @@ import { CreateCalloutInput } from '@domain/collaboration/callout'; import { EMPTY_WHITEBOARD_VALUE } from '@domain/common/whiteboard/whiteboard.entity'; export const spaceDefaultCallouts: CreateCalloutInput[] = [ + { + nameID: 'recommendations', + type: CalloutType.LINK_COLLECTION, + state: CalloutState.CLOSED, + sortOrder: 3, + profile: { + displayName: 'Recommended by the Leads', + description: 'Some quick links to get started 💥', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [CommonDisplayLocation.HOME_TOP], + }, + ], + }, + }, + { + nameID: 'general-chat', + type: CalloutType.POST, + state: CalloutState.OPEN, + sortOrder: 1, + profile: { + displayName: 'General chat 💬', + description: 'Things you would like to discuss with the community?', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [CommonDisplayLocation.HOME_LEFT], + }, + ], + }, + }, + { + nameID: 'questions', + type: CalloutType.POST, + state: CalloutState.OPEN, + sortOrder: 2, + profile: { + displayName: 'Do you have any questions or feedback?', + description: 'Please share it here :)', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [CommonDisplayLocation.HOME_LEFT], + }, + ], + }, + }, + { + nameID: 'vision', + type: CalloutType.WHITEBOARD, + state: CalloutState.OPEN, + sortOrder: 2, + profile: { + displayName: 'What is this Space about?', + description: + 'We can use this whiteboard to further define our mission and vision, who we want to involve, and what impact we want to make!', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [CommonDisplayLocation.HOME_RIGHT], + }, + ], + }, + whiteboard: { + value: EMPTY_WHITEBOARD_VALUE, + nameID: 'vision', + profileData: { + displayName: 'Vision', + }, + }, + }, { nameID: 'space-welcome', type: CalloutType.POST, + state: CalloutState.OPEN, + sortOrder: 1, profile: { displayName: 'Welcome to the community!', description: @@ -24,52 +101,86 @@ export const spaceDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - state: CalloutState.OPEN, - sortOrder: 1, - displayLocation: CalloutDisplayLocation.COMMUNITY_LEFT, }, { - type: CalloutType.LINK_COLLECTION, + nameID: 'ecosystem', + type: CalloutType.WHITEBOARD, + state: CalloutState.OPEN, + sortOrder: 1, profile: { - displayName: 'Recommended by the Leads', - description: 'Some quick links to get started 💥', + displayName: 'Understanding the existing and potential community', + description: + 'Choose one of the templates from the library to map our your ecosystem or stakeholders here!', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, type: TagsetType.SELECT_ONE, - tags: [CommonDisplayLocation.HOME_TOP], + tags: [SpaceDisplayLocation.COMMUNITY_RIGHT], }, ], }, - nameID: 'recommendations', - state: CalloutState.CLOSED, - sortOrder: 3, - displayLocation: CalloutDisplayLocation.HOME_TOP, + whiteboard: { + value: EMPTY_WHITEBOARD_VALUE, + nameID: 'ecosystem', + profileData: { + displayName: 'Ecosystem Value Map', + }, + }, }, { + nameID: 'challenge-ideas', type: CalloutType.POST, + state: CalloutState.OPEN, + sortOrder: 1, profile: { - displayName: 'Suggestions, Questions, and Feedback', - description: 'Please share it here :)', + displayName: 'What Challenges do you care about?', + description: + '👋 Please share any relevant Challenges that you encounter.', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, type: TagsetType.SELECT_ONE, - tags: [CommonDisplayLocation.HOME_RIGHT], + tags: [SpaceDisplayLocation.CHALLENGES_LEFT], }, ], }, - nameID: 'suggestions', + }, + { + nameID: 'proposals', + type: CalloutType.POST_COLLECTION, state: CalloutState.OPEN, - sortOrder: 3, - displayLocation: CalloutDisplayLocation.HOME_RIGHT, + sortOrder: 1, + profile: { + displayName: 'Challenge proposals 🎯', + description: + 'Do you have a specific Challenge you would like to pick up in this Space? Please share your proposal here! You can also comment on proposals by others if you want to work on that Challenge as well!', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [SpaceDisplayLocation.CHALLENGES_RIGHT], + }, + ], + }, + postTemplate: { + type: 'challenge', + defaultDescription: + 'Describe your Challenge, what your vision is, and who you would like to involve.', + profile: { + displayName: 'Challenge', + description: 'To share proposals for challenges to be worked on.', + }, + }, }, { + nameID: 'news', type: CalloutType.POST_COLLECTION, + state: CalloutState.OPEN, + sortOrder: 1, profile: { - displayName: 'Contribute', + displayName: 'Relevant news, research or use cases 📰', description: - '✍️ Contribute your insights to understanding the context. It is about surfacing up the wisdom of the community. Add your own post, or comment on posts added by others.', + 'Please share any relevant insights to help us better understand the context. You can describe why it is relevant and add a link or upload a document with the article. You can also comment on the insights already submitted by other community members!', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, @@ -78,9 +189,6 @@ export const spaceDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - nameID: `${CalloutType.POST_COLLECTION}-default`, - state: CalloutState.OPEN, - sortOrder: 5, postTemplate: { type: 'contribution', defaultDescription: @@ -91,12 +199,14 @@ export const spaceDefaultCallouts: CreateCalloutInput[] = [ 'To share contributions with detailed explanations how they help.', }, }, - displayLocation: CalloutDisplayLocation.KNOWLEDGE, }, { + nameID: 'documents', type: CalloutType.LINK_COLLECTION, + state: CalloutState.OPEN, + sortOrder: 2, profile: { - displayName: 'Reference / relevant documents', + displayName: 'Reference / important documents', description: 'Please add links to documents with reference material.💥', tagsets: [ { @@ -106,16 +216,16 @@ export const spaceDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - nameID: 'documents', - state: CalloutState.OPEN, - sortOrder: 3, }, { - type: CalloutType.WHITEBOARD_COLLECTION, + nameID: 'faq', + type: CalloutType.POST_COLLECTION, + state: CalloutState.OPEN, + sortOrder: 3, profile: { - displayName: 'Collaborate visually', + displayName: 'FAQ', description: - '🎨 Collaborate visually using Whiteboards. Create a new Whiteboard from a template, or explore Whiteboards already created.', + 'Do you have a question? Check out the most asked questions and answers here.', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, @@ -124,16 +234,13 @@ export const spaceDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - nameID: `${CalloutType.WHITEBOARD_COLLECTION}`, - state: CalloutState.OPEN, - sortOrder: 10, - whiteboardTemplate: { - value: EMPTY_WHITEBOARD_VALUE, + postTemplate: { + type: 'FAQ', + defaultDescription: 'Please share your question!', profile: { - displayName: 'blank whiteboard', - description: 'A blank whiteboard to be worked further.', + displayName: 'faq', + description: 'To gather questions from the community.', }, }, - displayLocation: CalloutDisplayLocation.KNOWLEDGE, }, ]; diff --git a/src/domain/challenge/space/space.service.ts b/src/domain/challenge/space/space.service.ts index 8d0304fcc2..a0c3f5fb24 100644 --- a/src/domain/challenge/space/space.service.ts +++ b/src/domain/challenge/space/space.service.ts @@ -140,7 +140,8 @@ export class SpaceService { space.collaboration = await this.collaborationService.addDefaultCallouts( space.collaboration, - spaceDefaultCallouts + spaceDefaultCallouts, + agentInfo?.userID ); await this.save(space); diff --git a/src/domain/collaboration/collaboration/collaboration.defaults.ts b/src/domain/collaboration/collaboration/collaboration.defaults.ts deleted file mode 100644 index f21ffd511a..0000000000 --- a/src/domain/collaboration/collaboration/collaboration.defaults.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { CalloutState } from '@common/enums/callout.state'; -import { CalloutType } from '@common/enums/callout.type'; -import { CalloutVisibility } from '@common/enums/callout.visibility'; -import { CommunityType } from '@common/enums/community.type'; - -const emptyWhiteboardValue = - '{\n "type": "excalidraw",\n "version": 2,\n "source": "",\n "elements": [],\n "appState": {\n "gridSize": 20,\n "viewBackgroundColor": "#ffffff"\n },\n "files": {}\n}'; - -export const collaborationDefaults: any = { - callouts: [ - { - nameID: 'space-welcome', - type: CalloutType.POST, - communityType: CommunityType.SPACE, - profile: { - displayName: 'Welcome, please introduce yourself to the community!', - description: - 'Please share a few words about yourself to help the community get to know each other. What brings you to this Space and motivates you to work on these Challenges?', - }, - visibility: CalloutVisibility.PUBLISHED, - state: CalloutState.OPEN, - sortOrder: 1, - group: 'COMMUNITY_1', - }, - { - type: CalloutType.POST, - communityType: CommunityType.CHALLENGE, - profile: { - displayName: 'Why do you care about this Challenge?', - description: - 'Please share why this Challenge is important to you as well as any relevant thoughts, experience or expertise.', - }, - nameID: 'challenge-welcome', - visibility: CalloutVisibility.PUBLISHED, - state: CalloutState.OPEN, - sortOrder: 1, - group: 'HOME_2', - }, - { - type: CalloutType.LINK_COLLECTION, - profile: { - displayName: 'Recommended by the Host', - description: 'Please find below quick start links.', - }, - nameID: 'recommendations', - visibility: CalloutVisibility.PUBLISHED, - state: CalloutState.CLOSED, - sortOrder: 3, - group: 'HOME_0', - }, - { - type: CalloutType.POST, - profile: { - displayName: 'Suggestions, Questions, and Feedback', - description: 'Please share it here :)', - }, - nameID: 'suggestions', - visibility: CalloutVisibility.PUBLISHED, - state: CalloutState.OPEN, - sortOrder: 3, - group: 'HOME_2', - }, - { - type: CalloutType.POST_COLLECTION, - profile: { - displayName: 'Contribute', - description: - 'Contribute your insights to understanding the context. It is about surfacing up the wisdom of the community. Add your own post, or comment on posts added by others.', - }, - nameID: `${CalloutType.POST_COLLECTION}-default`, - visibility: CalloutVisibility.PUBLISHED, - state: CalloutState.OPEN, - sortOrder: 5, - postTemplate: { - type: 'contribution', - defaultDescription: - 'Please share your contribution. The more details the better!', - info: { - title: 'contribution', - description: - 'To share contributions with detailed explanations how they help.', - }, - }, - group: 'KNOWLEDGE', - }, - { - type: CalloutType.WHITEBOARD_COLLECTION, - profile: { - displayName: 'Collaborate visually', - description: - 'Collaborate visually using Whiteboards. Create a new Whiteboard from a template, or explore Whiteboards already created.', - }, - nameID: `${CalloutType.WHITEBOARD_COLLECTION}`, - visibility: CalloutVisibility.PUBLISHED, - state: CalloutState.OPEN, - sortOrder: 10, - whiteboardTemplate: { - value: emptyWhiteboardValue, - profile: { - displayName: 'blank whiteboard', - description: 'A blank whiteboard to be worked further.', - }, - }, - group: 'KNOWLEDGE', - }, - ], -}; diff --git a/src/domain/collaboration/collaboration/collaboration.service.ts b/src/domain/collaboration/collaboration/collaboration.service.ts index b113742acb..758fdbde7b 100644 --- a/src/domain/collaboration/collaboration/collaboration.service.ts +++ b/src/domain/collaboration/collaboration/collaboration.service.ts @@ -89,7 +89,8 @@ export class CollaborationService { public async addDefaultCallouts( collaboration: ICollaboration, - calloutsData: CreateCalloutInput[] + calloutsData: CreateCalloutInput[], + userID: string | undefined ): Promise { collaboration.callouts = await this.getCalloutsOnCollaboration( collaboration @@ -101,7 +102,8 @@ export class CollaborationService { for (const calloutDefault of calloutsData) { const callout = await this.calloutService.createCallout( calloutDefault, - collaboration.tagsetTemplateSet.tagsetTemplates + collaboration.tagsetTemplateSet.tagsetTemplates, + userID ); // default callouts are already published callout.visibility = CalloutVisibility.PUBLISHED; diff --git a/src/domain/collaboration/opportunity/opportunity.default.callouts.ts b/src/domain/collaboration/opportunity/opportunity.default.callouts.ts index 69696a1983..cc3da7fc57 100644 --- a/src/domain/collaboration/opportunity/opportunity.default.callouts.ts +++ b/src/domain/collaboration/opportunity/opportunity.default.callouts.ts @@ -9,10 +9,13 @@ import { EMPTY_WHITEBOARD_VALUE } from '@domain/common/whiteboard/whiteboard.ent export const opportunityDefaultCallouts: CreateCalloutInput[] = [ { + nameID: 'recommendations', type: CalloutType.LINK_COLLECTION, + state: CalloutState.CLOSED, + sortOrder: 3, profile: { - displayName: 'Recommended by the Host', - description: 'Please find below quick start links.', + displayName: 'Recommended by the Leads', + description: 'Some quick links to get started 💥', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, @@ -21,15 +24,33 @@ export const opportunityDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - nameID: 'recommendations', - state: CalloutState.CLOSED, - sortOrder: 3, }, { + nameID: 'general-chat', type: CalloutType.POST, + state: CalloutState.OPEN, + sortOrder: 1, profile: { - displayName: 'Suggestions, Questions, and Feedback', - description: 'Please share it here :)', + displayName: 'General chat 💬', + description: 'Things you would like to discuss with the community.', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [CommonDisplayLocation.HOME_LEFT], + }, + ], + }, + }, + { + nameID: 'tasks', + type: CalloutType.POST_COLLECTION, + state: CalloutState.OPEN, + sortOrder: 1, + profile: { + displayName: 'Task list 🎯', + description: + 'Time to get to action! Add a task to this list or find one to pick up!', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, @@ -38,16 +59,43 @@ export const opportunityDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - nameID: 'suggestions', + postTemplate: { + type: 'Task', + defaultDescription: + '✍️ Please describe what has to be done and potentially by whom. The more details the better!', + profile: { + displayName: 'task', + description: 'To share tasks with the community that can be picked up.', + }, + }, + }, + { + nameID: 'roles', + type: CalloutType.POST, state: CalloutState.OPEN, - sortOrder: 3, + sortOrder: 2, + profile: { + displayName: 'Welcome!', + description: + 'What is your role in this community or how would you like to contrbute?', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [CommonDisplayLocation.HOME_RIGHT], + }, + ], + }, }, { + nameID: 'news', type: CalloutType.POST_COLLECTION, + state: CalloutState.OPEN, + sortOrder: 1, profile: { - displayName: 'Contribute', + displayName: 'Relevant news, research or use cases 📰', description: - 'Contribute your insights to understanding the context. It is about surfacing up the wisdom of the community. Add your own post, or comment on posts added by others.', + 'Please share any relevant insights to help us better understand the context. You can describe why it is relevant and add a link or upload a document with the article. You can also comment on the insights already submitted by other community members!', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, @@ -56,9 +104,6 @@ export const opportunityDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - nameID: `${CalloutType.POST_COLLECTION}-default`, - state: CalloutState.OPEN, - sortOrder: 5, postTemplate: { type: 'contribution', defaultDescription: @@ -71,11 +116,13 @@ export const opportunityDefaultCallouts: CreateCalloutInput[] = [ }, }, { - type: CalloutType.WHITEBOARD_COLLECTION, + nameID: 'documents', + type: CalloutType.LINK_COLLECTION, + state: CalloutState.OPEN, + sortOrder: 3, profile: { - displayName: 'Collaborate visually', - description: - 'Collaborate visually using Whiteboards. Create a new Whiteboard from a template, or explore Whiteboards already created.', + displayName: 'Reference / important documents', + description: 'Please add links to documents with reference material.💥', tagsets: [ { name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, @@ -84,14 +131,29 @@ export const opportunityDefaultCallouts: CreateCalloutInput[] = [ }, ], }, - nameID: `${CalloutType.WHITEBOARD_COLLECTION}`, + }, + { + nameID: 'needs', + type: CalloutType.WHITEBOARD, state: CalloutState.OPEN, - sortOrder: 10, - whiteboardTemplate: { + sortOrder: 2, + profile: { + displayName: 'What do we need?', + description: + 'We can use this whiteboard to further define what is needed to realize this Opportunity! Think about research, insights, stakeholders or other resources.', + tagsets: [ + { + name: TagsetReservedName.CALLOUT_DISPLAY_LOCATION, + type: TagsetType.SELECT_ONE, + tags: [OpportunityDisplayLocation.CONTRIBUTE], + }, + ], + }, + whiteboard: { value: EMPTY_WHITEBOARD_VALUE, - profile: { - displayName: 'blank whiteboard', - description: 'A blank whiteboard to be worked further.', + nameID: 'needs', + profileData: { + displayName: 'Identify needs', }, }, }, diff --git a/src/domain/collaboration/opportunity/opportunity.service.ts b/src/domain/collaboration/opportunity/opportunity.service.ts index 999e12b139..18203fca77 100644 --- a/src/domain/collaboration/opportunity/opportunity.service.ts +++ b/src/domain/collaboration/opportunity/opportunity.service.ts @@ -64,7 +64,6 @@ export class OpportunityService { async createOpportunity( opportunityData: CreateOpportunityInput, spaceID: string, - storageBucketID: string, agentInfo?: AgentInfo ): Promise { if (!opportunityData.nameID) { @@ -150,7 +149,8 @@ export class OpportunityService { opportunity.collaboration = await this.collaborationService.addDefaultCallouts( opportunity.collaboration, - opportunityDefaultCallouts + opportunityDefaultCallouts, + agentInfo?.userID ); }