PR: #716: feat(clients): adopt shared list empty state [Story-2689] by @ayush-pramaan
View PR →

Story 2689

The clients list now uses the prominent shared empty state

A firm with no clients now sees the page-sized shared empty state. A member with write access can open the existing inline add-client sheet directly from it without leaving the clients list.

Before and after

Before After
The clients route rendered a small, route-local empty-state card from clients-empty-state.tsx. The route renders the shared EmptyState with the page variant and the larger icon treatment.
The route and shared component duplicated the same job. One shared component now serves the clients list and the client-related matters register through its page and card variants.

Copy and interaction contract

Review path

  1. Open Clients/EmptyState in Storybook and select the Page story. Confirm the page-sized treatment includes an action.
  2. Select the Card story. Confirm the compact variant remains suitable for the related-matters register.
  3. As a member with write access in an empty firm, open the clients list and select “Add your first client”. Confirm the inline sheet opens and the URL does not change.
  4. Repeat with a read-only member and confirm that no add action is shown.
  5. Review the empty clients list in English and Hindi and confirm all three labels resolve from the existing locale catalogs.

Files changed

3 file(s), +20 / -48 lines

Path Role + -
src/app/[locale]/(workspace)/clients/clients-empty-state.tsxApp route+0-39
src/app/[locale]/(workspace)/clients/clients-table.tsxApp route+18-2
src/components/clients/empty-state.stories.tsxComponent+2-7