@firstpick/pi-package-webui 0.6.3 → 0.6.5

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/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=63" />
15
+ <link rel="stylesheet" href="/styles.css?v=66" />
16
16
  </head>
17
17
  <body>
18
18
  <button id="sidePanelExpandButton" class="side-panel-expand-button" type="button" aria-controls="sidePanel" aria-expanded="false" aria-label="Expand side panel" title="Expand side panel">
@@ -214,7 +214,7 @@
214
214
  aria-haspopup="menu"
215
215
  aria-expanded="false"
216
216
  aria-controls="optionsMenu"
217
- data-tooltip="Options: command palette, natural conversation, resume, reload, remote, name, clone, settings, export, fork, or tree."
217
+ data-tooltip="Options: command palette, Git-footer Visibility, natural conversation, resume, reload, remote, name, clone, settings, export, fork, or tree."
218
218
  ><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 7h16M4 12h16M4 17h16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="8" cy="7" r="1.6" fill="currentColor"/><circle cx="16" cy="12" r="1.6" fill="currentColor"/><circle cx="11" cy="17" r="1.6" fill="currentColor"/></svg></button>
219
219
  <div id="optionsMenu" class="composer-publish-menu-panel composer-options-menu-panel" role="menu" aria-label="Common Pi options">
220
220
  <button id="optionsCommandPaletteButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem">
@@ -229,6 +229,9 @@
229
229
  <button id="optionsStatsButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/stats-webui" hidden>
230
230
  <span>Stats Dashboard</span>
231
231
  </button>
232
+ <button id="optionsFooterVisibilityButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" hidden>
233
+ <span>Git-footer Visibility</span>
234
+ </button>
232
235
  <button id="optionsForkButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/fork">
233
236
  <span>Fork</span>
234
237
  </button>
@@ -331,6 +334,39 @@
331
334
  <iframe id="terminalSplitFrame" class="terminal-split-frame" title="Independent split terminal"></iframe>
332
335
  </section>
333
336
 
337
+ <section id="fileViewerPane" class="file-viewer-pane" aria-label="File viewer and editor" hidden>
338
+ <div id="fileViewerResizeHandle" class="file-viewer-resize-handle" role="separator" aria-orientation="vertical" aria-label="Resize file viewer width" tabindex="0" title="Drag to resize file viewer"></div>
339
+ <header class="file-viewer-header">
340
+ <div class="file-viewer-title-block">
341
+ <span class="file-viewer-kicker">File</span>
342
+ <strong id="fileViewerTitle">No file open</strong>
343
+ <span id="fileViewerMeta" class="file-viewer-meta muted"></span>
344
+ </div>
345
+ <div class="file-viewer-actions">
346
+ <button id="fileViewerOpenDefaultButton" type="button">Open in Default Editor</button>
347
+ <button id="fileViewerSaveButton" class="primary" type="button" disabled>Save</button>
348
+ <button id="fileViewerCloseButton" type="button" aria-label="Close file viewer">Close</button>
349
+ </div>
350
+ </header>
351
+ <p id="fileViewerHelp" class="file-viewer-help muted">Markdown files can be viewed as Preview or Source. Select text in the file, add a one-line comment, then Send to include the selection and surrounding context in this Pi session.</p>
352
+ <div id="fileSelectionBar" class="file-selection-bar" hidden>
353
+ <span id="fileSelectionSummary" class="file-selection-summary">No selection</span>
354
+ <input id="fileSelectionCommentInput" class="file-selection-comment" type="text" placeholder="Comment for Pi about this selection…" autocomplete="off" />
355
+ <button id="fileSelectionSendButton" class="primary" type="button">Send</button>
356
+ </div>
357
+ <div class="file-viewer-mode-row">
358
+ <div class="file-viewer-mode-toggle" role="group" aria-label="File view mode">
359
+ <button id="fileViewerSourceModeButton" type="button" aria-pressed="true">Source</button>
360
+ <button id="fileViewerPreviewModeButton" type="button" aria-pressed="false">Preview</button>
361
+ </div>
362
+ </div>
363
+ <div class="file-viewer-content">
364
+ <textarea id="fileViewerEditor" class="file-viewer-editor" spellcheck="false" aria-label="File contents"></textarea>
365
+ <div id="fileViewerPreview" class="file-viewer-preview markdown-body" tabindex="0" hidden></div>
366
+ </div>
367
+ <p id="fileViewerStatus" class="file-viewer-status muted" role="status" aria-live="polite"></p>
368
+ </section>
369
+
334
370
  <button id="sidePanelBackdrop" class="side-panel-backdrop" type="button" aria-label="Close side panel" hidden></button>
335
371
  <aside id="sidePanel" class="side-panel">
336
372
  <div class="side-panel-header">
@@ -458,6 +494,32 @@
458
494
  </div>
459
495
  </div>
460
496
  </section>
