@unson/brainbase-mcp 0.50.30 → 0.51.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.
- package/contracts/canonical-task/store-schema.sql +3 -0
- package/dist/automation-run.js +3 -2
- package/dist/canonical-task-postgres.js +3 -0
- package/dist/canonical-task-service.d.ts +6 -0
- package/dist/canonical-task-service.js +40 -1
- package/dist/company-os-learning-adoption.d.ts +9 -0
- package/dist/company-os-learning-adoption.js +50 -1
- package/dist/durable-waits.d.ts +30 -0
- package/dist/durable-waits.js +100 -94
- package/dist/foundation-public-provider.d.ts +3 -1
- package/dist/foundation-public-provider.js +2 -2
- package/dist/graph-corrections.d.ts +46 -1
- package/dist/graph-corrections.js +172 -1
- package/dist/judgment-event-outbox.d.ts +24 -2
- package/dist/judgment-event-outbox.js +92 -10
- package/dist/judgment-frame.js +2 -2
- package/dist/judgment-host.d.ts +4 -1
- package/dist/judgment-host.js +126 -14
- package/dist/judgment-task-progress.d.ts +41 -0
- package/dist/judgment-task-progress.js +18 -0
- package/dist/knowledge-continuation.js +7 -1
- package/dist/knowledge-lookup.js +43 -58
- package/dist/mcp-runtime.d.ts +9 -0
- package/dist/mcp-runtime.js +12 -4
- package/dist/meeting-automation-runtime.d.ts +52 -0
- package/dist/meeting-automation-runtime.js +46 -0
- package/dist/queue-task-tools.js +2 -2
- package/dist/routine-liveness.js +0 -1
- package/dist/routine-runtime.js +1 -1
- package/dist/server.d.ts +59 -85
- package/dist/server.js +44 -36
- package/dist/ssot.js +1 -1
- package/dist/testing/queue-task-tools-contract.js +1 -1
- package/dist/world-model-impact-index.d.ts +132 -0
- package/dist/world-model-impact-index.js +901 -0
- package/package.json +6 -18
- package/ui/README.md +31 -0
- package/ui/graph-own-share.js +106 -50
- package/ui/graph-projects-view.js +4 -4
- package/ui/graph-view-shared.css +3 -0
- package/ui/judgment-history.css +13 -0
- package/ui/objective-editor.css +19 -2
- package/ui/objective-editor.js +6 -3
- package/ui/project-workspace.css +33 -26
- package/ui/workspace-kit.css +141 -0
- package/ui/workspace-kit.js +59 -8
- package/ui/world/world-view.css +65 -46
- package/ui/world/world-view.js +28 -19
- package/dist/execution-authority-http.d.ts +0 -30
- package/dist/execution-authority-http.js +0 -454
- package/dist/execution-authority.d.ts +0 -282
- package/dist/execution-authority.js +0 -867
- package/dist/resource-reservation-http.d.ts +0 -31
- package/dist/resource-reservation-http.js +0 -371
- package/dist/resource-reservations.d.ts +0 -221
- package/dist/resource-reservations.js +0 -577
package/ui/project-workspace.css
CHANGED
|
@@ -628,6 +628,9 @@ button.bb-pkw-context-task-title:focus-visible { outline: 3px solid var(--bb-col
|
|
|
628
628
|
.bb-pkw-dense-overview {
|
|
629
629
|
display: grid;
|
|
630
630
|
gap: 0;
|
|
631
|
+
/* The overview sits beside a rail and, in hosts, a detail panel, so its
|
|
632
|
+
width does not follow the viewport. Its metrics follow this width. */
|
|
633
|
+
container: bb-pkw-overview / inline-size;
|
|
631
634
|
}
|
|
632
635
|
|
|
633
636
|
.bb-pkw-dense-intro {
|
|
@@ -694,6 +697,36 @@ button.bb-pkw-context-task-title:focus-visible { outline: 3px solid var(--bb-col
|
|
|
694
697
|
letter-spacing: -.03em;
|
|
695
698
|
}
|
|
696
699
|
|
|
700
|
+
/* Four 30px values need about 150px each. Below that the overview shows two
|
|
701
|
+
per row, whatever the viewport, so a value is never broken inside a word. */
|
|
702
|
+
@container bb-pkw-overview (max-width: 600px) {
|
|
703
|
+
.bb-pkw-dense-metrics {
|
|
704
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.bb-pkw-dense-metric,
|
|
708
|
+
.bb-pkw-dense-metric:first-child {
|
|
709
|
+
padding: 14px 12px;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.bb-pkw-dense-metric:nth-child(odd) {
|
|
713
|
+
padding-left: 0;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.bb-pkw-dense-metric:nth-child(even) {
|
|
717
|
+
border-right: 0;
|
|
718
|
+
padding-right: 0;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.bb-pkw-dense-metric:nth-child(-n + 2) {
|
|
722
|
+
border-bottom: 1px solid var(--bb-color-border);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.bb-pkw-dense-metric:last-child {
|
|
726
|
+
border-bottom: 0;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
|
|
697
730
|
.bb-pkw-dense-grid {
|
|
698
731
|
display: grid;
|
|
699
732
|
grid-template-columns: minmax(0, 1fr);
|
|
@@ -1066,32 +1099,6 @@ button.bb-pkw-context-task-title:focus-visible { outline: 3px solid var(--bb-col
|
|
|
1066
1099
|
font-size: 34px;
|
|
1067
1100
|
}
|
|
1068
1101
|
|
|
1069
|
-
.bb-pkw-dense-metrics {
|
|
1070
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
.bb-pkw-dense-metric,
|
|
1074
|
-
.bb-pkw-dense-metric:first-child {
|
|
1075
|
-
padding: 14px 12px;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
.bb-pkw-dense-metric:nth-child(odd) {
|
|
1079
|
-
padding-left: 0;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
.bb-pkw-dense-metric:nth-child(even) {
|
|
1083
|
-
border-right: 0;
|
|
1084
|
-
padding-right: 0;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
.bb-pkw-dense-metric:nth-child(-n + 2) {
|
|
1088
|
-
border-bottom: 1px solid var(--bb-color-border);
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
.bb-pkw-dense-metric:last-child {
|
|
1092
|
-
border-bottom: 0;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
1102
|
.bb-pkw-dense-grid,
|
|
1096
1103
|
.bb-pkw-detail-columns {
|
|
1097
1104
|
grid-template-columns: minmax(0, 1fr);
|
package/ui/workspace-kit.css
CHANGED
|
@@ -1545,3 +1545,144 @@ button.bb-ws-identity-chip:hover { box-shadow:var(--bb-shadow-card-preview); }
|
|
|
1545
1545
|
.bb-ws-settings-service-editor { min-width:0; margin-bottom:8px; }
|
|
1546
1546
|
.bb-ws-focus-only:not(:focus-visible) { position:absolute; width:1px; height:1px; min-width:0; min-height:0; margin:-1px; padding:0; border:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
|
|
1547
1547
|
.bb-ws-settings-actions > .bb-ws-button.is-danger,.bb-ws-settings-service-actions > .bb-ws-button.is-danger { color:var(--bb-color-danger); }
|
|
1548
|
+
.bb-ws-step-band { display:flex; align-items:center; gap:28px; margin:0 0 16px; padding:10px 12px 10px 18px; border-radius:10px; background:var(--bb-color-paper); }
|
|
1549
|
+
.bb-ws-step-facts { display:grid; flex:none; gap:0; }
|
|
1550
|
+
.bb-ws-step-facts > small { color:var(--bb-color-muted); font-size:11.5px; line-height:1.5; }
|
|
1551
|
+
.bb-ws-step-facts > strong { color:var(--bb-color-ink); font-size:17px; font-weight:700; line-height:1.4; font-variant-numeric:tabular-nums; }
|
|
1552
|
+
.bb-ws-step-facts > button { justify-self:start; min-height:0; height:auto; padding:0; border:0; background:none; color:var(--bb-color-action); font:500 12px/1.6 var(--bb-font-sans); cursor:pointer; }
|
|
1553
|
+
.bb-ws-steps { display:flex; flex:1; gap:6px; min-width:0; margin:0; padding:0; list-style:none; }
|
|
1554
|
+
.bb-ws-steps > li { position:relative; flex:1; min-width:0; }
|
|
1555
|
+
.bb-ws-steps > li + li { margin-left:14px; }
|
|
1556
|
+
.bb-ws-steps > li + li::before { content:""; position:absolute; left:-7px; top:50%; width:7px; height:7px; border-top:1.5px solid var(--bb-color-border); border-right:1.5px solid var(--bb-color-border); transform:translate(-50%,-50%) rotate(45deg); }
|
|
1557
|
+
.bb-ws-step { display:flex; align-items:center; gap:12px; width:100%; min-height:52px; padding:6px 14px; border:0; border-radius:9px; background:none; color:var(--bb-color-slate); font:400 13px/1.5 var(--bb-font-sans); text-align:left; cursor:pointer; }
|
|
1558
|
+
.bb-ws-step:hover { background:var(--bb-color-canvas); }
|
|
1559
|
+
.bb-ws-step[aria-current="step"] { background:var(--bb-color-accent-soft); color:var(--bb-color-ink); }
|
|
1560
|
+
.bb-ws-step > i { display:grid; place-items:center; flex:none; width:26px; height:26px; border-radius:50%; background:var(--bb-color-canvas); color:var(--bb-color-slate); font:700 12.5px/1 var(--bb-font-sans); font-style:normal; }
|
|
1561
|
+
.bb-ws-step[aria-current="step"] > i { background:var(--bb-color-action); color:var(--bb-color-action-text); }
|
|
1562
|
+
.bb-ws-step.is-complete > i { background:var(--bb-color-mint); color:var(--bb-color-paper); }
|
|
1563
|
+
.bb-ws-step > i svg { width:14px; height:14px; stroke-width:3; }
|
|
1564
|
+
.bb-ws-step > span { display:grid; min-width:0; }
|
|
1565
|
+
.bb-ws-step b { font-size:14px; font-weight:600; white-space:nowrap; }
|
|
1566
|
+
.bb-ws-step small { overflow:hidden; color:var(--bb-color-muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
|
|
1567
|
+
.bb-ws-step[aria-current="step"] small { color:var(--bb-color-action); font-weight:500; }
|
|
1568
|
+
.bb-ws-step:disabled { cursor:default; opacity:.5; }
|
|
1569
|
+
.bb-ws-candidate-choices { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; min-width:0; white-space:normal; }
|
|
1570
|
+
.bb-ws-candidate-choice { display:inline-flex; align-items:center; gap:7px; min-height:32px; max-width:100%; padding:0 12px; border:0; border-radius:7px; background:var(--bb-color-canvas); color:var(--bb-color-ink); font:500 13px/1 var(--bb-font-sans); text-align:left; cursor:pointer; }
|
|
1571
|
+
.bb-ws-candidate-choice:hover { box-shadow:var(--bb-shadow-card-preview); }
|
|
1572
|
+
.bb-ws-candidate-choice > span { min-width:0; overflow-wrap:anywhere; }
|
|
1573
|
+
.bb-ws-candidate-choice small { color:var(--bb-color-muted); font-size:11.5px; font-weight:400; }
|
|
1574
|
+
.bb-ws-candidate-choice.is-quiet { background:none; box-shadow:inset 0 0 0 1px var(--bb-color-border); color:var(--bb-color-slate); font-weight:400; }
|
|
1575
|
+
.bb-ws-candidate-choice[aria-pressed="true"] { background:var(--bb-color-accent-soft); box-shadow:inset 0 0 0 1.5px var(--bb-color-mint); color:var(--bb-color-action); font-weight:600; }
|
|
1576
|
+
.bb-ws-candidate-choice > svg { display:none; flex:none; width:14px; height:14px; stroke:var(--bb-color-mint); stroke-width:3; }
|
|
1577
|
+
.bb-ws-candidate-choice[aria-pressed="true"] > svg { display:block; }
|
|
1578
|
+
.bb-ws-candidate-choice:disabled { cursor:default; opacity:.5; }
|
|
1579
|
+
.bb-ws-step:focus-visible, .bb-ws-candidate-choice:focus-visible { outline:2px solid var(--bb-color-focus); outline-offset:2px; }
|
|
1580
|
+
.bb-intake-candidates { --bb-card-columns:76px minmax(260px,1fr) 150px 308px; }
|
|
1581
|
+
.bb-intake-table-head, .bb-intake-candidate-head { display:grid; grid-template-columns:var(--bb-card-columns); align-items:center; gap:18px; min-height:34px; margin:0 0 8px; padding:0 16px 0 22px; border-bottom:2px solid var(--bb-color-action); color:var(--bb-color-action); font:600 12px/1.6 var(--bb-font-sans); }
|
|
1582
|
+
.bb-intake-candidate-row { min-height:56px; padding-block:10px; column-gap:18px; cursor:default; }
|
|
1583
|
+
.bb-intake-candidate-text { margin:0; color:var(--bb-color-ink); font-size:14px; font-weight:500; line-height:1.6; white-space:normal; }
|
|
1584
|
+
.bb-intake-candidate-row.is-done { background:color-mix(in srgb,var(--bb-color-paper) 55%,var(--bb-color-canvas)); }
|
|
1585
|
+
.bb-intake-candidate-row.is-done .bb-intake-candidate-text { color:var(--bb-color-slate); font-weight:400; }
|
|
1586
|
+
.bb-intake-candidate-error { display:block; margin-top:2px; color:var(--bb-color-danger); font-size:12px; white-space:normal; }
|
|
1587
|
+
.bb-intake-project-mark, .bb-intake-candidate-project { display:inline-block; max-width:100%; height:20px; padding:0 8px; overflow:hidden; border-radius:999px; background:var(--bb-color-canvas); color:var(--bb-color-slate); font-size:11px; line-height:20px; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
|
|
1588
|
+
.bb-intake-candidate-actions { display:grid; grid-template-columns:92px 104px 100px; gap:6px; }
|
|
1589
|
+
.bb-intake-candidate-actions > .bb-ws-button { display:inline-grid; place-items:center; width:100%; height:32px; min-height:32px; padding:0 10px; border:0; border-radius:7px; font:500 12.5px/1 var(--bb-font-sans); white-space:nowrap; }
|
|
1590
|
+
.bb-intake-candidate-actions > .bb-ws-button:not(.is-primary) { background:var(--bb-color-paper); color:var(--bb-color-slate); box-shadow:inset 0 0 0 1px var(--bb-color-border); }
|
|
1591
|
+
.bb-intake-candidate-actions > .bb-ws-button:not(.is-primary):hover { background:var(--bb-color-canvas); color:var(--bb-color-ink); }
|
|
1592
|
+
.bb-intake-candidate-date { display:inline-grid; grid-template-columns:40px 18px; align-items:center; width:100%; column-gap:6px; font-size:13px; line-height:1.6; white-space:nowrap; font-variant-numeric:tabular-nums; }
|
|
1593
|
+
.bb-intake-candidate-date b { text-align:right; font-weight:400; }
|
|
1594
|
+
.bb-intake-candidate-date i { color:var(--bb-color-muted); font-size:12px; font-style:normal; }
|
|
1595
|
+
.bb-intake-candidate-done { display:flex; align-items:center; gap:7px; color:var(--bb-color-slate); font-size:12.5px; line-height:1.5; white-space:normal; }
|
|
1596
|
+
.bb-intake-candidate-done > svg { flex:none; width:16px; height:16px; stroke:var(--bb-color-mint); stroke-width:2.4; animation:bb-intake-result-pop 320ms cubic-bezier(.3,1.5,.5,1) both; }
|
|
1597
|
+
.bb-intake-candidate-done:is(.is-quiet,.is-reject,.is-hold) > svg { stroke:var(--bb-color-muted); }
|
|
1598
|
+
.bb-intake-candidate-count { margin:16px 0 0; color:var(--bb-color-muted); font-size:12px; line-height:normal; }
|
|
1599
|
+
@keyframes bb-intake-result-pop { from { transform:scale(0) rotate(-40deg); } to { transform:scale(1) rotate(0); } }
|
|
1600
|
+
@media (max-width:760px) {
|
|
1601
|
+
.bb-ws-step-band { flex-direction:column; align-items:stretch; gap:12px; padding:12px; }
|
|
1602
|
+
.bb-ws-step-facts { grid-template-columns:1fr auto; }
|
|
1603
|
+
.bb-ws-step-facts > small { grid-column:1 / -1; }
|
|
1604
|
+
.bb-ws-step { gap:8px; padding:6px 8px; }
|
|
1605
|
+
.bb-ws-step b { white-space:normal; font-size:13px; }
|
|
1606
|
+
.bb-ws-step small { white-space:normal; }
|
|
1607
|
+
.bb-ws-candidate-choice { padding:6px 10px; flex-wrap:wrap; line-height:1.4; }
|
|
1608
|
+
.bb-intake-candidates :is(.bb-intake-table-head,.bb-intake-candidate-head) { display:none; }
|
|
1609
|
+
.bb-intake-candidate-row { grid-template-columns:72px minmax(0,1fr); gap:8px 10px; }
|
|
1610
|
+
.bb-intake-candidate-row > :nth-child(3) { grid-column:2; }
|
|
1611
|
+
.bb-intake-candidate-row > :nth-child(4) { grid-column:1 / -1; }
|
|
1612
|
+
.bb-intake-candidate-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
|
|
1613
|
+
}
|
|
1614
|
+
@media (prefers-reduced-motion:reduce) { .bb-intake-candidate-done > svg { animation:none; } }
|
|
1615
|
+
@media (max-width:1194px) {
|
|
1616
|
+
.bb-intake-candidates :is(.bb-intake-table-head,.bb-intake-candidate-head) { display:none; }
|
|
1617
|
+
.bb-intake-candidate-row { grid-template-columns:72px minmax(0,1fr); gap:8px 10px; }
|
|
1618
|
+
.bb-intake-candidate-row > :nth-child(3) { grid-column:2; }
|
|
1619
|
+
.bb-intake-candidate-row > :nth-child(4) { grid-column:1 / -1; }
|
|
1620
|
+
.bb-intake-candidate-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
|
|
1621
|
+
}
|
|
1622
|
+
.bb-ws-help.bb-ws-help--toolbar .bb-ws-help-button { width:32px; height:32px; border:0; border-radius:7px; background:none; color:var(--bb-color-slate); cursor:pointer; }
|
|
1623
|
+
.bb-ws-help.bb-ws-help--toolbar .bb-ws-help-button:hover, .bb-ws-help.bb-ws-help--toolbar .bb-ws-help-button[aria-expanded="true"] { background:var(--bb-color-accent-soft); color:var(--bb-color-action); }
|
|
1624
|
+
.bb-ws-help.bb-ws-help--toolbar .bb-ws-help-button > svg { width:17px; height:17px; stroke-width:1.8; }
|
|
1625
|
+
.bb-ws-help.bb-ws-help--toolbar .bb-ws-help-bubble { top:38px; right:0; bottom:auto; left:auto; width:min(320px,calc(100vw - 32px)); padding:14px 16px; border:0; border-radius:14px; background:var(--bb-color-paper); color:var(--bb-color-slate); font-size:12.5px; line-height:1.8; box-shadow:var(--bb-shadow-control-panel); transform:translateY(-4px); }
|
|
1626
|
+
.bb-ws-help--toolbar:not(.is-dismissed):is(:hover,:focus-within,.is-open) .bb-ws-help-bubble { transform:none; }
|
|
1627
|
+
.bb-ws-help.bb-ws-help--toolbar .bb-ws-help-bubble::after { top:-10px; }
|
|
1628
|
+
.bb-ws-help.bb-ws-help--toolbar .bb-ws-help-bubble > :is(b,strong) { display:block; margin-bottom:4px; color:var(--bb-color-ink); font-size:13px; }
|
|
1629
|
+
.bb-intake-mapping { --bb-card-columns:84px minmax(220px,1fr) minmax(380px,1.6fr) 112px 64px 108px; }
|
|
1630
|
+
.bb-intake-mapping .bb-intake-table-head, .bb-intake-mapping-row { column-gap:14px; }
|
|
1631
|
+
.bb-intake-mapping-row, .bb-intake-promotion-row { min-height:56px; padding-block:10px; cursor:default; }
|
|
1632
|
+
.bb-intake-name-button { display:grid; gap:1px; width:100%; min-width:0; padding:0; border:0; background:none; color:inherit; font:14px/1.6 var(--bb-font-sans); text-align:left; cursor:pointer; }
|
|
1633
|
+
.bb-intake-name-button strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:600; }
|
|
1634
|
+
.bb-intake-name-button small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--bb-color-muted); font-size:12px; }
|
|
1635
|
+
.bb-intake-name-button:hover strong { color:var(--bb-color-action); text-decoration:underline; }
|
|
1636
|
+
.bb-intake-name-button:focus-visible { outline:2px solid var(--bb-color-focus); outline-offset:2px; }
|
|
1637
|
+
.bb-intake-type { display:inline-block; max-width:100%; height:20px; padding:0 8px; overflow:hidden; border-radius:999px; background:var(--bb-color-canvas); color:var(--bb-color-slate); font-size:11px; line-height:20px; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
|
|
1638
|
+
.bb-intake-status { justify-self:center; text-align:center; }
|
|
1639
|
+
.bb-intake-by { color:var(--bb-color-muted); font-size:11.5px; line-height:1.5; white-space:normal; }
|
|
1640
|
+
.bb-intake-settled, .bb-intake-mapping-row.is-settled, .bb-intake-promotion-row.is-settled { min-height:44px; padding-block:6px; background:color-mix(in srgb,var(--bb-color-paper) 55%,var(--bb-color-canvas)); }
|
|
1641
|
+
.bb-intake-settled .bb-intake-name-button strong, .bb-intake-mapping-row.is-settled .bb-intake-name-button strong { font-weight:500; color:var(--bb-color-slate); }
|
|
1642
|
+
.bb-intake-mapping-row.is-ended .bb-intake-name-button strong,
|
|
1643
|
+
.bb-intake-mapping-row.is-ended .bb-intake-name-button small { color:var(--bb-color-muted); }
|
|
1644
|
+
.bb-intake-settled .bb-intake-value, .bb-intake-promotion-row.is-settled .bb-intake-value { color:var(--bb-color-slate); }
|
|
1645
|
+
.bb-intake-promotion { --bb-card-columns:18px minmax(170px,.9fr) minmax(180px,1fr) 20px minmax(180px,1fr) 110px; }
|
|
1646
|
+
.bb-intake-promotion-row { column-gap:18px; }
|
|
1647
|
+
.bb-intake-value { color:var(--bb-color-ink); font-size:13.5px; line-height:1.6; white-space:normal; }
|
|
1648
|
+
.bb-intake-current { color:var(--bb-color-slate); font-size:13.5px; line-height:1.6; }
|
|
1649
|
+
.bb-intake-current.is-replacing { color:var(--bb-color-muted); text-decoration:line-through; }
|
|
1650
|
+
.bb-intake-promotion-row.is-picked { background:color-mix(in srgb,var(--bb-color-accent-soft) 55%,var(--bb-color-paper)); }
|
|
1651
|
+
.bb-intake-arrow { width:16px; height:16px; color:var(--bb-color-muted); stroke-width:1.8; }
|
|
1652
|
+
.bb-intake-promotion-row:is(.is-addition,.is-different) .bb-intake-arrow { color:var(--bb-color-mint); }
|
|
1653
|
+
.bb-intake-tally { margin-right:4px; color:var(--bb-color-slate); font-size:12.5px; white-space:nowrap; }
|
|
1654
|
+
.bb-intake-tally b { color:var(--bb-color-warning); font-weight:600; }
|
|
1655
|
+
.bb-intake-heading { margin:18px 2px 8px; color:var(--bb-color-muted); font-size:12px; font-weight:600; }
|
|
1656
|
+
.bb-intake-count { margin:16px 0 0; color:var(--bb-color-muted); font-size:12px; line-height:normal; }
|
|
1657
|
+
.bb-intake-muted { color:var(--bb-color-muted); font-size:12px; }
|
|
1658
|
+
.bb-intake-mapping-hint { display:block; flex-basis:100%; margin-top:6px; color:var(--bb-color-muted); font-size:11.5px; }
|
|
1659
|
+
.bb-intake-mapping-warning { display:block; flex-basis:100%; margin-top:6px; color:var(--bb-color-warning); font-size:11.5px; font-weight:600; }
|
|
1660
|
+
.bb-intake-mapping-summary { color:var(--bb-color-slate); font-size:13px; white-space:normal; }
|
|
1661
|
+
.bb-ws-button.bb-intake-link { min-height:0; height:auto; padding:0; border:0; border-radius:0; background:none; color:var(--bb-color-action); box-shadow:none; font:500 12.5px/1.6 var(--bb-font-sans); }
|
|
1662
|
+
.bb-ws-button.bb-intake-link:hover { border:0; background:none; box-shadow:none; text-decoration:underline; }
|
|
1663
|
+
.bb-ws-button.bb-intake-link:focus-visible { outline:2px solid var(--bb-color-focus); outline-offset:2px; }
|
|
1664
|
+
.bb-intake-item-title { display:block; line-height:1.6; color:var(--bb-color-ink); font-size:14px; font-weight:600; }
|
|
1665
|
+
.bb-intake-promotion-row.is-settled .bb-intake-item-title { display:block; line-height:1.6; color:var(--bb-color-slate); font-weight:500; }
|
|
1666
|
+
.bb-ws-button.is-icon.bb-intake-toolbar-icon,
|
|
1667
|
+
.bb-ws-topbar.has-tabs .bb-ws-topbar-tools > .bb-ws-button.is-icon.bb-intake-toolbar-icon { border:0; background:none; box-shadow:none; }
|
|
1668
|
+
.bb-ws-button.is-icon.bb-intake-toolbar-icon:not(:disabled):is(:hover,[aria-expanded="true"]),
|
|
1669
|
+
.bb-ws-topbar.has-tabs .bb-ws-topbar-tools > .bb-ws-button.is-icon.bb-intake-toolbar-icon:not(:disabled):is(:hover,[aria-expanded="true"]) { border:0; background:var(--bb-color-accent-soft); color:var(--bb-color-action); box-shadow:none; }
|
|
1670
|
+
.bb-intake-mapping .bb-ws-status-pill, .bb-intake-promotion .bb-ws-status-pill { min-width:68px; padding:0 9px; }
|
|
1671
|
+
.bb-ws-topbar.has-tabs .bb-ws-topbar-tools > .bb-ws-button.bb-intake-toolbar-action:disabled { border:0; background:var(--bb-color-canvas); color:var(--bb-color-muted); box-shadow:none; opacity:1; cursor:default; }
|
|
1672
|
+
.bb-ws-definition.bb-intake-definition { grid-template-columns:112px minmax(0,1fr); gap:9px 12px; font-size:12.5px; line-height:normal; }
|
|
1673
|
+
.bb-ws-definition.bb-intake-definition dd { line-height:1.7; }
|
|
1674
|
+
@media (max-width:1384px) {
|
|
1675
|
+
.bb-intake-mapping { --bb-card-columns:84px minmax(220px,1fr) minmax(380px,1.6fr) 112px 64px; }
|
|
1676
|
+
.bb-intake-mapping .bb-intake-table-head > :last-child { display:none; }
|
|
1677
|
+
.bb-intake-mapping-row > .bb-intake-by { grid-column:2 / -1; }
|
|
1678
|
+
}
|
|
1679
|
+
@media (max-width:1262px) {
|
|
1680
|
+
.bb-intake-mapping, .bb-intake-promotion { --bb-card-columns:minmax(0,1fr); }
|
|
1681
|
+
.bb-intake-mapping .bb-intake-table-head, .bb-intake-promotion .bb-intake-table-head { display:none; }
|
|
1682
|
+
.bb-intake-mapping-row, .bb-intake-promotion-row { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
|
|
1683
|
+
.bb-intake-mapping-row > .bb-intake-by { grid-column:auto; }
|
|
1684
|
+
.bb-intake-mapping-row .bb-intake-status { justify-self:start; text-align:left; }
|
|
1685
|
+
.bb-intake-name-button strong, .bb-intake-name-button small { white-space:normal; }
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.bb-intake-mapping-row .bb-ws-button--compact.is-primary { display:inline-grid; place-items:center; gap:0; width:64px; padding-inline:10px; }
|
package/ui/workspace-kit.js
CHANGED
|
@@ -196,8 +196,9 @@ export function workspaceDetailDrawer(doc, { title = '詳細', opener, onClose,
|
|
|
196
196
|
|
|
197
197
|
/** A notice with a short label, like 接続範囲 on the organization screens. */
|
|
198
198
|
export function workspaceNotice(doc, { label, text, tone = 'info', role } = {}) {
|
|
199
|
-
const notice = el(doc, 'div', { className: `bb-ws-notice is-${tone}`, attrs: { role: role ?? (tone === '
|
|
200
|
-
|
|
199
|
+
const notice = el(doc, 'div', { className: `bb-ws-notice is-${tone}`, attrs: { role: role ?? (tone === 'danger' ? 'alert' : tone === 'warning' ? 'status' : undefined) } });
|
|
200
|
+
const severity = tone === 'warning' ? '注意' : tone === 'danger' ? 'エラー' : '';
|
|
201
|
+
if (label || severity) notice.append(el(doc, 'strong', { text: [severity, label].filter(Boolean).join(':') }));
|
|
201
202
|
appendContent(notice, doc, text);
|
|
202
203
|
return notice;
|
|
203
204
|
}
|
|
@@ -231,13 +232,13 @@ export function workspaceInlineNotice(doc, { text, tone = 'success', icon, actio
|
|
|
231
232
|
|
|
232
233
|
/**
|
|
233
234
|
* The notice a host passes to a part in place of (or in addition to) the
|
|
234
|
-
* part's own: `{ label, text }`, where `text` is a string or an element. Null
|
|
235
|
+
* part's own: `{ label, text, tone? }`, where `text` is a string or an element. Null
|
|
235
236
|
* when the host passed none.
|
|
236
237
|
*/
|
|
237
238
|
export function workspaceHostNotice(doc, notice) {
|
|
238
239
|
if (!notice || typeof notice !== 'object' || Array.isArray(notice)) return null;
|
|
239
240
|
const label = typeof notice.label === 'string' && notice.label.trim() ? notice.label.trim() : undefined;
|
|
240
|
-
return workspaceNotice(doc, { label, text: notice.text });
|
|
241
|
+
return workspaceNotice(doc, { label, text: notice.text, tone: ['warning', 'danger'].includes(notice.tone) ? notice.tone : 'info' });
|
|
241
242
|
}
|
|
242
243
|
|
|
243
244
|
/** A host's extra page-head buttons, `[{ text, variant, onClick, disabled }]`, as `workspaceActions` items. */
|
|
@@ -485,10 +486,11 @@ function nextWorkspaceSequence() {
|
|
|
485
486
|
const workspaceHelpDismissers = new WeakMap();
|
|
486
487
|
|
|
487
488
|
/** Shared explanatory help: hover/focus above the control, click for touch. */
|
|
488
|
-
export function workspaceHelp(doc, { text, label, content, icon = 'i', placement } = {}) {
|
|
489
|
+
export function workspaceHelp(doc, { text, label, content, icon = 'i', placement, appearance } = {}) {
|
|
489
490
|
const wrap = el(doc, content === undefined ? 'span' : 'div', { className: 'bb-ws-help' });
|
|
490
491
|
const control = workspaceButton(doc, { text: icon, attrs: { 'aria-label': `${label}の説明`, 'aria-expanded': 'false' } });
|
|
491
492
|
control.className = 'bb-ws-help-button';
|
|
493
|
+
if (appearance === 'toolbar') { toggleWorkspaceClass(wrap, 'bb-ws-help--toolbar', true); control.textContent = ''; control.append(workspaceActionIcon(doc, 'help')); }
|
|
492
494
|
const bubble = el(doc, content === undefined ? 'span' : 'div', { className: 'bb-ws-help-bubble', text, attrs: { id: `bb-ws-help-${nextWorkspaceSequence()}`, role: 'tooltip' } });
|
|
493
495
|
if (content !== undefined) { bubble.textContent = ''; appendContent(bubble, doc, content); }
|
|
494
496
|
if (placement === 'bottom-end') toggleWorkspaceClass(wrap, 'bb-ws-help--bottom-end', true);
|
|
@@ -960,10 +962,11 @@ export function workspaceDismissNotification(card, onDismiss) {
|
|
|
960
962
|
|
|
961
963
|
/** Persistent notification, closed unless `open`. The caller owns its lifecycle. */
|
|
962
964
|
export function workspaceErrorCard(doc, { title, message, tone = 'danger', onRetry, open = false } = {}) {
|
|
963
|
-
const card = workspaceNotificationCard(doc, { tone, className: 'bb-ws-error-card', role: '
|
|
965
|
+
const card = workspaceNotificationCard(doc, { tone, className: 'bb-ws-error-card', role: tone === 'warning' ? 'status' : 'alert' });
|
|
964
966
|
const details = el(doc, 'details'); details.open = open;
|
|
965
|
-
const
|
|
966
|
-
summary
|
|
967
|
+
const severity = tone === 'warning' ? '注意' : 'エラー';
|
|
968
|
+
const summary = el(doc, 'summary', { attrs: { 'aria-label': `${severity}:${title}の通知` } });
|
|
969
|
+
summary.append(el(doc, 'span', { className: 'bb-ws-error-symbol', text: tone === 'warning' ? '△' : '×', attrs: { 'aria-hidden': 'true' } }), el(doc, 'span', { text: title }));
|
|
967
970
|
details.append(summary, el(doc, 'p', { text: message })); card.append(details);
|
|
968
971
|
if (onRetry) card.append(workspaceButton(doc, { text: '再試行', attrs: { 'aria-label': `${title}を再試行` }, onClick: onRetry }));
|
|
969
972
|
return card;
|
|
@@ -1428,6 +1431,8 @@ export function workspaceActionIcon(doc, name) {
|
|
|
1428
1431
|
const paths = { edit: 'M4 20h4L19 9l-4-4L4 16z M13.5 6.5l4 4', undo: 'M4 5v5h5 M4.6 10A8 8 0 1 1 6.3 17.7', check: 'M5 12l5 5 9-10', sliders: 'M4 8h8M18 8h2M4 16h2M12 16h8 M17.4 8a2.4 2.4 0 1 1-4.8 0 2.4 2.4 0 0 1 4.8 0 M11.4 16a2.4 2.4 0 1 1-4.8 0 2.4 2.4 0 0 1 4.8 0', plus: 'M12 5v14M5 12h14', search: 'M21 21l-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0', filter: 'M4 7h16M7 12h10M10 17h4', sort: 'M8 4v16m-3-3 3 3 3-3M16 20V4m-3 3 3-3 3 3', close: 'M6 6l12 12M18 6L6 18', sparkles: 'M12 3l1.8 6.7 6.7 1.8-6.7 1.8L12 20l-1.8-6.7-6.7-1.8 6.7-1.8z M19 2v4 M17 4h4' };
|
|
1429
1432
|
Object.assign(paths, {
|
|
1430
1433
|
copy: 'M9 9h12v12H9z M5 15H3V3h12v2',
|
|
1434
|
+
help: 'M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0 M9.6 9.3a2.5 2.5 0 0 1 4.8.8c0 1.7-2.4 2.1-2.4 3.7 M12 17h.01',
|
|
1435
|
+
'arrow-right': 'M5 12h14m-5-5 5 5-5 5',
|
|
1431
1436
|
star: 'M12 3.5l2.6 5.3 5.9.9-4.2 4.1 1 5.8-5.3-2.8-5.3 2.8 1-5.8-4.2-4.1 5.9-.9z',
|
|
1432
1437
|
lock: 'M6 10h12v11H6z M8 10V7a4 4 0 1 1 8 0v3',
|
|
1433
1438
|
clock: 'M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0 M12 7v5l3 2',
|
|
@@ -1853,3 +1858,49 @@ export function workspaceDotPill(doc, { label, color } = {}) {
|
|
|
1853
1858
|
if (color) { const dot = el(doc, 'i', { attrs: { 'aria-hidden': 'true' } }); dot.style?.setProperty('--bb-pill-dot', color); root.append(dot); }
|
|
1854
1859
|
root.append(el(doc, 'span', { text: label })); return root;
|
|
1855
1860
|
}
|
|
1861
|
+
|
|
1862
|
+
/** A controlled sequence of steps beside host-owned identifying facts. */
|
|
1863
|
+
export function workspaceStepBand(doc, { facts, label, steps = [], value, onChange } = {}) {
|
|
1864
|
+
const root = el(doc, 'section', { className: 'bb-ws-step-band' });
|
|
1865
|
+
const identity = el(doc, 'div', { className: 'bb-ws-step-facts' });
|
|
1866
|
+
appendContent(identity, doc, facts);
|
|
1867
|
+
const list = el(doc, 'ol', { className: 'bb-ws-steps', attrs: { 'aria-label': label } });
|
|
1868
|
+
const controls = [];
|
|
1869
|
+
for (const [index, step] of steps.entries()) {
|
|
1870
|
+
const item = el(doc, 'li');
|
|
1871
|
+
const control = workspaceButton(doc, { attrs: { disabled: step.disabled, 'aria-current': step.id === value ? 'step' : 'false' }, onClick: () => { if (!control.disabled) onChange?.(step.id, step); } });
|
|
1872
|
+
control.className = `bb-ws-step${step.complete === true ? ' is-complete' : ''}`;
|
|
1873
|
+
control.disabled = Boolean(step.disabled);
|
|
1874
|
+
const number = el(doc, 'i', { attrs: { 'aria-hidden': 'true' } });
|
|
1875
|
+
if (step.complete === true) number.append(workspaceActionIcon(doc, 'check')); else number.textContent = String(index + 1);
|
|
1876
|
+
const copy = el(doc, 'span');
|
|
1877
|
+
copy.append(el(doc, 'b', { text: step.label }), el(doc, 'small', { text: step.status }));
|
|
1878
|
+
control.append(number, copy); item.append(control); list.append(item);
|
|
1879
|
+
controls.push({ id: step.id, control });
|
|
1880
|
+
}
|
|
1881
|
+
root.append(identity, list);
|
|
1882
|
+
root.update = next => { for (const { id, control } of controls) control.setAttribute('aria-current', id === next ? 'step' : 'false'); };
|
|
1883
|
+
return root;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
/** Candidate buttons only select a supplied value; the host owns confirmation. */
|
|
1887
|
+
export function workspaceCandidateChoices(doc, { label, items = [], value, disabled = false, onChange } = {}) {
|
|
1888
|
+
const root = el(doc, 'div', { className: 'bb-ws-candidate-choices', attrs: { role: 'group', 'aria-label': label } });
|
|
1889
|
+
const controls = [];
|
|
1890
|
+
for (const item of items) {
|
|
1891
|
+
const control = workspaceButton(doc, { disabled: disabled || item.disabled, onClick: () => { if (!control.disabled) onChange?.(item.value, item); }, attrs: { 'aria-pressed': String(item.value === value) } });
|
|
1892
|
+
control.className = `bb-ws-candidate-choice${item.quiet ? ' is-quiet' : ''}`;
|
|
1893
|
+
control.disabled = Boolean(disabled || item.disabled);
|
|
1894
|
+
const check = workspaceActionIcon(doc, 'check'); check.classList?.add('bb-ws-candidate-check');
|
|
1895
|
+
control.append(check, el(doc, 'span', { text: item.label }));
|
|
1896
|
+
if (item.reason) control.append(el(doc, 'small', { text: item.reason }));
|
|
1897
|
+
root.append(control); controls.push({ item, control });
|
|
1898
|
+
}
|
|
1899
|
+
root.update = (next, options = {}) => {
|
|
1900
|
+
for (const { item, control } of controls) {
|
|
1901
|
+
control.setAttribute('aria-pressed', String(item.value === next));
|
|
1902
|
+
control.disabled = Boolean((options.disabled ?? disabled) || item.disabled);
|
|
1903
|
+
}
|
|
1904
|
+
};
|
|
1905
|
+
return root;
|
|
1906
|
+
}
|
package/ui/world/world-view.css
CHANGED
|
@@ -357,52 +357,6 @@
|
|
|
357
357
|
display: none;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
/* RQ-003: the "?" disclosure and its panel sit above the canvas. The stage's
|
|
361
|
-
first child canvas fills its height and the stage clips overflow, so these
|
|
362
|
-
must be absolutely positioned to stay visible and clickable (not in flow). */
|
|
363
|
-
.bb-world-legend-toggle {
|
|
364
|
-
position: absolute;
|
|
365
|
-
top: var(--bb-space-3);
|
|
366
|
-
right: var(--bb-space-3);
|
|
367
|
-
z-index: 3;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.bb-world-legend-panel {
|
|
371
|
-
position: absolute;
|
|
372
|
-
top: calc(var(--bb-space-3) + 42px);
|
|
373
|
-
right: var(--bb-space-3);
|
|
374
|
-
z-index: 3;
|
|
375
|
-
max-width: min(360px, calc(100% - 24px));
|
|
376
|
-
max-height: calc(100% - 80px);
|
|
377
|
-
overflow: auto;
|
|
378
|
-
display: flex;
|
|
379
|
-
flex-direction: column;
|
|
380
|
-
gap: var(--bb-space-2);
|
|
381
|
-
padding: var(--bb-space-3);
|
|
382
|
-
background: rgb(255 255 255 / 95%);
|
|
383
|
-
border: 1px solid var(--bb-color-border);
|
|
384
|
-
border-radius: var(--bb-radius-md);
|
|
385
|
-
box-shadow: var(--bb-shadow);
|
|
386
|
-
backdrop-filter: blur(4px);
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.bb-world-legend-panel p {
|
|
390
|
-
margin: 0;
|
|
391
|
-
font-size: 12px;
|
|
392
|
-
line-height: 1.6;
|
|
393
|
-
color: var(--bb-color-ink);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.bb-world-legend-panel[hidden] {
|
|
397
|
-
display: none;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
/* Inside the panel the legend is static, not an overlay pinned to the stage. */
|
|
401
|
-
.bb-world-legend-panel .bb-world-legend {
|
|
402
|
-
position: static;
|
|
403
|
-
inset: auto;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
360
|
/* RQ-006: the header sky switch is an icon button. The icon reuses the canvas
|
|
407
361
|
artwork, so its SVG needs the same explicit size or it would balloon and
|
|
408
362
|
break the header (the canvas rule only targets .bb-world-canvas-sky-icon). */
|
|
@@ -734,6 +688,71 @@
|
|
|
734
688
|
.bb-world-label.is-exit.is-unknown,
|
|
735
689
|
.bb-world-label.is-exit.is-unavailable { color: var(--bb-color-muted); }
|
|
736
690
|
|
|
691
|
+
/* Standard presentation help stays above both world and district canvases. */
|
|
692
|
+
.bb-world-legend-toggle {
|
|
693
|
+
position: absolute;
|
|
694
|
+
right: var(--bb-space-3);
|
|
695
|
+
z-index: 6;
|
|
696
|
+
color: var(--bb-color-ink);
|
|
697
|
+
background: var(--bb-color-panel);
|
|
698
|
+
border: 1px solid var(--bb-color-border);
|
|
699
|
+
border-radius: var(--bb-radius-sm);
|
|
700
|
+
top: var(--bb-space-3);
|
|
701
|
+
width: 40px;
|
|
702
|
+
height: 40px;
|
|
703
|
+
font: inherit;
|
|
704
|
+
cursor: pointer;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.bb-world-legend-panel {
|
|
708
|
+
position: absolute;
|
|
709
|
+
right: var(--bb-space-3);
|
|
710
|
+
z-index: 6;
|
|
711
|
+
color: var(--bb-color-ink);
|
|
712
|
+
background: var(--bb-color-panel);
|
|
713
|
+
border: 1px solid var(--bb-color-border);
|
|
714
|
+
border-radius: var(--bb-radius-sm);
|
|
715
|
+
top: calc(var(--bb-space-3) + 48px);
|
|
716
|
+
width: min(440px, calc(100% - 2 * var(--bb-space-3)));
|
|
717
|
+
box-sizing: border-box;
|
|
718
|
+
max-height: calc(100% - 72px);
|
|
719
|
+
overflow: auto;
|
|
720
|
+
padding: var(--bb-space-3);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.bb-world-legend-panel p {
|
|
724
|
+
margin: 0;
|
|
725
|
+
font-size: 12px;
|
|
726
|
+
line-height: 1.6;
|
|
727
|
+
color: var(--bb-color-ink);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.bb-world-legend-panel[hidden] { display: none; }
|
|
731
|
+
|
|
732
|
+
.bb-world-legend-panel .bb-world-legend {
|
|
733
|
+
position: static;
|
|
734
|
+
inset: auto;
|
|
735
|
+
margin-top: var(--bb-space-3);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.bb-world-legend-toggle:focus-visible,
|
|
739
|
+
.bb-world-legend-panel:focus-visible {
|
|
740
|
+
outline: 2px solid var(--bb-color-accent);
|
|
741
|
+
outline-offset: 2px;
|
|
742
|
+
}
|
|
743
|
+
/* No help animation: opening and closing also respects reduced motion. */
|
|
744
|
+
|
|
745
|
+
.bb-world-stage.is-fallback {
|
|
746
|
+
height: auto;
|
|
747
|
+
min-height: 360px;
|
|
748
|
+
padding: 60px var(--bb-space-3) var(--bb-space-3);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/* Notices must reserve their full height before the list, including wrapped text. */
|
|
752
|
+
.bb-world-stage.is-fallback .bb-world-hud {
|
|
753
|
+
position: static;
|
|
754
|
+
max-width: none;
|
|
755
|
+
}
|
|
737
756
|
|
|
738
757
|
/*
|
|
739
758
|
* The pulse of the work (story-world-three-scales-v1): the panel whose contents follow the scale the
|
package/ui/world/world-view.js
CHANGED
|
@@ -44,12 +44,12 @@ import {
|
|
|
44
44
|
workspaceButton,
|
|
45
45
|
} from '../../workspace-kit.js';
|
|
46
46
|
|
|
47
|
-
let worldLegendSequence = 0;
|
|
48
|
-
|
|
49
47
|
export const WORLD_VIEW_CONTRACT_VERSION = 'brainbase.world-view.v0';
|
|
50
48
|
/** Optional full-canvas presentation; the standard host contract remains unchanged. */
|
|
51
49
|
export const WORLD_CANVAS_PRESENTATION_VERSION = 'brainbase.world-canvas.v1';
|
|
52
50
|
|
|
51
|
+
let legendPanelSequence = 0;
|
|
52
|
+
|
|
53
53
|
const STATE_LABELS = Object.freeze({ delegated: '任せている', verifying: '確かめ中', returned: '戻している' });
|
|
54
54
|
const STATE_COLORS = Object.freeze({ delegated: 0x087d62, verifying: 0xc99a3a, returned: 0xd92335 });
|
|
55
55
|
const REASON_LABELS = Object.freeze({
|
|
@@ -1568,7 +1568,7 @@ function memoryLines(answer) {
|
|
|
1568
1568
|
if (Number.isInteger(count) && count >= 0) {
|
|
1569
1569
|
const href = typeof answer.review_href === 'string' && exitHrefKind(answer.review_href) ? answer.review_href : null;
|
|
1570
1570
|
const link = href && count > 0 ? { href, label: '候補の確認を開く', className: 'bb-world-memory-link' } : null;
|
|
1571
|
-
if (count > 0) lines.push({ text: `あなたが決める記憶の候補 ${count}
|
|
1571
|
+
if (count > 0) lines.push({ text: `あなたが決める記憶の候補 ${count}件。取り込んだものだけが正式な記録になります。`, tone: 'attention', summary: `あなたが決める記憶の候補 ${count}件`, link });
|
|
1572
1572
|
else lines.push({ text: 'あなたが決める記憶の候補はありません。', tone: 'info', summary: null });
|
|
1573
1573
|
} else {
|
|
1574
1574
|
lines.push({ text: '記憶の候補:読めない。件数は0件とは確認できません。', tone: 'warning', summary: '記憶の候補:読めない' });
|
|
@@ -1779,23 +1779,32 @@ export function createWorldView({ root, rail, page, presentation = 'standard', d
|
|
|
1779
1779
|
if (page?.source) help.append(el(doc, 'p', { text: page.source }));
|
|
1780
1780
|
canvasUI.setHelp([help]);
|
|
1781
1781
|
} else {
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1782
|
+
const panelId = `bb-world-legend-${++legendPanelSequence}`;
|
|
1783
|
+
const legendPanel = el(doc, 'section', {
|
|
1784
|
+
className: 'bb-world-legend-panel',
|
|
1785
|
+
attrs: { id: panelId, 'aria-label': '世界の見方と凡例', tabindex: '-1' },
|
|
1786
|
+
});
|
|
1786
1787
|
legendPanel.hidden = true;
|
|
1788
|
+
legendPanel.inert = true;
|
|
1789
|
+
workLegend.hidden = false;
|
|
1787
1790
|
legendPanel.append(el(doc, 'p', { text: '事業を都市、案件を区画、判断の種類を広場の建物として描いています。都市を選ぶとその事業の区画に入り、仕事(タスク)が通りに面した現場として建ち、記録から把握できていないことが街の様子で見えます。' }), legend, workLegend, el(doc, 'p', { className: 'bb-world-legend-pulse', text: '左下の「いまの動き」は、世界・事業・通り(仕事の集まり)の順に、見ている階層の動きを出します。「進行中」「待ち」はタスクの記録の言葉で、AIを「動いている」と出すのは、進行中のタスクと5分以内の稼働の知らせが一致したときだけです。' }));
|
|
1788
|
-
const legendToggle =
|
|
1789
|
-
text: '?',
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
}
|
|
1791
|
+
const legendToggle = el(doc, 'button', {
|
|
1792
|
+
className: 'bb-world-legend-toggle', text: '?',
|
|
1793
|
+
attrs: { type: 'button', title: '世界の見方と凡例', 'aria-label': '世界の見方と凡例', 'aria-controls': panelId, 'aria-expanded': 'false' },
|
|
1794
|
+
});
|
|
1795
|
+
const setLegendOpen = (open) => {
|
|
1796
|
+
legendPanel.hidden = !open;
|
|
1797
|
+
legendPanel.inert = !open;
|
|
1798
|
+
legendToggle.setAttribute('aria-expanded', String(open));
|
|
1799
|
+
(open ? legendPanel : legendToggle).focus?.({ preventScroll: true });
|
|
1800
|
+
};
|
|
1801
|
+
legendToggle.addEventListener('click', () => setLegendOpen(legendPanel.hidden));
|
|
1802
|
+
legendPanel.addEventListener('keydown', (event) => {
|
|
1803
|
+
if (event.key !== 'Escape' || event.defaultPrevented) return;
|
|
1804
|
+
event.preventDefault();
|
|
1805
|
+
event.stopPropagation();
|
|
1806
|
+
setLegendOpen(false);
|
|
1797
1807
|
});
|
|
1798
|
-
legendToggle.classList.add('bb-world-legend-toggle');
|
|
1799
1808
|
stage.append(notices, legendToggle, legendPanel);
|
|
1800
1809
|
wrap.append(header, stage);
|
|
1801
1810
|
}
|
|
@@ -2872,8 +2881,8 @@ export function createWorldView({ root, rail, page, presentation = 'standard', d
|
|
|
2872
2881
|
restoreSelection();
|
|
2873
2882
|
void loadWorkSummary(note);
|
|
2874
2883
|
} else {
|
|
2875
|
-
stage.
|
|
2876
|
-
renderFallbackList(doc,
|
|
2884
|
+
stage.classList.add('is-fallback');
|
|
2885
|
+
renderFallbackList(doc, stage, businesses, rows, exitSlot);
|
|
2877
2886
|
}
|
|
2878
2887
|
for (const business of exitsEnabled ? businesses : []) loadExits(business);
|
|
2879
2888
|
return;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import { ExecutionAuthorityService, type ExecutionAttribution, type ExecutionProblemReference } from './execution-authority.js';
|
|
3
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
4
|
-
/** Context resolved by the host after authentication and tenant selection. */
|
|
5
|
-
export interface TrustedExecutionAuthorityRequestContext {
|
|
6
|
-
tenantId: string;
|
|
7
|
-
principal: string;
|
|
8
|
-
scopeId: string;
|
|
9
|
-
/** A non-empty value means that the host already verified the mutation origin. */
|
|
10
|
-
verifiedMutationOrigin?: string;
|
|
11
|
-
/** Resolved by the host from authentication. Request bodies cannot supply it. */
|
|
12
|
-
attribution?: ExecutionAttribution;
|
|
13
|
-
}
|
|
14
|
-
/** The factory is the boundary where a host binds a service to its trusted context. */
|
|
15
|
-
export type ExecutionAuthorityServiceFactory = (context: TrustedExecutionAuthorityRequestContext) => MaybePromise<Pick<ExecutionAuthorityService, 'start' | 'readIntent'> & Partial<Pick<ExecutionAuthorityService, 'register' | 'reportEffect'>>>;
|
|
16
|
-
export interface ExecutionAuthorityMutationVerificationInput {
|
|
17
|
-
request: IncomingMessage;
|
|
18
|
-
context: TrustedExecutionAuthorityRequestContext;
|
|
19
|
-
}
|
|
20
|
-
export interface ExecutionAuthorityHttpOptions {
|
|
21
|
-
serviceFactory: ExecutionAuthorityServiceFactory;
|
|
22
|
-
basePath?: string;
|
|
23
|
-
bodyLimitBytes?: number;
|
|
24
|
-
/** Required for hosts that do not attach verifiedMutationOrigin to context. */
|
|
25
|
-
verifyMutationRequest?: (input: ExecutionAuthorityMutationVerificationInput) => MaybePromise<boolean>;
|
|
26
|
-
}
|
|
27
|
-
/** A composable route handler. `false` means that the request is outside this route. */
|
|
28
|
-
export type ExecutionAuthorityHttpHandler = (request: IncomingMessage, response: ServerResponse, context: TrustedExecutionAuthorityRequestContext | null) => Promise<boolean>;
|
|
29
|
-
export declare function createExecutionAuthorityHttpHandler(options: ExecutionAuthorityHttpOptions): ExecutionAuthorityHttpHandler;
|
|
30
|
-
export type { ExecutionProblemReference };
|