ac4af582301a4e8a29245dbba767eba31334ddf9
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
80ae904c23 |
routing: routing groups get a page of their own, beside Routing
The owner asked for the groups to leave the Routing page (11-06): under the live stage and every request they were a long scroll down, and New group with them. The design was reviewed before this was built. - New page, Routing groups (#view-groups), drawn by the routing plugin's same script (routingPage), so the editor, its dirty/discard and every group action are unchanged. Toolbar: filter, "N groups · M on", Templates, Import, Select, and New group as the filled button. The list is right under it, and a Settings section under the list holds Found groups (with Exclude providers…) and Names in agents' lists. - No Export button: each group already has its own Copy to share. - Routing keeps the live stage and the requests. A request's group opens the groups page at its row. - The sidebar has a Routing groups tab right after Routing (from 1024 points). The header's row has no room for one: at 860px the extra tab pushed the logo out (brand.test). There the tab is hidden, Routing's tab is lit for both pages (markNav), and Routing's head has a "Routing groups ›" button, hidden beside the sidebar. - Every way in now goes to the groups page: the guide's Open routing groups, the panel's and the provider editor's Make a routing group (window/main?view=groups&newgroup=…). mainView still takes view=routing&newgroup from an older panel. - Words: "Routing groups", "Open routing groups", "Once saved, make a group of them in Routing groups.", and the editor's names note now says the setting is under the list, in zh, zh-TW, ja and de. "Open Routing" stays for the Agents page's button. - Docs: providers-accounts, gateway-routing, plugin-runtime, gui-shell and reference say "Routing groups page" where they mean the groups. - Core budget: the core's scripts are 1,533,774 of 1,533,802, paid for by three show()/setGatewayMode comments cut in app.js. No raise. Tests: routing-groups-page.test.cjs (new) covers the page in Chromium and WebKit, en/zh/zh-TW/ja/de, at 1280, 640 (window) and 420 (web): no groups on Routing, the tab or the head's button by width, the lit tab, toolbar order, New group primary and in sight, list then Settings, no sideways scroll, no native select, no left-border accent; a request's group to its row; quotas redrawn with an open editor left alone. The trace tests (routing-compact, -pause-folder, -rule-models, -folder) open Routing, then show the groups; routing-editor-foot and name-suffix-where-named scroll by wheel, as the scroll guard lets a reader; builtins expects the groups tab beside the sidebar only. Removed: routing-groups-jump (the head's "Routing groups ↓" that scrolled down to them, gone with them), routing-pointer-pin and routing-steady (the groups kept in place under requests streaming in above them: no request is above them now). Their guarantee that what redraws leaves an open editor and its typing alone is routing-groups-page's quotas case; Routing's own lists keep their keepInView. The groups page's jump: a request's group, or a pool's "Several keys" chip, opened the groups page and scrolled the row to the centre, and the next frame show()'s backAfterLoad put the page back where the reader last left it, then brought the focused segment in by "nearest": in WebKit the pool sat half under the window's foot (routing-mode-goes, 9 of its 10 WebKit cases). goRouting now jumps at once on a page it opens and marks it arrived(). The wheel in routing-many-keys turns over the keys: at the page's foot, now shorter, the mouse rested over the requests list (.rt-reqs, overscroll-behavior: contain), which took every wheel up, and the test stopped with 2 keys in sight. That is #4082's cause. routing-days-fit's fixture has 12 requests, a day that fills the window, since the day bar held needs room under it. Run on mote (macOS 27, load 25 to 65), Playwright 1.62.0: - Go: go vet, gofmt -l and go test ./... at the rebased head ( |
||
|
|
a2bba792d5 |
gui: a dragged row lands where it is let go when what is above its list moves
yuancjun on Discord: dragging a group member's handle on the Routing page
jittered, and the member landed two or more places from where it was let
go, so the group's priority changed to an order nobody chose. dragRows
measured every row once, at the press, and moved the held row by the
pointer's travel. The Routing page's live stage above the groups grows and
shrinks as requests come in, so mid-drag the rows moved under the
pointer while the slots were reckoned from where they had been.
dragRows (app.js, shared by the agents, providers, accounts, groups,
members and rules) now places the rows each frame from the list's own
top and the rows' offsetTop, the held row at the pointer less where it
was grabbed, and keeps drawing frames while the drag lasts. A row taken
out from under a drag cancels it. Routing's member and rule drags join
the group drag's guard: a redraw of the groups waits until the drag is
let go (the shared `arranged` idle in client.js), and a second press
during one is ignored.
drag-rows-shift.test.cjs: a group's members dragged in its editor while
a 90px block is put in above the groups (and, the other way, taken
out) mid-drag. The held row stays under the pointer (within 2px) and
the saved order is the slot it was let go in. Chromium and WebKit,
1100 and 560px, en/zh/zh-TW/ja/de.
Run on mote (mote-run):
- drag-rows-shift.test.cjs: 10 of 10 ok; on the old app.js and
client.js 0 of 10 (the row 90px off the pointer, the order a slot off).
- every GUI file that presses the mouse (grep mouse.down), plus
grip-inset, fold-show-grip, click-scroll, agent-disconnect and
plugin-actions: 620 tests, 600 ok. The 20 reds are
routing-rule-drag (chromium en/zh/zh-TW/de, its hover check before any
drag; #3789, #4585) and segs-press-redraw (16, searchAllRow; #4566).
Both files run alone at origin/main
|