[PR #538] [CLOSED] Web UI redesign: new chat, Settings, Monitor, Models page and Saved #587

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

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/538
Author: @needmorevram
Created: 10/27/2026
Status: ❌ Closed

Base: main ← Head: ui-redesign-v1.1.29


📝 Commits (10+)

  • ac749f6 Web UI redesign, phase 1: v2 tokens, Lucide icons, Preact + htm
  • 38041a8 Web UI redesign, phase 2: the new shell, sidebar and chat
  • 5323da9 Web UI redesign, phase 3: the Settings dialog
  • a2844d2 Web UI redesign, phase 4: the Monitor
  • cd6c942 Web UI redesign, phase 5: review fixes, focus and docs
  • 3ab0eb1 Web UI: a Models page - switch models and edit their engine settings
  • 3e4faba Web UI: "Saved" in the sidebar - what the model's own API would have charged
  • 690d44d Settings > Savings: change the API prices the Saved line counts with
  • d1a68e4 Monitor: a Context card - how much of the context the conversation uses
  • e3eed90 Web UI on v1.1.29: MiniMax-M3.1 in the new pages, and fixes from a run against the DeepSeek engine

📊 Changes

34 files changed (+6599 additions, -3740 deletions)

View changed files

📝 .gitignore (+3 -0)
📝 CHANGELOG.md (+1 -1)
📝 README.md (+12 -5)
📝 maya.py (+20 -4)
➕ serve/models.py (+458 -0)
➕ serve/savings.py (+224 -0)
📝 serve/server.py (+178 -6)
📝 serve/test_dashboard.py (+16 -0)
➕ serve/test_models.py (+340 -0)
➕ serve/test_savings.py (+179 -0)
📝 serve/test_server.py (+2 -2)
📝 serve/web/app.css (+321 -505)
📝 serve/web/app.js (+73 -2587)
➕ serve/web/chat-view.js (+425 -0)
➕ serve/web/chats.js (+627 -0)
📝 serve/web/components.css (+219 -136)
📝 serve/web/index.html (+13 -380)
➕ serve/web/lib.js (+148 -0)
📝 serve/web/manifest.webmanifest (+2 -2)
➕ serve/web/md.js (+253 -0)

...and 14 more files

📄 Description

What

This is the web UI redesign, rebased on v1.1.29 and with v1.1.30 merged in. The redesign itself is nine commits, unchanged apart from the rebase:

  • Phase 1: the v2 tokens, Lucide icons and Preact + htm. There is still no build step.
  • Phases 2–5: the new shell, sidebar and chat; the Settings dialog; and the Monitor.
  • New pages and cards: a Models page that switches models and edits each one's engine settings; Saved in the sidebar, which shows what the model's own API would have charged; editable API prices in Settings › Savings; and a Context card on the Monitor.

Two commits and a merge sit on top:

  1. Engine fixes and MiniMax. Fixes from a run of the new UI against the real DeepSeek engine (maya-ds4), and main's MiniMax-M3.1 support rebuilt in the new pages.
  2. Phones. A frosted top bar, every Settings section in view, and full-width choices.
  3. v1.1.30, merged in (next-but-one section).

The rebase

Main's MiniMax changes to the old dashboard (app.js, index.html, app.css) conflicted with the redesign, which replaces those files. I took the redesign's files and rebuilt those features in the new modules (next section).

server.py was merged by hand: the imports from both sides, and /api/context keeps main's kv_ram_gb next to the redesign's load_s.

v1.1.30, merged in

v1.1.30 came out after the rebase, so it is merged rather than rebased onto. As in the rebase, app.js stays the redesign's, and main's changes to the old dashboard are rebuilt in the new pages:

  • Model label: the model with its files (model_label, e.g. "MiniMax M3.1 · Maya-XS") in the sidebar and the model menu.
  • Loop guard: the loops it broke, in the Monitor's totals line, and a "Loop guard" chip with the details on the affected request rows.
  • Several answers at once: shown as their total ("Decode · 2 writing").
  • Models page: families and quant names now come from tools/maya_quants.py, so MiniMax's new GGUF quants show as Maya-XS and Maya-S.
  • Tests: test_server now checks the model label in the sidebar's code instead of the old app.js.

MiniMax-M3.1 in the new UI

  • Thinking levels: its seven levels, Auto by default. On a phone, Off and Auto sit above the five efforts. Its chat settings are kept under their own key (sampling_minimax).
  • Monitor: maya-mm3's expert tiles and its tip, and DSpark with the share of drafts kept. The engine reports dspark=0/1 as text, and "0" was truthy in JS.
  • About: the engine name, its KV cache formats, and no "rest read from the SSD" when every expert fits.
  • Settings › Model: the context's pinned RAM, scaled from the engine's own kv_ram, with a warning against the free RAM.
  • Chat defaults: sampling values that are the model's own default say so.
  • Models page: a MiniMax config is now its own family. Before, it was read as DeepSeek, and a save would have written --mmap-experts / --prefill-chunk / --reserve-mib. maya-mm3 stops at a flag it doesn't know, so the model would not have started. The editor now offers only maya-mm3's own flags: drafting, tensor parallel (Off, 1, 2, 4), KV cache format, KV streaming and its VRAM window, and CPU threads.

Fixes from a run against maya-ds4

Models page

  • DeepSeek's tensor parallel was capped at 1–2, so a --tp 8 config couldn't be saved at all. It now goes up to every GPU picked; with no --tp, the default is the engine's own 2.
  • Contexts follow each family: DeepSeek's and MiniMax's go to 1M.
  • A config whose model files are gone shows "Files missing" with the reason, and the server refuses to switch to it. A switch to it used to leave no model running.
  • The setup's settings (installer.as_set_up, the page's Reset) are recorded before the first change, including a context reload from Settings.
  • The command preview marks only the environment variables that changed.

