mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #478] [CLOSED] Dashboard: long code answers no longer flash and scroll freely while streaming, About's copy icons steady, model logos and names in the sidebar #554
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#554
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/mw00/project-maya/pull/478
Author: @needmorevram
Created: 10/25/2026
Status: ❌ Closed
Base:
main← Head:frontend📝 Commits (4)
04bfe7fDashboard: the model's logo beside its name in the sidebar (GLM, DeepSeek, MiniMax, Qwen)53bcf9dDashboard: the sidebar shows the model's name as people write it (GLM 5.3 Flash, DeepSeek V4.1 Flash), its id on hover936569aDashboard: About's copy buttons no longer flash - its fact lists rebuilt only when they changeb968564Chat: a long code answer no longer flashes and scrolls freely while it streams📊 Changes
6 files changed (+90 additions, -6 deletions)
View changed files
📝
serve/web/app.css(+8 -1)📝
serve/web/app.js(+73 -5)➕
serve/web/logo-deepseek.svg(+2 -0)➕
serve/web/logo-glm.svg(+3 -0)➕
serve/web/logo-minimax.svg(+2 -0)➕
serve/web/logo-qwen.svg(+2 -0)📄 Description
Dashboard fixes and touches, on main v1.1.27. Only the web app changes (
serve/web): no server or engine code.A long code answer no longer flashes and can be scrolled while it streams
A streaming answer repainted up to every frame by replacing the whole bubble's HTML. On a long code answer:
max-height: 70vh) went back to its top each time, so it couldn't be scrolled, and it hid the code being written.Now:
patchHtml: the new HTML goes into the bubble with the fewest DOM changes. A block that hasn't changed stays as it is, so a selection and a code block's wrap setting survive. The code block still being written keeps its frame, buttons and scroll box; only its code is replaced (patchCode).Measured in headless Chromium against the mock engine (
--engine mock) streaming a 15K-character Python answer:About: the copy buttons no longer flash
renderAboutruns on every poll (once a second while About is open), andfacts()replaced each list's HTML every time. That gave new copy buttons each second: their sprite icons flashed, and a copy's 1.5 s check mark was cut short. The lists are now rebuilt only when their content changes. In the browser, the buttons stayed the same elements across 4 s of polls, and the check mark lasted its full 1.5 s.Sidebar: the model's logo and name
serve/web/logo-*.svg. The logos themselves remain their owners' trademarks.glm-5.3-flashshows as GLM 5.3 Flash,deepseek-v4.1-flashas DeepSeek V4.1 Flash,minimax-m3.1-flashas MiniMax M3.1 Flash. The id itself, which API clients use, shows on hover.Checks
serve.test_dashboardandserve.test_serverpass.python -m serve.server --engine mockwith each model's name in its config.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.