Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
1690 lines (1624 loc) · 92.1 KB
/
Copy pathindex.html
File metadata and controls
1690 lines (1624 loc) · 92.1 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>
<head>
<meta charset="UTF-8">
<title>Frame</title>
<link rel="stylesheet" href="node_modules/xterm/css/xterm.css" />
<!-- Vendored locally (npm dep) — fonts must work offline -->
<link rel="stylesheet" href="node_modules/@fontsource/inter/400.css">
<link rel="stylesheet" href="node_modules/@fontsource/inter/500.css">
<link rel="stylesheet" href="node_modules/@fontsource/inter/600.css">
<link rel="stylesheet" href="node_modules/@fontsource/jetbrains-mono/400.css">
<link rel="stylesheet" href="node_modules/@fontsource/jetbrains-mono/500.css">
<link rel="stylesheet" href="node_modules/@fontsource/jetbrains-mono/600.css">
<link rel="stylesheet" href="node_modules/@fontsource/jetbrains-mono/700.css">
<link rel="stylesheet" href="node_modules/@fontsource/jetbrains-mono/800.css">
<!-- Vendored locally (npm dep) — the structure map must work offline -->
<script src="node_modules/d3/dist/d3.min.js"></script>
<link rel="stylesheet" href="src/renderer/styles/main.css">
</head>
<body>
<!-- Analytics Notice (one-time, dismissable): a small solid card in the
bottom-right corner, above the status bar. It used to be a translucent
strip across the top that sat over the app header and was hard to read
through; the corner is free (toasts appear top-centre) and covers
nothing the user needs on a first launch. -->
<div id="analytics-notice" class="analytics-notice" role="status" aria-labelledby="analytics-notice-title">
<div class="analytics-notice-head">
<span class="analytics-notice-icon" aria-hidden="true">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="M18 17V9"/><path d="M13 17V5"/><path d="M8 17v-3"/></svg>
</span>
<span id="analytics-notice-title" class="analytics-notice-title">Anonymous usage stats</span>
<button type="button" id="analytics-notice-close" class="analytics-notice-close" aria-label="Dismiss">✕</button>
</div>
<p class="analytics-notice-text">
Frame sends a random ID for this install, your app version, OS, and the country
your request came from, so we can count active users and see which features get
used. No code, file paths or prompts. Turning this off in Settings deletes the ID.
</p>
<div class="analytics-notice-actions">
<a href="#" id="analytics-notice-settings-link" class="analytics-notice-link">Manage in Settings</a>
<button type="button" id="analytics-notice-ack" class="primary-btn analytics-notice-ack">Got it</button>
</div>
</div>
<!-- Sample-project banner (only visible while inside the bundled sample) -->
<div id="sample-banner" class="sample-banner" role="status">
<span class="sample-banner-icon">★</span>
<span class="sample-banner-text">
You're exploring the <strong>sample project</strong>. Poke around freely — when you're ready, open your own project to start real work.
</span>
<button type="button" id="sample-banner-close" class="sample-banner-close" aria-label="Dismiss">✕</button>
</div>
<!-- First-run detection banner (shown right after a project is initialized as a Frame project) -->
<div id="detection-banner" class="sample-banner" role="status">
<span class="sample-banner-icon">✦</span>
<span id="detection-banner-text" class="sample-banner-text"></span>
<button type="button" id="detection-banner-close" class="sample-banner-close" aria-label="Dismiss">✕</button>
</div>
<!-- App Loader — boot splash and, on a first run, the onboarding screen
(first-run-onboarding-screen spec). Frame's mark sits at half opacity
and fills along its own perimeter — top-left → right → down → left →
back up — the way a progress ring fills, so the wait reads as the logo
drawing itself. Once full, the wordmark grows out of the mark's right
edge and pushes the mark left.
Then one of two things happens. With projects, the surface fades and
parks. With none, the lockup stays exactly where the intro left it and
#onboarding fades up beneath it — one continuous page, which is why the
panel lives inside this element instead of being a second surface that
could drift by a pixel (plan D1/D3).
Static markup: the splash must paint before any script runs.
appLoader.js drives the phases; onboarding.js owns #onboarding. -->
<div id="app-loader" class="app-loader">
<div class="app-loader-brand">
<div class="app-loader-mark">
<svg class="app-loader-mark-base" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M2 2h7.72v1.52H3.52V9.72H2V2Z"/><path d="M22 2v7.72h-1.52V3.52H14.28V2H22Z"/><path d="M2 22v-7.72h1.52V20.48H9.72V22H2Z"/><path d="M22 22h-7.72v-1.52H20.48V14.28H22V22Z"/>
</svg>
<svg class="app-loader-mark-fill" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M2 2h7.72v1.52H3.52V9.72H2V2Z"/><path d="M22 2v7.72h-1.52V3.52H14.28V2H22Z"/><path d="M2 22v-7.72h1.52V20.48H9.72V22H2Z"/><path d="M22 22h-7.72v-1.52H20.48V14.28H22V22Z"/>
</svg>
</div>
<div class="app-loader-wordmark" aria-hidden="true"><span class="app-loader-wordmark-text">Your engineering mind, in Frame!</span></div>
</div>
<!-- First-run content. Hidden until onboarding.takeOver() reveals it, so
a user with projects never sees it and the boot path is unchanged. -->
<!-- Outside #onboarding on purpose: the panel is transformed while it
fades up, and a transformed ancestor becomes the containing block for
position: fixed — the × would follow the panel instead of the window. -->
<button type="button" id="onboarding-close" class="onboarding-close" aria-label="Close">✕</button>
<div id="onboarding" class="onboarding" role="group" aria-label="Start with a project">
<!-- The three ways into a project, built by projectStart.js and shared
with Home's no-project state so the two cannot drift. -->
<div id="onboarding-start"></div>
<div class="onboarding-agent">
<span class="onboarding-agent-label">Default agent</span>
<div id="onboarding-tool-options" class="onboarding-tool-options"></div>
</div>
<div class="onboarding-foot">
<button type="button" id="onboarding-skip" class="onboarding-skip">Skip</button>
</div>
</div>
<span class="app-loader-sr">Loading workspace…</span>
</div>
<!-- App header: one row across the whole window, above the sidebar and
the center (shell-chrome-app-header-collapsible-panels spec). Static
markup on purpose — it exists before any script runs, so nothing in
it flashes at boot and every module that binds by id finds its
element at DOMContentLoaded. Left: Frame's mark. Center:
the current-project switcher. Right: the window-level controls and
the layout toggles. appHeader.js wires the behavior. -->
<header id="app-header">
<div class="app-header-left">
<!-- Frame's mark (assets/frame-mark.svg): the four corner brackets that
frame a subject — the same mark the app icon carries, so the
window says what the dock says. The version lives in the status
bar's right end; an available update shows on the bell. -->
<svg class="app-header-mark" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M2 2h7.72v1.52H3.52V9.72H2V2Z"/><path d="M22 2v7.72h-1.52V3.52H14.28V2H22Z"/><path d="M2 22v-7.72h1.52V20.48H9.72V22H2Z"/><path d="M22 22h-7.72v-1.52H20.48V14.28H22V22Z"/>
</svg>
<span class="app-header-brand">Frame</span>
</div>
<!-- Current-project switcher: the one project selector, in the
header's center (VS Code's command-center spot) so it stays
reachable while the sidebar is collapsed. Everything on both sides
— Files / Changes / GitHub on the rail, Work / Context in the
panel, the center — is about the project chosen here. -->
<div class="app-header-center">
<div id="sidebar-current-project-wrap" class="sidebar-current-project-wrap">
<button id="sidebar-current-project" class="sidebar-current-project" tabindex="-1" title="Switch project" aria-haspopup="true" aria-expanded="false">
<svg class="sidebar-current-project-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="m7.5 4.27 9 5.15"/><path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"/><path d="m3.3 7 8.7 5 8.7-5"/><path d="M12 22V12"/>
</svg>
<span class="sidebar-current-project-name" id="sidebar-current-project-name">No project</span>
<svg class="sidebar-current-project-caret" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="6 9 12 15 18 9"/>
</svg>
</button>
<div id="sidebar-project-menu" class="sidebar-project-menu" role="menu" hidden></div>
</div>
</div>
<div class="app-header-right">
<!-- Default Agent launcher: the tool select beside Start. Start launches
whatever this says (index.js binds #sidebar-agent-launch by id).
Home's Agents widget keeps its own copy — both write through
SET_AI_TOOL and both redraw from AI_TOOL_CHANGED, so neither can go
stale. The options below are a placeholder: aiToolSelector
repopulates from the real tool list. -->
<div class="lane-bar-launcher">
<!-- The select is wrapped in a label so the visible control (label
text, agent name, chevron) is one styled box while the native
<select> stays the interactive element underneath — clicking
anywhere on the box opens the menu. -->
<label class="ai-tool-picker" title="Default agent — Start launches this one">
<span class="ai-tool-picker-label">Agent</span>
<select id="ai-tool-selector" class="ai-tool-select" tabindex="-1" aria-label="Default agent">
<option value="claude">Claude</option>
<option value="codex">Codex</option>
</select>
<svg class="ai-tool-picker-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="6 9 12 15 18 9"/>
</svg>
</label>
<button id="sidebar-agent-launch" class="primary-btn" tabindex="-1" title="Start default agent">
<svg width="11" height="11" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true">
<path d="M8 5v14l11-7z"/>
</svg>
<span>Start</span>
</button>
</div>
<!-- Layout toggles (VS Code's "toggle primary side bar" / "toggle
panel"): each shows its region's open state and flips it. They run
the registered commands (panel.toggleSidebar ⌘B, dock.toggle ⌘J),
so the shortcuts, the View menu, the palette and these buttons all
agree; appHeader.js paints them from sidebarResize / dock. Icons
are filled in by appHeader.js (lucide PanelLeft / PanelBottom /
PanelRight). -->
<button type="button" id="layout-toggle-sidebar" class="layout-toggle" tabindex="-1" title="Toggle Sidebar (⌘B)" aria-label="Toggle Sidebar" aria-pressed="true"></button>
<button type="button" id="layout-toggle-dock" class="layout-toggle" tabindex="-1" title="Toggle Panel (⌘J)" aria-label="Toggle Panel" aria-pressed="false"></button>
<!-- Update bell: hidden until UPDATE_AVAILABLE arrives (appHeader.js). -->
<button class="btn-update-notify" title="Check for updates" style="display:none;position:relative;">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="display:block;flex-shrink:0"><path d="M10.268 21a2 2 0 0 0 3.464 0"/><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/></svg>
<span class="update-badge"></span>
</button>
<!-- Theme picker: window-level control at the header's right end
(status-bar spec). The button shows the current scheme (sun /
moon) and opens a popover listing every theme in themes.js with
the current one checked. Icon, list and state are all painted by
appHeader.js from data-theme, so the palette and the View menu
keep it right too. -->
<div class="theme-picker">
<button type="button" id="sidebar-theme-btn" class="btn-theme-toggle" tabindex="-1" title="Theme" aria-label="Theme" aria-haspopup="menu" aria-expanded="false"></button>
<div id="theme-menu" class="theme-menu" role="menu" aria-label="Theme" hidden></div>
</div>
</div>
</header>
<!-- Shell: the sidebar and the center side by side under the header. -->
<div id="shell">
<!-- Sidebar -->
<div id="sidebar">
<div id="sidebar-resize-handle"></div>
<!-- Hover tooltip for Initialize Frame button (fixed position, escapes overflow) -->
<div id="init-frame-tooltip" class="init-frame-tooltip">
<div class="spotlight-card-header">
<span class="spotlight-icon">✦</span>
<h4>Initialize as Frame Project</h4>
</div>
<p class="spotlight-card-body">
Frame standardizes your project for AI-assisted development.
This creates configuration files that help AI tools understand
your project structure, preserve context between sessions,
and track decisions.
</p>
<div class="spotlight-card-files">
<span>.frame/AGENTS.md</span>
<span>.frame/STRUCTURE.json</span>
<span>.frame/PROJECT_NOTES.md</span>
<span>.frame/tasks.json</span>
<span>+ more</span>
</div>
</div>
<!-- Sidebar body: activity rail + the active view's panel. The rail makes
Projects / Files / Changes / GitHub first-class views (editor-style),
with Projects as the default landing view. -->
<div id="sidebar-body">
<nav class="sidebar-rail" aria-label="Sidebar views">
<button class="sidebar-tab-btn sidebar-rail-btn active" data-sidebar-tab="projects" title="Projects" aria-label="Projects" tabindex="-1">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="m7.5 4.27 9 5.15"/><path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"/><path d="m3.3 7 8.7 5 8.7-5"/><path d="M12 22V12"/>
</svg>
</button>
<button class="sidebar-tab-btn sidebar-rail-btn" data-sidebar-tab="files" title="Files" aria-label="Files" tabindex="-1">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 7h-3a2 2 0 0 1-2-2V2"/><path d="M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z"/><path d="M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8"/>
</svg>
</button>
<button class="sidebar-tab-btn sidebar-rail-btn" data-sidebar-tab="changes" title="Changes" aria-label="Changes" tabindex="-1">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M9 10h6"/><path d="M12 13V7"/><path d="M9 17h6"/>
</svg>
</button>
<!-- GitHub is project-wide like Files and Changes, so it is a view
tab here rather than a row under the project
(dock-panel-readonly-views spec). Project Settings, which used to
sit at the rail's foot, is a row under the project now. -->
<button class="sidebar-tab-btn sidebar-rail-btn" data-sidebar-tab="github" title="GitHub" aria-label="GitHub" tabindex="-1">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/>
</svg>
</button>
<!-- The foot of the rail, below the view tabs: Plugins, Feedback,
Frame Settings, then How to Use Frame. All four open a modal
(#plugins-modal, #feedback-modal, the Frame Settings overlay,
#guide-overlay) rather than switching views — hence no
.sidebar-tab-btn (that class drives view switching).
.sidebar-rail-btn-foot on the first pushes the group to the
bottom. -->
<button id="plugins-btn" class="sidebar-rail-btn sidebar-rail-btn-foot" aria-label="Plugins" tabindex="-1">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 22v-5"/><path d="M9 8V2"/><path d="M15 8V2"/><path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"/>
</svg>
</button>
<button id="feedback-btn" class="sidebar-rail-btn" aria-label="Send Feedback" tabindex="-1">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"/><path d="M12 8v6"/><path d="M9 11h6"/>
</svg>
</button>
<!-- Frame's own settings: privacy and About/updates. The gear is the
app-preferences mark everywhere else; the project's settings are
a row under the project in the workspace nav. -->
<button id="frame-settings-btn" class="sidebar-rail-btn" aria-label="Frame Settings" tabindex="-1">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>
</svg>
</button>
<!-- How to Use Frame (how-to-use-frame-guide spec): opens the guide.
Runs help.guide, like Help › How to Use Frame and the palette. -->
<button id="guide-btn" class="sidebar-rail-btn" aria-label="How to Use Frame" tabindex="-1">
<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="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/>
</svg>
</button>
</nav>
<div class="sidebar-panel">
<!-- Projects view (default) — the workspace panel for the selected
project (project-dropdown spec): selection lives in the
current-project switcher above, which also carries "+ Add a
project…". The pinned "Add new Project" CTA was removed on
2026-09-16: with no project the sidebar collapses to its rail and
Home carries the three ways in, so the button was a third answer
to a question already answered twice. -->
<div class="sidebar-tab-content sidebar-view-projects" data-sidebar-tab-content="projects">
<div id="workspace-panel" class="workspace-panel"></div>
</div>
<!-- Files view -->
<div class="sidebar-tab-content" data-sidebar-tab-content="files" style="display:none;">
<div id="files-empty-state" class="files-empty">Select a project to browse files</div>
<div id="file-explorer-header" style="display: none;">
<div class="file-tree-search">
<div class="file-tree-search-field">
<input
id="file-tree-search"
type="text"
placeholder="Filter files…"
autocomplete="off"
spellcheck="false"
tabindex="-1"
/>
<button id="file-tree-search-clear" class="file-tree-search-clear" tabindex="-1" title="Clear filter" type="button">✕</button>
</div>
<button id="btn-refresh-tree" class="btn-icon" tabindex="-1" title="Refresh">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/>
</svg>
</button>
</div>
</div>
<div id="file-tree">
<!-- File tree will be populated here -->
</div>
</div>
<!-- Changes view -->
<div class="sidebar-tab-content" data-sidebar-tab-content="changes" style="display:none;">
<div id="git-changes-empty" class="git-changes-empty">Select a project to see changes</div>
<div id="git-changes-body" style="display:none;">
<div class="git-changes-section" data-git-changes-group="staged" style="display:none;">
<div class="git-changes-section-header">Staged Changes</div>
<div class="git-changes-list" data-git-changes-list="staged"></div>
</div>
<div class="git-changes-section" data-git-changes-group="changes" style="display:none;">
<div class="git-changes-section-header">Unstaged</div>
<div class="git-changes-list" data-git-changes-list="changes"></div>
</div>
<div class="git-changes-section" data-git-changes-group="conflict" style="display:none;">
<div class="git-changes-section-header">Merge Conflicts</div>
<div class="git-changes-list" data-git-changes-list="conflict"></div>
</div>
</div>
</div>
<!-- GitHub view (github-view-tree-layout spec): VS Code's "GitHub
Pull Requests" shape inside the sidebar tab — a head with the
repo name, one filter field, an access-state block (gh missing /
not signed in / not a GitHub remote), then four stacked,
collapsible sections of dense rows. Icons, chevrons, counts and
rows are filled by githubPanel.js (lucide via dock.lucideIcon);
the page boots fine with the markup empty. -->
<div class="sidebar-tab-content" data-sidebar-tab-content="github" style="display:none;">
<div id="github-panel">
<div class="github-head">
<div class="github-head-title">
<span class="github-head-name">GitHub</span>
<span id="github-head-repo" class="github-head-repo" title=""></span>
</div>
<div class="github-head-actions">
<button id="github-refresh-btn" class="btn-icon github-head-btn" tabindex="-1" title="Refresh" aria-label="Refresh"></button>
</div>
</div>
<div class="github-search file-tree-search">
<div class="file-tree-search-field">
<input
id="github-search"
type="text"
placeholder="Filter…"
autocomplete="off"
spellcheck="false"
tabindex="-1"
/>
<button id="github-search-clear" class="file-tree-search-clear" tabindex="-1" title="Clear filter" type="button">✕</button>
</div>
</div>
<div id="github-state" class="github-state" style="display:none;"></div>
<div id="github-sections" class="github-sections">
<section class="github-section" data-section="prs">
<div class="github-section-head" role="button" tabindex="-1" aria-expanded="false">
<span class="github-section-chevron" aria-hidden="true"></span>
<span class="github-section-title"><span class="github-section-title-long">Pull Requests</span><span class="github-section-title-short">PRs</span></span>
<span class="github-section-count" data-count></span>
<span class="github-section-actions">
<button class="github-section-btn" data-section-action="filter" tabindex="-1" title="Open / Closed / All" aria-label="Filter pull requests" type="button"></button>
<button class="github-section-btn" data-section-action="refresh" tabindex="-1" title="Refresh pull requests" aria-label="Refresh pull requests" type="button"></button>
</span>
</div>
<div class="github-rows" data-rows></div>
</section>
<section class="github-section" data-section="issues">
<div class="github-section-head" role="button" tabindex="-1" aria-expanded="false">
<span class="github-section-chevron" aria-hidden="true"></span>
<span class="github-section-title"><span class="github-section-title-long">Issues</span><span class="github-section-title-short">Issues</span></span>
<span class="github-section-count" data-count></span>
<span class="github-section-actions">
<button class="github-section-btn" data-section-action="filter" tabindex="-1" title="Open / Closed / All" aria-label="Filter issues" type="button"></button>
<button class="github-section-btn" data-section-action="refresh" tabindex="-1" title="Refresh issues" aria-label="Refresh issues" type="button"></button>
</span>
</div>
<div class="github-rows" data-rows></div>
</section>
<section class="github-section" data-section="branches">
<div class="github-section-head" role="button" tabindex="-1" aria-expanded="false">
<span class="github-section-chevron" aria-hidden="true"></span>
<span class="github-section-title"><span class="github-section-title-long">Branches</span><span class="github-section-title-short">Branch</span></span>
<span class="github-section-count" data-count></span>
<span class="github-section-actions">
<!-- The Create Branch modal's trigger (C6): only the button
moved here; #create-branch-modal itself is unchanged. -->
<button id="github-create-branch-btn" class="github-section-btn" data-section-action="new" tabindex="-1" title="New branch" aria-label="New branch" type="button"></button>
<button class="github-section-btn" data-section-action="refresh" tabindex="-1" title="Refresh branches" aria-label="Refresh branches" type="button"></button>
</span>
</div>
<div class="github-rows" data-rows></div>
</section>
<section class="github-section" data-section="worktrees">
<div class="github-section-head" role="button" tabindex="-1" aria-expanded="false">
<span class="github-section-chevron" aria-hidden="true"></span>
<span class="github-section-title"><span class="github-section-title-long">Worktrees</span><span class="github-section-title-short">Trees</span></span>
<span class="github-section-count" data-count></span>
<span class="github-section-actions">
<button class="github-section-btn" data-section-action="refresh" tabindex="-1" title="Refresh worktrees" aria-label="Refresh worktrees" type="button"></button>
</span>
</div>
<div class="github-rows" data-rows></div>
</section>
</div>
</div>
<!-- Row right-click menu and the per-section Open / Closed / All
menu (D10): the file tree's .context-menu classes, panel-owned. -->
<div id="github-context-menu" class="context-menu" role="menu"></div>
<div id="github-filter-menu" class="context-menu" role="menu"></div>
</div>
<!-- Agent view: default-agent controls (selector + Start) and the live
running-agents list across all projects. Replaces the old bottom
Agent footer card. -->
<!-- Update Available Banner -->
<button
type="button"
id="sidebar-update-banner"
class="sidebar-update-banner"
style="display:none;"
aria-label="Update available, click to view details"
>
<span class="sidebar-update-banner-icon">↑</span>
<span class="sidebar-update-banner-text">
<span class="sidebar-update-banner-title">New version available</span>
<span class="sidebar-update-banner-version" id="sidebar-update-banner-version">v0.0.0</span>
</span>
<span class="sidebar-update-banner-arrow">→</span>
</button>
</div>
</div>
</div>
<!-- Main Content Area -->
<div id="main-content">
<!-- Terminal -->
<div id="terminal-container" class="dock-bottom">
<div id="terminal"></div>
<!-- Dock: the VS Code-style panel beside the center
(dock-panel-readonly-views spec). Hosts the read-only surfaces —
Decisions, Structure, Prompts, Activity — and Feedback, one at a
time. Bottom by default, to the right with .dock-right on the
container; tabs and slots are built by dock.js. -->
<div id="dock" class="dock" aria-hidden="true">
<div class="dock-resize-handle" title="Drag to resize"></div>
<div class="dock-header">
<div class="dock-tabs" role="tablist" aria-label="Panel tabs"></div>
<div class="dock-actions">
<button type="button" class="dock-action-btn dock-move" tabindex="-1" title="Move Panel Right" aria-label="Move Panel Right"></button>
<button type="button" class="dock-action-btn dock-close" tabindex="-1" title="Close Panel (⌘J)" aria-label="Close Panel"></button>
</div>
</div>
<div class="dock-body"></div>
</div>
</div>
<!-- Tasks Panel -->
<div id="tasks-panel">
<div id="tasks-header">
<button id="tasks-collapse-btn" title="Collapse panel">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"/>
</svg>
</button>
<h3>Tasks</h3>
<div class="tasks-header-actions">
<button id="tasks-dashboard-btn" tabindex="-1" title="Open task dashboard">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="6" height="18" rx="1"/>
<rect x="11" y="3" width="6" height="12" rx="1"/>
<rect x="19" y="3" width="2" height="8" rx="1"/>
</svg>
Dashboard
</button>
<button id="tasks-close" tabindex="-1">✕</button>
</div>
</div>
<div class="tasks-filter">
<button class="tasks-filter-btn active" data-filter="all">All</button>
<button class="tasks-filter-btn" data-filter="pending">Pending</button>
<button class="tasks-filter-btn" data-filter="inProgress">In Progress</button>
<button class="tasks-filter-btn" data-filter="completed">Completed</button>
<button id="tasks-add-btn" class="tasks-quick-add-btn" tabindex="-1" title="Quick add a task">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="12" y1="5" x2="12" y2="19"/>
<line x1="5" y1="12" x2="19" y2="12"/>
</svg>
<span class="tasks-quick-add-label">Quick Add</span>
</button>
</div>
<div id="tasks-content">
<!-- Tasks will be populated here -->
</div>
</div>
<!-- Specs Panel (spec-driven development, Slice 1) -->
<div id="specs-panel">
<div id="specs-panel-resize-handle"></div>
<div id="specs-header">
<button id="specs-collapse-btn" title="Collapse panel">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"/>
</svg>
</button>
<h3>Specs</h3>
<div class="specs-header-actions">
<button id="specs-wide-toggle" tabindex="-1" title="Expand panel" aria-label="Expand panel">
<svg class="specs-wide-icon-expand" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 3 21 3 21 9"/>
<polyline points="9 21 3 21 3 15"/>
<line x1="21" y1="3" x2="14" y2="10"/>
<line x1="3" y1="21" x2="10" y2="14"/>
</svg>
<svg class="specs-wide-icon-compact" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="4 14 10 14 10 20"/>
<polyline points="20 10 14 10 14 4"/>
<line x1="14" y1="10" x2="21" y2="3"/>
<line x1="3" y1="21" x2="10" y2="14"/>
</svg>
</button>
<button id="specs-dashboard-btn" tabindex="-1" title="Open spec dashboard">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="6" height="18" rx="1"/>
<rect x="11" y="3" width="6" height="12" rx="1"/>
<rect x="19" y="3" width="2" height="8" rx="1"/>
</svg>
Dashboard
</button>
<button id="specs-new-btn" tabindex="-1" title="New Spec">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="12" y1="5" x2="12" y2="19"/>
<line x1="5" y1="12" x2="19" y2="12"/>
</svg>
New
</button>
<button id="specs-refresh-btn" tabindex="-1" title="Refresh specs">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="23 4 23 10 17 10"/>
<polyline points="1 20 1 14 7 14"/>
<path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/>
</svg>
</button>
<button id="specs-close" tabindex="-1">✕</button>
</div>
</div>
<div id="specs-content">
<!-- Spec list / detail rendered here -->
</div>
</div>
<!-- Sessions: the project's Claude Code transcripts, a Context row
beside Specs and Tasks. Hosted in the center by multiTerminalUI
(sessionsPanel.js); the header is the shared .view-header. -->
<div id="sessions-panel">
<div id="sessions-header" class="view-header">
<div class="view-header-title">
<span class="view-header-mark" aria-hidden="true">↺</span>
<h2>Sessions</h2>
</div>
<div class="view-header-actions">
<span id="sessions-count" class="view-header-count"></span>
<button id="sessions-refresh-btn" tabindex="-1" title="Refresh sessions">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/>
</svg>
</button>
</div>
</div>
<div id="sessions-content">
<!-- Sessions will be populated here -->
</div>
</div>
<!-- Prompts Panel -->
<div id="prompts-panel">
<div id="prompts-header" class="dock-view-header">
<h3 class="dock-view-title">Prompts</h3>
<div class="dock-view-actions">
<input id="prompts-search" class="dock-view-search" type="search" placeholder="Search prompts…" autocomplete="off" spellcheck="false" />
</div>
</div>
<div id="prompts-list">
<!-- Prompt cards will be populated here -->
</div>
</div>
<!-- Activity: the work Frame does on its own -->
<div id="activity-panel">
<div id="activity-header" class="dock-view-header">
<h3 class="dock-view-title">Activity</h3>
<div class="dock-view-actions">
<span id="activity-count" class="dock-view-count"></span>
</div>
</div>
<div class="activity-controls"></div>
<div id="activity-list">
<!-- Rows are rendered by activityPanel.js -->
</div>
<div id="activity-empty" class="activity-empty">
Nothing recorded yet. Watchers, hooks and recoveries show up here as Frame does them.
</div>
</div>
<!-- Feedback: what the user wants to tell us about Frame itself. A modal
opened from the foot of the sidebar rail (feedbackPanel.js). -->
<div id="feedback-modal" class="modal-overlay">
<div class="modal-container feedback-modal" role="dialog" aria-label="Feedback">
<div class="modal-header">
<h3 id="feedback-modal-title">Feedback</h3>
<button class="modal-close" id="feedback-modal-close" title="Close" aria-label="Close">✕</button>
</div>
<div id="feedback-panel">
<!-- The kind cards are rendered by feedbackPanel.js from FEEDBACK_TYPES -->
<div class="feedback-kinds" role="radiogroup" aria-label="What is this about?"></div>
<div id="feedback-body">
<!-- The form is rendered by feedbackPanel.js -->
</div>
</div>
</div>
</div>
<!-- Plugins: the Claude Code plugins list. A modal opened from the foot
of the sidebar rail, above Feedback (pluginsPanel.js). -->
<div id="plugins-modal" class="modal-overlay">
<div class="modal-container plugins-modal" role="dialog" aria-label="Plugins">
<div class="modal-header">
<h3>Plugins</h3>
<button class="modal-close" id="plugins-modal-close" title="Close" aria-label="Close">✕</button>
</div>
<div id="plugins-panel">
<div class="plugins-toolbar">
<div class="plugins-filter">
<button class="plugins-filter-btn active" data-filter="all">All</button>
<button class="plugins-filter-btn" data-filter="installed">Installed</button>
<button class="plugins-filter-btn" data-filter="enabled">Enabled</button>
</div>
<button id="plugins-refresh-btn" tabindex="-1" title="Refresh plugin list">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/>
</svg>
</button>
</div>
<div id="plugins-content">
<!-- Plugins will be populated here -->
</div>
</div>
</div>
</div>
<!-- Command Palette -->
<div id="command-palette-overlay" class="command-palette-overlay">
<div class="command-palette" role="dialog" aria-label="Command Palette">
<input
id="command-palette-input"
class="command-palette-input"
type="text"
placeholder="Type a command…"
autocomplete="off"
spellcheck="false"
/>
<div id="command-palette-list" class="command-palette-list"></div>
</div>
</div>
<!-- Keyboard Shortcut Cheat Sheet -->
<div id="cheat-sheet-overlay" class="cheat-sheet-overlay">
<div class="cheat-sheet" role="dialog" aria-label="Keyboard Shortcuts">
<div class="cheat-sheet-header">
<h3 class="cheat-sheet-title-text">Keyboard Shortcuts</h3>
<input
id="cheat-sheet-search"
class="cheat-sheet-search"
type="text"
placeholder="Filter…"
autocomplete="off"
spellcheck="false"
/>
</div>
<div id="cheat-sheet-list" class="cheat-sheet-list"></div>
<div class="cheat-sheet-footer">
<span>Press <kbd>Esc</kbd> to close</span>
<span>Open the Command Palette to run an action</span>
</div>
</div>
</div>
<!-- How to Use Frame (how-to-use-frame-guide spec). A static frame only:
guideModal.js renders the index tree, the page and the counter from
src/renderer/guide/guideContent.js. Never opens by itself: the rail's
help button, Help › How to Use Frame and the palette (help.guide). -->
<div id="guide-overlay" class="guide-overlay">
<div class="guide-modal" role="dialog" aria-modal="true" aria-labelledby="guide-title" tabindex="-1">
<div class="guide-header">
<h3 id="guide-title" class="guide-title">How to Use Frame</h3>
<button type="button" id="guide-close" class="guide-close" aria-label="Close">✕</button>
</div>
<div class="guide-body">
<nav id="guide-tree" class="guide-tree" aria-label="Guide contents"></nav>
<article id="guide-page" class="guide-page" aria-live="polite">
<div id="guide-sketch" class="guide-sketch" aria-hidden="true"></div>
<div id="guide-page-content" class="guide-page-content"></div>
</article>
</div>
<div class="guide-footer">
<div class="guide-nav">
<button type="button" id="guide-back" class="guide-btn">← Back</button>
<span id="guide-counter" class="guide-counter" aria-live="polite"></span>
<button type="button" id="guide-next" class="guide-btn guide-btn-primary">Next →</button>
</div>
</div>
</div>
</div>
<!-- Spotlight Tour: Initialize Frame -->
<div id="spotlight-overlay" class="spotlight-overlay">
<div id="spotlight-card" class="spotlight-card">
<div class="spotlight-card-header">
<span class="spotlight-icon">✦</span>
<h4>Initialize as Frame Project</h4>
</div>
<p class="spotlight-card-body">
Frame standardizes your project for AI-assisted development.
This creates configuration files that help AI tools understand
your project structure, preserve context between sessions,
and track decisions.
</p>
<div class="spotlight-card-files">
<span>.frame/AGENTS.md</span>
<span>.frame/STRUCTURE.json</span>
<span>.frame/PROJECT_NOTES.md</span>
<span>.frame/tasks.json</span>
<span>+ more</span>
</div>
<button id="spotlight-dismiss" class="spotlight-card-btn">Got it</button>
</div>
</div>
<!-- Initialize Frame Modal -->
<div id="initialize-frame-modal" class="modal-overlay">
<div class="modal-container">
<div class="modal-header">
<h3>Initialize as Frame Project</h3>
<button class="modal-close" id="init-frame-modal-close">✕</button>
</div>
<div class="modal-body">
<p class="init-modal-lead">This project isn't set up with Frame yet. Initialize it to enable AI context, task tracking, and session notes.</p>
<p class="init-modal-description">This will create the following files in your project:</p>
<ul class="init-modal-file-list">
<li><span class="file-icon">📁</span> .frame/ <span class="file-desc">everything Frame writes lives here</span></li>
<li><span class="file-icon">📄</span> .frame/AGENTS.md <span class="file-desc">AI instructions</span></li>
<li><span class="file-icon">📄</span> .frame/STRUCTURE.json <span class="file-desc">module map</span></li>
<li><span class="file-icon">📄</span> .frame/PROJECT_NOTES.md <span class="file-desc">session notes</span></li>
<li><span class="file-icon">📄</span> .frame/tasks.json <span class="file-desc">task tracking</span></li>
<li><span class="file-icon">📄</span> .frame/QUICKSTART.md <span class="file-desc">getting started</span></li>
<li><span class="file-icon">📁</span> .frame/bin/ <span class="file-desc">Frame's parser and helper scripts</span></li>
<li><span class="file-icon">🔗</span> .claude/rules/frame.md <span class="file-desc">a copy of .frame/AGENTS.md, kept in sync, for Claude Code to read</span></li>
</ul>
<p class="init-modal-note">Nothing is added to your project root, and no existing file is
read, moved or replaced — your CLAUDE.md and AGENTS.md stay yours.</p>
<fieldset class="init-modal-sharing">
<legend>How should Frame's files relate to git?</legend>
<label class="init-sharing-option">
<input type="radio" name="init-frame-sharing" value="repo" checked>
<span class="init-sharing-dot" aria-hidden="true"></span>
<span class="init-sharing-title">Share with the repo</span>
<span class="init-sharing-desc">Commit <code>.frame/</code> so teammates get the same context. Machine-local files are ignored by <code>.frame/.gitignore</code>.</span>
</label>
<label class="init-sharing-option">
<input type="radio" name="init-frame-sharing" value="local">
<span class="init-sharing-dot" aria-hidden="true"></span>
<span class="init-sharing-title">Keep it local to me</span>
<span class="init-sharing-desc">Excluded through <code>.git/info/exclude</code>, so <code>git status</code> shows nothing Frame made. Nothing is added to the tracked <code>.gitignore</code>.</span>
</label>
</fieldset>
<p class="init-modal-note init-modal-requirement">Needs Claude Code new enough to load
<code>.claude/rules/</code> — verified with Claude Code 2.1.x. Run <code>/context</code> in a
session to confirm <code>.claude/rules/frame.md</code> loaded.</p>
<div id="init-frame-existing-warning" class="init-modal-warning" style="display: none;">
<p>These files already exist and will NOT be overwritten:</p>
<ul id="init-frame-existing-list"></ul>
</div>
</div>
<div class="modal-footer">
<label class="init-modal-dontask" title="Stops asking for this project until you restart Frame">
<input type="checkbox" id="init-frame-dontask"> Don't ask again for this project
</label>
<button class="modal-btn modal-btn-cancel" id="init-frame-cancel">Not Now</button>
<button class="modal-btn modal-btn-primary" id="init-frame-confirm">Initialize</button>
</div>
</div>
</div>
<!-- Migration Decision Modal — the half of the move that is the user's call -->
<div id="migration-modal" class="modal-overlay">
<div class="modal-container">
<div class="modal-header">
<h3>Update <code>AGENTS.md</code> to point at <code>.frame/</code>?</h3>
<button class="modal-close" id="migration-modal-close">✕</button>
</div>
<div class="modal-body">
<p class="init-modal-lead" id="migration-lead">
Frame's own files have moved into <code>.frame/</code>. <code>AGENTS.md</code>
is yours, so its text is still exactly as you left it — and it still points
agents at the old paths. Frame can update those lines for you:
</p>
<ul class="init-modal-file-list" id="migration-file-list"></ul>
<p class="init-modal-note" id="migration-backup-note"></p>
<div id="migration-progress" class="migration-progress" style="display:none;">
<p id="migration-progress-step">Working…</p>
</div>
<div id="migration-receipt" class="migration-receipt" style="display:none;"></div>
</div>
<div class="modal-footer">
<button class="modal-btn modal-btn-cancel" id="migration-later">Later</button>
<button class="modal-btn modal-btn-primary" id="migration-run">Update</button>
</div>
</div>
</div>
<!-- Open Project Modal -->
<div id="open-project-modal" class="modal-overlay">
<div class="modal-container">
<div class="modal-header">
<h3>Open a Project</h3>
<button class="modal-close" id="open-project-modal-close">✕</button>
</div>
<div class="modal-body" id="open-project-start"></div>
</div>
</div>
<!-- Tasks Dashboard (Kanban) -->
<div id="tasks-dashboard" class="tasks-dashboard">
<div class="view-header">
<div class="view-header-title">
<span class="view-header-mark" aria-hidden="true">✓</span>
<h2>Tasks</h2>
</div>
<div class="view-header-actions tasks-dashboard-actions">
<div class="tasks-dashboard-filter-wrap">
<button id="tasks-dashboard-filter-btn" class="tasks-dashboard-toolbar-btn" tabindex="-1" title="Filter tasks">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/>
</svg>
Filter
<span id="tasks-dashboard-filter-badge" class="tasks-dashboard-toolbar-badge" hidden>0</span>
</button>
<div id="tasks-dashboard-filter-popover" class="tasks-dashboard-popover" hidden>
<div class="tasks-dashboard-popover-header">
<h5 class="tasks-dashboard-popover-title">Filter</h5>
<button type="button" id="tasks-dashboard-filter-clear" class="tasks-dashboard-popover-clear">Clear all</button>
</div>
<div class="tasks-dashboard-popover-section">
<h5>Issue type</h5>
<label class="tasks-dashboard-popover-option">
<input type="checkbox" data-filter-dim="categories" value="feature">
<span>Feature</span>
</label>
<label class="tasks-dashboard-popover-option">
<input type="checkbox" data-filter-dim="categories" value="fix">
<span>Bug Fix</span>
</label>
<label class="tasks-dashboard-popover-option">
<input type="checkbox" data-filter-dim="categories" value="refactor">
<span>Refactor</span>
</label>
<label class="tasks-dashboard-popover-option">
<input type="checkbox" data-filter-dim="categories" value="docs">
<span>Documentation</span>
</label>
<label class="tasks-dashboard-popover-option">
<input type="checkbox" data-filter-dim="categories" value="test">
<span>Testing</span>
</label>
<label class="tasks-dashboard-popover-option">
<input type="checkbox" data-filter-dim="categories" value="research">
<span>Research</span>
</label>
</div>
<div class="tasks-dashboard-popover-section">
<h5>Priority</h5>
<label class="tasks-dashboard-popover-option">
<input type="checkbox" data-filter-dim="priorities" value="high">
<span class="tasks-dashboard-popover-priority-dot priority-high"></span>
<span>High</span>
</label>
<label class="tasks-dashboard-popover-option">
<input type="checkbox" data-filter-dim="priorities" value="medium">
<span class="tasks-dashboard-popover-priority-dot priority-medium"></span>
<span>Medium</span>
</label>
<label class="tasks-dashboard-popover-option">
<input type="checkbox" data-filter-dim="priorities" value="low">
<span class="tasks-dashboard-popover-priority-dot priority-low"></span>
<span>Low</span>
</label>
</div>
<div class="tasks-dashboard-popover-info">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"/>
<line x1="12" y1="16" x2="12" y2="12"/>
<line x1="12" y1="8" x2="12.01" y2="8"/>
</svg>
<span>Dashboard only — won't apply to tasks.json</span>
</div>
</div>
</div>
<div class="tasks-dashboard-filter-wrap">
<button id="tasks-dashboard-sort-btn" class="tasks-dashboard-toolbar-btn" tabindex="-1" title="Sort tasks">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M3 6h13"/>
<path d="M3 12h9"/>
<path d="M3 18h5"/>
<path d="M17 8l4-4 4 4" transform="translate(-3 0)"/>
<path d="M18 4v16"/>
</svg>
Sort
<span id="tasks-dashboard-sort-label" class="tasks-dashboard-toolbar-sort-label" hidden></span>
</button>
<div id="tasks-dashboard-sort-popover" class="tasks-dashboard-popover" hidden>
<div class="tasks-dashboard-popover-header">
<h5 class="tasks-dashboard-popover-title">Sort</h5>
<button type="button" id="tasks-dashboard-sort-reset" class="tasks-dashboard-popover-clear">Reset</button>
</div>
<div class="tasks-dashboard-popover-section">
<h5>Sort by</h5>
<label class="tasks-dashboard-popover-option">
<input type="radio" name="tasks-dashboard-sort" data-sort-mode="default" checked>
<span>
<span class="tasks-dashboard-popover-option-title">Task ID (default)</span>
<span class="tasks-dashboard-popover-option-sub">Original order in tasks.json</span>
</span>
</label>
<label class="tasks-dashboard-popover-option">
<input type="radio" name="tasks-dashboard-sort" data-sort-mode="category">
<span>
<span class="tasks-dashboard-popover-option-title">Issue type</span>
<span class="tasks-dashboard-popover-option-sub">Feature, Bug Fix, Refactor…</span>
</span>
</label>
<label class="tasks-dashboard-popover-option">
<input type="radio" name="tasks-dashboard-sort" data-sort-mode="priority">
<span>
<span class="tasks-dashboard-popover-option-title">Priority</span>
<span class="tasks-dashboard-popover-option-sub">High → Medium → Low</span>
</span>
</label>
</div>
<div class="tasks-dashboard-popover-toggle-row">
<div class="tasks-dashboard-popover-toggle-text">
<span class="tasks-dashboard-popover-toggle-title">Permanent Save</span>
<span class="tasks-dashboard-popover-toggle-sub" id="tasks-dashboard-sort-apply-sub">Off — dashboard only</span>
</div>
<label class="tasks-dashboard-switch">
<input type="checkbox" id="tasks-dashboard-sort-apply">
<span class="tasks-dashboard-switch-slider"></span>
</label>
</div>
</div>
</div>