@soffits/dsh-card-board 0.15.0 → 0.15.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.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/client.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.1
|
|
4
|
+
|
|
5
|
+
A labelled `done` on a row is a choice, not a tick: it stays a button of its own, so a row can offer several answers (an ask's options). Only an unlabelled done becomes the row's checkbox; before, the first done of any kind did and the others vanished.
|
|
6
|
+
|
|
3
7
|
## 0.15.0
|
|
4
8
|
|
|
5
9
|
A shared board can keep a card for only some of its viewers: `cardViewers` in `board.json` maps a card id to the people who may see it. Everyone else gets the board without it; its route answers 404, the events stream leaves it out and its buttons refuse a press, all decided on the server.
|
package/README.md
CHANGED
|
@@ -226,7 +226,7 @@ Each bar has a single `value` or named `values`; with `values` and no `stacked`,
|
|
|
226
226
|
}
|
|
227
227
|
```
|
|
228
228
|
|
|
229
|
-
A row with a `done` action shows a checkbox, and ticking it presses that action (the row's separate done button then goes); `checked: true` shows it ticked. A row without a `done` action shows no checkbox. `progress` draws a ring above the rows, with its `label` and an optional `sub`.
|
|
229
|
+
A row with a `done` action shows a checkbox, and ticking it presses that action (the row's separate done button then goes); `checked: true` shows it ticked. A row without a `done` action shows no checkbox. A `done` with a `label` is a choice rather than a tick (one answer of a question, say "White" or "Oak"): it stays a button of its own, so a row can offer several. `progress` draws a ring above the rows, with its `label` and an optional `sub`.
|
|
230
230
|
|
|
231
231
|
Rows (of lists and status cards) may also have an `icon` and a `tone` (a tile before the row), a `key` (a stable id, so the page can tell which row changed) and `active: { from, to }`: during that window the row is highlighted and says "now", earlier the same day it says "from 18:00". The page decides when, so nobody has to rewrite the file at noon. A row's `date` shows relative to today ("tomorrow", "in 3 days") and moves on by itself. A row may have a `link` (an `http(s)` URL, opened in a new tab, or a `/path` of this app, opened in place): tapping the row goes there. A keyed row may have a `detail` (below): tapping it opens it. Stat items take a `link` too.
|
|
232
232
|
|
package/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @soffits/dsh-card-board 0.15.
|
|
1
|
+
/* @soffits/dsh-card-board 0.15.1: built by scripts/build.mjs from src/client/. Do not edit. */
|
|
2
2
|
window.__ModuleLoader__.load({
|
|
3
3
|
id: "@soffits/dsh-card-board",
|
|
4
4
|
factory: (require) => {
|
|
@@ -967,7 +967,7 @@ function dropAfter(rect, x, y, single) {
|
|
|
967
967
|
}
|
|
968
968
|
|
|
969
969
|
// src/client/ticks.js
|
|
970
|
-
var doneOf = (row) => row?.actions?.find((action) => action.kind === "done");
|
|
970
|
+
var doneOf = (row) => row?.actions?.find((action) => action.kind === "done" && action.label === void 0);
|
|
971
971
|
function keepOf(row, index) {
|
|
972
972
|
const done = doneOf(row);
|
|
973
973
|
return done === void 0 ? void 0 : { id: done.id, index, row: { ...row, checked: true, actions: [done] } };
|
|
@@ -1157,7 +1157,7 @@ function ListCard({ data, live, locale, t, rowActions, ask, all = false, onOpenR
|
|
|
1157
1157
|
listed.length === 0 ? (0, import_react6.createElement)("p", { className: "cb-muted" }, data.empty ?? t("listEmpty")) : (0, import_react6.createElement)("ul", { className: "cb-rows" }, rows.map((row, i) => (0, import_react6.createElement)(Row, {
|
|
1158
1158
|
key: row.key ?? i,
|
|
1159
1159
|
index: data.rows.indexOf(row),
|
|
1160
|
-
row: doneOf(row) && rowControls ? { ...row, actions: row.actions.filter((a) => a
|
|
1160
|
+
row: doneOf(row) && rowControls ? { ...row, actions: row.actions.filter((a) => a !== doneOf(row)) } : row,
|
|
1161
1161
|
rowActions: data.rows.includes(row) ? rowActions : void 0,
|
|
1162
1162
|
ask,
|
|
1163
1163
|
onOpenRow,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soffits/dsh-card-board",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "A data-driven card board for DeepSeek Harness: scripts write small JSON cards, the Web UI shows each person the boards they may see.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|