You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate the completed Contacts Page frontend with the backend API. Ensure the table displays visitor details and allows dynamic sorting as per the frontend implementation. The Contacts Page will rely on data from the LinkVisitors table, provided by the backend API.
Tasks
Connect the Contacts Page UI to the backend API.
Populate the table with the following data:
Name: Combine first_name and last_name.
Email: Display the visitor's email.
Last Viewed Link: Fetch friendlyName from the Link table, with LinkID as a fallback.
Last Activity: Use the updatedAt field from LinkVisitors.
Total Visits: Calculate and display the total number of accesses by the visitor.
Sorting is mostly implemented, but ensure the below:
Last Activity: Default sort in descending order. Use the useSort hook if possible.
Total Visits: Optional sort if feasible within the timeframe.Updated
Integrate the completed Contacts Page frontend with the backend API. Ensure the table displays visitor details and allows dynamic sorting as per the frontend implementation. The Contacts Page will rely on data from the
LinkVisitors
table, provided by the backend API.Tasks
first_name
andlast_name
.friendlyName
from theLink
table, withLinkID
as a fallback.updatedAt
field fromLinkVisitors
.useSort
hook if possible.Total Visits: Optional sort if feasible within the timeframe.Updated
N/A
for missingName
orEmail
.Add an empty state message: "No contacts available yet. Share a document to start tracking visitors!"Updated
Now part of Create a Reusable Empty State Component #158.
Ensure responsiveness across devices and screen sizes.Updated
Now part of Improve App Responsiveness #152.
Update
: The schema has also changed, so please make sure to get the latest version frommaster
andfeat/document-details-page
(minor change)Notes
LinkVisitors
table (Develop Backend API for Contacts Page #142).The text was updated successfully, but these errors were encountered: