#1019 — Improvements on commissions tables
Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: raymondehizoba
Created: 2026-02-06 · Updated: 2026-02-11
Description
Context
We want to update commisions view for both partner and master users:
Main Changes:
- Commission records are included as acordeons inside Commissions by merchant
- We add sorting and pagination to all tables
- Add a commissions table in the merchant details view
About acordeons and pagination
The idea behind these sub-tables is that you get the first page nested as part of the main table (you may need to set the include_records or include_merchants flag) and then to get other pages or sort the table you use the corresponding endpoint.
Corresponding endpoints for subtables:
Commissions by merchant
Sub-table: Commission records → endpoint /commission-records GET (you need to filter by merchant_id)
Commissions by assignee
Sub-table: Merchant commissions → endpoint /commission-by-merchant GET (you need to filter by assigned_to_id)
AC:
- Commissions by Merchant now shows acordeon tables (similar to Commissions by assignee) that display the commission records (there is a new field in the object), please note that Partner and Master users see different columns.
- The new foldable tables showing records are paginated and the columns are sortable. They should respect the global filters from the top of the page (date for partner and date+partner for master)
- Commissions by assignee is now sortable by name, commission, rate
- The acordeon table inside Commission by assignee is also sortable and is paginated
- The
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets