feat(roles): add admin store roles page, permission i18n, and menu integration
Some checks failed
Some checks failed
- Add admin store roles page with merchant→store cascading for superadmin and store-only selection for platform admin - Add permission catalog API with translated labels/descriptions (en/fr/de/lb) - Add permission translations to all 15 module locale files (60 files total) - Add info icon tooltips for permission descriptions in role editor - Add store roles menu item and admin menu item in module definition - Fix store-selector.js URL construction bug when apiEndpoint has query params - Add admin store roles API (CRUD + platform scoping) - Add integration tests for admin store roles and permission catalog Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -276,6 +276,34 @@ class UserPermissionsResponse(BaseModel):
|
||||
role_name: str | None = None
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Permission Catalog Schemas
|
||||
# ============================================================================
|
||||
|
||||
|
||||
class PermissionCatalogItem(BaseModel):
|
||||
"""A single permission with its metadata for UI display."""
|
||||
|
||||
id: str
|
||||
label: str
|
||||
description: str
|
||||
is_owner_only: bool = False
|
||||
|
||||
|
||||
class PermissionCategoryResponse(BaseModel):
|
||||
"""A category of related permissions."""
|
||||
|
||||
id: str
|
||||
label: str
|
||||
permissions: list[PermissionCatalogItem]
|
||||
|
||||
|
||||
class PermissionCatalogResponse(BaseModel):
|
||||
"""Complete permission catalog grouped by category."""
|
||||
|
||||
categories: list[PermissionCategoryResponse]
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Error Response Schema
|
||||
# ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user