mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3550] [CLOSED] [GUI] add Load and Unload to the chat header #4683
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4683
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3550
Author: @sakuumomo
Created: 10/21/2026
Status: ❌ Closed
Base:
main← Head:pr/gui-header-load-unload📝 Commits (1)
621789dAdd Load and Unload to the web page header📊 Changes
5 files changed (+312 additions, -11 deletions)
View changed files
📝
docs/DETAILS.md(+3 -1)➕
serve/test_web_load_unload.py(+55 -0)📝
serve/web/app.css(+19 -3)📝
serve/web/app.js(+233 -7)📝
serve/web/index.html(+2 -0)📄 Description
Problem and result: The monitor page posts
/loadand/unload. The chat page had no way to do that. The chat header now posts the same two routes. Metrics stay unloaded until the engine is ready, so the button follows a load, a reply, or an image job started on this page until a sample agrees. A chat reply stays ahead of an image request on this page. A confirmed unload stays an unload if a poll arrives during the dialog.A narrow window scrolls the tab strip and keeps Unload and the theme button in view. The pill text hides only when the header row overflows.
Related discussion: none. This uses the load and unload routes the monitor page already has.
Approach: One header button calls those routes. The label comes from the latest metrics sample. Until that sample arrives, the job started on this page sets the label. The header itself does not scroll. The tab strip does. From 458px down, Unload and the tab strip use a smaller minimum width. From 383px down, the brand is hidden.
fitHeader()drops the pill text only when the row'sscrollWidthis greater than itsclientWidth.Validation:
Passed:
node --check serve/web/app.json7c7fe569. Firefox 158, headless,--window-size, on Linux: at 320, 361, 373, 374, 383, 401, 456, 458, and 720, Unload and the theme button were inside the header, and the header'sclientWidthequalled itsscrollWidth. At 720 with the Images tab and the long pill, About scrolls inside the tab strip and the long pill stays.The author then used the running chat page on two Linux machines and reports that it functions as intended. The desktop serves with the HIP build on an RX 6800 and an RX 6900 XT. The laptop serves with the CUDA and HIP hybrid build on an RTX 4060 and a Radeon 890M. No command log was attached to that report.
Failed: none observed.
Not run: a written click-through of the image-queue toast and the button title when a chat and an image are both waiting.
Limits: An image that is only queued can still raise the "stop the reply" toast when no image job is marked busy. When a local chat and a local image are both waiting in the unloaded window, the button title uses the image sentence.
Changes since the last update (2026-10-27)
main(0.2.6,4b9e05a2); content unchanged. New tip621789da(single commit). The7c7fe569hash in the Validation section is the pre-rebase lineage.nixos, pin3032afd8) serves daily on both machines.error.message, engine death answers 503 instead of a dropped connection, and a background pre-stage means a click after quiet costs teardown only. This PR's header button code is unchanged — it keeps posting the plain/load//unloadforms and benefits from the pre-stage.Branch commits were re-signed (GPG ed25519) on 2026-10-27; trees are unchanged from the validated work.
Dependencies: none.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.