Fix: remaining table and other QA points

This commit is contained in:
ernstmul committed 2025-05-01 11:01:35 +02:00
1 parent a8c89feec5
commit b28591f648
4 files changed
+22 -13

No files matched your search

@@ -42,7 +42,7 @@
}
</script>
<Modal title="Create team" {error} size="l" bind:show={showCreate} onSubmit={create}>
<Modal title="Create team" {error} size="m" bind:show={showCreate} onSubmit={create}>
<InputText
id="name"
label="Name"
@@ -42,7 +42,7 @@ export const columns = writable<Column[]>([
id: 'buildDuration',
title: 'Build duration',
type: 'integer',
width: { min: 110, max: 140 },
width: { min: 110 },
elements: [
{
value: 15,
@@ -46,7 +46,7 @@
}
</script>
<Table.Root columns={[...columns, { id: 'actions', width: 60 }]} let:root>
<Table.Root columns={[...columns, { id: 'actions', width: 40 }]} let:root>
<svelte:fragment slot="header" let:root>
{#each columns as { id, title }}
<Table.Header.Cell column={id} {root}>
@@ -28,7 +28,14 @@
import type { Column } from '$lib/helpers/types';
import { writable } from 'svelte/store';
import { canWriteMessages } from '$lib/stores/roles';
import { Badge, FloatingActionBar, Layout, Table, Typography } from '@appwrite.io/pink-svelte';
import {
Badge,
FloatingActionBar,
Layout,
Link,
Table,
Typography
} from '@appwrite.io/pink-svelte';
import { Confirm } from '$lib/components';
import { onDestroy, onMount } from 'svelte';
import { stopPolling, pollMessagesStatus } from './helper';
@@ -145,15 +152,17 @@
{:else if column.id === 'providerType'}
<ProviderType type={message.providerType} size="xs" />
{:else if column.id === 'status'}
<MessageStatusPill status={message.status} />
{#if message.status === 'failed'}
<Button
on:click={(e) => {
e.preventDefault();
errors = message.deliveryErrors;
showFailed = true;
}}>Details</Button>
{/if}
<Layout.Stack direction="row" gap="s">
<MessageStatusPill status={message.status} />
{#if message.status === 'failed'}
<Link.Button
on:click={(e) => {
e.preventDefault();
errors = message.deliveryErrors;
showFailed = true;
}}>Details</Link.Button>
{/if}
</Layout.Stack>
{:else if column.type === 'datetime'}
{#if !message[column.id]}
-