cornfield 0.50.0 → 0.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/explorer/focus-room.js +1 -7
- package/explorer/focusables.js +1 -1
- package/explorer/forge-panel.js +36 -2630
- package/explorer/index.html +15 -147
- package/explorer/instance-state.js +0 -7
- package/explorer/instance.js +16 -1
- package/explorer/page-pieces.js +21 -2
- package/explorer/page.js +3 -3
- package/explorer/panels.js +1 -5
- package/explorer/pieces/layers.js +1 -0
- package/explorer/pieces/node-panel.js +15 -5
- package/explorer/pieces/proposal.js +9 -0
- package/explorer/pieces/work-agent.js +211 -0
- package/explorer/pieces/work-common.js +88 -0
- package/explorer/pieces/work-confirm.js +169 -0
- package/explorer/pieces/work-data.js +178 -0
- package/explorer/pieces/work-deploys.js +104 -0
- package/explorer/pieces/work-events.js +285 -0
- package/explorer/pieces/work-issues.js +43 -0
- package/explorer/pieces/work-markup.js +155 -0
- package/explorer/pieces/work-notes.js +177 -0
- package/explorer/pieces/work-paint.js +312 -0
- package/explorer/pieces/work-prs.js +253 -0
- package/explorer/pieces/work-runs.js +387 -0
- package/explorer/pieces/work-specs.js +71 -0
- package/explorer/pieces/work-threads.js +309 -0
- package/explorer/pieces/work.js +285 -0
- package/explorer/proposal.js +1 -2
- package/explorer/runs-map.js +108 -103
- package/explorer/runs-view.js +8 -6
- package/explorer/strings.js +1 -1
- package/explorer/waiting-model.js +12 -12
- package/explorer/waiting-view.js +6 -6
- package/package.json +1 -1
- package/explorer/feedback.js +0 -15
- package/explorer/waiting-line.js +0 -14
package/explorer/focus-room.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* A control that is tabbed to inside a strip that scrolls sideways (the Work panel's tabs) is brought fully into view, ring and all
|
|
5
5
|
* (CF review F54). A browser scrolls a focused control only until it is "mostly" visible, and the last tab was left a few pixels under
|
|
6
6
|
* the strip's edge, with its focus ring cut. `scroll-padding-inline` in css/work.css says how much room to leave; this asks for the scroll.
|
|
7
|
+
* The Work piece (pieces/work.js) listens for focus in its own root and asks.
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
/** The strips: a scroll container whose children are tabbed to */
|
|
@@ -17,10 +18,3 @@ export function revealInStrip(el) {
|
|
|
17
18
|
el.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
18
19
|
return true;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
/** Listens for focus on the whole page, once. Returns how to stop. */
|
|
22
|
-
export function watchFocusRoom(doc = document) {
|
|
23
|
-
const on = (event) => revealInStrip(event.target);
|
|
24
|
-
doc.addEventListener('focusin', on);
|
|
25
|
-
return () => doc.removeEventListener('focusin', on);
|
|
26
|
-
}
|
package/explorer/focusables.js
CHANGED
|
@@ -28,7 +28,7 @@ export function trapTab(e, root) {
|
|
|
28
28
|
const stops = focusableIn(root);
|
|
29
29
|
e.preventDefault();
|
|
30
30
|
if (!stops.length) return true;
|
|
31
|
-
const at = stops.indexOf(
|
|
31
|
+
const at = stops.indexOf(root.getRootNode().activeElement); // the focus in the dialog's own tree: a shadow root's, not the host's
|
|
32
32
|
const next = e.shiftKey ? (at <= 0 ? stops.length - 1 : at - 1) : (at === -1 || at === stops.length - 1 ? 0 : at + 1);
|
|
33
33
|
stops[next].focus();
|
|
34
34
|
return true;
|