Skip to content

feat(ui): add return-to-desktop sidebar action#173

Open
Che-Zhu wants to merge 1 commit into
labring:mainfrom
Che-Zhu:feat/home-return-to-desktop
Open

feat(ui): add return-to-desktop sidebar action#173
Che-Zhu wants to merge 1 commit into
labring:mainfrom
Che-Zhu:feat/home-return-to-desktop

Conversation

@Che-Zhu

@Che-Zhu Che-Zhu commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an always-visible return-to-Sealos-Desktop action above the sidebar Upgrade control
  • request closeDesktopApp with the canonical system-brain app key
  • add sidebar contract tests for the event payload, placement, and intentionally unconditional rendering

Why

Sealos Desktop suppresses the normal window title bar for system-brain, so Brain needs its own explicit control to close the app iframe and return users to the desktop.

Validation

  • bun test apps/ui/src/components/app-sidebar.test.ts apps/ui/src/components/app-sidebar-upgrade.test.ts — 7 passed
  • bunx ultracite check apps/ui/src/components/app-sidebar.tsx apps/ui/src/components/app-sidebar.test.ts
  • bun typecheck
  • git diff --check upstream/main...HEAD

Known repository check

The full bun check remains blocked by pre-existing formatting findings in apps/ui/drizzle/meta/0004_snapshot.json and apps/ui/drizzle/meta/_journal.json; this PR does not modify either file.

@Che-Zhu Che-Zhu marked this pull request as ready for review July 11, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant