feat(tenant): implement self-service tenant creation functionality

Added a new API endpoint for creating tenants, allowing any logged-in user to create their own workspace. The backend automatically assigns the creator as the Owner of the new tenant. A new CreateTenantDialog component was introduced in the frontend, enabling users to input the workspace name and an optional description. Internationalization files were updated to include relevant messages for this feature across multiple languages.

Refs: #1303
This commit is contained in:
wizardchen
2026-05-16 04:42:21 +08:00
committed by lyingbug
parent 79d397297d
commit 29dc99ae79
10 changed files with 466 additions and 29 deletions
+13
View File
@@ -2342,6 +2342,19 @@ export default {
loadTenantsFailed: 'Failed to load tenant list',
loading: 'Loading...',
loadMore: 'Load more',
create: {
action: 'Create new workspace',
dialogTitle: 'Create new workspace',
nameLabel: 'Workspace name',
namePlaceholder: 'e.g. My new project',
nameRequired: 'Please enter a workspace name',
descriptionLabel: 'Description (optional)',
descriptionPlaceholder: 'Briefly describe what this workspace is for',
submit: 'Create',
cancel: 'Cancel',
success: 'Workspace created successfully',
failed: 'Failed to create workspace',
},
details: {
idLabel: 'Tenant ID',
idDescription: 'Unique identifier of your tenant',