fix(web): show membership timestamp in network detail Added column #664

Open
opened 2026-06-15 10:28:29 +00:00 by simon · 0 comments
Owner

While expanding the public Host Networks documentation, I found that the network detail member table labels a column as Added but renders formatDateTime(host.createdAt) from the host record in apps/web/app/(dashboard)/hosts/networks/[id]/network-detail-client.tsx.

The membership table schema has host_network_memberships.created_at, but listHostsInNetwork returns only host rows and listMembershipsForNetwork returns hostId plus autoAssigned. As a result, operators can read the column as the membership add time even though it is currently the host creation time.

Suggested fix: include membership createdAt in the network detail data path, render that value in the Added column, and add/adjust tests for the network detail table. If the intended value is host creation time, rename the column to avoid implying membership history.

While expanding the public Host Networks documentation, I found that the network detail member table labels a column as `Added` but renders `formatDateTime(host.createdAt)` from the host record in `apps/web/app/(dashboard)/hosts/networks/[id]/network-detail-client.tsx`. The membership table schema has `host_network_memberships.created_at`, but `listHostsInNetwork` returns only host rows and `listMembershipsForNetwork` returns `hostId` plus `autoAssigned`. As a result, operators can read the column as the membership add time even though it is currently the host creation time. Suggested fix: include membership `createdAt` in the network detail data path, render that value in the `Added` column, and add/adjust tests for the network detail table. If the intended value is host creation time, rename the column to avoid implying membership history.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carrtech/ct-ops#664
No description provided.