@starlove/orbit 1.1.2 → 1.2.0

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.
package/SKILL-ORBIT.md CHANGED
@@ -75,6 +75,8 @@ Use board-level memory entries for durable history:
75
75
  - `decision`: UX or architecture choices agents should follow instead of defaulting to generic codegen.
76
76
  - `lesson`: mistakes or discoveries distilled as "do X instead of Y when working with Z."
77
77
 
78
+ Board entries are durable project memory, not general notes or persona guidance. Keep active entries focused on mechanisms, architectural/product boundaries, workflow invariants, public-product implications, and reusable pitfalls. Prefer ticket comments/implementation fields for one-run chronology, and strike or consolidate stale overlapping entries once a doctrine stabilizes.
79
+
78
80
  ## Ticket Relationships
79
81
 
80
82
  Two distinct, non-overlapping mechanisms:
package/build.mjs CHANGED
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env node
2
- // Two-edition static build. Bundles public/js/main.js with esbuild, copies
3
- // HTML/CSS/images alongside, and rewrites the script tag to point at the
4
- // hashed bundle. Edition is selected via `--edition=full|preview`; preview
2
+ // Two-edition static build. Bundles public/js/main.js and public/styles.css
3
+ // with esbuild, copies HTML/images alongside, and rewrites asset tags to point
4
+ // at hashed bundles. Edition is selected via `--edition=full|preview`; preview
5
5
  // substitutes `__ORBIT_EDITION__` so config.js reports edition="preview".
6
6
 
7
7
  import { build } from "esbuild";
