@d86e/hive-panel 1.0.23 → 1.0.24
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/SPEC.md +7 -1
- package/package.json +1 -1
- package/public/panel.css +38 -0
- package/public/panel.js +980 -78
- package/src/cache.js +269 -0
- package/src/data.js +73 -0
- package/src/event-store.js +68 -0
- package/src/server.js +77 -6
package/SPEC.md
CHANGED
|
@@ -122,7 +122,13 @@ default.
|
|
|
122
122
|
## 6. Refresh
|
|
123
123
|
|
|
124
124
|
The page polls `/api/snapshot` every 3 seconds and pauses while the document is
|
|
125
|
-
hidden. The server
|
|
125
|
+
hidden. The server keeps one version-keyed snapshot cache: the key is
|
|
126
|
+
`git rev-parse refs/hive/v1/tasks` plus the `events.jsonl` size/mtime. While the key is
|
|
127
|
+
unchanged all `/api/snapshot`, `/api/status`, `/api/tasks` and `/api/events` requests are
|
|
128
|
+
served from memory; a ref change rebuilds tasks/stats/board with parallel CLI calls and
|
|
129
|
+
counts, while events are appended through a byte cursor (last 5000 kept). Concurrent
|
|
130
|
+
first-screen requests share one in-flight build; lane pages slice the cached tasks and
|
|
131
|
+
never return more than 200 items per lane.
|
|
126
132
|
|
|
127
133
|
## 7. Page
|
|
128
134
|
|
package/package.json
CHANGED
package/public/panel.css
CHANGED
|
@@ -1336,3 +1336,41 @@ dialog.hive-dialog .hive-dialog-body { flex: 1 1 auto; min-height: 0; overflow:
|
|
|
1336
1336
|
.hive-event.is-expanded .hive-event-raw { flex-basis: 100%; }
|
|
1337
1337
|
|
|
1338
1338
|
.hive-limits-source { color: var(--hive-fg-faint); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
|
|
1339
|
+
/* First-paint list skeletons: real chrome, grey rows only inside lists. */
|
|
1340
|
+
.hive-lane-initial { display: flex; flex-direction: column; gap: 6px; padding: 0; }
|
|
1341
|
+
.hive-lane-initial.is-hidden { display: none; }
|
|
1342
|
+
.hive-lane-initial-row { height: 26px; border-radius: var(--hive-radius-sm); background: var(--hive-line-2); opacity: 0.65; }
|
|
1343
|
+
.hive-events-initial { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
|
|
1344
|
+
.hive-events-initial-row { height: 28px; border-radius: var(--hive-radius-sm); background: var(--hive-line-2); opacity: 0.65; }
|
|
1345
|
+
.hive-events-retry { margin: 6px 0 0; }
|
|
1346
|
+
|
|
1347
|
+
.hive-lane-head .hive-count { min-width: 0; margin-left: 4px; padding: 0; border-radius: 0; background: none; color: var(--hive-fg-faint); font-family: var(--hive-font, inherit); font-size: 10px; font-weight: 500; line-height: 1.4; }
|
|
1348
|
+
.hive-card-check { flex: 0 0 auto; width: 14px; height: 14px; margin: 0 2px 0 0; accent-color: var(--hive-accent); }
|
|
1349
|
+
.hive-lane { position: relative; }
|
|
1350
|
+
.hive-menu { position: absolute; z-index: 30; top: 34px; right: 8px; display: flex; flex-direction: column; min-width: 150px; padding: 4px; border: 1px solid var(--hive-line-2); border-radius: var(--hive-radius-md); background: var(--hive-bg-layer-2); box-shadow: var(--dsw-elevation-panel, 0 8px 22px rgba(0, 0, 0, 0.18)); }
|
|
1351
|
+
.hive-menu.is-hidden { display: none; }
|
|
1352
|
+
.hive-menu-item { padding: 6px 9px; border: 0; border-radius: var(--hive-radius-sm); background: transparent; color: var(--hive-fg-soft); font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
|
|
1353
|
+
.hive-menu-item:hover { background: var(--hive-hover); color: var(--hive-fg); }
|
|
1354
|
+
.hive-menu-item.is-danger { color: var(--hive-danger); }
|
|
1355
|
+
.hive-lane-menu-button { padding: 0 5px; font-size: 14px; line-height: 1.2; }
|
|
1356
|
+
|
|
1357
|
+
.hive-events-head { position: relative; }
|
|
1358
|
+
.hive-event-check { flex: 0 0 auto; width: 13px; height: 13px; margin: 0 2px 0 0; accent-color: var(--hive-accent); }
|
|
1359
|
+
.hive-event.is-selected { background: var(--hive-selected); }
|
|
1360
|
+
.hive-events-menu { right: 8px; top: 30px; }
|
|
1361
|
+
.hive-events-menu-button { padding: 0 5px; font-size: 14px; line-height: 1.2; }
|
|
1362
|
+
.hive-event-prune { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--hive-line-2); background: var(--hive-bg-layer-1); }
|
|
1363
|
+
.hive-event-prune.is-hidden { display: none; }
|
|
1364
|
+
.hive-event-prune-label { display: inline-flex; align-items: center; gap: 5px; color: var(--hive-fg-soft); font-size: 10px; }
|
|
1365
|
+
.hive-event-prune-input { width: auto; min-width: 160px; padding: 2px 5px; font-size: 10px; }
|
|
1366
|
+
.hive-event-prune-count { color: var(--hive-fg-faint); font-size: 10px; }
|
|
1367
|
+
.hive-event-prune-confirm { padding: 2px 7px; font-size: 10px; }
|
|
1368
|
+
|
|
1369
|
+
.hive-card-check, .hive-event-check { position: relative; z-index: 2; pointer-events: auto; cursor: pointer; }
|
|
1370
|
+
|
|
1371
|
+
.hive-menu-selection { padding: 4px 9px 5px; border-bottom: 1px solid var(--hive-line-2); color: var(--hive-fg-faint); font-size: 10px; letter-spacing: 0; }
|
|
1372
|
+
|
|
1373
|
+
.hive-events-page-error { display: flex; align-items: center; gap: 6px; padding: 6px 2px; color: var(--hive-danger); font-size: 10px; }
|
|
1374
|
+
.hive-events-page-error-reason { color: var(--hive-fg-faint); }
|
|
1375
|
+
.hive-events-page-retry { padding: 1px 6px; font-size: 10px; }
|
|
1376
|
+
|