feat(contacts): surface company contracts, projects, invoices, assets on detail page #208
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mapps-195-company-detail-relationships"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The company detail page rendered only Contacts, Sites, and Recent Tickets, omitting the equally company-scoped Contracts, Projects, Invoices, and Assets. An account manager had to leave the company page and filter each module separately to see them.
Add four relationship cards to the company detail page, each backed by the module's existing
?company_id=list filter (/contracts,/projects,/invoices,/assets) withper_page=5. Every card mirrors the existing card style: a loading state, a clean per-entity empty state, a status badge, an identifying link into the module detail route, and a "View All" affordance. The Assets card resolvesasset_type_idto a readable type name via a one-shot/asset-typesfetch. The Statistics panel gains Contracts, Projects, Invoices, and Assets counts, each read from the same list envelope'smeta.totalso no new count endpoints are required.No backend changes: all four filters already exist server-side. Status/money helpers are kept local to contacts.rs because the per-module versions are private; this keeps the change to a single file.
#MAPPS-195