-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdashboard.html
More file actions
1271 lines (1186 loc) Β· 62.6 KB
/
dashboard.html
File metadata and controls
1271 lines (1186 loc) Β· 62.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
(() => {
try {
const key = "axis_theme";
const stored = localStorage.getItem(key);
const systemDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
const theme = stored === "dark" || stored === "light" ? stored : systemDark ? "dark" : "light";
document.documentElement.dataset.theme = theme;
} catch {}
})();
</script>
<meta name="theme-color" content="#10b981" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<link rel="manifest" href="manifest.json" />
<title>Axis - Dashboard</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.27/dist/katex.min.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="app">
<!-- Main Dashboard -->
<div id="dashboard" class="dashboard">
<!-- Header -->
<header class="app-header">
<div class="logo">
<span class="logo-mark target-icon" aria-hidden="true"></span>
<a href="index.html" class="logo-text logo-text-link">Axis</a>
<span class="logo-text-dashboard">Dashboard</span>
</div>
<div class="header-actions">
<button id="commandPaletteBtn" type="button" class="btn-icon command-palette-btn" title="Search (Ctrl/Cmd+K)" aria-label="Open command palette">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<circle cx="11" cy="11" r="7"></circle>
<path d="M21 21l-4.3-4.3"></path>
</svg>
<span class="shortcut-hint" aria-hidden="true">βK</span>
</button>
<div class="notification-wrapper">
<button id="notificationBtn" type="button" class="btn-icon notification-btn" title="Notifications" aria-label="Notifications">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M18 8a6 6 0 0 0-12 0c0 7-3 7-3 7h18s-3 0-3-7"></path>
<path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
</svg>
<span id="notificationBadge" class="notification-badge hidden" aria-hidden="true">0</span>
</button>
<div id="notificationDropdown" class="notification-dropdown hidden" role="menu" aria-label="Notifications">
<div class="notification-dropdown-header">
<span>Notifications</span>
<button type="button" id="clearNotificationsBtn" class="btn btn-ghost btn-sm">Clear</button>
</div>
<div id="notificationList" class="notification-list"></div>
</div>
</div>
<div id="offlineIndicator" class="offline-indicator hidden" role="status" aria-live="polite">Offline</div>
<button type="button" class="btn-icon theme-toggle" data-theme-toggle aria-label="Toggle theme" title="Toggle theme">
<svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79z"/>
</svg>
<svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="4"/>
<path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/>
</svg>
</button>
<button id="settingsBtn" class="btn-icon" title="Settings" aria-label="Settings">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
</button>
<button id="logoutBtn" class="btn-icon" title="Logout" aria-label="Log out">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M9 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h5M13 7l4 4-4 4M17 11H7"/>
</svg>
</button>
</div>
</header>
<main class="app-main" id="main-content">
<!-- Left Sidebar -->
<aside class="sidebar">
<!-- Goals Section -->
<section class="panel panel-goals" aria-labelledby="goals-heading">
<div class="panel-header">
<div class="panel-header-row">
<div>
<h2 id="goals-heading">Goals Hierarchy</h2>
<span class="panel-subtitle">Your goals across different timeframes</span>
</div>
<button id="addGoalBtn" class="btn btn-secondary btn-sm">+ Add goal <span class="shortcut-hint-inline" aria-hidden="true">βG</span></button>
</div>
</div>
<div class="goals-content">
<div id="goalsList" class="goals-list-hierarchy" role="list" aria-label="Goals list">
<!-- Goals populated by JS with hierarchy -->
</div>
</div>
</section>
<!-- To-Do List -->
<!-- Task Analytics Panel -->
<section class="panel panel-analytics">
<div class="panel-header">
<div class="panel-header-row">
<div>
<h2>π Task Analytics</h2>
<span class="panel-subtitle">Your productivity insights</span>
</div>
<button type="button" id="toggleAnalyticsBtn" class="btn btn-ghost btn-sm">Expand</button>
</div>
</div>
<div id="analyticsContent" class="analytics-content">
<div class="analytics-summary">
<div class="analytics-stat">
<div class="analytics-stat-value" id="statTotalTasks">0</div>
<div class="analytics-stat-label">Total Tasks</div>
</div>
<div class="analytics-stat">
<div class="analytics-stat-value" id="statCompletedTasks">0</div>
<div class="analytics-stat-label">Completed</div>
</div>
<div class="analytics-stat">
<div class="analytics-stat-value" id="statCompletionRate">0%</div>
<div class="analytics-stat-label">Completion Rate</div>
</div>
</div>
<div id="analyticsExpanded" class="analytics-expanded hidden">
<div class="analytics-section">
<h4>Priority Distribution</h4>
<div id="priorityDistribution" class="priority-distribution"></div>
</div>
<div class="analytics-section">
<h4>Category Breakdown</h4>
<div id="categoryBreakdown" class="category-breakdown"></div>
</div>
<div class="analytics-section">
<h4>This Week's Progress</h4>
<div id="weeklyProgress" class="weekly-progress"></div>
</div>
<div class="analytics-section">
<h4>Productivity Score</h4>
<div id="productivityScore" class="productivity-score">
<div class="score-ring">
<svg viewBox="0 0 36 36" class="score-ring-svg">
<path class="score-ring-bg" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"/>
<path id="scoreRingFill" class="score-ring-fill" stroke-dasharray="0, 100" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"/>
</svg>
<div class="score-value" id="scoreValue">0</div>
</div>
<div class="score-label" id="scoreLabel">Getting Started</div>
</div>
</div>
<div class="analytics-section">
<h4>Focus Heatmap</h4>
<div id="focusHeatmap" class="focus-heatmap"></div>
</div>
<div class="analytics-section">
<h4>Completion Trends</h4>
<div id="completionTrends" class="completion-trends"></div>
</div>
<div class="analytics-section">
<h4>Procrastination Patterns</h4>
<div id="procrastinationPatterns" class="procrastination-patterns"></div>
</div>
<div class="analytics-section">
<h4>Category Time Allocation</h4>
<div id="categoryAllocation" class="category-allocation"></div>
</div>
<div class="analytics-section">
<div style="display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;">
<h4 style="margin: 0;">Weekly Insights</h4>
<div style="display: inline-flex; gap: 8px; flex-wrap: wrap;">
<button type="button" id="generateWeeklyInsightsBtn" class="btn btn-secondary btn-sm">Generate</button>
<button type="button" id="exportInsightsPdfBtn" class="btn btn-ghost btn-sm">Export PDF</button>
<button type="button" id="exportInsightsPngBtn" class="btn btn-ghost btn-sm">Export PNG</button>
</div>
</div>
<div id="weeklyInsights" class="weekly-insights"></div>
</div>
<div class="analytics-section">
<h4>Goals Timeline</h4>
<div id="goalsTimeline" class="goals-timeline"></div>
</div>
</div>
</div>
</section>
<section class="panel panel-tasks" aria-labelledby="tasks-heading">
<div class="panel-header">
<div style="display: flex; justify-content: space-between; align-items: center; width: 100%;">
<div>
<h2 id="tasks-heading">ToβDo List</h2>
<span class="panel-subtitle">Ranked by urgency & deadlines</span>
</div>
<div style="display: flex; gap: 8px; align-items: center;">
<button type="button" id="toggleMatrixBtn" class="btn btn-ghost btn-sm" title="Toggle Eisenhower Matrix view" aria-label="Toggle between list and matrix view" aria-pressed="false">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true">
<rect x="1" y="1" width="5" height="5" rx="1"/>
<rect x="8" y="1" width="5" height="5" rx="1"/>
<rect x="1" y="8" width="5" height="5" rx="1"/>
<rect x="8" y="8" width="5" height="5" rx="1"/>
</svg>
</button>
<button type="button" id="addTaskBtn" class="btn btn-primary" style="padding: 6px 12px; font-size: 0.75rem;" title="Add new task">
+ Add Task <span class="shortcut-hint-inline" aria-hidden="true">βN</span>
</button>
</div>
</div>
</div>
<!-- Eisenhower Matrix View -->
<div id="eisenhowerMatrix" class="eisenhower-matrix hidden" role="region" aria-label="Eisenhower Matrix">
<div class="matrix-quadrant quadrant-urgent-important" role="group" aria-label="Urgent and Important tasks">
<div class="quadrant-header">
<span class="quadrant-icon" aria-hidden="true">π₯</span>
<span class="quadrant-title">Do First</span>
<span class="quadrant-label">Urgent & Important</span>
</div>
<div class="quadrant-tasks" data-priority="Urgent & Important" role="list" aria-label="Urgent and Important tasks"></div>
</div>
<div class="matrix-quadrant quadrant-important-not-urgent" role="group" aria-label="Important but not urgent tasks">
<div class="quadrant-header">
<span class="quadrant-icon" aria-hidden="true">π
</span>
<span class="quadrant-title">Schedule</span>
<span class="quadrant-label">Important, Not Urgent</span>
</div>
<div class="quadrant-tasks" data-priority="Important, Not Urgent" role="list" aria-label="Important but not urgent tasks"></div>
</div>
<div class="matrix-quadrant quadrant-urgent-not-important" role="group" aria-label="Urgent but not important tasks">
<div class="quadrant-header">
<span class="quadrant-icon" aria-hidden="true">π€</span>
<span class="quadrant-title">Delegate</span>
<span class="quadrant-label">Urgent, Not Important</span>
</div>
<div class="quadrant-tasks" data-priority="Urgent, Not Important" role="list" aria-label="Urgent but not important tasks"></div>
</div>
<div class="matrix-quadrant quadrant-not-urgent-not-important" role="group" aria-label="Not urgent and not important tasks">
<div class="quadrant-header">
<span class="quadrant-icon" aria-hidden="true">ποΈ</span>
<span class="quadrant-title">Eliminate</span>
<span class="quadrant-label">Not Urgent & Not Important</span>
</div>
<div class="quadrant-tasks" data-priority="Not Urgent & Not Important" role="list" aria-label="Not urgent and not important tasks"></div>
</div>
</div>
<!-- List View -->
<div id="taskList" class="task-list" role="list" aria-label="Task list">
<!-- Tasks populated by JS -->
</div>
</section>
<!-- Daily Habits -->
<section class="panel panel-habits">
<div class="panel-header">
<h2>Daily Habits</h2>
<span class="panel-subtitle">Fixed tasks you can set up</span>
</div>
<div class="habits-content">
<button type="button" id="addHabitBtn" class="btn-add-goal" title="Add a new habit">
<span class="btn-add-goal-icon">+</span>
<span>Add Daily Habit</span>
</button>
<div id="habitsList" class="habits-list">
<!-- Daily habits populated by JS -->
</div>
</div>
</section>
</aside>
<!-- Main column: Calendar + Assistant -->
<div class="main-column" aria-label="Schedule and assistant">
<section class="calendar-section" aria-labelledby="calendar-heading">
<header class="calendar-header">
<div class="calendar-title">
<h2 id="calendar-heading">Your Schedule</h2>
<span id="calendarSubtitle" class="calendar-subtitle">
Once generated, your timeβblocked plan will appear here.
</span>
</div>
<div class="calendar-controls" role="group" aria-label="Calendar view controls">
<button type="button" id="syncCalendarBtn" class="btn btn-secondary btn-sync" title="Sync daily goals to tasks and regenerate schedule" aria-label="Sync calendar and regenerate schedule">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 6px;" aria-hidden="true">
<path d="M1 8v6h6M15 8V2H9M1 8l6-6M15 8l-6 6"/>
</svg>
Sync Calendar
</button>
<button type="button" id="rebalanceWeekBtn" class="btn btn-secondary btn-sync" title="Rebalance your schedule for the week" aria-label="Rebalance week schedule">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 6px;">
<path d="M8 1a7 7 0 1 0 7 7"/>
<path d="M13.5 3.5v4h-4"/>
</svg>
Rebalance Week
</button>
<button type="button" id="calendarExportBtn" class="btn btn-secondary btn-sync" title="Export schedule to iCal/Google" aria-label="Export schedule">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 6px;" aria-hidden="true">
<path d="M8 2v7"/>
<path d="M5 6l3 3 3-3"/>
<path d="M2 13h12"/>
</svg>
Export
<span id="calendarExportBadge" class="calendar-export-badge hidden" aria-hidden="true"></span>
</button>
<button type="button" id="calendarPrevBtn" class="btn btn-secondary btn-sync" title="Previous" aria-label="Previous">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 6px;" aria-hidden="true">
<path d="M10 3L5 8l5 5"/>
</svg>
Prev
</button>
<button type="button" id="calendarTodayBtn" class="btn btn-secondary btn-sync" title="Today" aria-label="Today">
Today
</button>
<button type="button" id="calendarNextBtn" class="btn btn-secondary btn-sync" title="Next" aria-label="Next">
Next
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" style="margin-left: 6px;" aria-hidden="true">
<path d="M6 3l5 5-5 5"/>
</svg>
</button>
<label class="sr-only" for="calendarJumpToDate">Jump to date</label>
<input type="date" id="calendarJumpToDate" class="calendar-date-input" aria-label="Jump to date" />
<button type="button" class="btn-toggle-view active" data-view="daily" aria-pressed="true">Daily</button>
<button type="button" class="btn-toggle-view" data-view="weekly" aria-pressed="false">Weekly</button>
<button type="button" class="btn-toggle-view" data-view="monthly" aria-pressed="false">Monthly</button>
</div>
</header>
<div id="calendarContainer" class="calendar-container" role="region" aria-label="Calendar view">
<!-- Calendar rendered by JS -->
</div>
</section>
<!-- Axis Assistant -->
<section class="panel panel-chat panel-chat-main" aria-labelledby="chat-heading">
<div class="panel-header">
<h2 id="chat-heading">Axis Assistant</h2>
<span class="panel-subtitle">Ask me to plan, organize, or change your schedule</span>
</div>
<div id="chatWindow" class="chat-window" role="log" aria-label="Chat messages" aria-live="polite" aria-atomic="false">
<!-- Chat messages -->
</div>
<form id="chatForm" class="chat-input-row" aria-label="Chat input form">
<label for="chatInput" class="sr-only">Type your message</label>
<input
type="text"
id="chatInput"
placeholder="Try: βAdd a 2h essay task due Friday 6pm, then rebalance my weekβ"
autocomplete="off"
aria-label="Chat message input"
/>
<button type="submit" class="btn btn-primary" aria-label="Send message">Send</button>
</form>
</section>
</div>
<!-- Multi-step onboarding modal (only shown during signup) -->
<div id="wizard" class="wizard-modal hidden">
<div class="wizard-overlay"></div>
<div class="wizard-content">
<section class="wizard">
<!-- Step indicators -->
<div class="wizard-steps">
<div class="wizard-step-indicator" data-step="1">1. About</div>
<div class="wizard-step-indicator" data-step="2">2. Preferences</div>
<div class="wizard-step-indicator" data-step="3">3. Goals</div>
<div class="wizard-step-indicator" data-step="4">4. Finish</div>
</div>
<!-- Step 1: Onboarding -->
<div class="wizard-step" data-step="1">
<h2>Step 1: Basics</h2>
<p class="step-description">
Two quick details to personalize Axis. Next, youβll set your availability and work preferences.
</p>
<form id="profileForm" class="form-grid">
<!-- Basic Info -->
<fieldset>
<legend>Basic Info</legend>
<label>
Name
<input type="text" id="user_name" required readonly aria-readonly="true" autocomplete="name" />
</label>
<label>
Age group
<div id="age_group_group" class="button-group age-group-options" role="radiogroup" aria-label="Age group">
<input type="hidden" id="user_age_group" required />
</div>
</label>
</fieldset>
<div class="wizard-actions">
<button type="button" id="wizardProfileContinueBtn" class="btn btn-primary">
Continue
</button>
</div>
</form>
</div>
<!-- Step 2: Preferences -->
<div class="wizard-step" data-step="2">
<h2>Step 2: Preferences</h2>
<p class="step-description">
Tell Axis what your days typically look like and how you prefer to work. You can edit these later in Settings.
</p>
<form id="preferencesForm" class="form-grid">
<!-- Schedule & Routine -->
<fieldset>
<legend>Availability</legend>
<div class="subsection">
<label>Weekly commitments (MonβFri)</label>
<p class="hint">Classes, clubs, work shifts β anything that blocks time.</p>
<div id="weekly_schedule" class="weekly-grid">
<!-- Generated by JS -->
</div>
</div>
<div class="subsection">
<label>Weekend commitments (Sat & Sun)</label>
<p class="hint">Anything fixed on weekends that should be respected.</p>
<div id="weekend_schedule" class="weekend-grid">
<!-- Generated by JS -->
</div>
</div>
<div class="two-col">
<label>
Typical sleep (weekdays)
<input type="text" id="sleep_weekdays" placeholder="23:00β07:00" />
</label>
<label>
Typical sleep (weekends)
<input type="text" id="sleep_weekends" placeholder="00:00β09:00" />
</label>
</div>
<label>
Standard break times (optional)
<input type="text" id="break_times" placeholder="12:30β13:00 lunch; 18:00β18:30 dinner" />
</label>
</fieldset>
<!-- Learning Personalization -->
<fieldset>
<legend>Work Style</legend>
<div class="button-group" id="is_procrastinator_group">
<span class="label-inline">Do you tend to procrastinate?</span>
<button type="button" data-value="yes">Yes</button>
<button type="button" data-value="no">No</button>
<input type="hidden" id="is_procrastinator" />
</div>
<div id="procrastinator_yes" class="conditional-row hidden">
<label>
Procrastinator type
<select id="procrastinator_type">
<option value="">Select...</option>
<option>perfectionist</option>
<option>avoidant</option>
<option>deadline-driven</option>
<option>overwhelmed</option>
<option>distraction</option>
<option>lack-of-motivation</option>
</select>
</label>
</div>
<div id="procrastinator_no" class="conditional-row hidden">
<div class="button-group" id="has_trouble_finishing_group">
<span class="label-inline">Do you have trouble finishing?</span>
<button type="button" data-value="Yes, sometimes">Yes, sometimes</button>
<button type="button" data-value="No, I'm consistent">No, I'm consistent</button>
<input type="hidden" id="has_trouble_finishing" />
</div>
</div>
<div class="two-col">
<label>
Preferred work style
<select id="preferred_work_style">
<option value="">Select...</option>
<option>Short, focused bursts</option>
<option>Long, deep sessions</option>
<option>A mix of both</option>
</select>
</label>
</div>
<div class="two-col">
<label>
Most productive time of day
<select id="most_productive_time">
<option value="">Select...</option>
<option>Early Morning</option>
<option>Morning</option>
<option>Afternoon</option>
<option>Evening</option>
<option>Late Night</option>
</select>
</label>
<label>
Preferred study method
<input type="text" id="preferred_study_method" placeholder="e.g., 25-min study, 5-min break" />
</label>
</div>
</fieldset>
<!-- Work-Life Balance -->
<fieldset>
<legend>Balance</legend>
<div class="two-col">
<label>
Weekly personal (noβwork) hours
<input type="number" id="weekly_personal_time" min="0" max="80" step="0.5" placeholder="e.g., 10" />
</label>
<label>
Weekly review hours
<input type="number" id="weekly_review_hours" min="0" max="40" step="0.5" placeholder="e.g., 3" />
</label>
</div>
</fieldset>
<div class="wizard-actions wizard-actions-bottom">
<button type="button" id="wizardPreferencesBackBtn" class="btn btn-ghost">Back</button>
<button type="button" id="wizardPreferencesContinueBtn" class="btn btn-primary">Save & continue</button>
</div>
</form>
</div>
<!-- Step 3: Goal Canvas -->
<div class="wizard-step" data-step="3">
<h2>Step 3: Set Your Goals</h2>
<p class="step-description">
Create your goal hierarchy by adding long-term goals. Choose your preferred timeframe, and AI will suggest breakdown goals automatically.
</p>
<div class="goal-canvas-container">
<div id="goalCanvas" class="goal-canvas">
<!-- Canvas sections and nodes will be rendered here -->
<button id="approveAllGhostsBtn" class="btn-approve-all-ghosts hidden">
Approve All AI Suggestions
</button>
</div>
<div id="goalEditorPanel" class="goal-editor-panel hidden">
<h3>Edit Goal</h3>
<textarea id="goalEditorText" placeholder="Enter your goal..." rows="4"></textarea>
<div class="goal-editor-actions">
<button id="saveGoalBtn" class="btn btn-primary">Save</button>
<button id="confirmGhostBtn" class="btn btn-success hidden">Confirm Suggestion</button>
<button id="deleteGoalBtn" class="btn btn-ghost">Delete</button>
</div>
</div>
</div>
<div class="wizard-actions wizard-actions-bottom">
<button type="button" id="backToPreferencesBtn" class="btn btn-ghost">Back</button>
<button type="button" id="finishGoalsBtn" class="btn btn-primary">Finish</button>
</div>
</div>
<!-- Step 4: Confirmation -->
<div class="wizard-step" data-step="4">
<h2>Step 4: Confirm your plan</h2>
<p class="step-description">
Here's how I'm ranking your tasks. I'll schedule them so everything is completed
<strong>before</strong> the deadline.
</p>
<div id="rankedTaskPreview" class="ranked-preview">
<!-- Ranked tasks inserted here -->
</div>
<p class="confirm-text">
Thank you, I have all the information.
<br />
<strong>Are you ready for me to create your personalized schedule?</strong>
</p>
<div class="confirm-actions">
<button id="confirmGenerateBtn" class="btn btn-success">
Yes β
</button>
<button id="editTasksBtn" class="btn btn-ghost">
Wait a sec... π€
</button>
</div>
</div>
</section>
</div>
</div>
</main>
<!-- Countdown overlay for deadline-driven procrastinators -->
<div id="countdownOverlay" class="countdown-overlay hidden">
<div class="countdown-card">
<h3>Focus countdown</h3>
<p id="countdownTaskName"></p>
<div id="countdownTimer" class="countdown-timer">25:00</div>
<button id="stopCountdownBtn" class="btn btn-secondary">Stop</button>
</div>
</div>
<!-- Settings Panel -->
<div id="settingsPanel" class="settings-panel hidden">
<div class="settings-overlay"></div>
<div class="settings-content">
<div class="settings-header">
<h2>Settings</h2>
<button id="closeSettingsBtn" class="btn-icon" title="Close" aria-label="Close">Γ</button>
</div>
<div class="settings-tabs">
<button class="settings-tab active" data-tab="profile">Profile</button>
<button class="settings-tab" data-tab="account">Account</button>
<button class="settings-tab" data-tab="goals">Goals</button>
<button class="settings-tab" data-tab="notifications">Notifications</button>
<button class="settings-tab" data-tab="experience">Experience</button>
<button class="settings-tab" data-tab="reflections">Reflections</button>
<button class="settings-tab" data-tab="data">Data</button>
</div>
<!-- Profile Settings -->
<div id="settingsProfile" class="settings-section active">
<h3>Edit Profile</h3>
<div id="profileSaveStatus" class="save-status"></div>
<form id="profileEditForm" class="settings-form">
<div class="form-group">
<label>Display Name</label>
<input type="text" id="profileEditName" placeholder="Your name" required />
</div>
<div class="form-group">
<label>Email</label>
<input type="email" id="profileEditEmail" disabled />
<small class="form-hint">Email cannot be changed</small>
</div>
<div class="form-group">
<label>Account Created</label>
<input type="text" id="profileCreatedAt" disabled />
</div>
<button type="submit" class="btn btn-primary" id="saveProfileBtn">Save Changes</button>
</form>
<hr style="margin: 24px 0; border: none; border-top: 1px solid var(--border-subtle);">
<h3>Preferences</h3>
<p class="settings-description">Update availability, sleep, breaks, and work style.</p>
<button type="button" class="btn btn-secondary" id="editLearningPrefsBtn">
Edit Preferences
</button>
</div>
<!-- Account Settings -->
<div id="settingsAccount" class="settings-section">
<h3>Change Password</h3>
<div id="passwordChangeStatus" class="save-status"></div>
<form id="passwordChangeForm" class="settings-form">
<div class="form-group">
<label>Current Password</label>
<input type="password" id="currentPassword" placeholder="Enter current password" />
</div>
<div class="form-group">
<label>New Password</label>
<input type="password" id="newPassword" placeholder="Enter new password (min 8 characters)" minlength="8" />
</div>
<div class="form-group">
<label>Confirm New Password</label>
<input type="password" id="confirmNewPassword" placeholder="Confirm new password" />
</div>
<button type="submit" class="btn btn-primary" id="changePasswordBtn">Change Password</button>
</form>
<hr style="margin: 24px 0; border: none; border-top: 1px solid var(--border-subtle);">
<h3 style="color: #dc2626;">Danger Zone</h3>
<p class="settings-description" style="color: #991b1b;">
Once you delete your account, there is no going back. All your data will be permanently removed.
</p>
<button type="button" class="btn btn-ghost" id="deleteAccountBtn"
style="color: #dc2626; border-color: #dc2626;">
Delete My Account
</button>
</div>
<!-- Goals Settings -->
<div id="settingsGoals" class="settings-section">
<h3>Goals Hierarchy</h3>
<p class="settings-description">Manage your goals across different timeframes.</p>
<div id="goalsHierarchy" class="goals-hierarchy">
<!-- Goals hierarchy will be rendered here -->
</div>
</div>
<!-- Notifications Settings -->
<div id="settingsNotifications" class="settings-section">
<h3>Notifications</h3>
<p class="settings-description">
Choose what Axis should remind you about while this tab is open. Browser notifications require permission.
</p>
<div class="notification-settings">
<label class="toggle-row">
<input type="checkbox" id="notifBrowserEnabled" />
<span>Enable browser notifications</span>
</label>
<div class="notification-settings-grid">
<label class="toggle-row">
<input type="checkbox" id="notifDeadlines" />
<span>Task deadlines (1 hour / 15 min before)</span>
</label>
<label class="toggle-row">
<input type="checkbox" id="notifSchedule" />
<span>Schedule block starting</span>
</label>
<label class="toggle-row">
<input type="checkbox" id="notifHabits" />
<span>Daily habit reminders</span>
</label>
<label class="toggle-row">
<input type="checkbox" id="notifFocus" />
<span>Focus timer completion</span>
</label>
<label class="toggle-row">
<input type="checkbox" id="notifReflections" />
<span>Weekly reflection due</span>
</label>
</div>
<div style="display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap;">
<button type="button" id="requestNotificationPermissionBtn" class="btn btn-secondary btn-sm">
Request Permission
</button>
<span id="notifPermissionStatus" class="settings-description" style="margin: 0;">Permission: β</span>
</div>
</div>
</div>
<!-- Experience Settings -->
<div id="settingsExperience" class="settings-section">
<h3>Experience</h3>
<p class="settings-description">
Customize celebrations and motion. If you prefer less animation, enable βReduce motionβ in your OS settings.
</p>
<div class="notification-settings-grid">
<label class="toggle-row">
<input type="checkbox" id="celebrationsEnabled" />
<span>Enable task celebrations</span>
</label>
<label class="toggle-row">
<input type="checkbox" id="celebrationsSounds" />
<span>Sound effects (optional)</span>
</label>
<label class="toggle-row">
<input type="checkbox" id="celebrationsStreaks" />
<span>Streak celebrations (3+ tasks)</span>
</label>
</div>
<div style="margin-top: 18px;">
<h4 style="margin: 0 0 10px;">Achievements</h4>
<div id="achievementBadges" class="achievement-badges"></div>
</div>
<hr style="margin: 24px 0; border: none; border-top: 1px solid var(--border-subtle);">
<h3>AI Provider</h3>
<p class="settings-description">
Choose which AI Axis uses for scheduling and the assistant.
</p>
<div class="settings-form" style="max-width: 520px;">
<div id="aiProviderSaveStatus" class="save-status"></div>
<div class="form-group">
<label for="aiProviderSelect">Provider</label>
<select id="aiProviderSelect"></select>
<small class="form-hint" id="aiProviderHelp">Loadingβ¦</small>
</div>
</div>
<hr style="margin: 24px 0; border: none; border-top: 1px solid var(--border-subtle);">
<h3>Install</h3>
<p class="settings-description">
Install Axis as an app for faster launch and offline access (supported browsers only).
</p>
<button type="button" id="installAppBtn" class="btn btn-secondary btn-sm hidden">Install Axis</button>
<div id="installAppStatus" class="settings-description" style="margin: 10px 0 0;">Status: β</div>
</div>
<!-- Reflections Settings -->
<div id="settingsReflections" class="settings-section">
<h3>Reflection History</h3>
<p class="settings-description">
View your past reflections and AI-generated insights.
</p>
<div id="reflectionsList" class="reflections-list">
<!-- Reflection history will be rendered here -->
</div>
<div style="margin-top: 16px;">
<button type="button" class="btn btn-primary" id="newReflectionBtn">
Write New Reflection
</button>
</div>
</div>
<!-- Data Management Settings -->
<div id="settingsData" class="settings-section">
<h3>π₯ Export Data</h3>
<p class="settings-description">
Download all your data including tasks, goals, habits, schedule, and profile settings.
</p>
<div class="data-export-options">
<button type="button" class="btn btn-primary" id="exportAllDataBtn">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 6px;">
<path d="M8 2v8m0 0L5 7m3 3l3-3"/>
<path d="M2 14h12"/>
</svg>
Export All Data (JSON)
</button>
<button type="button" class="btn btn-secondary" id="exportTasksCSVBtn">
Export Tasks (CSV)
</button>
</div>
<hr style="margin: 24px 0; border: none; border-top: 1px solid var(--border-subtle);">
<h3>π€ Import Data</h3>
<p class="settings-description">
Import data from a previously exported JSON file. This will merge with your existing data.
</p>
<div class="data-import-options">
<input type="file" id="importDataFile" accept=".json" style="display: none;" />
<button type="button" class="btn btn-secondary" id="importDataBtn">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 6px;">
<path d="M8 10V2m0 0L5 5m3-3l3 3"/>
<path d="M2 14h12"/>
</svg>
Import Data (JSON)
</button>
<div id="importStatus" class="import-status"></div>
</div>
<hr style="margin: 24px 0; border: none; border-top: 1px solid var(--border-subtle);">
<h3>π Data Summary</h3>
<div id="dataSummary" class="data-summary">
<div class="data-summary-item">
<span class="data-summary-label">Total Tasks:</span>
<span class="data-summary-value" id="summaryTotalTasks">0</span>
</div>
<div class="data-summary-item">
<span class="data-summary-label">Completed Tasks:</span>
<span class="data-summary-value" id="summaryCompletedTasks">0</span>
</div>
<div class="data-summary-item">
<span class="data-summary-label">Goals:</span>
<span class="data-summary-value" id="summaryGoals">0</span>
</div>
<div class="data-summary-item">
<span class="data-summary-label">Daily Habits:</span>
<span class="data-summary-value" id="summaryHabits">0</span>
</div>
<div class="data-summary-item">
<span class="data-summary-label">Reflections:</span>
<span class="data-summary-value" id="summaryReflections">0</span>
</div>
</div>
<hr style="margin: 24px 0; border: none; border-top: 1px solid var(--border-subtle);">
<h3 style="color: #dc2626;">ποΈ Clear Data</h3>
<p class="settings-description" style="color: #991b1b;">
Clear specific data categories. This cannot be undone.
</p>
<div class="data-clear-options">
<button type="button" class="btn btn-ghost" id="clearCompletedTasksBtn" style="color: #dc2626; border-color: #dc2626;">
Clear Completed Tasks
</button>
<button type="button" class="btn btn-ghost" id="clearAllTasksBtn" style="color: #dc2626; border-color: #dc2626;">
Clear All Tasks
</button>
<button type="button" class="btn btn-ghost" id="clearScheduleBtn" style="color: #dc2626; border-color: #dc2626;">
Clear Schedule
</button>
</div>
</div>
</div>
</div>
<!-- Command Palette -->
<div id="commandPaletteModal" class="modal hidden" role="dialog" aria-modal="true" aria-label="Command palette">
<div class="modal-overlay"></div>
<div class="modal-content command-palette-content">
<div class="command-palette-input-row">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<circle cx="11" cy="11" r="7"></circle>
<path d="M21 21l-4.3-4.3"></path>
</svg>
<input id="commandPaletteInput" type="text" placeholder="Search tasks, goals, habits..." autocomplete="off" />
<span class="command-palette-kbd" aria-hidden="true">Esc</span>
</div>
<div id="commandPaletteList" class="command-palette-list"></div>
<div class="command-palette-footer">
<span class="command-palette-footer-hint">ββ to navigate Β· Enter to select Β· Esc to close</span>
</div>
</div>
</div>
<!-- Shortcuts Help Modal -->
<div id="shortcutsHelpModal" class="modal hidden" role="dialog" aria-modal="true" aria-label="Keyboard shortcuts">
<div class="modal-overlay"></div>
<div class="modal-content modal-content-large">
<div class="modal-header">
<h2>Keyboard Shortcuts</h2>
<button id="closeShortcutsHelpBtn" class="btn-icon" title="Close" aria-label="Close">Γ</button>
</div>
<div class="shortcuts-grid">
<div class="shortcut-row"><span class="shortcut-keys"><kbd>Ctrl</kbd>/<kbd>β</kbd> <kbd>K</kbd></span><span class="shortcut-desc">Command palette</span></div>
<div class="shortcut-row"><span class="shortcut-keys"><kbd>Ctrl</kbd>/<kbd>β</kbd> <kbd>N</kbd></span><span class="shortcut-desc">New task</span></div>
<div class="shortcut-row"><span class="shortcut-keys"><kbd>Ctrl</kbd>/<kbd>β</kbd> <kbd>G</kbd></span><span class="shortcut-desc">New goal</span></div>
<div class="shortcut-row"><span class="shortcut-keys"><kbd>Ctrl</kbd>/<kbd>β</kbd> <kbd>/</kbd></span><span class="shortcut-desc">Show shortcuts</span></div>
<div class="shortcut-row"><span class="shortcut-keys"><kbd>Esc</kbd></span><span class="shortcut-desc">Close open modal</span></div>
<div class="shortcut-row"><span class="shortcut-keys"><kbd>T</kbd></span><span class="shortcut-desc">Toggle theme</span></div>
<div class="shortcut-row"><span class="shortcut-keys"><kbd>F</kbd></span><span class="shortcut-desc">Start focus timer for selected task</span></div>
</div>
</div>
</div>
<!-- Task Editor Modal -->
<div id="taskEditorModal" class="modal hidden">
<div class="modal-overlay"></div>
<div class="modal-content">
<div class="modal-header">
<h2 id="taskEditorTitle">Add Task</h2>
<button id="closeTaskEditorBtn" class="btn-icon" title="Close" aria-label="Close">Γ</button>
</div>
<form id="taskEditorForm" class="modal-form">
<div class="form-group">
<label for="taskEditor_name">Task description</label>
<input type="text" id="taskEditor_name" required />
</div>
<div class="form-group">
<label for="taskTemplateSelect">Template (optional)</label>
<div class="template-row">
<select id="taskTemplateSelect">
<option value="">No template</option>
</select>
<button type="button" id="saveTaskAsTemplateBtn" class="btn btn-ghost btn-sm" title="Save current fields as a template">
Save as template
</button>
</div>
<small class="form-hint">Templates can pre-fill category, priority, duration, and recurrence.</small>
</div>
<div class="form-group">
<label>Is this task urgent? (needs to be done soon)</label>
<div class="button-group" id="taskEditor_urgent_group">
<button type="button" data-value="yes">Yes, it's urgent</button>
<button type="button" data-value="no">No, not urgent</button>
<input type="hidden" id="taskEditor_urgent" />
</div>
</div>
<div class="form-group">
<label>Is this task important? (significant impact on your goals)</label>
<div class="button-group" id="taskEditor_important_group">
<button type="button" data-value="yes">Yes, it's important</button>
<button type="button" data-value="no">No, not important</button>
<input type="hidden" id="taskEditor_important" />
</div>
</div>
<div class="form-group">
<label for="taskEditor_category">Category</label>
<select id="taskEditor_category" required>
<option value="">Select...</option>
<option value="study">Study</option>
<option value="project">Project</option>
<option value="chores">Chores</option>
<option value="personal">Personal</option>
<option value="social">Social</option>
</select>
</div>
<div class="form-group" style="display: grid; grid-template-columns: 1fr 1fr; gap: 12px;">
<div>
<label for="taskEditor_deadline">Deadline (date)</label>
<input type="date" id="taskEditor_deadline" required />
</div>
<div>
<label for="taskEditor_deadline_time">Deadline time</label>
<input type="text" id="taskEditor_deadline_time" placeholder="e.g., 23:59 or 14:30" value="23:59" />
</div>
</div>