#1114 — Backend: activity filtering, KPI endpoint & document upload improvements for Tickets Dashboard

Repo: Twill-AI/facade State: closed | Status: done Assignee: meliascosta

Created: 2026-03-11 · Updated: 2026-03-12

Description

Summary

Backend tasks required to support the Tickets Dashboard (twill-ai-ui#1127) and document upload improvements (facade#1083).

Tasks collected from review comments addressed to @meliascosta.


Tasks

1. Activity/Ticket endpoint filtering improvements

GET /api/v1/partner/users/{user_id}/activities and GET /api/v1/master/activities need the following additional filter params:

  • Multi-assignee filter: Support fetching all activities assigned to any user (not just a single assigned_to_id). The tickets dashboard needs all assigned activities spanning multiple assignees.
  • merchant_id filter: To support the “Related Tickets” sidebar section — filter activities by merchant.
  • Search filter: Full-text or partial-match search param to support the ticket list search bar.
  • parent_activity_id filter: To fetch a ticket’s child activities (thread entries). Required for rendering the communication timeline in the ticket detail view.

Reference: twill-ai-ui#1127 comments by @raymondehizoba


2. Assigned activities KPIs endpoint

New endpoint to power the stats row on the Tickets Dashboard:

  • Open count (with delta vs. yesterday)
  • Assigned to Me count
  • Urgent count
  • Avg First Response time (with delta vs. last week)
  • Resolved Today count (with delta v

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets