[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

Closed
opened 2026-10-29 21:26:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 04bfe7f Dashboard: the model's logo beside its name in the sidebar (GLM, DeepSeek, MiniMax, Qwen)
  • 53bcf9d Dashboard: the sidebar shows the model's name as people write it (GLM 5.3 Flash, DeepSeek V4.1 Flash), its id on hover
  • 936569a Dashboard: About's copy buttons no longer flash - its fact lists rebuilt only when they change
  • b968564 Chat: 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:

  • The code block and its buttons were rebuilt about 60 times a second (the flash).
  • Its own scroll box (max-height: 70vh) went back to its top each time, so it couldn't be scrolled, and it hid the code being written.
  • The chat pulled its reader back down at the next repaint when they had scrolled up less than 120 px, which is about one wheel notch.

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).
  • The growing code block stays scrolled to its end while it's written, unless its reader scrolled it up.
  • The chat follows the answer until its reader scrolls up by any amount, and again once they're back at the bottom or press "Jump to latest".

Measured in headless Chromium against the mock engine (--engine mock) streaming a 15K-character Python answer:

before after
code block rebuilt, first 8 s 474 times 0
code box while the code grows stuck 425 px above the end at the end
code box after its reader scrolls it position lost every frame kept
chat after one wheel notch up pulled back to the bottom stays (Jump to latest shows)
finished answer identical: one block, 303 lines, its buttons

About: the copy buttons no longer flash

renderAbout runs on every poll (once a second while About is open), and facts() 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

  • A logo beside the model's name: Z.ai's for GLM, DeepSeek's, MiniMax's and Qwen's.
    • Each sits on a small tile so it reads on both themes. Z.ai's one-colour mark is black, inverted on the dark theme.
    • A model matching none of these shows no logo.
    • The marks are lobe-icons' SVGs (1.98.0, MIT), checked for scripts and external references, served as serve/web/logo-*.svg. The logos themselves remain their owners' trademarks.
  • The name as people write it: glm-5.3-flash shows as GLM 5.3 Flash, deepseek-v4.1-flash as DeepSeek V4.1 Flash, minimax-m3.1-flash as MiniMax M3.1 Flash. The id itself, which API clients use, shows on hover.

Checks

  • serve.test_dashboard and serve.test_server pass.
  • Screenshots of the sidebar for all four models on both themes, and the browser checks above. All were run against python -m serve.server --engine mock with 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.

## 📋 Pull Request Information **Original PR:** https://github.com/mw00/project-maya/pull/478 **Author:** [@needmorevram](https://github.com/needmorevram) **Created:** 10/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `frontend` --- ### 📝 Commits (4) - [`04bfe7f`](https://github.com/mw00/project-maya/commit/04bfe7f7ebdb79c07db84dac484a750ee578aab4) Dashboard: the model's logo beside its name in the sidebar (GLM, DeepSeek, MiniMax, Qwen) - [`53bcf9d`](https://github.com/mw00/project-maya/commit/53bcf9d3cd3c1c49a611f5df0cbcd8c893c6b3db) Dashboard: the sidebar shows the model's name as people write it (GLM 5.3 Flash, DeepSeek V4.1 Flash), its id on hover - [`936569a`](https://github.com/mw00/project-maya/commit/936569a278e2cc5874795e74ac2b9199c978aaa7) Dashboard: About's copy buttons no longer flash - its fact lists rebuilt only when they change - [`b968564`](https://github.com/mw00/project-maya/commit/b9685644edcba3abcd37aadd29e83feb38e89657) Chat: a long code answer no longer flashes and scrolls freely while it streams ### 📊 Changes **6 files changed** (+90 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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: - The code block and its buttons were rebuilt about 60 times a second (the flash). - Its own scroll box (`max-height: 70vh`) went back to its top each time, so it couldn't be scrolled, and it hid the code being written. - The chat pulled its reader back down at the next repaint when they had scrolled up less than 120 px, which is about one wheel notch. 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`). - **The growing code block** stays scrolled to its end while it's written, unless its reader scrolled it up. - **The chat** follows the answer until its reader scrolls up by any amount, and again once they're back at the bottom or press "Jump to latest". Measured in headless Chromium against the mock engine (`--engine mock`) streaming a 15K-character Python answer: | | before | after | |---|---|---| | code block rebuilt, first 8 s | 474 times | 0 | | code box while the code grows | stuck 425 px above the end | at the end | | code box after its reader scrolls it | position lost every frame | kept | | chat after one wheel notch up | pulled back to the bottom | stays (Jump to latest shows) | | finished answer | | identical: one block, 303 lines, its buttons | ## About: the copy buttons no longer flash `renderAbout` runs on every poll (once a second while About is open), and `facts()` 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 - **A logo beside the model's name:** Z.ai's for GLM, DeepSeek's, MiniMax's and Qwen's. - Each sits on a small tile so it reads on both themes. Z.ai's one-colour mark is black, inverted on the dark theme. - A model matching none of these shows no logo. - The marks are [lobe-icons](https://github.com/lobehub/lobe-icons)' SVGs (1.98.0, MIT), checked for scripts and external references, served as `serve/web/logo-*.svg`. The logos themselves remain their owners' trademarks. - **The name as people write it:** `glm-5.3-flash` shows as **GLM 5.3 Flash**, `deepseek-v4.1-flash` as **DeepSeek V4.1 Flash**, `minimax-m3.1-flash` as **MiniMax M3.1 Flash**. The id itself, which API clients use, shows on hover. ## Checks - `serve.test_dashboard` and `serve.test_server` pass. - Screenshots of the sidebar for all four models on both themes, and the browser checks above. All were run against `python -m serve.server --engine mock` with each model's name in its config. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:26:47 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mw00/project-maya#554
No description provided.