@firstpick/pi-package-webui 0.8.7 → 0.8.9
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/README.md +5 -0
- package/bin/pi-webui-rpc-supervisor.mjs +4 -1
- package/bin/pi-webui.mjs +9 -1
- package/lib/rpc-supervisor-protocol.mjs +6 -1
- package/package.json +1 -1
- package/public/app.js +679 -128
- package/public/index.html +49 -13
- package/public/service-worker.js +1 -1
- package/public/styles.css +836 -16
- package/tests/boot-failure-diagnostics.test.mjs +3 -3
- package/tests/browser/interaction-continuity.spec.mjs +58 -0
- package/tests/browser/mobile-foundation.spec.mjs +363 -5
- package/tests/browser/optimistic-prompt.spec.mjs +24 -10
- package/tests/browser/persistent-ui-layout.spec.mjs +2 -0
- package/tests/browser/side-panel-section-reorder.spec.mjs +16 -1
- package/tests/codex-fast-mode-static.test.mjs +2 -2
- package/tests/composer-action-grid-reorder-static.test.mjs +3 -3
- package/tests/fast-mode-client-static.test.mjs +1 -1
- package/tests/feature-decision-output-popup-static.test.mjs +2 -2
- package/tests/file-tree-search-layout-static.test.mjs +261 -0
- package/tests/fixtures/fake-pi.mjs +6 -2
- package/tests/http-endpoints-harness.test.mjs +6 -2
- package/tests/middle-button-drag-scroll-static.test.mjs +3 -3
- package/tests/mobile-compact-layout.test.mjs +60 -0
- package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
- package/tests/mobile-foundation-static.test.mjs +12 -12
- package/tests/mobile-phone-experience-static.test.mjs +2 -2
- package/tests/mobile-static.test.mjs +226 -21
- package/tests/open-issue-wizard-static.test.mjs +1 -1
- package/tests/optional-feature-migration-frontend.test.mjs +4 -0
- package/tests/persistent-ui-layout-static.test.mjs +3 -3
- package/tests/prompt-routing-tab-status.test.mjs +8 -0
- package/tests/questionnaire-dialog.test.mjs +3 -3
- package/tests/rpc-supervisor-host.test.mjs +18 -1
- package/tests/rpc-supervisor-protocol.test.mjs +5 -0
- package/tests/session-sampling-ui-static.test.mjs +3 -3
- package/tests/side-panel-section-height-removal-static.test.mjs +3 -3
- package/tests/side-panel-section-reorder-static.test.mjs +23 -10
- package/tests/streaming-ui-coupling.test.mjs +8 -0
- package/tests/terminal-tab-workspace-static.test.mjs +15 -1
- package/tests/theme-customizer-static.test.mjs +1 -1
package/public/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
13
13
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
14
14
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
15
|
-
<link rel="stylesheet" href="/styles.css?v=
|
|
15
|
+
<link rel="stylesheet" href="/styles.css?v=107" />
|
|
16
16
|
<script>
|
|
17
17
|
// Public-only issue-bot runtime configuration. Keep disabled unless the gateway,
|
|
18
18
|
// Turnstile site key, exact CORS origin, and private-report destination are approved.
|
|
@@ -194,8 +194,9 @@
|
|
|
194
194
|
|
|
195
195
|
<main class="layout">
|
|
196
196
|
<section class="chat-panel">
|
|
197
|
-
<header class="terminal-tabs-shell">
|
|
198
|
-
<button id="terminalTabsToggleButton" class="terminal-tabs-toggle-button" type="button" aria-controls="
|
|
197
|
+
<header class="terminal-tabs-shell" aria-label="Terminal navigation">
|
|
198
|
+
<button id="terminalTabsToggleButton" class="terminal-tabs-toggle-button" type="button" aria-controls="terminalTabsDrawerContent" aria-expanded="false">Tabs</button>
|
|
199
|
+
<div id="terminalTabsDrawerContent" class="terminal-tabs-drawer-content" role="region" aria-label="Terminal navigation">
|
|
199
200
|
<div id="tabBar" class="terminal-tabs" role="tablist" aria-label="Pi terminal tabs">
|
|
200
201
|
<div id="newTabMenu" class="terminal-new-tab-menu composer-publish-menu">
|
|
201
202
|
<button id="newTabButton" class="terminal-new-tab-button" type="button" aria-label="Start a separate isolated Pi terminal" aria-haspopup="menu" aria-expanded="false" aria-controls="newTabMenuPanel">+ Tab ▾</button>
|
|
@@ -213,7 +214,9 @@
|
|
|
213
214
|
</div>
|
|
214
215
|
<div id="remoteAccessIndicator" class="remote-access-indicator" role="status" aria-live="polite" hidden>Remote access open</div>
|
|
215
216
|
<button id="closeAllTabsButton" class="terminal-close-all-button" type="button" aria-label="Close all terminal tabs">Close all Tabs</button>
|
|
217
|
+
</div>
|
|
216
218
|
</header>
|
|
219
|
+
<button id="terminalTabsBackdrop" class="terminal-tabs-backdrop" type="button" aria-label="Close terminal navigation" tabindex="-1" hidden></button>
|
|
217
220
|
<section id="workspaceDashboard" class="workspace-dashboard" aria-label="Workspace dashboard"></section>
|
|
218
221
|
<div id="widgetArea" class="widget-area"></div>
|
|
219
222
|
<section id="subagentTerminalView" class="subagent-terminal-view" aria-labelledby="subagentTerminalTitle" hidden>
|
|
@@ -281,6 +284,7 @@
|
|
|
281
284
|
<div id="chat" class="chat" aria-live="polite">
|
|
282
285
|
<button id="stickyUserPromptButton" class="sticky-user-prompt-button" type="button" aria-controls="chat" hidden></button>
|
|
283
286
|
</div>
|
|
287
|
+
<div id="runIndicatorHost" class="run-indicator-host"></div>
|
|
284
288
|
<div id="feedbackTray" class="feedback-tray" aria-live="polite" hidden>
|
|
285
289
|
<span id="feedbackTraySummary">No action feedback queued.</span>
|
|
286
290
|
<button id="sendFeedbackButton" type="button">Send & create LEARNING</button>
|
|
@@ -379,8 +383,9 @@
|
|
|
379
383
|
</section>
|
|
380
384
|
<div id="attachmentTray" class="attachment-tray" aria-live="polite" hidden></div>
|
|
381
385
|
<div class="composer-row">
|
|
382
|
-
<button id="composerActionsButton" class="composer-actions-button" type="button" aria-controls="composerActionsPanel" aria-expanded="false" title="
|
|
383
|
-
<div id="composerActionsPanel" class="composer-actions-panel" aria-label="
|
|
386
|
+
<button id="composerActionsButton" class="composer-actions-button" type="button" aria-controls="composerActionsPanel" aria-expanded="false" title="Show more composer actions">More</button>
|
|
387
|
+
<div id="composerActionsPanel" class="composer-actions-panel" aria-label="More composer actions">
|
|
388
|
+
<h2 class="composer-actions-heading composer-actions-heading-session">Session & workspace</h2>
|
|
384
389
|
<button id="newSessionButton" class="composer-new-button" type="button" data-composer-action-id="new" data-composer-action-span="1">New</button>
|
|
385
390
|
<button id="compactButton" class="composer-compact-button" type="button" title="Compact the current Pi session context" data-composer-action-id="compact" data-composer-action-span="2">Compact</button>
|
|
386
391
|
<button
|
|
@@ -394,6 +399,7 @@
|
|
|
394
399
|
aria-label="Start guided Git workflow: stage all changes, generate and preview staged commit messages, optionally open a PR branch worktree, commit short or long there, then push or create a pull request. Cancel is available at each step."
|
|
395
400
|
data-tooltip="Guided Git workflow: 1. Stage all changes with git add . 2. Generate and preview staged commit messages. 3. Optional: create or type a PR branch worktree before committing. 4. Commit with the short or long message in the worktree tab. 5. Push normally, or push the PR worktree branch, generate/review /pr, and create the PR. Cancel is available at each step."
|
|
396
401
|
><svg class="composer-icon composer-icon-github" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></button>
|
|
402
|
+
<h2 class="composer-actions-heading composer-actions-heading-tools">Tools & commands</h2>
|
|
397
403
|
<div class="composer-publish-menu" data-composer-action-id="publish" data-composer-action-span="1" hidden>
|
|
398
404
|
<button
|
|
399
405
|
id="publishButton"
|
|
@@ -576,6 +582,7 @@
|
|
|
576
582
|
><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M8 5v14l11-7z" fill="currentColor"/></svg></button>
|
|
577
583
|
<div id="appRunnerMenuPanel" class="composer-publish-menu-panel composer-app-runner-menu-panel composer-auto-height-menu-panel" role="menu" aria-label="Detected app runners"></div>
|
|
578
584
|
</div>
|
|
585
|
+
<h2 class="composer-actions-heading composer-actions-heading-context">Context & modes</h2>
|
|
579
586
|
</div>
|
|
580
587
|
<div class="spacer"></div>
|
|
581
588
|
<button
|
|
@@ -688,18 +695,25 @@
|
|
|
688
695
|
<a class="sponsor-link" href="https://github.com/sponsors/Firstp1ck" target="_blank" rel="noopener noreferrer" aria-label="Sponsor Firstp1ck on GitHub" title="Sponsor Firstp1ck on GitHub">♡</a>
|
|
689
696
|
</div>
|
|
690
697
|
<strong class="side-panel-title">Control Deck</strong>
|
|
698
|
+
<span id="sidePanelEditHint" class="side-panel-edit-hint" role="status" aria-live="polite" hidden>Drag sections or use Alt+↑/↓</span>
|
|
691
699
|
<div class="side-panel-version-row" aria-label="Version and build information">
|
|
692
700
|
<button id="piVersionButton" class="pi-version-button" type="button" aria-label="View Pi release notes" aria-haspopup="dialog" aria-controls="piReleaseNotesDialog" hidden></button>
|
|
693
701
|
<button id="webuiVersionButton" class="webui-version-button" type="button" aria-label="Open Pi Web UI package and update details" aria-haspopup="dialog" aria-controls="webuiPackageDialog" hidden></button>
|
|
694
702
|
<span id="webuiDevBadge" class="webui-dev-badge" aria-label="Pi Web UI dev server" hidden>DEV</span>
|
|
695
703
|
</div>
|
|
696
704
|
</div>
|
|
697
|
-
<
|
|
698
|
-
<
|
|
699
|
-
<span
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
705
|
+
<div class="side-panel-header-actions">
|
|
706
|
+
<button id="sidePanelEditButton" class="side-panel-edit-button" type="button" aria-controls="sidePanel" aria-pressed="false" aria-label="Edit Control Deck section order" title="Edit Control Deck section order">
|
|
707
|
+
<span aria-hidden="true">↕</span>
|
|
708
|
+
<span class="side-panel-edit-button-label">Edit</span>
|
|
709
|
+
</button>
|
|
710
|
+
<button id="toggleSidePanelButton" class="side-panel-toggle-button" type="button" aria-controls="sidePanel" aria-expanded="true" aria-label="Collapse side panel" title="Collapse side panel">
|
|
711
|
+
<span class="side-panel-button-icon" aria-hidden="true">
|
|
712
|
+
<span></span><span></span><span></span>
|
|
713
|
+
</span>
|
|
714
|
+
<span class="side-panel-button-chevron" aria-hidden="true">›</span>
|
|
715
|
+
</button>
|
|
716
|
+
</div>
|
|
703
717
|
</div>
|
|
704
718
|
<div class="side-panel-body">
|
|
705
719
|
<section class="side-panel-section collapsed" data-side-panel-section="controls">
|
|
@@ -864,7 +878,7 @@
|
|
|
864
878
|
</label>
|
|
865
879
|
<div class="network-action-row">
|
|
866
880
|
<button id="openNetworkButton" type="button">Open for remote access</button>
|
|
867
|
-
<button id="showRemoteQrButton" type="button" hidden>
|
|
881
|
+
<button id="showRemoteQrButton" type="button" hidden>Open QR-Code</button>
|
|
868
882
|
</div>
|
|
869
883
|
</section>
|
|
870
884
|
|
|
@@ -1345,6 +1359,28 @@
|
|
|
1345
1359
|
</form>
|
|
1346
1360
|
</dialog>
|
|
1347
1361
|
|
|
1362
|
+
<dialog id="gitPullErrorDialog" class="extension-dialog git-pull-error-dialog" aria-labelledby="gitPullErrorDialogTitle" aria-describedby="gitPullErrorDialogDescription gitPullErrorOutput">
|
|
1363
|
+
<form method="dialog">
|
|
1364
|
+
<h2 id="gitPullErrorDialogTitle">Git pull failed</h2>
|
|
1365
|
+
<p id="gitPullErrorDialogDescription" class="muted">The repository was not changed by the failed pull. Review or copy the complete error output below.</p>
|
|
1366
|
+
<pre id="gitPullErrorOutput" class="git-pull-error-output" tabindex="0"></pre>
|
|
1367
|
+
<section id="gitPullErrorRecovery" class="git-pull-error-recovery" aria-labelledby="gitPullErrorRecoveryTitle" hidden>
|
|
1368
|
+
<strong id="gitPullErrorRecoveryTitle">Choose how to integrate the histories</strong>
|
|
1369
|
+
<p>Merge preserves both histories and is the default. Rebase rewrites local commit IDs. Neither action runs without confirmation.</p>
|
|
1370
|
+
<div class="git-pull-error-recovery-actions">
|
|
1371
|
+
<button id="gitPullErrorReviewButton" type="button">Review changes</button>
|
|
1372
|
+
<button id="gitPullErrorRebaseButton" type="button">Rebase commits</button>
|
|
1373
|
+
<button id="gitPullErrorMergeButton" class="primary" type="button">Merge changes</button>
|
|
1374
|
+
</div>
|
|
1375
|
+
</section>
|
|
1376
|
+
<p id="gitPullErrorStatus" class="git-pull-error-status muted" role="status" aria-live="polite" aria-atomic="true"></p>
|
|
1377
|
+
<menu>
|
|
1378
|
+
<button id="gitPullErrorCopyButton" type="button">Copy error output</button>
|
|
1379
|
+
<button id="gitPullErrorCloseButton" type="button">Close</button>
|
|
1380
|
+
</menu>
|
|
1381
|
+
</form>
|
|
1382
|
+
</dialog>
|
|
1383
|
+
|
|
1348
1384
|
<dialog id="workspaceLoadDialog" class="extension-dialog workspace-load-dialog" aria-labelledby="workspaceLoadDialogTitle" aria-describedby="workspaceLoadDialogDescription">
|
|
1349
1385
|
<form method="dialog">
|
|
1350
1386
|
<header class="workspace-load-dialog-header">
|
|
@@ -1712,7 +1748,7 @@
|
|
|
1712
1748
|
</form>
|
|
1713
1749
|
</dialog>
|
|
1714
1750
|
|
|
1715
|
-
<script id="webuiBootLoader" data-app-src="/app.js?v=
|
|
1751
|
+
<script id="webuiBootLoader" data-app-src="/app.js?v=121">
|
|
1716
1752
|
(() => {
|
|
1717
1753
|
"use strict";
|
|
1718
1754
|
|
package/public/service-worker.js
CHANGED