diacode 0.0.0-stage → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,24 @@
1
+ <!doctype html>
2
+ <html lang="en" data-published>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <title>Compact · DiaCode</title>
8
+ <meta name="description" content="A plan you and your coding agents share: a diagram in your repository that you edit by hand, with each step showing who has it and how that is known.">
9
+ <meta name="theme-color" content="#FBFAF8">
10
+ <link rel="icon" href="/favicon.svg" type="image/svg+xml">
11
+ <script type="module" crossorigin src="/assets/compact-OOTi-DHu.js"></script>
12
+ <link rel="modulepreload" crossorigin href="/assets/fonts-C71K6yRy.js">
13
+ <link rel="stylesheet" crossorigin href="/assets/fonts-CdeCoHOe.css">
14
+ <link rel="stylesheet" crossorigin href="/assets/compact-D4LqjEE-.css">
15
+ </head>
16
+
17
+ <body>
18
+ <!-- The compact view: one plan in a narrow column (the side of an IDE, a menu-bar window, a narrow tab). Everything in it is
19
+ drawn by src/compact-main.js from what the plan server says; it edits no structure, and opens the full editor for the rest. -->
20
+ <main id="root" aria-live="off"><p class="calm">Looking for the plan server…</p></main>
21
+
22
+ </body>
23
+
24
+ </html>
@@ -0,0 +1,115 @@
1
+ <!doctype html>
2
+ <html lang="en" data-published>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <title>Editor · DiaCode</title>
8
+ <meta name="description" content="A plan you and your coding agents share: a diagram in your repository that you edit by hand, with each step showing who has it and how that is known.">
9
+ <meta name="theme-color" content="#FBFAF8">
10
+ <link rel="icon" href="/favicon.svg" type="image/svg+xml">
11
+ <script type="module" crossorigin src="/assets/app-0Ti-gp9D.js"></script>
12
+ <link rel="modulepreload" crossorigin href="/assets/fonts-C71K6yRy.js">
13
+ <link rel="stylesheet" crossorigin href="/assets/fonts-CdeCoHOe.css">
14
+ <link rel="stylesheet" crossorigin href="/assets/app-1SR3-4wc.css">
15
+ </head>
16
+
17
+ <body>
18
+ <header class="bar">
19
+ <a class="wordmark" href="/" aria-label="DiaCode, back to the front page"><span class="wm">Dia</span>Code</a>
20
+
21
+ <!-- Plan or Architecture: which of the two you are looking at. They read an arrow differently, so the page always says which. -->
22
+ <div class="modes" id="modes" role="group" aria-label="What you are looking at">
23
+ <button id="modePlan" aria-pressed="true">Plan</button><button id="modeArch" aria-pressed="false">Architecture</button>
24
+ </div>
25
+
26
+ <!-- Which plan is open, and the way to another: a switcher, not a row of tabs, so eight plans or
27
+ eighty take the same room and the board gets the height. -->
28
+ <div class="switcher" id="switcher">
29
+ <button class="step" id="prevPlan" aria-label="Previous plan" title="Previous plan">&lsaquo;</button>
30
+ <button class="current" id="planBtn" aria-expanded="false" aria-controls="plans">
31
+ <span class="title" id="planTitle">Plans</span>
32
+ <span class="meta" id="planMeta"></span>
33
+ <svg class="chev" viewBox="0 0 10 6" aria-hidden="true"><path d="M1 1l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
34
+ </button>
35
+ <button class="step" id="nextPlan" aria-label="Next plan" title="Next plan">&rsaquo;</button>
36
+ <div class="menu" id="plans" aria-label="Plans" hidden></div>
37
+ </div>
38
+
39
+ <p class="descr" id="descr">A demo: eight real plans, simplest first, kept nowhere. <a href="/#use">Use it on your own plans &rarr;</a></p>
40
+ </header>
41
+
42
+ <main>
43
+ <section class="stage">
44
+ <!-- The plan's own line: its goal, where it is in its life, what you can do about that (approve, pause, resume, stop), and what it does. -->
45
+ <section class="planbar" id="planbar" aria-label="This plan" hidden>
46
+ <p class="goal" id="goal"></p>
47
+ <div class="phaserow">
48
+ <ol class="phases" id="phases" aria-label="Phase of the plan"></ol>
49
+ <span class="phasebuttons"><button class="phase" id="phase" hidden></button><button class="phase" id="phase2" hidden></button></span>
50
+ </div>
51
+ <p class="phaseline" id="phaseLine"></p>
52
+ </section>
53
+
54
+ <!-- The inbox: what is waiting on you, said where a glance finds it (the tab's title and icon say it from outside), and open to each thing with its action. -->
55
+ <details class="needs" id="needs" hidden>
56
+ <summary><span id="needsText" role="status"></span><span class="needs-open" aria-hidden="true"></span></summary>
57
+ <div class="needs-body" id="needsBody"></div>
58
+ </details>
59
+
60
+ <p class="notice" id="notice" hidden></p>
61
+
62
+ <!-- The board: the frame you scroll, and what floats over it. -->
63
+ <div class="board" id="board">
64
+ <p class="modebadge" id="modeBadge"><b>Plan</b> an arrow A &rarr; B means B comes after A</p>
65
+ <div id="chart" class="chart" tabindex="0" role="region" aria-label="Plan board. Tab to a step: the arrow keys move it, Enter renames it, Delete removes it. Scroll to look around."></div>
66
+ <div class="zoom" id="zoom" role="group" aria-label="Zoom">
67
+ <button id="zoomOut" aria-label="Zoom out" title="Zoom out (−)">&minus;</button>
68
+ <button id="zoomLevel" class="level" aria-label="Zoom level; press for 100%" title="Zoom to 100%">100%</button>
69
+ <button id="zoomIn" aria-label="Zoom in" title="Zoom in (+)">+</button>
70
+ <button id="zoomFit" class="fit" aria-pressed="false" title="Fit the whole plan (0)">Fit</button>
71
+ </div>
72
+ <!-- What you can do to the diagram, with no toolbar to say so; what the colours, icons and badges mean. Closed until asked:
73
+ the board says each in words too. -->
74
+ <div class="floaters">
75
+ <button class="pop-btn" id="sourceBtn" aria-expanded="false" aria-controls="drawer" title="The plan as data, as Mermaid, and the chart's spec (S)">Source</button>
76
+ <details class="pop help" id="help"><summary aria-label="How to edit the diagram" title="How to edit the diagram (?)">?</summary><div class="pop-body" id="helpBody"></div></details>
77
+ <details class="pop legend" id="legend"><summary>Legend</summary><div class="pop-body" id="legendBody"></div></details>
78
+ </div>
79
+ <!-- Source: the plan as data (editable), as Mermaid, and the ElicitJS spec the chart is built from (read only). Slides up from
80
+ the bottom of the board, like a browser's developer tools. -->
81
+ <section class="drawer" id="drawer" aria-label="Source" inert>
82
+ <div class="drawer-head">
83
+ <div class="drawer-tabs" id="drawerTabs" role="tablist" aria-label="Source"></div>
84
+ <button class="plain" id="drawerClose" aria-label="Close the source drawer">Close</button>
85
+ </div>
86
+ <div class="drawer-body" id="drawerBody"></div>
87
+ </section>
88
+ <div class="history" role="group" aria-label="History">
89
+ <button id="undo" title="Undo (⌘Z)">Undo</button>
90
+ <button id="redo" title="Redo (⇧⌘Z)">Redo</button>
91
+ <button id="reset" title="Back to the diagram as it was drawn">Reset</button>
92
+ </div>
93
+ <!-- A proposal waiting for you: its ghost is on the board, and this is beside it with Accept and Reject. -->
94
+ <div class="proposal-card proposal" id="proposalCard" role="group" hidden></div>
95
+ <!-- Nothing to draw yet: what to do first, in place of an empty desk. -->
96
+ <div class="empty" id="empty" hidden></div>
97
+ <div class="minimap" id="minimap" role="img" aria-label="The whole plan, small. Click or drag to move the view." hidden></div>
98
+ </div>
99
+
100
+ <p class="source">
101
+ <span class="status"><span id="conn"></span> <span id="rev"></span></span>
102
+ <span id="planNote"></span>
103
+ <a id="source" href="#" target="_blank" rel="noopener" hidden>the plan this came from &rarr;</a>
104
+ </p>
105
+ </section>
106
+
107
+ <aside>
108
+ <div class="tabs" id="tabs" role="tablist"></div>
109
+ <div class="panel" id="panel"></div>
110
+ </aside>
111
+ </main>
112
+
113
+ </body>
114
+
115
+ </html>