Chat

  • An answer stopped while still thinking was dropped from the conversation, so the next question got the old question's answer. It is now sent as an empty assistant turn.
  • The empty chat at start-up takes the model's own thinking level, not the built-in High.

Monitor and About

  • DSpark, with the share of drafts kept.
  • DeepSeek's and MiniMax's layer ranges are inclusive (layers=a-b); they were off by one.
  • The KV cache says "all in VRAM" when its window is the whole context.
  • The model folder is shown for DeepSeek, and the quant reads "Mix-256G".
  • GPU names are grouped ("RTX 3090 + 8 × RTX 5060 Ti"), with one PCIe line when every link matches.
  • The reload and port warnings give the measured load time instead of "1–3 minutes".
  • Smaller wording fixes: "< 0.1%", "1 request", "Stopped".

Sidebar and Settings

  • The sidebar is glass in its own colour: slightly see-through and blurred, with a light edge instead of a border, and plain under Reduce Transparency. It is 312 px wide, and the model's name wraps.
  • The Saved popover keeps amounts and prices on one line, and names configs of the same model. A pinned chat shows in its folder too.
  • Dark by default in every browser: the old dashboard's saved theme (maya.ui-theme) isn't read any more, and the choice is now maya.theme.
  • "Start over" and "Clear" lose the "…".

Phones

  • Top bar: the top bar (chats menu, model name, New chat) is a frosted strip with a hairline and a soft shadow, so text scrolling under it no longer shows through. The chat, Monitor and Models pages start 23 px below it.
  • Settings sections: all nine sit in a grid of three instead of a row that scrolls sideways.
  • Choices: Theme, Presets, Thinking and the other choices span the full width, with equal buttons.

Tested

Unit tests, after the merge: python -m unittest discover -s serve -t . -p 'test_*.py' gives 449 tests, 9 skipped. The one failure in the full run was main's test that read the old app.js; after its fix, its module and the related ones pass (190 OK). That count includes main's loop-guard and MiniMax tests and a new MiniMax Models-page test. tools.test_maya_models and tools.test_setup_mm3 give 57 OK. serve/test_responses_schema.py needs jsonschema installed.

