Skip to content

Component: Workspace Card

Display workspace identity and status (name, image, description, grouped metrics, apps activation chips) and provide an overflow menu for Edit, Duplicate, and Delete actions.

Workspace card body is grouped into:

  • Details
    • knowledge bases
    • agents
    • users
  • Channels
    • social comments
    • review platforms
    • FB messenger
    • web chat
    • WhatsApp
    • SMS
  • Apps
    • existing app activation/list structure
  • Inputs: workspace (full Workspace object), onEdit, onDuplicate, onDelete (callbacks), canDelete (boolean — false when only one workspace exists)
  • Outputs: onEdit(workspace), onDuplicate(workspace), onDelete(workspace) when the user chooses the corresponding menu item. Delete is disabled (greyed, non-clickable) when canDelete is false.
  • Side effects: none (parent owns state and dialogs)

A three-dot (“more”) button in the card header opens a dropdown: Edit (opens edit dialog), Duplicate (clones workspace with ” (Copy)” suffix), Delete (opens delete confirmation; disabled when only one workspace). See Account – Workspaces for dialog and deletion rules.

  • Card (workspaces page card view)
  • Table row (workspaces page table view — same actions, different presentation)
  • Default: workspace shown
  • Loading: skeleton
  • Empty: N/A
  • Error: fallback (workspace unavailable)
  • Disabled: non-selectable (no permission)
  • Entire card is keyboard-focusable if clickable
  • Clear focus ring
  • Use semantic button/link when navigable

Security & privacy considerations (if applicable)

Section titled “Security & privacy considerations (if applicable)”
  • Do not show cross-workspace data
  • Avoid showing sensitive metadata (tokens, channel secrets)
  • workspace.card.clicked (optional)