@shipbench/board 0.7.1 → 0.9.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.
@@ -7,7 +7,7 @@
7
7
  <!-- Replaced at runtime with "<project> — ShipBench Board" once config
8
8
  loads. This is the pre-load and no-name fallback. -->
9
9
  <title>ShipBench Board</title>
10
- <script type="module" crossorigin src="/assets/standalone-C8mhrcRJ.js"></script>
10
+ <script type="module" crossorigin src="/assets/standalone-DFSHAoTJ.js"></script>
11
11
  <link rel="stylesheet" crossorigin href="/assets/standalone-BLkbfjd1.css">
12
12
  </head>
13
13
  <body class="sb-standalone">
@@ -30,6 +30,11 @@ export interface BoardState {
30
30
  unreadable: UnreadableTaskFile[];
31
31
  archiveViewOpen: boolean;
32
32
  archivedTasks: Task[] | null;
33
+ /**
34
+ * Every archive file's slug, from the live read. Lets a `related` target read
35
+ * as archived before the archive itself is loaded.
36
+ */
37
+ archivedSlugs: string[];
33
38
  archiveWarnings: TaskValidationWarning[];
34
39
  archiveUnreadable: UnreadableTaskFile[];
35
40
  isArchiveLoading: boolean;
@@ -4,9 +4,8 @@
4
4
  * way to ship this half-broken.
5
5
  *
6
6
  * `urlTransform` is deliberately not overridden. `defaultUrlTransform`
7
- * sanitizes hrefs against react-markdown's safe-protocol allowlist, and in
8
- * Harbor's remote mode this content arrives from a GitHub repo, so that
9
- * filtering matters. Relative paths pass through it untouched, which leaves
7
+ * sanitizes hrefs against react-markdown's safe-protocol allowlist, and task
8
+ * bodies are whatever a repository holds, so that filtering matters. Relative paths pass through it untouched, which leaves
10
9
  * every link decision to `components.a` below — after sanitization, not
11
10
  * instead of it.
12
11
  */
@@ -1,4 +1,4 @@
1
- import type { Task } from '@shipbench/core';
1
+ import type { ColumnDef, RelatedTask, Task } from '@shipbench/core';
2
2
  export declare function TagInput({ readOnly, tags, suggestions, onChange, }: {
3
3
  readOnly: boolean;
4
4
  tags: string[];
@@ -14,3 +14,26 @@ export declare function DependencyMultiSelect({ readOnly, currentTaskSlug, depen
14
14
  warnings: string[];
15
15
  onChange: (dependencies: string[]) => void;
16
16
  }): import("react").JSX.Element;
17
+ /**
18
+ * Edits `related`, which only points at other work. Shows both directions: an
19
+ * association recorded on the other task's file is listed but cannot be removed
20
+ * here, because saving this task never writes that file.
21
+ *
22
+ * `related` is this task's own list as written. It is passed back whole on
23
+ * every change, so a target the board cannot resolve right now — archived and
24
+ * not yet loaded, or gone — survives an edit to some other entry.
25
+ */
26
+ export declare function RelatedMultiSelect({ readOnly, currentTaskSlug, related, entries, tasks, archivedSlugs, columns, warnings, onChange, onOpenTask, }: {
27
+ readOnly: boolean;
28
+ currentTaskSlug: string;
29
+ related: string[];
30
+ /** Both directions, resolved, from `createRelatedIndex`. */
31
+ entries: RelatedTask[];
32
+ /** Tasks that can be added: live ones, plus archived ones once loaded. */
33
+ tasks: Task[];
34
+ archivedSlugs: ReadonlySet<string>;
35
+ columns: ColumnDef[];
36
+ warnings: string[];
37
+ onChange: (related: string[]) => void;
38
+ onOpenTask: (slug: string) => void;
39
+ }): import("react").JSX.Element;
@@ -5,7 +5,7 @@
5
5
  * The name is `config.name` — the same value the header breadcrumb renders, so
6
6
  * the tab and the breadcrumb cannot disagree. It is deliberately not a host-
7
7
  * supplied option: a second source would let the CLI report the checkout
8
- * directory while Harbor reported the repository name, for one project.
8
+ * directory while another host reported the repository name, for one project.
9
9
  *
10
10
  * `DEFAULT_CONFIG.name` ("Untitled Project") is rendered as-is rather than
11
11
  * special-cased back to the fallback — comparing against a default value is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipbench/board",
3
- "version": "0.7.1",
3
+ "version": "0.9.0",
4
4
  "description": "React kanban board for ShipBench. Published so the CLI and out-of-repo hosts can consume it; not a supported standalone library.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -49,7 +49,7 @@
49
49
  "react-markdown": "^10.1.0",
50
50
  "sonner": "^2.0.7",
51
51
  "zustand": "^5.0.14",
52
- "@shipbench/core": "0.7.1"
52
+ "@shipbench/core": "0.9.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "react": "^19.0.0",