Live DeepSeek (on the v1.1.29 base, before the merge): DeepSeek-V4.1-Flash abliterated (Mix-256G GGUF) on maya-ds4 --tp 8, on an RTX 3090 + 8 × RTX 5060 Ti. Headless Chromium (Playwright) from a fresh profile:

  • Chats: a chat with a follow-up that reused the cache, instructions, thinking at Off, Low and High, regenerate, stop, and an image.
  • Chat management: rename, pin, folder, search, delete with undo, export, and the report (no keys in it).
  • Savings: prices edited and reset. The total is exact: $0.000342 for 52 new, 37 cached and 272 written tokens in the 2× peak band.
  • Shared defaults: the chat defaults reach API clients.
  • Monitor: its values were checked against /metrics.
  • Supervised restarts: two "Save and restart" runs from the Models page went through maya.py. One added an environment variable, which reached the restarted engine; the other removed it.
  • Updates: the update card reads "Up to date · v1.1.29".
  • Layouts: the light theme and the phone layouts at 360, 390 and 430 px.

MiniMax: tested against the mock engine with a MiniMax config and maya-mm3-shaped /metrics and /api/context; maya-mm3 itself was not run.

  • The seven levels: a chat at Medium sends reasoning_effort: "medium".
  • The Models editor: a dry run writes only maya-mm3's flags, and mmap is refused.
  • The Monitor tiles, About, and the context's RAM estimate.

v1.1.30's UI pieces: checked against the mock on the merged code, with a broken loop and two answers at once faked in /metrics. The model label reads "MiniMax M3.1 · Maya-XS", the totals line ends "loop guard: 1 loop broken", the chip's details show on hover, and the decode speed reads "2 writing 61.2 tok/s".

Not done

  • MiniMax-M3.1 has no API price in serve/savings.py. Its Saved line counts nothing until prices are entered in Settings › Savings.

