Skip to content

MyClientListing columns

Paulo Gomes da Cruz Junior edited this page Jun 16, 2026 · 3 revisions

MyClientListing — Column Definitions

MyClientListing/constants.tsx exports the column definitions array that drives the My Client List results table.

Source References

  • Source: frontend/src/components/waste/MyClientListing/constants.tsx
  • Tests: frontend/src/components/waste/MyClientListing/index.unit.test.tsx

Exported Symbols

headers

TableHeaderType<MyForestClientDto>[] — Column configuration array passed directly to the TableResource component.

Column key Header label Sortable Default visible Render component
client.code Client No. Yes Yes RedirectLinkTag — links to /search?clientNumbers={value} in the same tab
client.description Client name Yes Yes Plain text
submissionsCount RUs created by me No Yes Plain text
blocksCount Draft blocks in my RUs No Yes Plain text
lastUpdate Last Update Yes Yes DateTag

Behavior

  • The client.code column redirects to the waste search page pre-filtered by the selected client number. The navigation is same-tab (sameTab=true) using TanStack Router Link.
  • All other linked or formatted columns use standard tag components with no feature-flag dependency.

Known Constraints

  • The client.code redirect URL embeds the client number as a query param: /search?clientNumbers={value}. If the search page route or param name changes, this constant must be updated.
  • Adding or removing columns requires updating both this file and any snapshot tests that assert on the rendered header list.

See Also

Waste Plus Wiki

Home

Architecture

Codes

Decisions

Knowledge Base

Development

Changes

Clone this wiki locally