Skip to content

fix: console quick wins from the September review - #11

Merged
zhx8702 merged 4 commits into
mainfrom
fix/console-quick-wins
Sep 14, 2026
Merged

zhx8702 merged 4 commits into
mainfrom
fix/console-quick-wins

Conversation

@zhx8702

@zhx8702 zhx8702 commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Applies the low-risk items from the two review branches (refactor/backend-optimization, refactor/console-ui-style) after verifying each claim against main.

Summary

  • Config: XPC_SERVICE_NAME and other launchd/shell names no longer trip the strict unknown-setting check, so Settings(app_env="prod") constructs on macOS dev boxes. Regression test included.
  • Capabilities: social.group_behavior gets its own recovery actions instead of inheriting the wxbot SDK buttons.
  • Frontend load: feature pages are React.lazy; entry chunk 66 KB → 24 KB, modulepreload 21 → 6. Route changes scroll to top.
  • Layout: launch steps use repeat(auto-fit, minmax(150px, 1fr)); the 1121–1500px break is gone.
  • Typography: form labels, table headers, tile captions and section kickers return to the body font with a 12px floor; --font-size-2xs/3xs now resolve to 12px.
  • Copy: plugin-card hints are neutral (only last_error is red); capability reason codes, repeater status, wxbot bridge modes and 502/503 errors show operator copy instead of raw codes; 14 plugin descriptions are Chinese.
  • Lint: clears 9 ruff findings that feat: group webhooks, live draw config, and graph ops #10 left on main.

Deliberately not done here: owner-gate caching (changes the "disable takes effect at next boundary" invariant; measure first), sessionStorage for group selection (intentional purge in console-config.tsx), store/router refactors.

Test plan

  • pytest tests/unit/test_config_precedence.py tests/unit/test_admin_capabilities.py tests/unit/test_admin_router.py tests/unit/test_main.py tests/unit/test_draw_*.py tests/unit/test_group_webhook.py
  • ruff check app plugins tests → clean; mypy → clean
  • npm run typecheck; npm test → 39 files / 205 tests pass
  • npm run build → chunks split, 6 preloads
  • Open 概览 at 1280×800 and confirm the 7 launch steps wrap without overflow
  • Open 插件管理 and confirm group-scope hints are no longer red

zhx8702 and others added 4 commits September 14, 2026 09:34
macOS launchd puts XPC_SERVICE_NAME into every process; the fuzzy typo check
read it as APP_SERVICE_NAME and refused to build a prod Settings on dev boxes.

Co-authored-by: Cursor <cursoragent@cursor.com>
…n copy

The derived social.group_behavior capability inherited the wxbot SDK buttons.
Plugin descriptions shown in the console are now Chinese.

Co-authored-by: Cursor <cursoragent@cursor.com>
Feature pages load on first navigation; the entry chunk drops from 66 KB to
24 KB. Route changes start at the top. Launch steps use an auto-fit grid so
1280px no longer breaks. Labels, table headers, and tile captions return to the
body font at a 12px floor; plugin hints lose the red error tone; reason codes
and status values are shown as operator copy.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@zhx8702
zhx8702 merged commit 94bdd45 into main Sep 14, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant