from simorgh.apps.modules.registry import CapabilitySpec, FeatureSpec, ModuleManifest, register_module

register_module(
    ModuleManifest(
        name="workspaces",
        version=1,
        domain="platform",
        label_key="workspaces.module_label",
        description="Workspaces — UX shell with role-based access grants and navigation",
        capabilities=(
            CapabilitySpec(slug="management", label_key="workspaces.capabilities.management",
                          description="Workspace management", icon="grid"),
        ),
        features=(
            FeatureSpec(code="management.workspace_management", label_key="workspaces.features.workspace_management", scope="tenant", default_enabled=True, is_platform_internal=True, description="Create and manage UX-shell workspaces within a tenant"),
            FeatureSpec(code="management.access_grants", label_key="workspaces.features.access_grants", scope="tenant", default_enabled=True, is_platform_internal=True, description="Role→workspace access grants for workspace visibility"),
        ),
    )
)
