Skip to content

User Story: Categories and Categorization

Overview

As a team member, I want to add categories to threads so that I can categorize and organize conversations for better tracking and filtering.

User Personas

  • Support Agent: Categorizes threads by urgency, category, or issue type
  • Team Lead: Uses categories to track workload and priorities
  • Billing Specialist: Categorizes threads by billing category or status

User Stories

Add Categories to Thread

As a support agent I want to add one or more categories to a thread So that I can categorize it for easier organization

Acceptance Criteria:

  • Category management UI is accessible from thread detail view ("Manage Categories" button)
  • Multiple categories can be added to a single thread
  • Categories are selected from App Suite's predefined mail categories
  • Categories appear immediately after adding
  • Category changes are saved to backend
  • All team members see updated categories in real-time

View Categories on Thread

As a team member I want to see categories displayed on threads So that I can quickly identify the category or priority

Acceptance Criteria:

  • Categories are visible in thread list view
  • Categories are visible in thread detail view
  • Each category has visual styling (color, border, icon) from App Suite
  • Categories are displayed inline without wrapping
  • Category names are readable and not truncated

Remove Categories from Thread

As a support agent I want to remove categories from a thread So that I can correct mistakes or update categorization

Acceptance Criteria:

  • Each category has a remove/close button
  • Clicking remove button deletes the category
  • Category removal is saved immediately
  • Category removal syncs to all users in real-time

Update Categories

As a team member I want to modify the entire category set on a thread So that I can reorganize categorization

Acceptance Criteria:

  • Category editor allows bulk changes
  • Category changes are committed together
  • Category update action is recorded in timeline
  • Changes propagate to all users

Category Change Tracking

As a team lead I want to see when categories were added or changed So that I can understand thread history

Acceptance Criteria:

  • Category changes appear in thread timeline
  • Timeline shows who made the change
  • Timeline shows timestamp of change

Filter Thread List by Category

As a team member I want to filter the thread list by one or more mail categories So that I can focus on threads belonging to a specific category without losing my current status filter

Acceptance Criteria:

  • Filter dropdown in the thread list header includes a "Categories" section with all available mail categories
  • Each category is shown with its colored badge and icon
  • Clicking a category toggles it on/off; a checkmark indicates active selection
  • Category and status filters are independent — both can be active simultaneously
  • Active filters are reflected in URL query parameters, making filtered views bookmarkable and shareable
  • Filtering works on individual inbox views and the "My threads" view
  • Thread count badges update to reflect active filters
  • Deselecting all categories returns to the unfiltered view
  • Exiting archive mode preserves active category filters
  • When no categories are configured, a "No categories available" message is shown

Value Proposition

Categories enable consistent categorization using App Suite's predefined mail categories. Teams use organization-wide categories (e.g., "Billing", "Support", "Urgent") that are managed centrally in App Suite. Category filtering lets users scope their thread list to the categories they care about, and combined with status filters and URL-driven state, it enables focused workflows and shareable views.

  • Thread Management
  • Status Tracking
  • Real-time Collaboration

Technical Notes

  • Category IDs are stored in threads.tags JSONB column (implementation detail)
  • API endpoint: POST /threads/:inboxId/:threadId/categories
  • Category updates create action records with type "tag"
  • Real-time sync via WebSocket (teams:update event)
  • Categories sourced from App Suite mail categories (predefined, not free-form)
  • Category definitions (name, color, icon) fetched from App Suite categoriesCollection API
  • Category filtering uses separate filter=category:$id query params, composable with status filters