ac4af582301a4e8a29245dbba767eba31334ddf9
5
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
277c911658 |
plugins: a plugin's Sign in asks which subscription, and Qoder CN is Qoder 中国版 in Chinese
小武 on Discord: "Qoder 只支持国际版 请添加 Qoder中国版", then "有Qoder CN 没有添加账号的入口". The Qoder plugin serves four subscriptions (qoder, qoder-cn, qwenwork, qwenwork-enterprise), but the Plugins page's Sign in on its card and on its Installed row always took the first one not signed in, qoder.com. Qoder CN was never offered there. In the Add sheet it was called "Qoder CN" in every language, so a search for 中国版 found nothing. - plugins.js: with more than one subscription not signed in, Sign in opens the app's menu (openProtoMenu), headed "Sign in to which subscription" and listing each one by its Add-sheet name (subName). With one, it signs in to it directly, as before. The Installed row says "Sign in to another…" when more than one is left. The pm-sub lines and tips use the same names. - app.js: the qoder-cn SUBS entry's name goes through t(). openProtoMenu passes the click event to a single-choice choose, so the sign-in it starts has a fresh trusted event. - i18n.js: Qoder 中国版 (qoder.cn) / Qoder 中國版 (qoder.cn) / Qoder 中国版 / Qoder CN, plus the menu's heading and "Sign in to another…", in zh, zh-TW, ja and de. - The core scripts' budget is unchanged. The ~800 bytes added are paid for by cutting two of plugins.js's GitHub-section comments (1,533,657 <= 1,533,802). The registry's Qoder summary was updated to name Qoder 中国版 in magpie-community/plugins 2595d48. No plugin code changed, so there is no new npm version and no mover min raise. Run at 3b3d32724 (this commit plus the next commit's market.json), rebased on origin/main |
||
|
|
ce8b67de37 |
gui tests: a page's first load gets a minute, not a click's 5s (#4470)
claude-switch-only set page.setDefaultTimeout(5000) and then called page.goto with no timeout of its own, so Playwright held the first load of app.js, i18n.js and the plugins to the 5s bar meant for clicks. On a busy box (a whole-suite run at load 130-160) that load took longer and goto timed out. The same pattern is in 988 GUI test files (1174 pages): every one of them now also sets setDefaultNavigationTimeout(60000) on the same page, right after its default, so goto, reload and waitForURL wait on the load itself with room, while clicks and waits keep their short bar. group-from-model-add's own 20s navigation bar is raised to the same minute. claude-switch-only also gives its first provider row (drawn from the page's first reads) a minute before clicking it. nav-timeout.test.cjs (no browser) reads every GUI test file and names each page given a default under a minute without a navigation timeout of at least a minute, so a new file can't bring the pattern back. What was run (WSL magpie-desktop, Playwright 1.62.0, load 70-260 from other sessions): - node --check on every file in internal/gui/tests: all parse. - nav-timeout.test.cjs against origin/main's test files: red (names the 1174 pages); against this tree: its only reds were my own probe copies of the old files, since removed. - By hand: claude-switch-only with app.js served 7s late (a busy box's first load), --test-name-pattern "1100 en": origin/main's file 4 of 4 red with "page.goto: Timeout 5000ms exceeded"; this file 4 of 4 green. - claude-switch-only.test.cjs, both engines, en/zh/ja/de, 1100 and 420: 32 of 32. group-from-model-add, usage-access-key-card and i18n-keys: green. agent-plugin-agents: Chromium green; WebKit's de 420 subtest red on a 5s waitForFunction at line 115 (a wait after load, not the navigation), at load ~230. Not tried: the whole GUI suite (about 1000 files; the change is one mechanical line per page), Windows or mote (mote's browsers, #4125). |
||
|
|
18e82adc62 |
gui: the window's pages down a sidebar in groups, the open page's tabs under it, and a button to have the header's tabs instead
From 1024 points wide (SIDE_AT) the window lays its pages down the left as a Mac app's sidebar: Work (Agents, Sessions, Library), Models (Providers, Routing, Gateway), Insights (Usage), Extend (Plugins), with Settings and the gateway's address at the foot. The open page's own tabs (Usage, Library, Plugins, Settings) are listed under it, opening and folding on an iOS-like spring, and the page's strip is hidden. The header becomes a breadcrumb, and pages whose head held only tools have them in the title bar. Graphite: the open page is in the text's ink, not purple. A pressed row darkens and never shrinks. The selection under the tabs sets off as the row is pressed, on a 0.3s curve (it felt behind the finger), and is the list's only shape: a sub-row hovered or pressed has no ground of its own, which showed a block under the finger before the selection slid there. The page's tab is clicked at once, so what is typed next goes to it. The title bar's button (or ⌃⌘S, Ctrl+Shift+S), there at every width, picks the sidebar or the header's tabs. The choice is kept in localStorage magpie.navLayout (side or top) at every width, so it is laid out from the first frame; picked in a narrow window the sidebar is 184 points under 860. The two trade places in a view transition: the sidebar slides, each tab flies to its place, and the page slides as one. Without view transitions or under reduced motion, the change is at once. With nothing picked, narrower than 1024 the page beside a sidebar would be narrower than Usage's requests table needs, so the header's tabs come back. A resize drops what a click held (heldWidth). Usage's KPI strip goes two to a line by the room the page gives it (a container query), and Japanese counts wrap there. Tests whose window is 1024+ were updated for the sidebar, and docs/subsystems/gui-shell.md says how it works. Run: sidebar.test.cjs and side-toggle.test.cjs 16/16 in chromium and webkit, in en, zh, zh-TW, ja and de. Each was broken by hand (press shrink, address cut, press glide, sub-row ground, view transition, kept choice) and went red. Every page at 560 points with the sidebar picked, zh and de, both engines: nothing scrolls sideways. session-identity's ledger row sits under the footer beside the sidebar; WebKit's click doesn't scroll to it, so the test wheels it up first. Animation frames were checked from a recorded video. The 105 affected GUI files in both engines; their reds were rerun alone and fixed (filter-ime: the sub-row's click now at once; session-identity, above) or fail the same on main (tray-logos). The full GUI suite in chromium, on the rebase onto |
||
|
|
3ce0a0bf27 |
fix: 收敛中文界面文案 (#846)
删去中文提示里的过程叙述和动机解释,保留数字、条件和后果;同步更新相关测试的中文断言。 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
7ae1c344b3 | plugins: a plugin signed in to one of its subscriptions no longer reads as signed out (#556: 供应商这边显示登录了,插件那边掉登录了) — the Qoder plugin signs in to Qoder and Qoder CN, the WorkBuddy one to WorkBuddy AI and WorkBuddy; the reporter was signed in to Qoder and WorkBuddy AI, which Providers showed, and the Installed row showed "Qoder: signed in · Qoder CN: not signed in" beside a blue Sign in, the row's primary button, which read as the plugin having lost its sign-in. Nothing was lost: the second one is a subscription of its own that was never signed in to. Now, when one of a plugin's subscriptions is signed in, the row's button names the one it signs in to ("Sign in to Qoder CN", 登录 Qoder CN) and is a plain one, not the primary; the not-signed-in one's tooltip says it is a subscription of its own that the signed-in one works without; and Discover's card says Signed in (opening the signed-in one in Providers) rather than Sign in. A plugin signed in to nothing keeps its blue Sign in. plugin-two-subs.test.cjs (WebKit; en, zh) fails without the change and passes with it; plugin-market, plugin-move, plugin-moved-signin, plugin-local, plugin-updates and click-scroll (one flake of the trace's "picking request", then 2/2) pass. |