-
{monthName} {currentYear}
-
-
-
-
-
- {#each WEEKDAYS as dayOfWeek}
-
-
- |
- {/each}
-
-
-
-
-
-
+
{monthName} {currentYear}
+
+
+
+
+
+ {#each WEEKDAYS as dayOfWeek}
+
+
+ |
+ {/each}
+
+
+
+
+
diff --git a/src/lib/components/meetingSetup/MeetingSetupPage.svelte b/src/lib/components/meetingSetup/MeetingSetupPage.svelte
new file mode 100644
index 00000000..1d600ea5
--- /dev/null
+++ b/src/lib/components/meetingSetup/MeetingSetupPage.svelte
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 4cd3cc81..f6887125 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,7 +1,7 @@
-
+
From a1e1dd3e9491debee00fbbcea5bf766bd3b95d2c Mon Sep 17 00:00:00 2001
From: Minh Nguyen <64875104+MinhxNguyen7@users.noreply.github.com>
Date: Fri, 19 Jan 2024 00:18:17 +0000
Subject: [PATCH 04/12] =?UTF-8?q?feat:=20=E2=9C=A8=20meeting=20name=20fiel?=
=?UTF-8?q?d?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../meetingSetup/MeetingNameField.svelte | 25 +++++++++++++++++++
.../meetingSetup/MeetingSetupPage.svelte | 2 ++
src/lib/stores/meetingSetupStores.ts | 3 +++
3 files changed, 30 insertions(+)
create mode 100644 src/lib/components/meetingSetup/MeetingNameField.svelte
diff --git a/src/lib/components/meetingSetup/MeetingNameField.svelte b/src/lib/components/meetingSetup/MeetingNameField.svelte
new file mode 100644
index 00000000..976c371b
--- /dev/null
+++ b/src/lib/components/meetingSetup/MeetingNameField.svelte
@@ -0,0 +1,25 @@
+
+
+
+
+
diff --git a/src/lib/components/meetingSetup/MeetingSetupPage.svelte b/src/lib/components/meetingSetup/MeetingSetupPage.svelte
index 1d600ea5..d9d1dd34 100644
--- a/src/lib/components/meetingSetup/MeetingSetupPage.svelte
+++ b/src/lib/components/meetingSetup/MeetingSetupPage.svelte
@@ -1,7 +1,9 @@
+
diff --git a/src/lib/stores/meetingSetupStores.ts b/src/lib/stores/meetingSetupStores.ts
index 7f1b9f2d..e774820d 100644
--- a/src/lib/stores/meetingSetupStores.ts
+++ b/src/lib/stores/meetingSetupStores.ts
@@ -46,3 +46,6 @@ export const updateSelectedRange = (startDate: Day, endDate: Day): void => {
return modifiedSelectedDays;
});
};
+
+export const DEFAULT_MEETING_NAME = "Meeting Name";
+export const meetingName = writable
(DEFAULT_MEETING_NAME);
From a83304885654cf1ec397536ed3033e2fcc4ecae4 Mon Sep 17 00:00:00 2001
From: Adithya Anandsaikrishnan
Date: Thu, 25 Jan 2024 14:23:28 -0800
Subject: [PATCH 05/12] =?UTF-8?q?feat:=20=E2=9C=A8=20setup=20time=20select?=
=?UTF-8?q?ion=20on=20meeting=20page?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../meetingSetup/MeetingSetupPage.svelte | 5 ++-
.../meetingSetup/MeetingTimeField.svelte | 37 +++++++++++++++++++
src/lib/stores/meetingSetupStores.ts | 11 ++++++
src/lib/types/meetings.ts | 5 +++
4 files changed, 57 insertions(+), 1 deletion(-)
create mode 100644 src/lib/components/meetingSetup/MeetingTimeField.svelte
diff --git a/src/lib/components/meetingSetup/MeetingSetupPage.svelte b/src/lib/components/meetingSetup/MeetingSetupPage.svelte
index d9d1dd34..94762e30 100644
--- a/src/lib/components/meetingSetup/MeetingSetupPage.svelte
+++ b/src/lib/components/meetingSetup/MeetingSetupPage.svelte
@@ -1,9 +1,12 @@
+
diff --git a/src/lib/components/meetingSetup/MeetingTimeField.svelte b/src/lib/components/meetingSetup/MeetingTimeField.svelte
new file mode 100644
index 00000000..f608a6c7
--- /dev/null
+++ b/src/lib/components/meetingSetup/MeetingTimeField.svelte
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/src/lib/stores/meetingSetupStores.ts b/src/lib/stores/meetingSetupStores.ts
index e774820d..112ca896 100644
--- a/src/lib/stores/meetingSetupStores.ts
+++ b/src/lib/stores/meetingSetupStores.ts
@@ -1,6 +1,7 @@
import { writable } from "svelte/store";
import { Day } from "$lib/components/meetingSetup/Calendar/CalendarDay";
+import type { MeetingTime } from "$lib/types/meetings";
export const selectedDays = writable([]);
@@ -49,3 +50,13 @@ export const updateSelectedRange = (startDate: Day, endDate: Day): void => {
export const DEFAULT_MEETING_NAME = "Meeting Name";
export const meetingName = writable(DEFAULT_MEETING_NAME);
+
+// TODO: Convert to ZotDate
+
+export const DEFAULT_MEETING_TIMES: MeetingTime = {
+ startTime: "08:00",
+ endTime: "17:00",
+};
+
+export const startTime = writable(DEFAULT_MEETING_TIMES.startTime);
+export const endTime = writable(DEFAULT_MEETING_TIMES.endTime);
diff --git a/src/lib/types/meetings.ts b/src/lib/types/meetings.ts
index ad6105da..ec5c881b 100644
--- a/src/lib/types/meetings.ts
+++ b/src/lib/types/meetings.ts
@@ -23,3 +23,8 @@ export type UnscheduledMeeting = {
endTime: string;
location: string;
};
+
+export type MeetingTime = {
+ startTime: string;
+ endTime: string;
+};
From 5fe017479e55f3a8a5e7b7e2005c39ec6c794cda Mon Sep 17 00:00:00 2001
From: Adithya Anandsaikrishnan
Date: Thu, 25 Jan 2024 14:33:11 -0800
Subject: [PATCH 06/12] =?UTF-8?q?feat:=20=E2=9C=A8=20made=20select=20event?=
=?UTF-8?q?s=20select=20all=20text=20on=20inputs?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/lib/components/meetingSetup/MeetingNameField.svelte | 8 ++++++--
src/lib/components/meetingSetup/MeetingTimeField.svelte | 6 ------
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/src/lib/components/meetingSetup/MeetingNameField.svelte b/src/lib/components/meetingSetup/MeetingNameField.svelte
index 976c371b..9d240061 100644
--- a/src/lib/components/meetingSetup/MeetingNameField.svelte
+++ b/src/lib/components/meetingSetup/MeetingNameField.svelte
@@ -8,8 +8,11 @@
$meetingName = DEFAULT_MEETING_NAME;
});
- const onSelect = () => {
- // TODO: Select all text in field
+ const onFocus = (e: Event) => {
+ (e.target as HTMLInputElement).select();
+ };
+ const onSelect = (e: Event) => {
+ (e.target as HTMLInputElement).select();
};
@@ -19,6 +22,7 @@
alt="meeting name input"
id="meeting-name-input"
class="input h-full w-full rounded-lg text-center text-2xl text-zinc-500"
+ on:focus={onFocus}
on:select={onSelect}
bind:value={$meetingName}
/>
diff --git a/src/lib/components/meetingSetup/MeetingTimeField.svelte b/src/lib/components/meetingSetup/MeetingTimeField.svelte
index f608a6c7..53a5249c 100644
--- a/src/lib/components/meetingSetup/MeetingTimeField.svelte
+++ b/src/lib/components/meetingSetup/MeetingTimeField.svelte
@@ -8,10 +8,6 @@
$startTime = DEFAULT_MEETING_TIMES.startTime;
$endTime = DEFAULT_MEETING_TIMES.endTime;
});
-
- const onSelect = () => {
- // TODO: Select all text in field
- };
@@ -22,7 +18,6 @@
id="meeting-start-time-input"
class="input h-full w-full rounded-lg text-center text-2xl text-zinc-500"
step="900"
- on:select={onSelect}
bind:value={$startTime}
/>
From 3a3102fdc839513e74f6cbddc0bd1de2a46023f1 Mon Sep 17 00:00:00 2001
From: Adithya Anandsaikrishnan