This repository was archived by the owner on Dec 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
665 lines (641 loc) · 22.2 KB
/
Copy pathindex.html
File metadata and controls
665 lines (641 loc) · 22.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Smart Scheduler</title>
<link rel="icon" href="images/favicon.ico" />
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<!-- Skip link for accessibility -->
<a href="#task-list" class="skip-link">Skip to task list</a>
<!-- ARIA live region for announcements -->
<div
id="status-announcer"
class="sr-only"
aria-live="polite"
aria-atomic="true"
></div>
<div class="app-shell">
<!-- Header -->
<header class="app-header">
<div class="header-brand">
<div class="brand-icon">S</div>
<div class="brand-text">
<h1>Smart Scheduler</h1>
</div>
</div>
<div class="header-actions">
<button
type="button"
class="icon-btn"
id="keyboard-help-btn"
aria-label="Keyboard shortcuts"
title="Keyboard shortcuts (?)"
>
⌨
</button>
<button
type="button"
class="theme-toggle-btn"
id="theme-toggle-btn"
aria-label="Toggle theme"
>
☾
</button>
<button type="button" class="btn btn-primary" id="new-task-btn">
+ New Task
</button>
</div>
</header>
<!-- Main Content -->
<main class="app-main">
<!-- Sidebar -->
<aside class="sidebar">
<div class="sidebar-section">
<h2 class="sidebar-title">Views</h2>
<ul class="filter-list" id="status-filter-list">
<li>
<button
type="button"
class="filter-pill"
data-filter="all"
data-active="true"
>
All tasks
<span class="filter-count" data-filter-count="all">0</span>
</button>
</li>
<li>
<button type="button" class="filter-pill" data-filter="active">
Active
<span class="filter-count" data-filter-count="active">0</span>
</button>
</li>
<li>
<button
type="button"
class="filter-pill"
data-filter="completed"
>
Completed
<span class="filter-count" data-filter-count="completed"
>0</span
>
</button>
</li>
<li>
<button type="button" class="filter-pill" data-filter="today">
Due today
<span class="filter-count" data-filter-count="today">0</span>
</button>
</li>
<li>
<button
type="button"
class="filter-pill"
data-filter="upcoming"
>
Upcoming
<span class="filter-count" data-filter-count="upcoming"
>0</span
>
</button>
</li>
</ul>
<h2 class="sidebar-title" style="margin-top: 1.5rem">Priority</h2>
<ul class="priority-list" id="sidebar-priority-list">
<li>
<button
type="button"
class="priority-item"
data-priority-filter="all"
data-active="true"
>
<span class="priority-dot any"></span>
Any
</button>
</li>
<li>
<button
type="button"
class="priority-item"
data-priority-filter="high"
>
<span class="priority-dot high"></span>
High
</button>
</li>
<li>
<button
type="button"
class="priority-item"
data-priority-filter="medium"
>
<span class="priority-dot medium"></span>
Medium
</button>
</li>
<li>
<button
type="button"
class="priority-item"
data-priority-filter="low"
>
<span class="priority-dot low"></span>
Low
</button>
</li>
</ul>
<h2 class="sidebar-title" style="margin-top: 1.5rem">Tags</h2>
<div class="tag-filter-list" id="tag-filter-list">
<!-- Tags populated dynamically -->
</div>
<button
type="button"
class="btn btn-ghost btn-sm"
id="manage-tags-btn"
style="margin-top: 0.5rem"
>
+ Manage Tags
</button>
<div class="sidebar-tip">
Tip: keep titles short and use the description for details, links,
or checklists.
</div>
<!-- Data import/export hidden for MVP
<div class="sidebar-section" style="margin-top: 1.5rem">
<h2 class="sidebar-title">Data</h2>
<div class="sidebar-buttons">
<button
type="button"
class="btn btn-ghost btn-sm"
id="export-json-btn"
>
Export JSON
</button>
<button
type="button"
class="btn btn-ghost btn-sm"
id="export-csv-btn"
>
Export CSV
</button>
<label class="btn btn-ghost btn-sm">
Import
<input
type="file"
id="import-file-input"
accept=".json,.csv,.ics"
style="display: none"
/>
</label>
</div>
</div> -->
</div>
</aside>
<!-- Main Content Area -->
<div class="main-content">
<!-- Smart Input with AI (Demo) -->
<div class="card ai-prompt-card">
<div class="card-header">
<span class="card-title">Smart Input</span>
<button
type="button"
class="btn btn-ghost btn-sm"
id="ai-settings-btn"
title="Configure AI settings"
>
AI Settings
</button>
</div>
<p class="card-subtitle">
Instructions: currently user must add API key to utilize AI
features. Click on "AI Settings" and add a key to get started.
</p>
<div class="search-wrapper" style="margin-top: 0.5rem">
<span class="search-icon">💬</span>
<input
type="text"
class="search-input"
id="ai-prompt-input"
placeholder='e.g. "Find a 2 hour time window some time Wednesday or Thursday to study for my Calc final"'
/>
<button
type="button"
class="btn btn-primary"
id="ai-generate-btn"
title="Ask AI to create a task"
>
Schedule
</button>
</div>
</div>
<!-- Task Form Card -->
<div class="card task-form-card">
<div class="card-header">
<span class="card-title">
<span id="form-mode-label">Add task</span>
<span class="edit-tag" id="edit-tag" style="display: none"
>✎ Editing</span
>
</span>
<span class="task-count-badge" id="task-count-summary"
>0 tasks</span
>
</div>
<form id="task-form">
<input type="hidden" id="task-id" />
<div class="form-grid">
<div class="form-group">
<label class="form-label" for="task-title">Title</label>
<input
type="text"
class="form-input"
id="task-title"
placeholder="e.g. Draft status update for project Alpha"
required
/>
</div>
<div class="form-group">
<label class="form-label" for="task-description"
>Description (optional)</label
>
<textarea
class="form-textarea"
id="task-description"
placeholder="Notes, context, or links..."
rows="2"
></textarea>
</div>
<div class="form-row">
<div class="form-group">
<label class="form-label" for="task-due-date"
>Due Date</label
>
<input type="date" class="form-input" id="task-due-date" />
</div>
<div class="form-group">
<label class="form-label" for="task-priority"
>Priority</label
>
<select class="form-select" id="task-priority">
<option value="low">Low</option>
<option value="medium" selected>Medium</option>
<option value="high">High</option>
</select>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label class="form-label" for="task-recurrence"
>Repeat</label
>
<select class="form-select" id="task-recurrence">
<option value="none">No repeat</option>
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
<option value="monthly">Monthly</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Tags</label>
<div class="tag-input-wrapper" id="tag-input-wrapper">
<div class="selected-tags" id="selected-tags"></div>
<input
type="text"
class="tag-input"
id="tag-input"
placeholder="Add tag..."
/>
<div
class="tag-dropdown"
id="tag-dropdown"
style="display: none"
></div>
</div>
</div>
</div>
</div>
<div class="form-footer">
<div class="form-actions">
<button
type="button"
class="btn btn-ghost"
id="clear-form-btn"
>
Clear
</button>
<button type="submit" class="btn btn-primary">
Save task
</button>
</div>
</div>
</form>
</div>
<!-- Task Toolbar -->
<div class="card task-toolbar">
<div class="search-wrapper">
<span class="search-icon">🔍</span>
<input
type="text"
class="search-input"
id="search-input"
placeholder="Search tasks..."
/>
</div>
<div class="toolbar-filters">
<div class="toolbar-group">
<span class="toolbar-label">Priority</span>
<select class="toolbar-select" id="priority-filter-select">
<option value="all">Any</option>
<option value="high">High</option>
<option value="medium">Medium</option>
<option value="low">Low</option>
</select>
</div>
<div class="toolbar-group">
<span class="toolbar-label">Sort</span>
<select class="toolbar-select" id="sort-select">
<option value="created_desc">Newest first</option>
<option value="created_asc">Oldest first</option>
<option value="due_asc">Due soonest</option>
<option value="due_desc">Due latest</option>
<option value="priority">Priority</option>
</select>
</div>
</div>
</div>
<!-- Bulk Actions Toolbar (shown when tasks are selected) -->
<div class="bulk-toolbar" id="bulk-toolbar" style="display: none">
<div class="bulk-info">
<input
type="checkbox"
class="bulk-select-all"
id="bulk-select-all"
title="Select/deselect all"
/>
<span class="bulk-count" id="bulk-count">0 selected</span>
</div>
<div class="bulk-actions">
<button
type="button"
class="btn btn-ghost btn-sm"
id="bulk-complete-btn"
>
Complete
</button>
<select class="toolbar-select" id="bulk-priority-select">
<option value="">Set priority...</option>
<option value="high">High</option>
<option value="medium">Medium</option>
<option value="low">Low</option>
</select>
<button
type="button"
class="btn btn-ghost btn-sm btn-danger"
id="bulk-delete-btn"
>
Delete
</button>
<button
type="button"
class="btn btn-ghost btn-sm"
id="bulk-deselect-btn"
>
Deselect
</button>
</div>
</div>
<!-- Task List -->
<div class="task-list" id="task-list">
<!-- Tasks rendered here -->
</div>
<!-- Schedule Section -->
<div class="card schedule-card">
<div class="schedule-header">
<div class="schedule-title">
<h3>Schedule</h3>
</div>
<div class="schedule-tabs">
<button type="button" class="tab-btn active" id="tab-calendar">
Calendar
</button>
<button type="button" class="tab-btn" id="tab-timeline">
Timeline
</button>
<div class="month-nav">
<button
type="button"
class="nav-btn"
id="calendar-prev-btn"
aria-label="Previous month"
>
◀
</button>
<span class="month-label" id="calendar-month-label"
>December 2025</span
>
<button
type="button"
class="nav-btn"
id="calendar-next-btn"
aria-label="Next month"
>
▶
</button>
</div>
</div>
</div>
<!-- Calendar View -->
<div class="calendar-view" id="calendar-view">
<div class="calendar-wrapper">
<div class="calendar-main">
<div class="calendar-header">
<div class="calendar-day-name">Sun</div>
<div class="calendar-day-name">Mon</div>
<div class="calendar-day-name">Tue</div>
<div class="calendar-day-name">Wed</div>
<div class="calendar-day-name">Thu</div>
<div class="calendar-day-name">Fri</div>
<div class="calendar-day-name">Sat</div>
</div>
<div class="calendar-grid" id="calendar-grid">
<!-- Calendar days rendered here -->
</div>
</div>
<div class="calendar-side">
<div class="calendar-side-header">
<div
class="calendar-selected-date"
id="calendar-selected-date-label"
>
Select a date
</div>
<div
class="calendar-small-summary"
id="calendar-small-summary"
>
No tasks scheduled
</div>
</div>
<div class="calendar-task-list" id="calendar-task-list">
<!-- Tasks for selected day -->
</div>
</div>
</div>
</div>
<!-- Timeline View -->
<div id="timeline-view" class="schedule-view" style="display: none">
<div class="timeline-placeholder">Coming soon…</div>
</div>
</div>
</div>
</main>
</div>
<!-- Toast Notification Container -->
<div
class="toast-container"
id="toast-container"
aria-live="polite"
aria-atomic="false"
></div>
<!-- Keyboard Shortcuts Modal -->
<div
class="modal-overlay"
id="keyboard-help-modal"
style="display: none"
role="dialog"
aria-labelledby="keyboard-modal-title"
aria-modal="true"
>
<div class="modal-content keyboard-help-content">
<div class="modal-header">
<h2 id="keyboard-modal-title">Keyboard Shortcuts</h2>
<button
type="button"
class="modal-close"
id="keyboard-modal-close"
aria-label="Close"
>
×
</button>
</div>
<div class="modal-body">
<div class="shortcut-section">
<h3>Navigation</h3>
<div class="shortcut-item">
<kbd>↑</kbd> / <kbd>↓</kbd> <span>Move focus between tasks</span>
</div>
<div class="shortcut-item">
<kbd>/</kbd> <span>Focus search</span>
</div>
<div class="shortcut-item">
<kbd>?</kbd> <span>Show this help</span>
</div>
</div>
<div class="shortcut-section">
<h3>Actions</h3>
<div class="shortcut-item"><kbd>n</kbd> <span>New task</span></div>
<div class="shortcut-item">
<kbd>Enter</kbd> <span>Toggle task completion</span>
</div>
<div class="shortcut-item">
<kbd>e</kbd> <span>Edit focused task</span>
</div>
<div class="shortcut-item">
<kbd>Delete</kbd> <span>Delete focused task</span>
</div>
<div class="shortcut-item">
<kbd>Esc</kbd> <span>Clear form / Deselect</span>
</div>
</div>
<div class="shortcut-section">
<h3>Undo/Redo</h3>
<div class="shortcut-item">
<kbd>Ctrl</kbd>+<kbd>Z</kbd> <span>Undo</span>
</div>
<div class="shortcut-item">
<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Z</kbd> <span>Redo</span>
</div>
</div>
</div>
</div>
</div>
<!-- Tag Management Modal -->
<div
class="modal-overlay"
id="tag-modal"
style="display: none"
role="dialog"
aria-labelledby="tag-modal-title"
aria-modal="true"
>
<div class="modal-content">
<div class="modal-header">
<h2 id="tag-modal-title">Manage Tags</h2>
<button
type="button"
class="modal-close"
id="tag-modal-close"
aria-label="Close"
>
×
</button>
</div>
<div class="modal-body">
<div class="tag-form">
<input
type="text"
class="form-input"
id="new-tag-name"
placeholder="Tag name"
/>
<input
type="color"
class="color-input"
id="new-tag-color"
value="#6366f1"
/>
<button
type="button"
class="btn btn-primary btn-sm"
id="add-tag-btn"
>
Add
</button>
</div>
<div class="tag-list" id="tag-list">
<!-- Tags listed here -->
</div>
</div>
</div>
</div>
<!--
JavaScript files loaded in order (no ES6 modules).
This allows the app to work by just opening index.html directly.
-->
<script src="js/namespace.js"></script>
<script src="js/utils.js"></script>
<script src="js/storage.js"></script>
<script src="js/state.js"></script>
<script src="js/filters.js"></script>
<script src="js/theme.js"></script>
<script src="js/toast.js"></script>
<script src="js/history.js"></script>
<script src="js/tags.js"></script>
<script src="js/subtasks.js"></script>
<script src="js/recurrence.js"></script>
<script src="js/tasks.js"></script>
<script src="js/calendar.js"></script>
<script src="js/ai.js"></script>
<script src="js/gantt.js"></script>
<script src="js/keyboard.js"></script>
<script src="js/dragdrop.js"></script>
<script src="js/bulk.js"></script>
<script src="js/exportimport.js"></script>
<script src="js/idb.js"></script>
<script src="js/main.js"></script>
</body>
</html>