diff --git a/src/app.css b/src/app.css index 3240407..5d8c69b 100644 --- a/src/app.css +++ b/src/app.css @@ -40,7 +40,7 @@ --warning: oklch(0.84 0.16 84); --error: oklch(0.577 0.245 27.325); --positive: oklch(0.5 0.2067 147.18); - --edit: oklch(0.5852 0.2263 260.47); + --action: oklch(0.5852 0.2263 260.47); } .dark { @@ -78,7 +78,7 @@ --warning: oklch(0.84 0.16 84); --error: oklch(0.704 0.191 22.216); --positive: oklch(0.7522 0.2067 147.18); - --edit: oklch(0.6098 0.1872 260.47); + --action: oklch(0.6098 0.1872 260.47); } @theme inline { @@ -120,7 +120,7 @@ --color-warning: var(--warning); --color-error: var(--error); --color-positive: var(--positive); - --color-edit: var(--edit); + --color-action: var(--action); } @layer base { diff --git a/src/lib/components/custom/claim-item-dialog.svelte b/src/lib/components/custom/claim-item-dialog.svelte index a255926..3e0912b 100644 --- a/src/lib/components/custom/claim-item-dialog.svelte +++ b/src/lib/components/custom/claim-item-dialog.svelte @@ -23,7 +23,7 @@ -
+
diff --git a/src/lib/components/custom/edit-item-dialog.svelte b/src/lib/components/custom/edit-item-dialog.svelte index f4d9d87..8ade4c6 100644 --- a/src/lib/components/custom/edit-item-dialog.svelte +++ b/src/lib/components/custom/edit-item-dialog.svelte @@ -6,7 +6,7 @@ import { Label } from '$lib/components/ui/label'; import * as Field from '$lib/components/ui/field'; import { Separator } from '$lib/components/ui/separator'; - + import TrashIcon from '@lucide/svelte/icons/trash'; import ImageUpload from '$lib/components/custom/image-upload/image-upload.svelte'; import { genDescription } from '$lib/db/items.remote'; import { EMAIL_REGEX_STRING } from '$lib/consts'; @@ -14,6 +14,9 @@ import { Textarea } from '$lib/components/ui/textarea'; import * as Card from '$lib/components/ui/card'; import { dateFormatOptions } from '$lib/shared'; + import { Badge } from '$lib/components/ui/badge'; + import { deleteInquiry } from '$lib/db/inquiries.remote'; + import { invalidateAll } from '$app/navigation'; let { open = $bindable(), item = $bindable() }: { open: boolean, item: Item | undefined } = $props(); @@ -32,7 +35,7 @@ - + Manage Item @@ -122,16 +125,30 @@

Item inquiries:

{#each item.threads as thread (thread)} - - - - Date - Inquirer: {thread.messages[0].body} - - - - + + + {thread.createdAt.toLocaleDateString('en-US', dateFormatOptions)} + + + + + {thread.messages[0].body} + + + + Reply? + + + + + {/each}
{/if} diff --git a/src/lib/components/custom/inquire-item-dialog.svelte b/src/lib/components/custom/inquire-item-dialog.svelte index 05855cf..26c8534 100644 --- a/src/lib/components/custom/inquire-item-dialog.svelte +++ b/src/lib/components/custom/inquire-item-dialog.svelte @@ -12,6 +12,7 @@ let { open = $bindable(), item }: { open: boolean, item: Item | undefined } = $props(); + @@ -23,7 +24,7 @@ - +
@@ -53,7 +54,7 @@
- + Please describe your inquiry * {/if} -