Skip to content

Commit 47ab05a

Browse files
authored
feat: add help link to login page (#555)
1 parent d7c5428 commit 47ab05a

4 files changed

Lines changed: 21 additions & 4 deletions

File tree

prisma/seed.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ const tags: Prisma.TagCreateInput[] = [
8888
code: 'LINK',
8989
label: 'Link',
9090
},
91+
{
92+
id: uuidv7(),
93+
code: 'INTRA',
94+
label: 'Intranet',
95+
},
9196
];
9297

9398
const collections: Prisma.CollectionCreateInput[] = [

src/lib/helpers/mapping.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const BADGE_TYPE_INFO: Record<string, { variant: BadgeProps['variant']; label: s
1616
EMP_ENGAGEMENT: { variant: 'blue', label: 'Employee engagement' },
1717
PDF: { variant: 'slate', label: 'PDF' },
1818
LINK: { variant: 'slate', label: 'Link' },
19+
INTRA: { variant: 'slate', label: 'Intranet' },
1920
REQUIRED: { variant: 'slate-light', label: 'Required' },
2021
OVERDUE: { variant: 'slate-light', label: 'Overdue' },
2122
COMPLETED: { variant: 'slate-light', label: 'Completed' },

src/routes/(main)/(protected)/unit/[id]/+page.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,12 @@
473473
class="inline-flex gap-x-4 rounded-2xl border border-slate-200 bg-white p-3"
474474
>
475475
<div class="flex w-[calc(100%-36px)] flex-col gap-y-1">
476-
{#each source.tags.map((t) => t.tag) as tag (tag)}
477-
{@const badgeInfo = getBadgeInfo(tag.code)}
478-
<Badge variant={badgeInfo.variant}>{badgeInfo.label}</Badge>
479-
{/each}
476+
<div class="flex flex-wrap gap-2">
477+
{#each source.tags.map((t) => t.tag) as tag (tag)}
478+
{@const badgeInfo = getBadgeInfo(tag.code)}
479+
<Badge variant={badgeInfo.variant}>{badgeInfo.label}</Badge>
480+
{/each}
481+
</div>
480482

481483
<span class="truncate">
482484
{source.title}

src/routes/(main)/login/+page.svelte

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@
4545
</a>.
4646
</span>
4747
</span>
48+
49+
<a
50+
href="https://ask.gov.sg/glow"
51+
target="_blank"
52+
rel="noopener noreferrer"
53+
class="text-center text-xs underline"
54+
>
55+
Have questions?
56+
</a>
4857
</div>
4958
</div>
5059

0 commit comments

Comments
 (0)