cleanup inquiries
All checks were successful
ci / docker_image (push) Successful in 3m10s
ci / deploy (push) Successful in 26s

This commit is contained in:
Drake Marino 2026-02-07 01:11:04 -06:00
parent 1dcbca0445
commit 81f0113ce2
2 changed files with 0 additions and 6 deletions

View File

@ -9,7 +9,6 @@ import type { Item } from '$lib/types/item';
export const load: PageServerLoad = async ({ url, locals, params }) => { export const load: PageServerLoad = async ({ url, locals, params }) => {
const token: string | undefined = url.searchParams.get('token'); const token: string | undefined = url.searchParams.get('token');
// const itemId: string = params.itemId;
const inquiryId: string = params.inquiryId; const inquiryId: string = params.inquiryId;
if (token) { if (token) {
@ -56,7 +55,6 @@ export const load: PageServerLoad = async ({ url, locals, params }) => {
export const actions: Actions = { export const actions: Actions = {
reply: async ({ request, url, locals, params }) => { reply: async ({ request, url, locals, params }) => {
const token: string | undefined = url.searchParams.get('token'); const token: string | undefined = url.searchParams.get('token');
const itemId: number = params.itemId;
const inquiryId: number = params.inquiryId; const inquiryId: number = params.inquiryId;
let sender: Sender | undefined; let sender: Sender | undefined;
@ -93,7 +91,6 @@ export const actions: Actions = {
RETURNING id; RETURNING id;
`; `;
// TODO: Double check logic
let nextReplySender: Sender; let nextReplySender: Sender;
if (sender === Sender.ADMIN || sender === Sender.FINDER) { if (sender === Sender.ADMIN || sender === Sender.FINDER) {
nextReplySender = Sender.INQUIRER; nextReplySender = Sender.INQUIRER;

View File

@ -65,12 +65,10 @@
<Separator class="my-6" /> <Separator class="my-6" />
<div class="relative"> <div class="relative">
<!-- Conversation -->
<div class="flex flex-col gap-6 relative"> <div class="flex flex-col gap-6 relative">
{#if data.item.threads} {#if data.item.threads}
{#each data.item.threads[0].messages as msg (msg.id)} {#each data.item.threads[0].messages as msg (msg.id)}
<div class="flex items-start gap-4"> <div class="flex items-start gap-4">
<!-- Avatar -->
<div class="flex flex-col items-center"> <div class="flex flex-col items-center">
<div <div
class={`flex items-center justify-center w-10 h-10 rounded-full text-white ${senderColor(msg.sender)}`}> class={`flex items-center justify-center w-10 h-10 rounded-full text-white ${senderColor(msg.sender)}`}>
@ -78,7 +76,6 @@
</div> </div>
</div> </div>
<!-- Message body -->
<div class="bg-card rounded-lg p-3 shadow-sm max-w-xl"> <div class="bg-card rounded-lg p-3 shadow-sm max-w-xl">
<p class="text-sm">{msg.body}</p> <p class="text-sm">{msg.body}</p>
<span class="text-xs text-muted-foreground mt-1 block">{msg.createdAt.toLocaleString()}</span> <span class="text-xs text-muted-foreground mt-1 block">{msg.createdAt.toLocaleString()}</span>