@bongos/core 1.19.989 → 1.19.991
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/.bongos-core.json +48 -28
- package/docs/api/openapi.json +1 -1
- package/docs/copy-inventory.md +13 -13
- package/docs/copy-registry.json +13 -13
- package/docs/module-api-changelog.md +5 -1
- package/docs/recipes/core-release-pipeline.md +5 -0
- package/docs/recipes/upgrading-the-core.md +1 -0
- package/modules/hall-ui/public/goal-forest-lib.js +1 -47
- package/modules/hall-ui/public/goal-forest-render.js +2 -1
- package/modules/hall-ui/public/goal-map-lib.js +2 -9
- package/modules/hall-ui/public/goal-map.html +2 -0
- package/modules/hall-ui/public/goal-map.js +28 -5
- package/modules/hall-ui/public/goals.html +2 -0
- package/modules/hall-ui/public/text-fit.js +58 -0
- package/modules/lifecycle/routes/artist-gate.js +24 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/scripts/gds/upgrade-artist-gate.js +46 -0
- package/scripts/gds/upgrade.js +13 -15
- package/src/module-api.js +1 -1
- package/tests/artist_gate_route.mjs +70 -1
- package/tests/goal_forest_lib.mjs +0 -61
- package/tests/goal_forest_page.mjs +2 -0
- package/tests/goal_map_page.mjs +31 -0
- package/tests/text_fit.mjs +91 -0
- package/tests/upgrade_artist_gate.mjs +144 -0
package/.bongos-core.json
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
"artifact": "bongos-core",
|
|
3
3
|
"manifest_schema": 1,
|
|
4
4
|
"generator": "scripts/gds/package-core.js",
|
|
5
|
-
"core_version": "1.19.
|
|
6
|
-
"core_contract": "1.19.
|
|
7
|
-
"source_commit": "
|
|
5
|
+
"core_version": "1.19.991",
|
|
6
|
+
"core_contract": "1.19.991",
|
|
7
|
+
"source_commit": "e80119e1a3eaf21835fda089e6279bdff4043c04",
|
|
8
8
|
"source_ref": "HEAD",
|
|
9
|
-
"built_at": "2026-09-
|
|
9
|
+
"built_at": "2026-09-23T20:27:54.477Z",
|
|
10
10
|
"redaction": {
|
|
11
11
|
"model": "docs-redacted+functional-verbatim",
|
|
12
12
|
"docs_redacted": 518,
|
|
13
13
|
"agent_docs_stubbed": 26,
|
|
14
|
-
"functional_verbatim":
|
|
14
|
+
"functional_verbatim": 2398,
|
|
15
15
|
"rules": 3,
|
|
16
16
|
"gate_literals": 3,
|
|
17
17
|
"gate": "passed"
|
|
18
18
|
},
|
|
19
|
-
"file_count":
|
|
20
|
-
"tree_sha256": "
|
|
19
|
+
"file_count": 2942,
|
|
20
|
+
"tree_sha256": "2e7708f19e4b524ede30ec609d2809a2d7e6bc77953d5d3106cbd01170134253",
|
|
21
21
|
"files": [
|
|
22
22
|
{
|
|
23
23
|
"path": ".claude/skills/ask-for-help/SKILL.md",
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
{
|
|
2153
2153
|
"path": "docs/api/openapi.json",
|
|
2154
2154
|
"mode": "0000644",
|
|
2155
|
-
"sha256": "
|
|
2155
|
+
"sha256": "8b1f2a53680ae8b68be5d54a82664413fa29186fb580825f5a1b0e3ce3677525"
|
|
2156
2156
|
},
|
|
2157
2157
|
{
|
|
2158
2158
|
"path": "docs/architecture.md",
|
|
@@ -2177,12 +2177,12 @@
|
|
|
2177
2177
|
{
|
|
2178
2178
|
"path": "docs/copy-inventory.md",
|
|
2179
2179
|
"mode": "0000644",
|
|
2180
|
-
"sha256": "
|
|
2180
|
+
"sha256": "8a156552c9834ecaf51ba06b9e09ba6e5cf44ca486694570426eb9fc0248dab1"
|
|
2181
2181
|
},
|
|
2182
2182
|
{
|
|
2183
2183
|
"path": "docs/copy-registry.json",
|
|
2184
2184
|
"mode": "0000644",
|
|
2185
|
-
"sha256": "
|
|
2185
|
+
"sha256": "6e50226135d6bab2ca2538531c6680ea6ccbf5820240af0daba240623d2313d2"
|
|
2186
2186
|
},
|
|
2187
2187
|
{
|
|
2188
2188
|
"path": "docs/design/apex-pass-2-direction.md",
|
|
@@ -2712,7 +2712,7 @@
|
|
|
2712
2712
|
{
|
|
2713
2713
|
"path": "docs/module-api-changelog.md",
|
|
2714
2714
|
"mode": "0000644",
|
|
2715
|
-
"sha256": "
|
|
2715
|
+
"sha256": "4f19e3d159ebd6ef4268a44b5805c0ad09cedcfb482d4e36e486f892e1e8df6e"
|
|
2716
2716
|
},
|
|
2717
2717
|
{
|
|
2718
2718
|
"path": "docs/modules-contract.md",
|
|
@@ -2832,7 +2832,7 @@
|
|
|
2832
2832
|
{
|
|
2833
2833
|
"path": "docs/recipes/core-release-pipeline.md",
|
|
2834
2834
|
"mode": "0000644",
|
|
2835
|
-
"sha256": "
|
|
2835
|
+
"sha256": "12e2fdc72d1bed7d524b50960dea3a67791b098b7dbafaff9c6f95cd356b185a"
|
|
2836
2836
|
},
|
|
2837
2837
|
{
|
|
2838
2838
|
"path": "docs/recipes/failed-ship-recovery-proof.md",
|
|
@@ -2962,7 +2962,7 @@
|
|
|
2962
2962
|
{
|
|
2963
2963
|
"path": "docs/recipes/upgrading-the-core.md",
|
|
2964
2964
|
"mode": "0000644",
|
|
2965
|
-
"sha256": "
|
|
2965
|
+
"sha256": "e035ebbda54d0d94f38bbcc9502689318c4f9bb2fe5bcca2592aa710dca5ffb0"
|
|
2966
2966
|
},
|
|
2967
2967
|
{
|
|
2968
2968
|
"path": "docs/recipes/windows-builders.md",
|
|
@@ -4922,12 +4922,12 @@
|
|
|
4922
4922
|
{
|
|
4923
4923
|
"path": "modules/hall-ui/public/goal-forest-lib.js",
|
|
4924
4924
|
"mode": "0000644",
|
|
4925
|
-
"sha256": "
|
|
4925
|
+
"sha256": "f4eef6f9ec782aa76369b98cbbd95152ab0e11858a4bb9d2c2f9839a1d71a08c"
|
|
4926
4926
|
},
|
|
4927
4927
|
{
|
|
4928
4928
|
"path": "modules/hall-ui/public/goal-forest-render.js",
|
|
4929
4929
|
"mode": "0000644",
|
|
4930
|
-
"sha256": "
|
|
4930
|
+
"sha256": "9edf4cf99fe2726e75b4ac21b6f41a5e51ecc1b933659ac0f9c7d98c3de217b1"
|
|
4931
4931
|
},
|
|
4932
4932
|
{
|
|
4933
4933
|
"path": "modules/hall-ui/public/goal-inbox.js",
|
|
@@ -4937,7 +4937,7 @@
|
|
|
4937
4937
|
{
|
|
4938
4938
|
"path": "modules/hall-ui/public/goal-map-lib.js",
|
|
4939
4939
|
"mode": "0000644",
|
|
4940
|
-
"sha256": "
|
|
4940
|
+
"sha256": "6f08884ef3afabb1ffc455995a0bd99ac8f7084cbb86eda39594eaa09326cba6"
|
|
4941
4941
|
},
|
|
4942
4942
|
{
|
|
4943
4943
|
"path": "modules/hall-ui/public/goal-map.css",
|
|
@@ -4947,12 +4947,12 @@
|
|
|
4947
4947
|
{
|
|
4948
4948
|
"path": "modules/hall-ui/public/goal-map.html",
|
|
4949
4949
|
"mode": "0000644",
|
|
4950
|
-
"sha256": "
|
|
4950
|
+
"sha256": "faa6152938c0c90cef5e4dc1f179bab967e01acb05c015b0fe93fa7c782941da"
|
|
4951
4951
|
},
|
|
4952
4952
|
{
|
|
4953
4953
|
"path": "modules/hall-ui/public/goal-map.js",
|
|
4954
4954
|
"mode": "0000644",
|
|
4955
|
-
"sha256": "
|
|
4955
|
+
"sha256": "b24a1f2d78a727d928668a431f2d8af8a1c42c8bfba0986cb4026ecd5397dd8a"
|
|
4956
4956
|
},
|
|
4957
4957
|
{
|
|
4958
4958
|
"path": "modules/hall-ui/public/goal-map.states.json",
|
|
@@ -4982,7 +4982,7 @@
|
|
|
4982
4982
|
{
|
|
4983
4983
|
"path": "modules/hall-ui/public/goals.html",
|
|
4984
4984
|
"mode": "0000644",
|
|
4985
|
-
"sha256": "
|
|
4985
|
+
"sha256": "597efb7e4a968892fdb1eaa8a113631aeb445c1a772520e81b80c53db572d3e3"
|
|
4986
4986
|
},
|
|
4987
4987
|
{
|
|
4988
4988
|
"path": "modules/hall-ui/public/goals.js",
|
|
@@ -5439,6 +5439,11 @@
|
|
|
5439
5439
|
"mode": "0000644",
|
|
5440
5440
|
"sha256": "1be94e892012740aae899aa28425f4be9c94a5ae777c8c77e5e1b787791f5ec9"
|
|
5441
5441
|
},
|
|
5442
|
+
{
|
|
5443
|
+
"path": "modules/hall-ui/public/text-fit.js",
|
|
5444
|
+
"mode": "0000644",
|
|
5445
|
+
"sha256": "c63dd0fb358b8c5e649460c9fc1581573a0369cbe022fc9e1db02f69da6e92f7"
|
|
5446
|
+
},
|
|
5442
5447
|
{
|
|
5443
5448
|
"path": "modules/hall-ui/public/thinking.css",
|
|
5444
5449
|
"mode": "0000644",
|
|
@@ -6042,7 +6047,7 @@
|
|
|
6042
6047
|
{
|
|
6043
6048
|
"path": "modules/lifecycle/routes/artist-gate.js",
|
|
6044
6049
|
"mode": "0000644",
|
|
6045
|
-
"sha256": "
|
|
6050
|
+
"sha256": "9b6990b00e071e2b47c20fc790f975db63563b700ffbd4a6b0c60dfd138f0def"
|
|
6046
6051
|
},
|
|
6047
6052
|
{
|
|
6048
6053
|
"path": "modules/lifecycle/routes/claims.js",
|
|
@@ -8162,12 +8167,12 @@
|
|
|
8162
8167
|
{
|
|
8163
8168
|
"path": "package-lock.json",
|
|
8164
8169
|
"mode": "0000644",
|
|
8165
|
-
"sha256": "
|
|
8170
|
+
"sha256": "8693404033a617a03140037d079df84b7e71b967394f7f4069b0681667761be8"
|
|
8166
8171
|
},
|
|
8167
8172
|
{
|
|
8168
8173
|
"path": "package.json",
|
|
8169
8174
|
"mode": "0000644",
|
|
8170
|
-
"sha256": "
|
|
8175
|
+
"sha256": "4b6ac3b9b46c3053276678a73c6aaef328f9a832523b8efc82386645aabc6345"
|
|
8171
8176
|
},
|
|
8172
8177
|
{
|
|
8173
8178
|
"path": "public-docs/index.html",
|
|
@@ -9739,10 +9744,15 @@
|
|
|
9739
9744
|
"mode": "0000644",
|
|
9740
9745
|
"sha256": "6418f51f933eac634a7df854af1e3a6dbde25e152e3dca0ce8df7d37d19c1d0c"
|
|
9741
9746
|
},
|
|
9747
|
+
{
|
|
9748
|
+
"path": "scripts/gds/upgrade-artist-gate.js",
|
|
9749
|
+
"mode": "0000644",
|
|
9750
|
+
"sha256": "caf07b70b066fe1388037ce1c622ea3aed82cbf43f67ffb918214159cbe4444e"
|
|
9751
|
+
},
|
|
9742
9752
|
{
|
|
9743
9753
|
"path": "scripts/gds/upgrade.js",
|
|
9744
9754
|
"mode": "0000644",
|
|
9745
|
-
"sha256": "
|
|
9755
|
+
"sha256": "70a7de81b25a17cb7ab7e57f92577b6d977f89911b784f33df668b650fb208b0"
|
|
9746
9756
|
},
|
|
9747
9757
|
{
|
|
9748
9758
|
"path": "scripts/gds/validate-design.js",
|
|
@@ -10202,7 +10212,7 @@
|
|
|
10202
10212
|
{
|
|
10203
10213
|
"path": "src/module-api.js",
|
|
10204
10214
|
"mode": "0000644",
|
|
10205
|
-
"sha256": "
|
|
10215
|
+
"sha256": "fa9ef668d1c3a3762533b0b74415725117d45c789d3f8b3b2c6cda3ab8344b47"
|
|
10206
10216
|
},
|
|
10207
10217
|
{
|
|
10208
10218
|
"path": "src/module-loader/catalog.js",
|
|
@@ -10507,7 +10517,7 @@
|
|
|
10507
10517
|
{
|
|
10508
10518
|
"path": "tests/artist_gate_route.mjs",
|
|
10509
10519
|
"mode": "0000644",
|
|
10510
|
-
"sha256": "
|
|
10520
|
+
"sha256": "3337ab686f2fa4bef95d0eabcf9b134a9b919d40480750e07a500b8007ae9659"
|
|
10511
10521
|
},
|
|
10512
10522
|
{
|
|
10513
10523
|
"path": "tests/asset_version.mjs",
|
|
@@ -11687,12 +11697,12 @@
|
|
|
11687
11697
|
{
|
|
11688
11698
|
"path": "tests/goal_forest_lib.mjs",
|
|
11689
11699
|
"mode": "0000644",
|
|
11690
|
-
"sha256": "
|
|
11700
|
+
"sha256": "3b309358c195469bee0ab1ce95242914fbc0b1b3def0bb7de3d51dc09dd29c6a"
|
|
11691
11701
|
},
|
|
11692
11702
|
{
|
|
11693
11703
|
"path": "tests/goal_forest_page.mjs",
|
|
11694
11704
|
"mode": "0000644",
|
|
11695
|
-
"sha256": "
|
|
11705
|
+
"sha256": "fe78639b77de1a85351ae954b59572f22b9dbce4f6575894f9f019daa0e66f3a"
|
|
11696
11706
|
},
|
|
11697
11707
|
{
|
|
11698
11708
|
"path": "tests/goal_graph.mjs",
|
|
@@ -11712,7 +11722,7 @@
|
|
|
11712
11722
|
{
|
|
11713
11723
|
"path": "tests/goal_map_page.mjs",
|
|
11714
11724
|
"mode": "0000644",
|
|
11715
|
-
"sha256": "
|
|
11725
|
+
"sha256": "d51008e89e01a195663e4e983b598272decc1cc2f5020cb7ec8c133f98f373fe"
|
|
11716
11726
|
},
|
|
11717
11727
|
{
|
|
11718
11728
|
"path": "tests/goal_member_kinds.mjs",
|
|
@@ -14439,6 +14449,11 @@
|
|
|
14439
14449
|
"mode": "0000644",
|
|
14440
14450
|
"sha256": "bbb0b063bffc6e394114bc4895da5006d8797a0317ed38f1c7f9b989841d5eab"
|
|
14441
14451
|
},
|
|
14452
|
+
{
|
|
14453
|
+
"path": "tests/text_fit.mjs",
|
|
14454
|
+
"mode": "0000644",
|
|
14455
|
+
"sha256": "cf2bab75f91ee81bd554e83b85de7d80c64a3a44a596ef8abc37f646041f584b"
|
|
14456
|
+
},
|
|
14442
14457
|
{
|
|
14443
14458
|
"path": "tests/tool-scan-fixtures/README.md",
|
|
14444
14459
|
"mode": "0000644",
|
|
@@ -14549,6 +14564,11 @@
|
|
|
14549
14564
|
"mode": "0000644",
|
|
14550
14565
|
"sha256": "8bd1c116b5459b54a847208c01669159414fed17b3704d621e1dc5acfb00f255"
|
|
14551
14566
|
},
|
|
14567
|
+
{
|
|
14568
|
+
"path": "tests/upgrade_artist_gate.mjs",
|
|
14569
|
+
"mode": "0000644",
|
|
14570
|
+
"sha256": "a9b5fadd7f829fd54a9d976d82832eb536e7d988c466647860b0257109feec50"
|
|
14571
|
+
},
|
|
14552
14572
|
{
|
|
14553
14573
|
"path": "tests/upgrade_persist_pin.mjs",
|
|
14554
14574
|
"mode": "0000644",
|
package/docs/api/openapi.json
CHANGED
|
@@ -1065,7 +1065,7 @@
|
|
|
1065
1065
|
"artist-gate"
|
|
1066
1066
|
],
|
|
1067
1067
|
"summary": "GET /artist-gate",
|
|
1068
|
-
"description": "GET /artist-gate — this project's artist strictness and what it is holding. rank: any authenticated builder. The payload is ordinary board state — a policy value the instance already publishes as its own behaviour, and task ids/titles any builder can read on the hall — so a floor above requireBuilder would gate a fact the board already shows. Nothing here is writable. Response: mode 'off' | 'advisory' | 'strict' the project's setting as resolved since ISO string | null when it was last RAISED to strict holds boolean does anything hold a deploy now? truncated boolean `reviews` hit the scan cap — a floor reviews [{ id, created_at }] the open reviews that count halt { code, message, detail } | null the refusal, pre-composed `halt` is composed HERE rather than by the caller on purpose: ADR 0241 §4's second guard is that the refusal must name what holds the deploy and which control releases it, and a sentence assembled independently by each caller is a sentence that eventually says something different. One composer, one wording.\n\n**Rank:** `any-builder` — Any authenticated builder (row-level ownership enforced in-handler).",
|
|
1068
|
+
"description": "GET /artist-gate — this project's artist strictness and what it is holding. rank: any authenticated builder. The payload is ordinary board state — a policy value the instance already publishes as its own behaviour, and task ids/titles any builder can read on the hall — so a floor above requireBuilder would gate a fact the board already shows. Nothing here is writable. Response: mode 'off' | 'advisory' | 'strict' the project's setting as resolved since ISO string | null when it was last RAISED to strict holds boolean does anything hold a deploy now? truncated boolean `reviews` hit the scan cap — a floor reviews [{ id, created_at }] the open reviews that count halt { code, message, detail } | null the refusal, pre-composed `halt` is composed HERE rather than by the caller on purpose: ADR 0241 §4's second guard is that the refusal must name what holds the deploy and which control releases it, and a sentence assembled independently by each caller is a sentence that eventually says something different. One composer, one wording. A caller on this machine that reached the app DIRECTLY may also read it, without a session (task 1004205; owner decision 2026-09-23): that is how `bongos upgrade` on the box asks before moving the pin, and the box holds no builder session. Everything else still passes requireBuilder.\n\n**Rank:** `any-builder` — Any authenticated builder (row-level ownership enforced in-handler).",
|
|
1069
1069
|
"x-rank": "any-builder",
|
|
1070
1070
|
"x-source": "modules/lifecycle/routes/artist-gate.js",
|
|
1071
1071
|
"responses": {
|
package/docs/copy-inventory.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
| surface | lives at | files | strings |
|
|
12
12
|
|---|---|---|---|
|
|
13
|
-
| `builders-hall` | `modules/hall-ui/public` |
|
|
13
|
+
| `builders-hall` | `modules/hall-ui/public` | 97 | 1442 |
|
|
14
14
|
| `status-dashboard` | `modules/status-ui/public` | 4 | 100 |
|
|
15
15
|
| `landing` | `modules/public-landing/public` | 5 | 391 |
|
|
16
16
|
|
|
@@ -164,7 +164,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
164
164
|
| `86ea8d57d34e` | certain | Allowlisted goals | `modules/hall-ui/public/gate.js:286` |
|
|
165
165
|
| `e99cc5d37404` | certain | Already a member? | `modules/hall-ui/public/hall-render.js:367` |
|
|
166
166
|
| `da5368d10f85` | certain | Amendment {…} passed{…}, and the constitution below is not the one it decided: | `modules/hall-ui/public/government.js:633` |
|
|
167
|
-
| `20365fc74500` | certain | An arrow runs from the goal that has to ship first to the goal that waits on it, and a thicker line means more | `modules/hall-ui/public/goal-map.js:
|
|
167
|
+
| `20365fc74500` | certain | An arrow runs from the goal that has to ship first to the goal that waits on it, and a thicker line means more | `modules/hall-ui/public/goal-map.js:115` |
|
|
168
168
|
| `2ca420e19dbb` | certain | An earlier attempt did not land. | `modules/hall-ui/public/deploy.js:193` |
|
|
169
169
|
| `69f0ca4a4d84` | certain | Analytics scope | `modules/hall-ui/public/hall-render.js:1236` |
|
|
170
170
|
| `14bdceaac078` | certain | Answer the five questions and this spark becomes a Full Idea. | `modules/hall-ui/public/ideas.js:901` |
|
|
@@ -368,7 +368,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
368
368
|
| `278e8281c82f` | certain | Could not vote: {…} | `modules/hall-ui/public/board-room.js:391` |
|
|
369
369
|
| `a48e9f098392` | certain | Could not {…} just now. | `modules/hall-ui/public/goals-render.js:1348` |
|
|
370
370
|
| `cb09ee26014f` | certain | Could not {…}: {…} | `modules/hall-ui/public/government.js:314` |
|
|
371
|
-
| `f53f7aaa189f` | certain | Couldn’t load this goal’s task dependencies right now. | `modules/hall-ui/public/goal-forest-render.js:
|
|
371
|
+
| `f53f7aaa189f` | certain | Couldn’t load this goal’s task dependencies right now. | `modules/hall-ui/public/goal-forest-render.js:111` |
|
|
372
372
|
| `737bef533845` | certain | Couldn’t refresh the queue — try reloading the page. | `modules/hall-ui/public/blockers.js:285` |
|
|
373
373
|
| `28ec06f6060a` | certain | Counted, not judged: each question is worth the same, and earns its share in proportion to how much real text | `modules/hall-ui/public/ideas.html:194` |
|
|
374
374
|
| `38827a954f3b` | certain | Create a custom rank first. | `modules/hall-ui/public/government.js:459` |
|
|
@@ -486,7 +486,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
486
486
|
| `3807521c5db7` | certain | Goal map | `modules/hall-ui/public/goal-map.html:19` |
|
|
487
487
|
| `3807521c5db7` | certain | Goal map | `modules/hall-ui/public/goal-map.html:19` |
|
|
488
488
|
| `3807521c5db7` | certain | Goal map | `modules/hall-ui/public/goal-map.html:28` |
|
|
489
|
-
| `342253f7829f` | certain | Goal map — scrolls sideways inside this box | `modules/hall-ui/public/goal-map.js:
|
|
489
|
+
| `342253f7829f` | certain | Goal map — scrolls sideways inside this box | `modules/hall-ui/public/goal-map.js:115` |
|
|
490
490
|
| `6d04fe4e0ee5` | certain | Goal map — {{worldName}} | `modules/hall-ui/public/goal-map.html:6` |
|
|
491
491
|
| `6d04fe4e0ee5` | certain | Goal map — {{worldName}} | `modules/hall-ui/public/goal-map.html:6` |
|
|
492
492
|
| `e2a9e33abe60` | certain | Goal tasks | `modules/hall-ui/public/goals.html:151` |
|
|
@@ -650,7 +650,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
650
650
|
| `ae84ebe1d735` | certain | Name cannot be blank. | `modules/hall-ui/public/settings.js:761` |
|
|
651
651
|
| `31e91ee6ce03` | certain | Name must be {…} characters or fewer. | `modules/hall-ui/public/settings.js:766` |
|
|
652
652
|
| `5e8199266a8a` | certain | Name unvouched | `modules/hall-ui/public/watch.js:374` |
|
|
653
|
-
| `83197947ee8d` | certain | Needed by | `modules/hall-ui/public/goal-forest-render.js:
|
|
653
|
+
| `83197947ee8d` | certain | Needed by | `modules/hall-ui/public/goal-forest-render.js:146` |
|
|
654
654
|
| `3970d299c95a` | certain | Needs work | `modules/hall-ui/public/studio.js:162` |
|
|
655
655
|
| `7def635421ea` | certain | Needs your attention | `modules/hall-ui/public/goal-inbox.js:559` |
|
|
656
656
|
| `87f09d983f6c` | certain | New category label | `modules/hall-ui/public/project-settings.js:138` |
|
|
@@ -688,7 +688,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
688
688
|
| `bef9fe43ba84` | certain | No sessions recorded yet. They land here as builders ship and end sessions. | `modules/hall-ui/public/sessions.js:146` |
|
|
689
689
|
| `084748fd85b4` | certain | No shipped work is recorded between core {…} and {…}. | `modules/hall-ui/public/deploy.js:340` |
|
|
690
690
|
| `4485497d87bb` | certain | No specialities yet. Create one below — it takes a name and a craft, and you can train it afterwards. | `modules/hall-ui/public/settings-specialities.js:169` |
|
|
691
|
-
| `545dc44ad427` | certain | No task in this goal depends on another task in this goal. | `modules/hall-ui/public/goal-forest-render.js:
|
|
691
|
+
| `545dc44ad427` | certain | No task in this goal depends on another task in this goal. | `modules/hall-ui/public/goal-forest-render.js:126` |
|
|
692
692
|
| `712b64d8273f` | certain | No tasks match these filters. Try widening them. | `modules/hall-ui/public/work.js:417` |
|
|
693
693
|
| `78f78d1d1e1f` | certain | No version is in flight right now. | `modules/hall-ui/public/roadmap.js:409` |
|
|
694
694
|
| `c9800f8b6bc8` | certain | No versions declared yet. | `modules/hall-ui/public/roadmap.js:427` |
|
|
@@ -975,7 +975,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
975
975
|
| `4894b1d9b0de` | certain | System oversight: people, operations and security. | `modules/hall-ui/public/watch.js:1335` |
|
|
976
976
|
| `e604fc3ace79` | certain | Task # | `modules/hall-ui/public/blockers.js:139` |
|
|
977
977
|
| `a0f384b022fd` | certain | Task dependencies | `modules/hall-ui/public/goals.html:140` |
|
|
978
|
-
| `91576eb7c880` | certain | Task dependency forest — scrolls sideways inside this box | `modules/hall-ui/public/goal-forest-render.js:
|
|
978
|
+
| `91576eb7c880` | certain | Task dependency forest — scrolls sideways inside this box | `modules/hall-ui/public/goal-forest-render.js:146` |
|
|
979
979
|
| `dfc967a63d57` | certain | Task lifecycle from backlog to shipped, showing states and transitions and the edge where credits are awarded. | `modules/hall-ui/public/diagrams.html:51` |
|
|
980
980
|
| `10cc12f37636` | certain | Task sections | `modules/hall-ui/public/work.html:53` |
|
|
981
981
|
| `0e636ea41b29` | certain | Task status | `modules/hall-ui/public/goals-render.js:354` |
|
|
@@ -1125,7 +1125,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
1125
1125
|
| `b1e63e33f739` | certain | Vulnerability reports, engagement reports, override requests, and the audit log. | `modules/hall-ui/public/watch.html:122` |
|
|
1126
1126
|
| `411b2ff58094` | certain | Wait for task | `modules/hall-ui/public/task.js:611` |
|
|
1127
1127
|
| `f2e019bfdbe8` | certain | Waiting to be developed | `modules/hall-ui/public/ideas.html:41` |
|
|
1128
|
-
| `8e4f0179e1d3` | certain | Waits on | `modules/hall-ui/public/goal-forest-render.js:
|
|
1128
|
+
| `8e4f0179e1d3` | certain | Waits on | `modules/hall-ui/public/goal-forest-render.js:146` |
|
|
1129
1129
|
| `3a9cd9a27a84` | certain | Walk the full ladder → | `modules/hall-ui/public/hall-render.js:84` |
|
|
1130
1130
|
| `18f2f54de2a8` | certain | Watch sections | `modules/hall-ui/public/watch.html:54` |
|
|
1131
1131
|
| `c1fcfa9b48c2` | certain | Watch — {{worldName}} | `modules/hall-ui/public/watch.html:6` |
|
|
@@ -1441,7 +1441,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
1441
1441
|
| `3efa67dc6e07` | certain | {…} file{…} | `modules/hall-ui/public/gate.js:151` |
|
|
1442
1442
|
| `00c50715f271` | certain | {…} fundamentals · {…} you can change here | `modules/hall-ui/public/project-settings.js:228` |
|
|
1443
1443
|
| `511a4b6073cf` | certain | {…} more PR{…} still being checked. Refresh shortly. | `modules/hall-ui/public/gate.js:225` |
|
|
1444
|
-
| `73c1372b43d9` | certain | {…} of {…} | `modules/hall-ui/public/goal-map.js:
|
|
1444
|
+
| `73c1372b43d9` | certain | {…} of {…} | `modules/hall-ui/public/goal-map.js:170` |
|
|
1445
1445
|
| `cc5106af4b35` | certain | {…} of {…} criteria satisfied | `modules/hall-ui/public/goals-lib.js:32` |
|
|
1446
1446
|
| `cc5106af4b35` | certain | {…} of {…} criteria satisfied | `modules/hall-ui/public/goals-render.js:705` |
|
|
1447
1447
|
| `cc5106af4b35` | certain | {…} of {…} criteria satisfied | `modules/hall-ui/public/goals.js:45` |
|
|
@@ -1459,9 +1459,9 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
1459
1459
|
| `955499559f0a` | certain | {…} tokens | `modules/hall-ui/public/sessions.js:170` |
|
|
1460
1460
|
| `8e28c14b106d` | certain | {…} total | `modules/hall-ui/public/roadmap.js:120` |
|
|
1461
1461
|
| `1a8a6267e490` | certain | {…} unfinished task{…} — say what happens to each | `modules/hall-ui/public/goals-render.js:1036` |
|
|
1462
|
-
| `f78fd28045b8` | certain | {…} waits on {…} — {…} | `modules/hall-ui/public/goal-map.js:
|
|
1462
|
+
| `f78fd28045b8` | certain | {…} waits on {…} — {…} | `modules/hall-ui/public/goal-map.js:78` |
|
|
1463
1463
|
| `3ad8f32dd43b` | certain | {…} you have sent | `modules/hall-ui/public/profile-connections.js:137` |
|
|
1464
|
-
| `ae6bb71c72da` | certain | {…} {…} no task that waits on another goal’s work, | `modules/hall-ui/public/goal-map.js:
|
|
1464
|
+
| `ae6bb71c72da` | certain | {…} {…} no task that waits on another goal’s work, | `modules/hall-ui/public/goal-map.js:146` |
|
|
1465
1465
|
| `8186b562553a` | certain | {…} {…} waiting | `modules/hall-ui/public/work.js:410` |
|
|
1466
1466
|
| `0d4016a5531c` | certain | {…} {…}{…} | `modules/hall-ui/public/watch.js:474` |
|
|
1467
1467
|
| `0d4016a5531c` | certain | {…} {…}{…} | `modules/hall-ui/public/work.js:249` |
|
|
@@ -1471,11 +1471,11 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
|
|
|
1471
1471
|
| `cab2a4296aec` | certain | {…} · {…} · {…}{…} | `modules/hall-ui/public/goal-inbox.js:420` |
|
|
1472
1472
|
| `085f93f3f775` | certain | {…} — see all standings | `modules/hall-ui/public/hall-render.js:80` |
|
|
1473
1473
|
| `f75ee96a7511` | certain | {…} — total payout from shipped work. | `modules/hall-ui/public/profile.js:94` |
|
|
1474
|
-
| `0d4e848206f3` | certain | {…} — {…} — {…} of {…} tasks done | `modules/hall-ui/public/goal-map.js:
|
|
1474
|
+
| `0d4e848206f3` | certain | {…} — {…} — {…} of {…} tasks done | `modules/hall-ui/public/goal-map.js:91` |
|
|
1475
1475
|
| `2a2728a4ec4f` | certain | {…}% of tasks complete | `modules/hall-ui/public/roadmap.js:63` |
|
|
1476
1476
|
| `15e545eb3ce2` | certain | {…}, no such task | `modules/hall-ui/public/task.js:963` |
|
|
1477
1477
|
| `c43050b62297` | certain | {…}/100 complete | `modules/hall-ui/public/idea.js:87` |
|
|
1478
|
-
| `eb85443721f7` | certain | {…}No category | `modules/hall-ui/public/goal-map.js:
|
|
1478
|
+
| `eb85443721f7` | certain | {…}No category | `modules/hall-ui/public/goal-map.js:137` |
|
|
1479
1479
|
| `cbc5a8c686b2` | certain | {…}We store only your GitHub login, avatar, and the work you ship. | `modules/hall-ui/public/hall-render.js:392` |
|
|
1480
1480
|
| `8e8c7da4f7f5` | certain | {…}criteria met · awaiting review | `modules/hall-ui/public/goals-render.js:163` |
|
|
1481
1481
|
| `1e275ee0299c` | certain | {…}s only | `modules/hall-ui/public/government.js:896` |
|
package/docs/copy-registry.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"surfaces": {
|
|
13
13
|
"builders-hall": {
|
|
14
14
|
"at": "modules/hall-ui/public",
|
|
15
|
-
"files":
|
|
15
|
+
"files": 97,
|
|
16
16
|
"strings": 1442
|
|
17
17
|
},
|
|
18
18
|
"status-dashboard": {
|
|
@@ -2645,7 +2645,7 @@
|
|
|
2645
2645
|
"surface": "builders-hall",
|
|
2646
2646
|
"text": "An arrow runs from the goal that has to ship first to the goal that waits on it, and a thicker line means more tasks are waiting. Every goal in this map, and every dependency, is also in the table below.",
|
|
2647
2647
|
"file": "modules/hall-ui/public/goal-map.js",
|
|
2648
|
-
"line":
|
|
2648
|
+
"line": 115,
|
|
2649
2649
|
"origin": "js-markup",
|
|
2650
2650
|
"confidence": "certain"
|
|
2651
2651
|
},
|
|
@@ -4481,7 +4481,7 @@
|
|
|
4481
4481
|
"surface": "builders-hall",
|
|
4482
4482
|
"text": "Couldn’t load this goal’s task dependencies right now.",
|
|
4483
4483
|
"file": "modules/hall-ui/public/goal-forest-render.js",
|
|
4484
|
-
"line":
|
|
4484
|
+
"line": 111,
|
|
4485
4485
|
"origin": "js-text-assign",
|
|
4486
4486
|
"confidence": "certain"
|
|
4487
4487
|
},
|
|
@@ -5543,7 +5543,7 @@
|
|
|
5543
5543
|
"surface": "builders-hall",
|
|
5544
5544
|
"text": "Goal map — scrolls sideways inside this box",
|
|
5545
5545
|
"file": "modules/hall-ui/public/goal-map.js",
|
|
5546
|
-
"line":
|
|
5546
|
+
"line": 115,
|
|
5547
5547
|
"origin": "js-markup",
|
|
5548
5548
|
"confidence": "certain"
|
|
5549
5549
|
},
|
|
@@ -7019,7 +7019,7 @@
|
|
|
7019
7019
|
"surface": "builders-hall",
|
|
7020
7020
|
"text": "Needed by",
|
|
7021
7021
|
"file": "modules/hall-ui/public/goal-forest-render.js",
|
|
7022
|
-
"line":
|
|
7022
|
+
"line": 146,
|
|
7023
7023
|
"origin": "js-markup",
|
|
7024
7024
|
"confidence": "certain"
|
|
7025
7025
|
},
|
|
@@ -7361,7 +7361,7 @@
|
|
|
7361
7361
|
"surface": "builders-hall",
|
|
7362
7362
|
"text": "No task in this goal depends on another task in this goal.",
|
|
7363
7363
|
"file": "modules/hall-ui/public/goal-forest-render.js",
|
|
7364
|
-
"line":
|
|
7364
|
+
"line": 126,
|
|
7365
7365
|
"origin": "js-text-assign",
|
|
7366
7366
|
"confidence": "certain"
|
|
7367
7367
|
},
|
|
@@ -9944,7 +9944,7 @@
|
|
|
9944
9944
|
"surface": "builders-hall",
|
|
9945
9945
|
"text": "Task dependency forest — scrolls sideways inside this box",
|
|
9946
9946
|
"file": "modules/hall-ui/public/goal-forest-render.js",
|
|
9947
|
-
"line":
|
|
9947
|
+
"line": 146,
|
|
9948
9948
|
"origin": "js-markup",
|
|
9949
9949
|
"confidence": "certain"
|
|
9950
9950
|
},
|
|
@@ -11294,7 +11294,7 @@
|
|
|
11294
11294
|
"surface": "builders-hall",
|
|
11295
11295
|
"text": "Waits on",
|
|
11296
11296
|
"file": "modules/hall-ui/public/goal-forest-render.js",
|
|
11297
|
-
"line":
|
|
11297
|
+
"line": 146,
|
|
11298
11298
|
"origin": "js-markup",
|
|
11299
11299
|
"confidence": "certain"
|
|
11300
11300
|
},
|
|
@@ -14138,7 +14138,7 @@
|
|
|
14138
14138
|
"surface": "builders-hall",
|
|
14139
14139
|
"text": "{…} of {…}",
|
|
14140
14140
|
"file": "modules/hall-ui/public/goal-map.js",
|
|
14141
|
-
"line":
|
|
14141
|
+
"line": 170,
|
|
14142
14142
|
"origin": "js-markup",
|
|
14143
14143
|
"confidence": "certain"
|
|
14144
14144
|
},
|
|
@@ -14300,7 +14300,7 @@
|
|
|
14300
14300
|
"surface": "builders-hall",
|
|
14301
14301
|
"text": "{…} waits on {…} — {…}",
|
|
14302
14302
|
"file": "modules/hall-ui/public/goal-map.js",
|
|
14303
|
-
"line":
|
|
14303
|
+
"line": 78,
|
|
14304
14304
|
"origin": "js-text-assign",
|
|
14305
14305
|
"confidence": "certain"
|
|
14306
14306
|
},
|
|
@@ -14318,7 +14318,7 @@
|
|
|
14318
14318
|
"surface": "builders-hall",
|
|
14319
14319
|
"text": "{…} {…} no task that waits on another goal’s work,",
|
|
14320
14320
|
"file": "modules/hall-ui/public/goal-map.js",
|
|
14321
|
-
"line":
|
|
14321
|
+
"line": 146,
|
|
14322
14322
|
"origin": "js-text-assign",
|
|
14323
14323
|
"confidence": "certain"
|
|
14324
14324
|
},
|
|
@@ -14408,7 +14408,7 @@
|
|
|
14408
14408
|
"surface": "builders-hall",
|
|
14409
14409
|
"text": "{…} — {…} — {…} of {…} tasks done",
|
|
14410
14410
|
"file": "modules/hall-ui/public/goal-map.js",
|
|
14411
|
-
"line":
|
|
14411
|
+
"line": 91,
|
|
14412
14412
|
"origin": "js-text-assign",
|
|
14413
14413
|
"confidence": "certain"
|
|
14414
14414
|
},
|
|
@@ -14444,7 +14444,7 @@
|
|
|
14444
14444
|
"surface": "builders-hall",
|
|
14445
14445
|
"text": "{…}No category",
|
|
14446
14446
|
"file": "modules/hall-ui/public/goal-map.js",
|
|
14447
|
-
"line":
|
|
14447
|
+
"line": 137,
|
|
14448
14448
|
"origin": "js-markup",
|
|
14449
14449
|
"confidence": "certain"
|
|
14450
14450
|
},
|
|
@@ -2451,6 +2451,10 @@ is load-bearing: the script throws rather than guess if it is missing, and
|
|
|
2451
2451
|
1.19.988 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
|
|
2452
2452
|
landed since 1.19.987 with no explicit bump. run 35909292753. (task 1002620)
|
|
2453
2453
|
1.19.989 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
|
|
2454
|
-
landed since 1.19.988 with no explicit bump. run
|
|
2454
|
+
landed since 1.19.988 with no explicit bump. run 35911817390. (task 1002620)
|
|
2455
|
+
1.19.990 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
|
|
2456
|
+
landed since 1.19.989 with no explicit bump. run 35912578496. (task 1002620)
|
|
2457
|
+
1.19.991 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
|
|
2458
|
+
landed since 1.19.990 with no explicit bump. run 35916061384. (task 1002620)
|
|
2455
2459
|
---------------------------------------------------------------------------
|
|
2456
2460
|
```
|
|
@@ -207,6 +207,11 @@ There are three ways past it, and the first two are the ordinary ones:
|
|
|
207
207
|
the audit log as a self-override. It is the valve that stops a solo project deadlocking,
|
|
208
208
|
not a routine step: the right answer to being gated is to fix the work or fix the grader.
|
|
209
209
|
|
|
210
|
+
**`bongos upgrade` asks the same gate** (task 1004205): the vendored `upgrade.js --from` run
|
|
211
|
+
refuses before the pin moves, with the same halt, the same three ways past it and the same two
|
|
212
|
+
unknowns below — it reuses `go-live.js`'s reader. Until then only `go-live.js` asked, and an
|
|
213
|
+
instance that moved its pin by hand moved it past open reviews.
|
|
214
|
+
|
|
210
215
|
`go-live.js` prints the gate's level on every plan, held or not, so "why did nothing stop?" is
|
|
211
216
|
answerable without going and looking. Two different unknowns, two different verdicts:
|
|
212
217
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
0. **downgrade guard** (task [#1004009](https://example.com/builders#/task/1004009)) — a `--to` **older** than this instance's core is refused before anything moves, in one line naming both versions and the newest published release. "This instance's core" is the **newer** of what is installed and what is pinned, because a half-applied bump leaves the two apart and the pin is the thing about to be overwritten. `--force` does not waive it; `--allow-downgrade` does, and the run then says `DOWNGRADE` in its first line, its last line and its `core_upgrades` ledger note. Migrations are never reverted, so going backwards across one leaves the DB ahead of the code; and an instance subscribed to an update channel is taken forward again by the next sweep, so set it to `pinned` first if the downgrade is meant to hold. Auto-rollback (step 8) restores its own pin and is unaffected.
|
|
12
12
|
1. **pre-flight** — module-compat vs the target core + a clean git tree (skip with `--force`).
|
|
13
|
+
1a. **the artist gate** (task [#1004205](https://example.com/builders#/task/1004205), [ADR 0241](../adr/0241-the-artist-gate-is-a-per-project-deploy-gate-that-reads-a-state.md)) — asks the instance being upgraded, at the origin of `--health-url`, whether an unresolved artist review holds its deploy, and **refuses before anything moves** if one does. `--force` does not waive it, and a dry run reports it. Every change to a page files such a review (owner decision 2026-09-23), so on a `strict` project an upgrade waits until each has been looked at. The ways past it are ADR 0241's, unchanged: resolve or dismiss the review, lower `artist_gate` to `advisory`, or the project owner releases it (see [the release pipeline](core-release-pipeline.md)). It uses `go-live.js`'s own reader, so both paths decide one answer the same way: a gate that is there and errors halts; one that cannot be read (no `--health-url`, an older instance, the instance down) is printed as a note. A **downgrade** is never held — rolling back must not wait on a review. Before this, only `go-live.js` asked, so the vendored `--from` path this instance used moved its pin past open reviews. The instance answers this local request without a session (the box has none); a request through the proxy still needs one. So the **first** upgrade that carries this asks an instance still running the older route, gets a 401 and can only print the note — every upgrade after it holds.
|
|
13
14
|
2. **bump the pin** — vendor the new `bongos-core-<version>.tgz` and rewrite the `"@bongos/core": "file:vendor/…"` dependency.
|
|
14
15
|
3. **`npm install`** — `node_modules/@bongos/core` becomes the new version.
|
|
15
16
|
3b. **verify the integrity pin** (task [#1002216](https://example.com/builders#/task/1002216)) — recompute `tree_sha256` over the installed core and check the vendored `.tgz` bytes against `tarball.sha256`, comparing to the trusted reference manifest (the committed `vendor/…manifest.json`; the installed inner manifest for `--registry`). Runs **before** migrate so a corrupted core never touches the DB. A **mismatch is fatal → rollback**; a missing reference warns (fatal with `--require-pin`); opt out with `--skip-pin-verify`.
|
|
@@ -41,52 +41,6 @@
|
|
|
41
41
|
function num(id) { return Number(id); }
|
|
42
42
|
function byNumericId(a, b) { return num(a) - num(b); }
|
|
43
43
|
|
|
44
|
-
// Titles are fitted to MEASURED width, not a character budget (task 1004200):
|
|
45
|
-
// proportional glyphs vary too much for any fixed count to fit a fixed box.
|
|
46
|
-
// `measure` is always the caller's, so this file stays DOM-free.
|
|
47
|
-
|
|
48
|
-
// The longest code-point prefix of `chars` that measures within maxWidth with
|
|
49
|
-
// `suffix` appended ('' if none does). Code points, so an emoji is never split.
|
|
50
|
-
function longestPrefix(chars, maxWidth, measure, suffix) {
|
|
51
|
-
var best = '';
|
|
52
|
-
var lo = 1;
|
|
53
|
-
var hi = chars.length;
|
|
54
|
-
while (lo <= hi) {
|
|
55
|
-
var mid = (lo + hi) >> 1;
|
|
56
|
-
var cand = chars.slice(0, mid).join('').replace(/\s+$/, '');
|
|
57
|
-
if (measure(cand + suffix) <= maxWidth) { best = cand; lo = mid + 1; } else { hi = mid - 1; }
|
|
58
|
-
}
|
|
59
|
-
return best;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// fitText — `text` whole if it fits, else its longest prefix that fits with an ellipsis.
|
|
63
|
-
function fitText(text, maxWidth, measure) {
|
|
64
|
-
var t = String(text == null ? '' : text);
|
|
65
|
-
if (measure(t) <= maxWidth) return t;
|
|
66
|
-
return longestPrefix(Array.from(t), maxWidth, measure, '…') + '…';
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// fitLines — `text` wrapped at spaces into at most `maxLines` lines of maxWidth,
|
|
70
|
-
// the last ellipsised when the rest will not fit. A word wider than a whole
|
|
71
|
-
// line is broken where it runs out of room, the way the browser would.
|
|
72
|
-
function fitLines(text, maxWidth, maxLines, measure) {
|
|
73
|
-
var rest = String(text == null ? '' : text).replace(/\s+/g, ' ').trim();
|
|
74
|
-
var lines = [];
|
|
75
|
-
while (rest && lines.length < maxLines - 1 && measure(rest) > maxWidth) {
|
|
76
|
-
var words = rest.split(' ');
|
|
77
|
-
var line = '';
|
|
78
|
-
for (var i = 0; i < words.length; i++) {
|
|
79
|
-
var next = line ? line + ' ' + words[i] : words[i];
|
|
80
|
-
if (measure(next) > maxWidth) break;
|
|
81
|
-
line = next;
|
|
82
|
-
}
|
|
83
|
-
if (!line) line = longestPrefix(Array.from(words[0]), maxWidth, measure, '') || Array.from(words[0])[0];
|
|
84
|
-
lines.push(line);
|
|
85
|
-
rest = rest.slice(line.length).trim();
|
|
86
|
-
}
|
|
87
|
-
if (rest) lines.push(fitText(rest, maxWidth, measure));
|
|
88
|
-
return lines;
|
|
89
|
-
}
|
|
90
44
|
function plural(n, one, many) { return n + ' ' + (n === 1 ? one : (many || one + 's')); }
|
|
91
45
|
|
|
92
46
|
// analyse — nodes by id, who each task waits on and who needs it, and the
|
|
@@ -268,7 +222,7 @@
|
|
|
268
222
|
|
|
269
223
|
return {
|
|
270
224
|
analyse: analyse, layout: layout, tableRows: tableRows, describe: describe,
|
|
271
|
-
|
|
225
|
+
plural: plural, priorityLabel: priorityLabel,
|
|
272
226
|
TEXT_INSET: TEXT_INSET, TITLE_LINES: TITLE_LINES,
|
|
273
227
|
};
|
|
274
228
|
}));
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
const { API, state, sameId, getJSON } = ctx;
|
|
30
30
|
const { escapeHtml, $ } = window.OTB;
|
|
31
31
|
const lib = window.OTBGoalForestLib;
|
|
32
|
+
const textFit = window.OTBTextFit;
|
|
32
33
|
|
|
33
34
|
function setCount(sel, n) {
|
|
34
35
|
const el = $(sel);
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
function fitNames(names, maxWidth) {
|
|
59
60
|
names.forEach(({ els, full }) => {
|
|
60
61
|
const measure = (s) => { els[0].textContent = s; return els[0].getComputedTextLength(); };
|
|
61
|
-
const lines =
|
|
62
|
+
const lines = textFit.fitLines(full, maxWidth, els.length, measure);
|
|
62
63
|
els.forEach((el, i) => { el.textContent = lines[i] || ''; });
|
|
63
64
|
});
|
|
64
65
|
}
|
|
@@ -52,17 +52,10 @@
|
|
|
52
52
|
// The categorical colour channel repeats after this many; the WORD on every
|
|
53
53
|
// node is what distinguishes them, so a repeat costs nothing.
|
|
54
54
|
var CATEGORY_COLOURS = 8;
|
|
55
|
-
var TITLE_CHARS = 24;
|
|
56
|
-
var SUB_CHARS = 30;
|
|
57
55
|
|
|
58
56
|
function num(id) { return Number(id); }
|
|
59
57
|
function byNumericId(a, b) { return num(a) - num(b); }
|
|
60
58
|
|
|
61
|
-
function clip(text, max) {
|
|
62
|
-
var t = String(text == null ? '' : text);
|
|
63
|
-
return t.length > max ? t.slice(0, max - 1).replace(/\s+$/, '') + '…' : t;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
59
|
// A private goal the viewer cannot read arrives with title null. It stays a node
|
|
67
60
|
// (dropping it would falsely isolate its neighbours) and is named as what it is.
|
|
68
61
|
function displayTitle(node) { return node.title ? String(node.title) : 'A private goal'; }
|
|
@@ -350,7 +343,7 @@
|
|
|
350
343
|
|
|
351
344
|
return {
|
|
352
345
|
analyse: analyse, layout: layout, categories: categories, colourOf: colourOf, weightOf: weightOf,
|
|
353
|
-
tableRows: tableRows, describe: describe, displayTitle: displayTitle,
|
|
354
|
-
plural: plural,
|
|
346
|
+
tableRows: tableRows, describe: describe, displayTitle: displayTitle,
|
|
347
|
+
plural: plural, CATEGORY_COLOURS: CATEGORY_COLOURS,
|
|
355
348
|
};
|
|
356
349
|
}));
|
|
@@ -63,6 +63,8 @@
|
|
|
63
63
|
<!-- The model and layout are a pure lib so a test runs the real arithmetic; the
|
|
64
64
|
page script keeps only the drawing and the table. Lib BEFORE page. -->
|
|
65
65
|
<script src="/builders/goal-map-lib.js"></script>
|
|
66
|
+
<!-- task 1004204: measured-width text fitting, shared with the goal forest. -->
|
|
67
|
+
<script src="/builders/text-fit.js"></script>
|
|
66
68
|
<script src="/builders/goal-map.js"></script>
|
|
67
69
|
</body>
|
|
68
70
|
</html>
|