Skip to content

feat(web-studio): add account deletion workflow - #3912

Merged
ZaynJarvis merged 2 commits into
mainfrom
feat/web-studio-delete-account
Aug 10, 2026
Merged

ZaynJarvis merged 2 commits into
mainfrom
feat/web-studio-delete-account

Conversation

@yufeng201

Copy link
Copy Markdown
Collaborator

Description

Add a Root-only Account deletion workflow to Web Studio user management.

Before this change, the backend and generated SDK supported deleting an Account, but Web Studio had no UI entry. After this change, validated Root users can delete the currently managed Account from /users after typing the exact Account name in a destructive confirmation dialog.

The change is limited to Web Studio account management. Account Admin and User permissions are unchanged, the existing backend API contract is unchanged, and the Add User dialog extraction preserves its existing behavior.

Human Involvement

  • A human participated in the implementation or review loop
  • This PR was generated entirely by AI agents without human participation in the loop

Related Issue

N/A

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

  • Add a Root-only Delete Account action to the user management header and connect it to the existing DELETE /api/v1/admin/accounts/{account_id} endpoint.
  • Require an exact Account-name confirmation, describe the cascade deletion scope, and recover to another Account or connection settings after deletion.
  • Add English and Chinese copy, interaction tests, and extract the Add User dialog so the maintained route remains below 800 lines.

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Commands and results:

  • corepack pnpm@10.12.1 exec vitest run src/routes/users/-components/delete-account-button.test.tsx src/hooks/use-app-connection.test.ts src/lib/studio-permissions.test.ts — 27 tests passed.
  • Targeted ESLint and Prettier checks for all changed files — passed.
  • corepack pnpm@10.12.1 exec vite build --base /studio/ — passed.
  • Chrome validation at http://127.0.0.1:3000/users — verified button placement, confirmation dialog, disabled state for empty/incorrect names, enabled state for the exact Account name, and no relevant console errors.

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Not attached. The destructive confirmation flow was verified locally in Chrome without executing the final deletion.

Additional Notes

  • The backend deletion endpoint and generated Web Studio SDK method already existed; this PR only exposes the workflow in the Root management UI.
  • A real Account deletion was intentionally not executed during UI validation to avoid destroying local user data.
  • The full Web Studio TypeScript check currently reports pre-existing errors on main; the changed files have no new TypeScript errors.
  • No documentation change is required because this is a self-explanatory management action backed by the existing API.

@yufeng201
yufeng201 marked this pull request as ready for review August 10, 2026 07:59
@ZaynJarvis
ZaynJarvis merged commit 668637f into main Aug 10, 2026
6 checks passed
@ZaynJarvis
ZaynJarvis deleted the feat/web-studio-delete-account branch August 10, 2026 08:00
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Aug 10, 2026
frankyang2008-eng added a commit to frankyang2008-eng/OpenViking that referenced this pull request Oct 9, 2026
Sync upstream main (e546b79) - 19 commits, 315 files:

- refactor(client): remove Python embedded mode (volcengine#3712)
- perf(queue): stream semantic vectorization tasks (volcengine#3636)
- perf(queuefs): defer embedding content materialization (volcengine#3871)
- feat(memory): support event tag filtering (volcengine#3850)
- feat(pathlock): keep lease alive across handoff (volcengine#3903)
- feat(server): refresh read-replica API key index via store watcher (volcengine#3857)
- feat(agent-evolution): add trajectory date filters (volcengine#3915)
- feat(agent-evolution): add trajectory task query (volcengine#3856)
- feat(web-studio): add account deletion workflow (volcengine#3912)
- feat(web-studio): add scheduled resource sync management (volcengine#3909)
- fix(watch): avoid global lock during resource moves (volcengine#3833)
- fix(observer): ignore historical lock diagnostics in health (volcengine#3920)
- fix(session): validate archive names when loading history (volcengine#3922)
- fix(task-tracker): delete expired persisted tasks (volcengine#3913)
- fix(storage): exclude zero-byte files from index expectations (volcengine#3904)
- fix(semantic): reduce entity hallucinations in summaries (volcengine#3908)
- fix(retrieval): record first-turn session recalls (volcengine#3907)
- fix(opencode-plugin): serialize saveState to prevent ENOENT race (volcengine#3885)
- fix(examples): align quick start with server mode (volcengine#3923)

Reviewed: zero conflicts, all local dev-branch modifications preserved,
no references to deleted embedded client modules, config backward-compatible.
frankyang2008-eng pushed a commit to frankyang2008-eng/OpenViking that referenced this pull request Oct 9, 2026
* feat(web-studio): add account deletion workflow

* fix(web-studio): address account deletion review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants