From 232a0dcf01ca71737892bf514be97a6eba2d354c Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Thu, 2 Nov 2023 17:32:30 +0100 Subject: [PATCH] feat: add ProjectHeader component to display project title and GitHub icon, update SVG components to spread props for reusability --- .../ui/src/lib/icons/IconChevronRight.svelte | 5 ++-- packages/ui/src/lib/icons/IconGithub.svelte | 2 ++ .../src/routes/[projectId]/board/+page.svelte | 6 ++++ .../[projectId]/board/ProjectHeader.svelte | 28 +++++++++++++++++++ 4 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 packages/ui/src/routes/[projectId]/board/ProjectHeader.svelte diff --git a/packages/ui/src/lib/icons/IconChevronRight.svelte b/packages/ui/src/lib/icons/IconChevronRight.svelte index 074658aa0..61076b6d9 100644 --- a/packages/ui/src/lib/icons/IconChevronRight.svelte +++ b/packages/ui/src/lib/icons/IconChevronRight.svelte @@ -4,6 +4,7 @@ - - + + diff --git a/packages/ui/src/lib/icons/IconGithub.svelte b/packages/ui/src/lib/icons/IconGithub.svelte index fd01f0ae6..2ae7b0983 100644 --- a/packages/ui/src/lib/icons/IconGithub.svelte +++ b/packages/ui/src/lib/icons/IconGithub.svelte @@ -4,6 +4,7 @@
+ {#if $baseBranchStore?.remoteUrl.startsWith('https') && !$httpsWarningBannerDismissed}
HTTPS remote detected. In order to push & fetch, you may need to  diff --git a/packages/ui/src/routes/[projectId]/board/ProjectHeader.svelte b/packages/ui/src/routes/[projectId]/board/ProjectHeader.svelte new file mode 100644 index 000000000..bc26b7791 --- /dev/null +++ b/packages/ui/src/routes/[projectId]/board/ProjectHeader.svelte @@ -0,0 +1,28 @@ + + + +
+
+ {#if isGitHub} + + {/if} + + {projectTitle} + +
+ {#if pageTitle} + + {pageTitle} + {/if} +
+
+