Skip to content

Add Organization top-bar button to download latest openXYOS source - #49

Merged
XYAIStudio merged 3 commits into
mainfrom
cursor/org-download-source-topbar-5e8b
Sep 17, 2026
Merged

XYAIStudio merged 3 commits into
mainfrom
cursor/org-download-source-topbar-5e8b

Conversation

@XYAIStudio

@XYAIStudio XYAIStudio commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Organization 页顶部状态栏增加「下载最新源码」主按钮:点击后先打开系统文件夹选择器,再把最新 openXYOS 主分支源码下载到所选目录。不再需要先打开设置抽屉。

  • 顶栏主 CTA:下载最新源码 / Download latest source(完整名称在 tooltip)
  • 复用已有 resolveOpenxyosSourceDest + pickDesktopFolder + POST /api/org-module/source/download
  • 成功提示保存路径,失败给出明确错误
  • 管理抽屉保留次要入口(桌面端同一按钮;非桌面端仍可手填路径)
  • 不改动已有 UTF-8 目录名处理

Target branch

  • Base is develop (feature / fix — default)
  • Base is main (requested for this change)

Type of change

  • New feature

Test plan

  • cd dashboard && npx vitest run src/pages/Organization src/layouts/sidebarNav.test.ts — 18 passed
  • cd dashboard && npx tsc --noEmit
  • Added/updated Organization page tests: top-bar button visible without opening settings; click → native picker → download; cancel picker does not download
  • uv run pytest tests/unit/desktop/test_nsis_uninstall.py::test_organization_embeds_local_openxyos_url — 源码断言改为 org-download-source + downloadSource(),不再依赖已删除的 browseSourceDest
  • 桌面端手测:组织页顶栏点击按钮 → 系统文件夹选择器 → 下载完成并显示保存路径
  • make all 未在本环境完整跑(改动仅 dashboard + CHANGELOG + 该桌面契约测试)

Checklist

  • Updated CHANGELOG.md (user-facing)
  • README / docs updated (if needed)
Open in Web Open in Cursor 

cursoragent and others added 3 commits September 17, 2026 14:03
Expose the existing folder-picker download on the status bar so users no longer have to open settings first.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
…button.

The drawer browseSourceDest helper is gone; keep checking native folder-picker wiring via org-download-source.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
@XYAIStudio
XYAIStudio marked this pull request as ready for review September 17, 2026 14:46
@XYAIStudio
XYAIStudio merged commit 806a94d into main Sep 17, 2026
5 checks passed
@XYAIStudio
XYAIStudio deleted the cursor/org-download-source-topbar-5e8b branch September 17, 2026 14:46
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