Skip to content

feat(frontend): create repo inline when none exists for plugin upload#533

Merged
linkai0924 merged 7 commits into
devfrom
feat/plugin-upload
Jun 4, 2026
Merged

feat(frontend): create repo inline when none exists for plugin upload#533
linkai0924 merged 7 commits into
devfrom
feat/plugin-upload

Conversation

@linkai0924
Copy link
Copy Markdown
Collaborator

Summary

When uploading a plugin with no available repositories, show the existing CreateRepoDialog instead of a toast error. After repo creation, automatically chain to UploadPluginDialog.

Changes

  • manager.tsx: when no repos exist, open CreateRepoDialog → chain to UploadPluginDialog

Test Plan

  • Typecheck passes
  • Verify upload button shows create repo dialog when user has no repos

林凯90331 and others added 7 commits June 4, 2026 09:50
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add CreateRepoDialog component for inline repo creation
- When uploading plugin with no available repos, show create repo dialog
- After repo creation, chain to UploadPluginDialog automatically

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add showSyncOption prop to CreateRepoDialog (default true)
- Pass showSyncOption=false from plugin upload flow

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add isBuiltIn state to UploadPluginDialog
- Update pluginApi.upload to support isBuiltIn parameter
- Add pluginApi.listBuiltin for querying built-in plugins
- Hide sync option in create-repo dialog for plugin upload flow

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…nload

- Update getInstallCommand to read metadata.install for plugin items
- When method is zip_download, return curl/unzip/--plugin-dir commands
- Fallback to existing cs plugin add command for other items

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Show download ZIP button linking to /api/plugins/:slug/download
- Display install commands (curl/unzip/--plugin-dir) from metadata.install
- Add copy command button with copied state feedback
- Only visible for plugin itemType

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@linkai0924 linkai0924 merged commit de249d2 into dev Jun 4, 2026
5 checks passed
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.

1 participant