diff --git a/src/lib/components/Feedback.svelte b/src/lib/components/Feedback.svelte index e053b48..0504d1f 100644 --- a/src/lib/components/Feedback.svelte +++ b/src/lib/components/Feedback.svelte @@ -26,6 +26,7 @@ const { error: feedbackUpload } = await supabase .from("study_spaces") .update({ + directions: newStudySpaceData.directions, volume: newStudySpaceData.volume, wifi: newStudySpaceData.wifi, power: newStudySpaceData.power, diff --git a/src/lib/database.d.ts b/src/lib/database.d.ts index 64842ee..90386f3 100644 --- a/src/lib/database.d.ts +++ b/src/lib/database.d.ts @@ -145,6 +145,7 @@ export type Database = { building_location_old: string | null created_at: string | null description: string | null + directions: string id: string location: string | null power: string @@ -158,6 +159,7 @@ export type Database = { building_location_old?: string | null created_at?: string | null description?: string | null + directions: string id?: string location?: string | null power: string @@ -171,6 +173,7 @@ export type Database = { building_location_old?: string | null created_at?: string | null description?: string | null + directions: string id?: string location?: string | null power?: string diff --git a/src/routes/space/[id]/+page.svelte b/src/routes/space/[id]/+page.svelte index 22eb0bf..8cd1f70 100644 --- a/src/routes/space/[id]/+page.svelte +++ b/src/routes/space/[id]/+page.svelte @@ -171,6 +171,11 @@ {/each}
+
Directions:
+

+ {space.directions} +

+
Where it is:

{#if place.name} diff --git a/src/routes/space/[id]/edit/+page.server.ts b/src/routes/space/[id]/edit/+page.server.ts index 66d2c65..831e088 100644 --- a/src/routes/space/[id]/edit/+page.server.ts +++ b/src/routes/space/[id]/edit/+page.server.ts @@ -21,6 +21,7 @@ export const load: PageServerLoad = async ({ params, locals: { supabase } }) => return { space: { description: "", + directions: "", building_location: undefined, location: "", tags: [], diff --git a/src/routes/space/[id]/edit/+page.svelte b/src/routes/space/[id]/edit/+page.svelte index 62888d2..4a40ba1 100644 --- a/src/routes/space/[id]/edit/+page.svelte +++ b/src/routes/space/[id]/edit/+page.svelte @@ -461,6 +461,14 @@ rows={2} /> + +