Skip to content

Commit dbb9e72

Browse files
committed
styel
1 parent 2d82a2c commit dbb9e72

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

convex/schema.ts

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export default defineSchema({
1414
reason: v.string(),
1515
}),
1616

17-
1817
tasks: defineTable({
1918
// Datetime Strings
2019
startTime: v.string(),

sampleData.jsonl

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
{"startTime": "2023-11-01T02:00:00.000Z", "deadline": "2023-11-01T11:00:00.000Z", "isFixed": false, "title": "Task 1", "duration": 3, "priority": 1}
1+
{"startTime": "2023-10-31T02:00:00.000Z", "deadline": "2023-11-01T11:00:00.000Z", "isFixed": false, "title": "Meeting with Alice", "duration": 2, "priority": 1}
2+
{"startTime": "2023-10-30T18:00:00.000Z", "deadline": "2023-11-00T11:00:00.000Z", "isFixed": false, "title": "Focus time", "duration": 1, "priority": 1}
3+
{"startTime": "2023-10-30T23:00:00.000Z", "deadline": "2023-11-00T11:00:00.000Z", "isFixed": false, "title": "Daily Standup", "duration": 1, "priority": 1}
4+
{"startTime": "2023-10-30T20:00:00.000Z", "deadline": "2023-11-00T11:00:00.000Z", "isFixed": false, "title": "Board meeting", "duration": 2, "priority": 1}
25
{"startTime": "2023-11-02T03:00:00.000Z", "deadline": "2023-11-02T13:00:00.000Z", "isFixed": true, "title": "Task 2", "duration": 2, "priority": 2}
3-
{"startTime": "2023-11-03T01:00:00.000Z", "deadline": "2023-11-03T10:00:00.000Z", "isFixed": false, "title": "Task 3", "duration": 4, "priority": 3}
6+
{"startTime": "2023-11-03T01:00:00.000Z", "deadline": "2023-11-03T10:00:00.000Z", "isFixed": false, "title": "Task 3", "duration": 2, "priority": 3}
47
{"startTime": "2023-11-04T04:00:00.000Z", "deadline": "2023-11-04T08:00:00.000Z", "isFixed": true, "title": "Task 4", "duration": 1, "priority": 1}
5-
{"startTime": "2023-11-05T05:00:00.000Z", "deadline": "2023-11-05T09:00:00.000Z", "isFixed": false, "title": "Task 5", "duration": 2, "priority": 2}
8+
{"startTime": "2023-11-05T05:00:00.000Z", "deadline": "2023-11-05T09:00:00.000Z", "isFixed": false, "title": "hacthaton", "duration": 2, "priority": 2}

sampleReccos.jsonl

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
{"startTime": "2023-11-01T04:00:00.000Z", "deadline": "2023-11-01T11:00:00.000Z", "isFixed": false, "title": "Task 1", "duration": 3, "priority": 1, "reason": "You are most productive from 8am to 10am and this task is high priority so we are recommending you to do it at 8am"}
1+
{"startTime": "2023-10-31T02:00:00.000Z", "deadline": "2023-11-01T11:00:00.000Z", "isFixed": false, "title": "Meeting with Alice", "duration": 2, "priority": 1, "reason": ""}
2+
{"startTime": "2023-10-30T15:00:00.000Z", "deadline": "2023-11-00T11:00:00.000Z", "isFixed": false, "title": "Focus time", "duration": 1, "priority": 1 , "reason": "You are most productive from 8am to 10am and this task is high priority so we are recommending you to do it at 8am"}
3+
{"startTime": "2023-10-30T17:00:00.000Z", "deadline": "2023-11-00T11:00:00.000Z", "isFixed": false, "title": "Daily Standup", "duration": 1, "priority": 1, "reason": ""}
4+
{"startTime": "2023-10-30T20:00:00.000Z", "deadline": "2023-11-00T11:00:00.000Z", "isFixed": false, "title": "Board meeting", "duration": 2, "priority": 1, "reason": "You have a board meeting at 1pm and it is a high stress activity, your stress levels tends to peak at 1pm . If possible, please schedule some time before and after it so that you don't get overwhelemed."}

src/app/page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export default function Home() {
7777

7878
const [isModalOpen, setIsModalOpen] = useState(false);
7979

80+
console.log(reccos);
81+
8082
function cleanString(str: string) {
8183
const stopwords = [
8284
"schedule",
@@ -627,7 +629,7 @@ export default function Home() {
627629
}
628630
return (
629631
<div
630-
className="tw-w-full tw-flex tw-justify-center tw-text-center"
632+
className="tw-w-[500px] tw-flex tw-justify-center tw-text-center"
631633
key={day}
632634
>
633635
{/* Content for each hour can be added here */}

0 commit comments

Comments
 (0)