🔄 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/538 **Author:** [@needmorevram](https://github.com/needmorevram) **Created:** 10/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `ui-redesign-v1.1.29` --- ### 📝 Commits (10+) - [`ac749f6`](https://github.com/mw00/project-maya/commit/ac749f603f5af5fcc55bfd07b0261c6dc40cf8bf) Web UI redesign, phase 1: v2 tokens, Lucide icons, Preact + htm - [`38041a8`](https://github.com/mw00/project-maya/commit/38041a87932b72f8618231b57597396ac6b0fef7) Web UI redesign, phase 2: the new shell, sidebar and chat - [`5323da9`](https://github.com/mw00/project-maya/commit/5323da9a8960298576a70bfadeecff0b6c5c2abf) Web UI redesign, phase 3: the Settings dialog - [`a2844d2`](https://github.com/mw00/project-maya/commit/a2844d28453e5b04d3ec75261fcf7a9ee38b3c9b) Web UI redesign, phase 4: the Monitor - [`cd6c942`](https://github.com/mw00/project-maya/commit/cd6c942eb5f6e875187c3d77b9c470ee5f6f27b2) Web UI redesign, phase 5: review fixes, focus and docs - [`3ab0eb1`](https://github.com/mw00/project-maya/commit/3ab0eb13bca8d1a3339ac2f1fff53a8ba81c66d1) Web UI: a Models page - switch models and edit their engine settings - [`3e4faba`](https://github.com/mw00/project-maya/commit/3e4fabaea57c6e9d5280af249a3ee837c03c2c46) Web UI: "Saved" in the sidebar - what the model's own API would have charged - [`690d44d`](https://github.com/mw00/project-maya/commit/690d44d070037142db3cb344b4a62b7b9aed9458) Settings > Savings: change the API prices the Saved line counts with - [`d1a68e4`](https://github.com/mw00/project-maya/commit/d1a68e4f0463191537212dfa6f912715fc18d02b) Monitor: a Context card - how much of the context the conversation uses - [`e3eed90`](https://github.com/mw00/project-maya/commit/e3eed90bf3a42f9d551bb29430967b2f56af8aa5) Web UI on v1.1.29: MiniMax-M3.1 in the new pages, and fixes from a run against the DeepSeek engine ### 📊 Changes **34 files changed** (+6599 additions, -3740 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+3 -0) 📝 `CHANGELOG.md` (+1 -1) 📝 `README.md` (+12 -5) 📝 `maya.py` (+20 -4) ➕ `serve/models.py` (+458 -0) ➕ `serve/savings.py` (+224 -0) 📝 `serve/server.py` (+178 -6) 📝 `serve/test_dashboard.py` (+16 -0) ➕ `serve/test_models.py` (+340 -0) ➕ `serve/test_savings.py` (+179 -0) 📝 `serve/test_server.py` (+2 -2) 📝 `serve/web/app.css` (+321 -505) 📝 `serve/web/app.js` (+73 -2587) ➕ `serve/web/chat-view.js` (+425 -0) ➕ `serve/web/chats.js` (+627 -0) 📝 `serve/web/components.css` (+219 -136) 📝 `serve/web/index.html` (+13 -380) ➕ `serve/web/lib.js` (+148 -0) 📝 `serve/web/manifest.webmanifest` (+2 -2) ➕ `serve/web/md.js` (+253 -0) _...and 14 more files_ </details> ### 📄 Description ## What This is the web UI redesign, rebased on v1.1.29 and with v1.1.30 merged in. The redesign itself is nine commits, unchanged apart from the rebase: - **Phase 1:** the v2 tokens, Lucide icons and Preact + htm. There is still no build step. - **Phases 2–5:** the new shell, sidebar and chat; the Settings dialog; and the Monitor. - **New pages and cards:** a **Models** page that switches models and edits each one's engine settings; **Saved** in the sidebar, which shows what the model's own API would have charged; editable API prices in Settings › Savings; and a **Context** card on the Monitor. Two commits and a merge sit on top: 1. **Engine fixes and MiniMax.** Fixes from a run of the new UI against the real DeepSeek engine (`maya-ds4`), and main's MiniMax-M3.1 support rebuilt in the new pages. 2. **Phones.** A frosted top bar, every Settings section in view, and full-width choices. 3. **v1.1.30, merged in** (next-but-one section). ## The rebase Main's MiniMax changes to the old dashboard (`app.js`, `index.html`, `app.css`) conflicted with the redesign, which replaces those files. I took the redesign's files and rebuilt those features in the new modules (next section). `server.py` was merged by hand: the imports from both sides, and `/api/context` keeps main's `kv_ram_gb` next to the redesign's `load_s`. ## v1.1.30, merged in v1.1.30 came out after the rebase, so it is merged rather than rebased onto. As in the rebase, `app.js` stays the redesign's, and main's changes to the old dashboard are rebuilt in the new pages: - **Model label:** the model with its files (`model_label`, e.g. "MiniMax M3.1 · Maya-XS") in the sidebar and the model menu. - **Loop guard:** the loops it broke, in the Monitor's totals line, and a "Loop guard" chip with the details on the affected request rows. - **Several answers at once:** shown as their total ("Decode · 2 writing"). - **Models page:** families and quant names now come from `tools/maya_quants.py`, so MiniMax's new GGUF quants show as Maya-XS and Maya-S. - **Tests:** `test_server` now checks the model label in the sidebar's code instead of the old `app.js`. ## MiniMax-M3.1 in the new UI - **Thinking levels:** its seven levels, Auto by default. On a phone, Off and Auto sit above the five efforts. Its chat settings are kept under their own key (`sampling_minimax`). - **Monitor:** `maya-mm3`'s expert tiles and its tip, and DSpark with the share of drafts kept. The engine reports `dspark=0`/`1` as text, and `"0"` was truthy in JS. - **About:** the engine name, its KV cache formats, and no "rest read from the SSD" when every expert fits. - **Settings › Model:** the context's pinned RAM, scaled from the engine's own `kv_ram`, with a warning against the free RAM. - **Chat defaults:** sampling values that are the model's own default say so. - **Models page:** a MiniMax config is now its own family. Before, it was read as DeepSeek, and a save would have written `--mmap-experts` / `--prefill-chunk` / `--reserve-mib`. `maya-mm3` stops at a flag it doesn't know, so the model would not have started. The editor now offers only `maya-mm3`'s own flags: drafting, tensor parallel (Off, 1, 2, 4), KV cache format, KV streaming and its VRAM window, and CPU threads. ## Fixes from a run against `maya-ds4` **Models page** - DeepSeek's tensor parallel was capped at 1–2, so a `--tp 8` config couldn't be saved at all. It now goes up to every GPU picked; with no `--tp`, the default is the engine's own 2. - Contexts follow each family: DeepSeek's and MiniMax's go to 1M. - A config whose model files are gone shows "Files missing" with the reason, and the server refuses to switch to it. A switch to it used to leave no model running. - The setup's settings (`installer.as_set_up`, the page's Reset) are recorded before the first change, including a context reload from Settings. - The command preview marks only the environment variables that changed. **Chat** - An answer stopped while still thinking was dropped from the conversation, so the next question got the old question's answer. It is now sent as an empty assistant turn. - The empty chat at start-up takes the model's own thinking level, not the built-in High. **Monitor and About** - DSpark, with the share of drafts kept. - DeepSeek's and MiniMax's layer ranges are inclusive (`layers=a-b`); they were off by one. - The KV cache says "all in VRAM" when its window is the whole context. - The model folder is shown for DeepSeek, and the quant reads "Mix-256G". - GPU names are grouped ("RTX 3090 + 8 × RTX 5060 Ti"), with one PCIe line when every link matches. - The reload and port warnings give the measured load time instead of "1–3 minutes". - Smaller wording fixes: "< 0.1%", "1 request", "Stopped". **Sidebar and Settings** - The sidebar is glass in its own colour: slightly see-through and blurred, with a light edge instead of a border, and plain under Reduce Transparency. It is 312 px wide, and the model's name wraps. - The Saved popover keeps amounts and prices on one line, and names configs of the same model. A pinned chat shows in its folder too. - Dark by default in every browser: the old dashboard's saved theme (`maya.ui-theme`) isn't read any more, and the choice is now `maya.theme`. - "Start over" and "Clear" lose the "…". ## Phones - **Top bar:** the top bar (chats menu, model name, New chat) is a frosted strip with a hairline and a soft shadow, so text scrolling under it no longer shows through. The chat, Monitor and Models pages start 23 px below it. - **Settings sections:** all nine sit in a grid of three instead of a row that scrolls sideways. - **Choices:** Theme, Presets, Thinking and the other choices span the full width, with equal buttons. ## Tested **Unit tests, after the merge:** `python -m unittest discover -s serve -t . -p 'test_*.py'` gives 449 tests, 9 skipped. The one failure in the full run was main's test that read the old `app.js`; after its fix, its module and the related ones pass (190 OK). That count includes main's loop-guard and MiniMax tests and a new MiniMax Models-page test. `tools.test_maya_models` and `tools.test_setup_mm3` give 57 OK. `serve/test_responses_schema.py` needs `jsonschema` installed. **Live DeepSeek** (on the v1.1.29 base, before the merge): DeepSeek-V4.1-Flash abliterated (Mix-256G GGUF) on `maya-ds4 --tp 8`, on an RTX 3090 + 8 × RTX 5060 Ti. Headless Chromium (Playwright) from a fresh profile: - **Chats:** a chat with a follow-up that reused the cache, instructions, thinking at Off, Low and High, regenerate, stop, and an image. - **Chat management:** rename, pin, folder, search, delete with undo, export, and the report (no keys in it). - **Savings:** prices edited and reset. The total is exact: $0.000342 for 52 new, 37 cached and 272 written tokens in the 2× peak band. - **Shared defaults:** the chat defaults reach API clients. - **Monitor:** its values were checked against `/metrics`. - **Supervised restarts:** two "Save and restart" runs from the Models page went through `maya.py`. One added an environment variable, which reached the restarted engine; the other removed it. - **Updates:** the update card reads "Up to date · v1.1.29". - **Layouts:** the light theme and the phone layouts at 360, 390 and 430 px. **MiniMax:** tested against the mock engine with a MiniMax config and `maya-mm3`-shaped `/metrics` and `/api/context`; `maya-mm3` itself was not run. - The seven levels: a chat at Medium sends `reasoning_effort: "medium"`. - The Models editor: a dry run writes only `maya-mm3`'s flags, and `mmap` is refused. - The Monitor tiles, About, and the context's RAM estimate. **v1.1.30's UI pieces:** checked against the mock on the merged code, with a broken loop and two answers at once faked in `/metrics`. The model label reads "MiniMax M3.1 · Maya-XS", the totals line ends "loop guard: 1 loop broken", the chip's details show on hover, and the decode speed reads "2 writing 61.2 tok/s". ## Not done - MiniMax-M3.1 has no API price in `serve/savings.py`. Its Saved line counts nothing until prices are entered in Settings › Savings. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:27:12 +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#587
No description provided.