@bongos/core 1.21.7 → 1.21.8
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 +56 -21
- package/docs/copy-inventory.md +20 -5
- package/docs/copy-registry.json +163 -16
- package/docs/module-api-changelog.md +2 -0
- package/docs/page-inventory.json +33 -4
- package/docs/page-readings.json +44 -2
- package/modules/hall-ui/public/city-draw.js +11 -2
- package/modules/hall-ui/public/street-draw.js +585 -0
- package/modules/hall-ui/public/street.css +188 -0
- package/modules/hall-ui/public/street.html +118 -0
- package/modules/hall-ui/public/street.js +364 -0
- package/modules/hall-ui/public/street.states.json +43 -0
- package/modules/hall-ui/records/governor-street.md +14 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +10 -0
- package/src/bongos/serve-internal.js +12 -0
- package/src/module-api.js +1 -1
- package/tests/hall_audit.mjs +9 -1
- package/tests/hall_page_gate_map.mjs +3 -0
- package/tests/hall_street.mjs +521 -0
package/docs/page-inventory.json
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"An id changes only when the host prefix, the data-page value or the file name changes; that is a rename, and records keyed on the old id move with it."
|
|
11
11
|
],
|
|
12
12
|
"counts": {
|
|
13
|
-
"pages":
|
|
13
|
+
"pages": 42,
|
|
14
14
|
"surfaces": 3,
|
|
15
|
-
"with_states":
|
|
16
|
-
"states":
|
|
15
|
+
"with_states": 35,
|
|
16
|
+
"states": 225
|
|
17
17
|
},
|
|
18
18
|
"surfaces": [
|
|
19
19
|
{
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"at": "modules/hall-ui/public",
|
|
23
23
|
"answers_at": "host prefix builders.",
|
|
24
24
|
"origin": "https://builders.{apex}",
|
|
25
|
-
"pages":
|
|
25
|
+
"pages": 34
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"id": "landing",
|
|
@@ -921,6 +921,35 @@
|
|
|
921
921
|
"update"
|
|
922
922
|
]
|
|
923
923
|
},
|
|
924
|
+
{
|
|
925
|
+
"id": "builders:street",
|
|
926
|
+
"surface": "builders",
|
|
927
|
+
"module": "hall-ui",
|
|
928
|
+
"page": "street",
|
|
929
|
+
"id_from": "data-page",
|
|
930
|
+
"title": "The street — {{worldName}}",
|
|
931
|
+
"document_title": "The street — {{worldName}}",
|
|
932
|
+
"path": "/street",
|
|
933
|
+
"url": "https://builders.{apex}/street",
|
|
934
|
+
"files": [
|
|
935
|
+
"modules/hall-ui/public/street.html",
|
|
936
|
+
"modules/hall-ui/public/style.css",
|
|
937
|
+
"modules/hall-ui/public/street.css",
|
|
938
|
+
"modules/hall-ui/public/city-draw.js",
|
|
939
|
+
"modules/hall-ui/public/street-draw.js",
|
|
940
|
+
"modules/hall-ui/public/street.js"
|
|
941
|
+
],
|
|
942
|
+
"states_files": [
|
|
943
|
+
"modules/hall-ui/public/street.states.json"
|
|
944
|
+
],
|
|
945
|
+
"states": [
|
|
946
|
+
"street",
|
|
947
|
+
"card",
|
|
948
|
+
"switched",
|
|
949
|
+
"here",
|
|
950
|
+
"focus"
|
|
951
|
+
]
|
|
952
|
+
},
|
|
924
953
|
{
|
|
925
954
|
"id": "builders:studio",
|
|
926
955
|
"surface": "builders",
|
package/docs/page-readings.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"adr": "0341 D3",
|
|
6
6
|
"reread": "node scripts/gds/page-reader.js --stale",
|
|
7
7
|
"how": ["Generated by node scripts/gds/page-reader.js (BV2.TW04, task 1004315; ADR 0341 D3). Do not hand-edit.","One entry per page of docs/page-inventory.json. Lines are in page order: the default state first, and a line only another state shows sits where that state shows it, with its state named.","placement: placed = a docs/copy-registry.json row renders it (file, line, string_id); shared = shell text every page of the surface carries (top bar, sidebar, footer), with its row when the registry has one; unplaced = the registry cannot place it (a rewrite becomes an engineer task, ADR 0341 D4).","text keeps {…} where the registry row has a hole, or where a value the page read from its API was filled in. A string that is only such data is counted under omitted.data, not listed.","reading_hash is over the non-shared lines (key, section, text); files_hash is over the page's inventory files. --check compares files_hash only and never opens a browser.","Rendered through the hall-preview harness (hall) and the ui-design kit stub (landing, status), at 1280x800 with the clock pinned, so a reading is the fixture world's page."],
|
|
8
|
-
"counts": {"pages":
|
|
8
|
+
"counts": {"pages":42,"lines":4424,"placed":1463,"shared":250,"unplaced":2711,"omitted_data":2335},
|
|
9
9
|
"pages": [
|
|
10
10
|
{
|
|
11
11
|
"id": "builders:atlas",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"surface": "builders",
|
|
137
137
|
"title": "The city — {{worldName}}",
|
|
138
138
|
"states_read": ["city","switched","focus"],
|
|
139
|
-
"files_hash": "
|
|
139
|
+
"files_hash": "97e6c520cb58f289",
|
|
140
140
|
"reading_hash": "4f1ae176cba4e763",
|
|
141
141
|
"counts": {"lines":1,"placed":1,"shared":0,"unplaced":0},
|
|
142
142
|
"omitted": {"data":2},
|
|
@@ -2817,6 +2817,48 @@
|
|
|
2817
2817
|
{"key":"L0177","section":"Preferred roles","text":"reflects it.","placement":"placed","file":"modules/hall-ui/public/settings.html","line":133,"string_id":"26da1df6fd4a"}
|
|
2818
2818
|
]
|
|
2819
2819
|
},
|
|
2820
|
+
{
|
|
2821
|
+
"id": "builders:street",
|
|
2822
|
+
"surface": "builders",
|
|
2823
|
+
"title": "The street — {{worldName}}",
|
|
2824
|
+
"states_read": ["street","card","switched","here","focus"],
|
|
2825
|
+
"files_hash": "d3c0282f27018330",
|
|
2826
|
+
"reading_hash": "d6d58d36680b77e1",
|
|
2827
|
+
"counts": {"lines":29,"placed":2,"shared":5,"unplaced":22},
|
|
2828
|
+
"omitted": {"data":39},
|
|
2829
|
+
"notes": [],
|
|
2830
|
+
"lines": [
|
|
2831
|
+
{"key":"L0001","section":"top bar","text":"the street","placement":"shared","file":"modules/hall-ui/public/street.html","line":50,"string_id":"22fc2137739d"},
|
|
2832
|
+
{"key":"L0002","section":"top bar","text":"needs you","placement":"shared","file":"modules/hall-ui/public/street.html","line":55,"string_id":"e07cafb1f696"},
|
|
2833
|
+
{"key":"L0003","section":"top bar","text":"your share this month","placement":"shared","file":"modules/hall-ui/public/street.html","line":63,"string_id":"dd7f7d6a97fe"},
|
|
2834
|
+
{"key":"L0004","section":"top bar","text":"light","placement":"shared","state":"switched"},
|
|
2835
|
+
{"key":"L0005","section":"top bar","text":"dark","placement":"shared"},
|
|
2836
|
+
{"key":"L0006","section":"page top","text":"work moves left to right · orange waits on you · white is {…} without you","placement":"unplaced"},
|
|
2837
|
+
{"key":"L0007","section":"page top","text":"1 {…} you","placement":"unplaced","occurrences":3},
|
|
2838
|
+
{"key":"L0008","section":"page top","text":"27 goals {…}","placement":"unplaced"},
|
|
2839
|
+
{"key":"L0009","section":"page top","text":"nothing {…}","placement":"unplaced"},
|
|
2840
|
+
{"key":"L0010","section":"page top","text":"{…} and {…}","placement":"placed","file":"modules/hall-ui/public/profile-nudge.js","line":77,"string_id":"56b00d773232","occurrences":4},
|
|
2841
|
+
{"key":"L0011","section":"page top","text":"18 built","placement":"unplaced"},
|
|
2842
|
+
{"key":"L0012","section":"page top","text":"9 built","placement":"unplaced"},
|
|
2843
|
+
{"key":"L0013","section":"page top","text":"7 built","placement":"unplaced"},
|
|
2844
|
+
{"key":"L0014","section":"page top","text":"66 built","placement":"unplaced"},
|
|
2845
|
+
{"key":"L0015","section":"page top","text":"22 built","placement":"unplaced"},
|
|
2846
|
+
{"key":"L0016","section":"page top","text":"31 built","placement":"unplaced"},
|
|
2847
|
+
{"key":"L0017","section":"page top","text":"5 built","placement":"unplaced"},
|
|
2848
|
+
{"key":"L0018","section":"page top","text":"20 more goals","placement":"unplaced"},
|
|
2849
|
+
{"key":"L0019","section":"page top","text":"on the goals page","placement":"unplaced"},
|
|
2850
|
+
{"key":"L0020","section":"page top","text":"nothing waiting","placement":"unplaced"},
|
|
2851
|
+
{"key":"L0021","section":"page top","text":"{…} · oct 6","placement":"unplaced"},
|
|
2852
|
+
{"key":"L0022","section":"page top","text":"{…} · oct 5","placement":"unplaced"},
|
|
2853
|
+
{"key":"L0023","section":"page top","text":"{…} · sat","placement":"unplaced"},
|
|
2854
|
+
{"key":"L0024","section":"page top","text":"{…} · oct 4","placement":"unplaced"},
|
|
2855
|
+
{"key":"L0025","section":"page top","text":"{…} · oct 8","placement":"unplaced"},
|
|
2856
|
+
{"key":"L0026","section":"page top","text":"oct 6","placement":"unplaced","state":"card"},
|
|
2857
|
+
{"key":"L0027","section":"{…}","text":"raised by {…} · 4 for · 1 against · {…}","placement":"unplaced","state":"card"},
|
|
2858
|
+
{"key":"L0028","section":"{…}","text":"This waits on you.","placement":"unplaced","state":"card"},
|
|
2859
|
+
{"key":"L0029","section":"{…}","text":"open it where it lives","placement":"placed","file":"modules/hall-ui/public/street.html","line":109,"string_id":"b9d1b0f0dfb4","state":"card"}
|
|
2860
|
+
]
|
|
2861
|
+
},
|
|
2820
2862
|
{
|
|
2821
2863
|
"id": "builders:studio",
|
|
2822
2864
|
"surface": "builders",
|
|
@@ -314,6 +314,15 @@
|
|
|
314
314
|
return out;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
// Rules lights its band (the prototype's st.fixes, set when the small-fixes
|
|
318
|
+
// rule passed) when a standing rule is at work: the docket's "rules at work"
|
|
319
|
+
// reading is live and counts at least one. Shared with street-draw.js.
|
|
320
|
+
function rulesAtWork(docket) {
|
|
321
|
+
const rs = docket && Array.isArray(docket.readings) ? docket.readings : [];
|
|
322
|
+
const r = rs.find((x) => x && x.key === 'rules');
|
|
323
|
+
return !!r && r.status === 'live' && Number(r.value) > 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
317
326
|
function pinState(state) {
|
|
318
327
|
return state === 'needs' || state === 'moving' || state === 'settled' ? state : 'moving';
|
|
319
328
|
}
|
|
@@ -364,7 +373,7 @@
|
|
|
364
373
|
const blds = [];
|
|
365
374
|
CIVIC_SLOTS.forEach((s) => {
|
|
366
375
|
const polys = [];
|
|
367
|
-
isoInstitution(polys, k, s[0], s[1], s[2], { fixes:
|
|
376
|
+
isoInstitution(polys, k, s[0], s[1], s[2], { fixes: rulesAtWork(docket) });
|
|
368
377
|
blds.push({ key: s[0], depth: s[1] + s[2] + 2, polys: polys });
|
|
369
378
|
});
|
|
370
379
|
districts.forEach((D) => {
|
|
@@ -429,7 +438,7 @@
|
|
|
429
438
|
const api = {
|
|
430
439
|
isoTheme: isoTheme, isoKit: isoKit, isoBox: isoBox, isoGable: isoGable, isoHip: isoHip, isoSaw: isoSaw,
|
|
431
440
|
isoTree: isoTree, isoLight: isoLight, isoInstitution: isoInstitution, isoWork: isoWork, glyph: glyph, rnd: rnd,
|
|
432
|
-
lotsFor: lotsFor, districtWork: districtWork, cityModel: cityModel,
|
|
441
|
+
lotsFor: lotsFor, districtWork: districtWork, cityModel: cityModel, rulesAtWork: rulesAtWork,
|
|
433
442
|
CIVIC_SLOTS: CIVIC_SLOTS, ROOF: ROOF, BASE_LOTS: BASE_LOTS, MAX_DISTRICTS: MAX_DISTRICTS, MAX_PINS_PER_BUILDING: MAX_PINS_PER_BUILDING,
|
|
434
443
|
FALLBACK_LINE: FALLBACK_LINE, STREET_HREF: STREET_HREF,
|
|
435
444
|
};
|