Skip to content

Commit 0c6cbb4

Browse files
committed
fix: domains, design comments.
1 parent 93bc14a commit 0c6cbb4

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

src/lib/components/git/deploymentDomains.svelte

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@
33
import { Link } from '$lib/elements';
44
import { Button } from '$lib/elements/forms';
55
import type { Models } from '@appwrite.io/console';
6-
import { IconExternalLink, IconQrcode } from '@appwrite.io/pink-icons-svelte';
7-
import { ActionMenu, Icon, Layout, Popover, Tag, Typography } from '@appwrite.io/pink-svelte';
6+
import { IconExclamation, IconExternalLink, IconQrcode } from '@appwrite.io/pink-icons-svelte';
7+
import {
8+
ActionMenu,
9+
Icon,
10+
Layout,
11+
Popover,
12+
Tag,
13+
Tooltip,
14+
Typography
15+
} from '@appwrite.io/pink-svelte';
816
import { regionalProtocol } from '$routes/(console)/project-[region]-[project]/store';
917
1018
let {
@@ -34,9 +42,19 @@
3442
<Link external href={`${$regionalProtocol}${sortedDomains[0]?.domain}`} variant="muted">
3543
<Layout.Stack gap="xxs" direction="row" alignItems="center">
3644
<Trim alternativeTrim>
37-
<Typography.Text variant="m-400" color="--fgcolor-neutral-primary">
38-
{sortedDomains[0]?.domain}
39-
</Typography.Text>
45+
<Layout.Stack gap="xxs" direction="row" alignItems="flex-end">
46+
<Typography.Text variant="m-400" color="--fgcolor-neutral-primary">
47+
{sortedDomains[0]?.domain}
48+
</Typography.Text>
49+
50+
{#if sortedDomains[0]?.status !== 'verified'}
51+
<Tooltip>
52+
<Icon icon={IconExclamation} size="s" color="--bgcolor-warning" />
53+
54+
<div slot="tooltip">Not verified</div>
55+
</Tooltip>
56+
{/if}
57+
</Layout.Stack>
4058
</Trim>
4159
</Layout.Stack>
4260
</Link>

src/routes/(console)/project-[region]-[project]/databases/table.svelte

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import { Id } from '$lib/components';
55
import { toLocaleDateTime } from '$lib/helpers/date';
66
import { columns } from './store';
7-
import { Tooltip, Table } from '@appwrite.io/pink-svelte';
7+
import { IconExclamation } from '@appwrite.io/pink-icons-svelte';
8+
import { Layout, Tooltip, Table, Icon } from '@appwrite.io/pink-svelte';
89
910
export let data;
1011
@@ -51,7 +52,13 @@
5152
maxWidth="fit-content">
5253
<span class="u-trim">
5354
{#if !policies}
54-
<span class="icon-exclamation"></span> No backup policies
55+
<Layout.Stack direction="row" gap="xxs" alignItems="center">
56+
<Icon
57+
icon={IconExclamation}
58+
size="s"
59+
color="--bgcolor-warning" />
60+
No backup policies
61+
</Layout.Stack>
5562
{:else}
5663
{description}
5764
{/if}

0 commit comments

Comments
 (0)