Files
skillshare/ui
Willie 96b6acff28 refactor(ui): isolate resource operations and cancellable reads (#957)
* refactor(ui): isolate resource operations and cancellable reads

Keep resource toggle rollback and move reconciliation outside the view. Preserve the preview and revision protocols and distinguish cancelled resource reads from connection failures.

* refactor(ui): standardize JSON requests across dashboard APIs

Keep HTTP verbs, paths and payloads visible at each endpoint without repeating serialization. Preserve bodyless requests, raw JSON imports and streaming responses, and cover the extras request contracts.

* refactor(ui): share sync eligibility and upgrade recovery

Use scoped plans for sync counts and writes, share restart polling, and restore only the edited target field when a resource write fails.

* fix(ui): show pending MCP source migrations in sync preview

Render the migration counted by the global plan rather than an empty preview when no MCP target file changes. Cover the mismatch through the rendered sync page.
2026-11-19 00:48:18 +08:00
..
2026-04-19 09:29:18 +08:00

Dashboard development

From ui/ inside the devcontainer:

  • pnpm lint checks TypeScript and React code with Oxlint.
  • pnpm lint:typed runs the same configuration with type information from tsrs. CI runs this check and pnpm format:check for the dashboard.
  • pnpm format applies Oxfmt; pnpm format:check checks formatting without writing.
  • pnpm typecheck checks project references with tsrs. pnpm build runs it before Vite.
  • pnpm test runs the dashboard tests with Vitest.