Skip to content

Merge sidebar Settings into a 900px SbModal - #19

Merged
linkxzhou merged 1 commit into
mainfrom
cursor/ui-settings-merge-plan-acc9
Sep 21, 2026
Merged

linkxzhou merged 1 commit into
mainfrom
cursor/ui-settings-merge-plan-acc9

Conversation

@linkxzhou

@linkxzhou linkxzhou commented Sep 21, 2026 •

Copy link
Copy Markdown
Owner

Merges sidebar Settings and the header connection drawer into one top-right SbModal (maxWidth: 900).

Plan

plan/planv2.0/ui-settings-merge-plan.md updated for the review decisions:

  • Reuse SbModal (extend with maxWidth / minWidth / hideFooter) — no extra Dialog shell.
  • Delete ApiKeyDrawer (Sheet-based settings) and the full-page /settings view.

Implementation

  • Top-right gear opens SettingsModal (SbModal + tabs: 连接 / 外观 / 模型 / 供应商).
  • Sidebar no longer lists Settings. /settings redirects to /?settings=1 and opens the same modal.
  • 401 still opens settings on the 连接 tab.
  • Vendor “配置” is an inline form (no nested settings drawer).
  • Auth store: settingsOpen / openSettings / closeSettings (drawer APIs removed).

Verify

cd ui && yarn test && yarn build

Then VITE_USE_MOCK=true yarn dev, click the top-right gear, confirm sidebar has no 设置, and visit /settings.

Tests

yarn test: 190 passed. yarn build succeeds.

Open in Web Open in Cursor 

Inventory both current settings UIs and specify a single top-right
global entry that opens a 900px modal. Plan only; no product code.

Co-authored-by: linkxzhou <zhoulv2000@163.com>
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lessdb Error Error Sep 21, 2026 11:59am UTC

@linkxzhou
linkxzhou marked this pull request as ready for review September 21, 2026 12:01
@linkxzhou
linkxzhou merged commit 3045b9a into main Sep 21, 2026
2 of 3 checks passed
@cursor cursor Bot changed the title Plan: merge sidebar Settings into top-right 900px modal Merge sidebar Settings into a 900px SbModal Sep 21, 2026

This branch had an error being deployed

1 failed deployment
Preview — ae54cdb1 Deployed Sep 21, 2026 by vercel[bot]
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.

2 participants