8
+ import { bundleCss } from "./src/core/css-bundle.js";
8
9
  import {
9
10
  cpSync,
10
11
  existsSync,
@@ -143,9 +144,14 @@ async function run() {
143
144
  writeFileSync(join(outDir, "js", jsName), jsFile.contents);
144
145
  if (mapFile) writeFileSync(join(outDir, "js", `${jsName}.map`), mapFile.contents);
145
146
 
146
- // 2. Hash + copy CSS.
147
+ // 2. Bundle CSS package imports, then hash + copy the flattened output.
147
148
  const cssSrc = join(PUBLIC_DIR, "styles.css");
148
- const cssBuf = readFileSync(cssSrc);
149
+ const cssBundle = await bundleCss({
150
+ entryPoint: cssSrc,
151
+ outfile: join(outDir, "styles.css"),
152
+ minify: true
153
+ });
154
+ const cssBuf = cssBundle.cssFile.contents;
149
155
  const cssHash = hashContent(cssBuf);
150
156
  const cssName = `styles.${cssHash}.css`;
151
157
  writeFileSync(join(outDir, cssName), cssBuf);
@@ -15,9 +15,129 @@
15
15
  sizes="180x180"
16
16
  href="./apple-touch-icon.png"
17
17
  />
18
- <link rel="stylesheet" href="styles.836872e7.css" />
18
+ <!-- Apply the stored theme + motion preference before first paint, so
19
+ the app underneath the splash paints in the right theme (no flash)
20
+ and the splash respects an explicit reduce-motion choice. Mirrors
21
+ theme-preference.js (mab_theme) and motion-preference.js
22
+ (mab_reduce_motion → data-motion); main.js reconciles on load. -->
23
+ <script>
24
+ try {
25
+ var t = localStorage.getItem("mab_theme");
26
+ if (t === "light" || t === "dark")
27
+ document.documentElement.setAttribute("data-theme", t);
28
+ var rm = localStorage.getItem("mab_reduce_motion");
29
+ if (rm === "true")
30
+ document.documentElement.setAttribute("data-motion", "reduce");
31
+ else if (rm === "false")
32
+ document.documentElement.setAttribute("data-motion", "full");
33
+ } catch (e) {}
34
+ </script>
35
+ <link rel="preload" as="image" href="./orbits-logo.png" />
36
+ <link rel="stylesheet" href="styles.baccc8e3.css" />
37
+ <!-- Boot splash — the canonical ss-ui loading screen (see the package's
38
+ components/loader.css). Inline critical CSS so it paints before
39
+ /js/main.js loads. The logo grows in then breathes; no spinner.
40
+ Keyframes namespaced `ss-loader-*`. Under reduced motion the grow-in
41
+ is dropped and the dot grid stops; the gentle breathe stays. -->
42
+ <style>
43
+ .ss-loader {
44
+ position: fixed;
45
+ inset: 0;
46
+ z-index: 99999;
47
+ display: flex;
48
+ flex-direction: column;
49
+ align-items: center;
50
+ justify-content: center;
51
+ gap: 2rem;
52
+ overflow: hidden;
53
+ background: linear-gradient(
54
+ 135deg,
55
+ #1a1a2e 0%,
56
+ #16213e 50%,
57
+ #0f3460 100%
58
+ );
59
+ transition: opacity 0.4s ease;
60
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
61
+ Roboto, "Helvetica Neue", Arial, sans-serif;
62
+ }
63
+ .ss-loader::before {
64
+ content: "";
65
+ position: absolute;
66
+ width: 200%;
67
+ height: 200%;
68
+ background-image: radial-gradient(
69
+ circle,
70
+ rgba(168, 192, 255, 0.15) 1px,
71
+ transparent 1px
72
+ );
73
+ background-size: 50px 50px;
74
+ will-change: transform;
75
+ animation: ss-loader-drift 20s linear infinite;
76
+ }
77
+ .ss-loader.is-hiding {
78
+ opacity: 0;
79
+ pointer-events: none;
80
+ }
81
+ .ss-loader__logo {
82
+ width: 120px;
83
+ height: 120px;
84
+ object-fit: contain;
85
+ filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
86
+ transform-origin: center;
87
+ will-change: transform;
88
+ animation:
89
+ ss-loader-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1) both,
90
+ ss-loader-breathe 3s ease-in-out 0.6s infinite;
91
+ }
92
+ .ss-loader__label {
93
+ margin: 0;
94
+ color: #fff;
95
+ font-size: 1.25rem;
96
+ font-weight: 600;
97
+ letter-spacing: 0.5px;
98
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
99
+ }
100
+ @keyframes ss-loader-drift {
101
+ from { transform: translate(0, 0); }
102
+ to { transform: translate(-50px, -50px); }
103
+ }
104
+ @keyframes ss-loader-grow {
105
+ from { transform: scale(0); opacity: 0; }
106
+ to { transform: scale(1); opacity: 1; }
107
+ }
108
+ @keyframes ss-loader-breathe {
109
+ 0%, 100% { transform: scale(1); }
110
+ 50% { transform: scale(1.06); }
111
+ }
112
+ @media (prefers-reduced-motion: reduce) {
113
+ :root:not([data-motion="full"]) .ss-loader::before {
114
+ animation: none;
115
+ }
116
+ :root:not([data-motion="full"]) .ss-loader__logo {
117
+ animation: ss-loader-breathe 3s ease-in-out infinite;
118
+ }
119
+ }
120
+ [data-motion="reduce"] .ss-loader::before {
121
+ animation: none;
122
+ }
123
+ [data-motion="reduce"] .ss-loader__logo {
124
+ animation: ss-loader-breathe 3s ease-in-out infinite;
125
+ }
126
+ </style>
19
127
  </head>
20
128
  <body>
129
+ <!-- Boot splash - shown immediately, removed once the app is ready. -->
130
+ <div id="ss-loader" class="ss-loader" role="status" aria-live="polite">
131
+ <img
132
+ class="ss-loader__logo"
133
+ src="./orbits-logo.png"
134
+ alt="Orbit"
135
+ width="120"
136
+ height="120"
137
+ />
138
+ <p class="ss-loader__label">Loading Orbit…</p>
139
+ </div>
140
+
21
141
  <div class="grain">
22
142
  <div class="milky-way" aria-hidden="true"></div>
23
143
  </div>
@@ -39,6 +159,7 @@
39
159
  id="newTicketBtn"
40
160
  type="button"
41
161
  class="topbar-btn btn-sun topbar-ctl-shrink"
162
+ data-variant="cta"
42
163
  >
43
164
  <span class="btn-plus" aria-hidden="true">+</span>
44
165
  <span class="btn-sun-label">New Card</span>
@@ -48,6 +169,7 @@
48
169
  type="button"
49
170
  id="boardMenuBtn"
50
171
  class="topbar-chip topbar-ctl-shrink"
172
+ data-variant="board-chip"
51
173
  aria-expanded="false"
52
174
  aria-haspopup="true"
53
175
  aria-controls="boardFlyout"
@@ -65,7 +187,7 @@
65
187
  y="4"
66
188
  width="6"
67
189
  height="16"
68
- rx="1.5"
190
+ rx="0.75"
69
191
  stroke="currentColor"
70
192
  stroke-width="2"
71
193
  />
@@ -74,12 +196,12 @@
74
196
  y="4"
75
197
  width="6"
76
198
  height="16"
77
- rx="1.5"
199
+ rx="0.75"
78
200
  stroke="currentColor"
79
201
  stroke-width="2"
80
202
  />
81
203
  </svg>
82
- Board
204
+ <span class="topbar-chip-label">Board</span>
83
205
  </button>
84
206
  <div
85
207
  id="boardFlyout"
@@ -91,7 +213,8 @@
91
213
  <button
92
214
  id="themeToggle"
93
215
  type="button"
94
- class="topbar-btn ghost topbar-ctl-shrink"
216
+ class="topbar-btn topbar-ctl-shrink"
217
+ data-variant="theme"
95
218
  aria-label="Toggle theme"
96
219
  >
97
220
  <svg
@@ -115,7 +238,8 @@
115
238
  <button
116
239
  id="settingsBtn"
117
240
  type="button"
118
- class="topbar-btn ghost topbar-ctl-shrink"
241
+ class="topbar-btn topbar-ctl-shrink"
242
+ data-variant="translucent"
119
243
  >
120
244
  <svg
121
245
  class="topbar-icon"
@@ -170,19 +294,10 @@
170
294
  ></div>
171
295
  <aside id="drawer" class="drawer" hidden aria-label="Panel">
172
296
  <header class="drawer-header">
173
- <div class="drawer-title-block">
174
- <span
175
- id="drawerEyebrow"
176
- class="drawer-eyebrow"
177
- hidden
178
- ></span>
179
- <h2 id="drawerTitle" class="drawer-title-text"></h2>
180
- <div
181
- id="drawerSubtitle"
182
- class="drawer-subtitle"
183
- hidden
184
- ></div>
185
- </div>
297
+ <div
298
+ id="drawerTitleBlock"
299
+ class="drawer-title-block"
300
+ ></div>
186
301
  <nav
187
302
  id="drawerTabs"
188
303
  class="drawer-tabs"
@@ -309,6 +424,40 @@
309
424
  </div>
310
425
  </dialog>
311
426
 
312
- <script src="js/app.a4f045fc.js" type="module"></script>
427
+ <script src="js/app.ccc442f7.js" type="module"></script>
428
+ <!-- Fade out the boot splash once the DOM is ready. The /js/main.js
429
+ module runs before DOMContentLoaded, so theme/motion + wiring are
430
+ already applied by the time this fires. -->
431
+ <script>
432
+ (function () {
433
+ function hideSplash() {
434
+ var splash = document.getElementById("ss-loader");
435
+ if (!splash) return;
436
+ // Keep the splash up for a minimum of 786ms (measured from
437
+ // navigation start) so a fast load doesn't flash it in and out.
438
+ var wait = Math.max(0, 786 - performance.now());
439
+ setTimeout(function () {
440
+ splash.classList.add("is-hiding");
441
+ splash.addEventListener(
442
+ "transitionend",
443
+ function () {
444
+ splash.remove();
445
+ },
446
+ { once: true }
447
+ );
448
+ setTimeout(function () {
449
+ splash.remove();
450
+ }, 600);
451
+ }, wait);
452
+ }
453
+ if (document.readyState === "loading") {
454
+ document.addEventListener("DOMContentLoaded", hideSplash, {
455
+ once: true
456
+ });
457
+ } else {
458
+ hideSplash();
459
+ }
460
+ })();
461
+ </script>
313
462
  </body>
314
463
  </html>