Merge branch 'feat/directions' into 'master'
feat: Added feature to allow users to give directions for study spaces. These... See merge request gk1623/drp-48!24 Co-authored-by: TadiosT <tadios.temesgen@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
3
src/lib/database.d.ts
vendored
3
src/lib/database.d.ts
vendored
@@ -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
|
||||
|
||||
@@ -171,6 +171,11 @@
|
||||
{/each}
|
||||
<hr />
|
||||
|
||||
<div class="subtitle">Directions:</div>
|
||||
<p class="addrContainer">
|
||||
{space.directions}
|
||||
</p>
|
||||
|
||||
<div class="subtitle">Where it is:</div>
|
||||
<p class="addrContainer">
|
||||
{#if place.name}
|
||||
|
||||
@@ -21,6 +21,7 @@ export const load: PageServerLoad = async ({ params, locals: { supabase } }) =>
|
||||
return {
|
||||
space: {
|
||||
description: "",
|
||||
directions: "",
|
||||
building_location: undefined,
|
||||
location: "",
|
||||
tags: [],
|
||||
|
||||
@@ -461,6 +461,14 @@
|
||||
rows={2}
|
||||
/>
|
||||
|
||||
<label for="directions">Give directions:</label>
|
||||
<Textarea
|
||||
name="directions"
|
||||
bind:value={studySpaceData.directions}
|
||||
placeholder="Turn left once you enter Huxley and walk straight."
|
||||
rows={2}
|
||||
/>
|
||||
|
||||
<label for="building-location">Add the building location:</label>
|
||||
<Text
|
||||
name="building-location"
|
||||
|
||||
Reference in New Issue
Block a user