497
+ <section class="side-panel-section collapsed" data-side-panel-section="files">
498
+ <h2>
499
+ <button id="sidePanelSectionToggleFiles" class="side-panel-section-toggle" type="button" aria-expanded="false" aria-controls="sidePanelSectionFiles" aria-label="Expand Files section" title="Expand Files section" data-side-panel-section-toggle="files">
500
+ <span class="side-panel-section-label">Files</span>
501
+ <span class="side-panel-section-chevron" aria-hidden="true">›</span>
502
+ </button>
503
+ </h2>
504
+ <div id="sidePanelSectionFiles" class="side-panel-section-content" hidden>
505
+ <div class="file-tree-panel">
506
+ <div class="file-tree-toolbar">
507
+ <div>
508
+ <strong>Workspace files</strong>
509
+ <p id="fileTreeCwd" class="file-tree-cwd muted"></p>
510
+ </div>
511
+ <button id="fileTreeRefreshButton" type="button">Refresh</button>
512
+ </div>
513
+ <div class="file-tree-search" role="search">
514
+ <input id="fileTreeSearchInput" class="file-tree-search-input" type="search" placeholder="Search files and folders…" autocomplete="off" spellcheck="false" aria-label="Search workspace files and folders" />
515
+ <button id="fileTreeSearchClearButton" type="button" aria-label="Clear file search" hidden disabled>Clear</button>
516
+ </div>
517
+ <p class="file-tree-hint muted">Double-click a file to open it in WebUI. Right-click files or folders for WebUI/default-editor actions. Folders expand lazily and start collapsed.</p>
518
+ <div id="fileTreeRoot" class="file-tree" role="tree" aria-label="Workspace file tree"></div>
519
+ <p id="fileTreeStatus" class="file-tree-status muted" role="status" aria-live="polite"></p>
520
+ </div>
521
+ </div>
522
+ </section>
461
523
  <section class="side-panel-section collapsed" data-side-panel-section="optional-features">
462
524
  <h2>
463
525
  <button id="sidePanelSectionToggleOptionalFeatures" class="side-panel-section-toggle" type="button" aria-expanded="false" aria-controls="sidePanelSectionOptionalFeatures" aria-label="Expand Optional features section" title="Expand Optional features section" data-side-panel-section-toggle="optional-features">
@@ -562,6 +624,13 @@
562
624
  </aside>
563
625
  </main>
564
626
 
627
+ <div id="fileContextMenu" class="file-context-menu" role="menu" hidden>
628
+ <button type="button" role="menuitem" data-file-menu-action="open-default">Open in Default Editor</button>
629
+ <button type="button" role="menuitem" data-file-menu-action="open-webui">Open in WebUI</button>
630
+ <button type="button" role="menuitem" data-file-menu-action="move">Move/Rename…</button>
631
+ <button type="button" role="menuitem" class="danger" data-file-menu-action="delete">Delete…</button>
632
+ </div>
633
+
565
634
  <dialog id="extensionDialog" class="extension-dialog">
566
635
  <form id="dialogForm" method="dialog">
567
636
  <h2 id="dialogTitle">Pi request</h2>
@@ -601,6 +670,7 @@
601
670
  </div>
602
671
  <div class="git-changes-actions">
603
672
  <button id="gitChangesRefreshButton" type="button">Refresh</button>
673
+ <button id="gitChangesFetchButton" type="button">Fetch</button>
604
674
  <button id="gitChangesPullButton" class="primary" type="button" disabled>Pull</button>
605
675
  </div>
606
676
  </div>
@@ -740,6 +810,24 @@
740
810
  </form>
741
811
  </dialog>
742
812
 
813
+ <dialog id="gitFooterVisibilityDialog" class="extension-dialog git-footer-visibility-dialog">
814
+ <form method="dialog">
815
+ <h2>Git-footer Visibility</h2>
816
+ <p class="muted">Select which Git footer cards, buttons, popovers, and modal affordances are visible in the Web UI. Changes use <code>/git-footer-visibility</code> runtime overrides.</p>
817
+ <div class="git-footer-visibility-toolbar" aria-label="Git-footer Visibility quick actions">
818
+ <button id="gitFooterVisibilitySelectAllButton" type="button">Select all</button>
819
+ <button id="gitFooterVisibilitySelectNoneButton" type="button">Select none</button>
820
+ </div>
821
+ <div id="gitFooterVisibilityBody" class="git-footer-visibility-body"></div>
822
+ <p id="gitFooterVisibilityStatus" class="git-footer-visibility-status muted" role="status" aria-live="polite"></p>
823
+ <menu>
824
+ <button id="gitFooterVisibilityCloseButton" type="button">Cancel</button>
825
+ <button id="gitFooterVisibilityResetButton" type="button">Reset WebUI</button>
826
+ <button id="gitFooterVisibilityApplyButton" class="primary" type="button">Apply</button>
827
+ </menu>
828
+ </form>
829
+ </dialog>
830
+
743
831
  <dialog id="skillEditorDialog" class="extension-dialog skill-editor-dialog">
744
832
  <form method="dialog">
745
833
  <h2 id="skillEditorTitle">Edit skill</h2>
@@ -794,6 +882,6 @@
794
882
  </form>
795
883
  </dialog>
796
884
 
797
- <script type="module" src="/app.js?v=62"></script>
885
+ <script type="module" src="/app.js?v=66"></script>
798
886
  </body>
799
887
  </html>