diff --git a/src/mapper/src/lib/components/more/index.svelte b/src/mapper/src/lib/components/more/index.svelte index e95566cb31..bb826caefc 100644 --- a/src/mapper/src/lib/components/more/index.svelte +++ b/src/mapper/src/lib/components/more/index.svelte @@ -2,11 +2,17 @@ import Editor from '$lib/components/editor/editor.svelte'; import Comment from '$lib/components/more/comment.svelte'; import Activities from '$lib/components/more/activities.svelte'; + import ProjectInfo from '$lib/components/more/project-info.svelte'; import { getTaskStore } from '$store/tasks.svelte.ts'; import type { ProjectData, TaskEventType } from '$lib/types'; - type stackType = '' | 'Comment' | 'Instructions' | 'Activities'; + type stackType = '' | 'Comment' | 'Instructions' | 'Activities' | 'Project Information'; + const stackGroup: { icon: string; title: stackType }[] = [ + { + icon: 'info-circle', + title: 'Project Information', + }, { icon: 'chat', title: 'Comment', @@ -24,7 +30,7 @@ type Props = { projectData: ProjectData; zoomToTask: (taskId: number) => void; - } + }; let { projectData, zoomToTask }: Props = $props(); const taskStore = getTaskStore(); @@ -88,15 +94,22 @@

{activeStack}

{/if} + {#if activeStack === 'Comment'} {/if} - {#if activeStack === 'Instructions'} - + {#if projectData?.per_task_instructions} + + {:else} +
+

No Instructions

+
+ {/if} {/if} {#if activeStack === 'Activities'} - + {/if} + {#if activeStack === 'Project Information'}{/if} diff --git a/src/mapper/src/lib/components/more/project-info.svelte b/src/mapper/src/lib/components/more/project-info.svelte new file mode 100644 index 0000000000..e6b4d62b8f --- /dev/null +++ b/src/mapper/src/lib/components/more/project-info.svelte @@ -0,0 +1,31 @@ + + +
{projectData?.name}
+
+
Description
+

{projectData?.description}

+
+ {#each descriptionList as description} +
+

{description.key}

+

+ : + {description?.value || '-'} +

+
+ {/each} +
+
diff --git a/src/mapper/src/styles/page.css b/src/mapper/src/styles/page.css index ef12c3c43b..c738fcc7c9 100644 --- a/src/mapper/src/styles/page.css +++ b/src/mapper/src/styles/page.css @@ -40,3 +40,7 @@ p { margin: 0px; } + +h5 { + margin: 0; +}