Dashboard
The lawyer's landing page, with assignment counts by status and a quick way to accept partnership invites.
Where it lives
| Route | View file | Access |
|---|---|---|
/legal | src/views/lawyer/dashboard/lawyer-dashboard.tsx | lawyer |
It is the index route of the lawyer layout and the page a lawyer lands on after signing in.
Before you start
- Signed in with the
LAWYERrole. - No other precondition. A brand-new lawyer sees zeros and an empty invite list.
Flow
Read the overview
-
Opening
/legalsends two requests:GET /api/v1/legal/assignments(no paging parameters, so the API returns every assignment as one array) andGET /api/v1/legal/partnership-invites. -
The page is headed "Legal Review Overview" with "Track your property verification assignments and review status".
-
Five stat cards count the lawyer's assignments by status:
Card Counts assignments with status Assigned assignedIn Review in_reviewChanges Requested changes_requestedVerified verifiedRejected rejected -
The Summary card reads "You have N total assignments" and shows two totals:
Total Formula Pending Assigned plus In Review Completed Verified plus Rejected -
The stat cards are not links. To open a filtered list, use Assignments in the sidebar, see Assignments.
Two statuses are not on any card
accepted (accepted but review not started) and reassigned are included in the total but have no card. accepted and changes_requested are also left out of the Pending figure, so Pending can be lower than the amount of open work.Accept an invite from the dashboard
- The Partnership Invites card ("Accept invites from agents and landlords to become assignable for legal verification.") lists every invite still in
invite_pending. - Each row shows the inviter's name (or "Platform Partner" when the inviter's details are missing) and the invite note (or "Partnership invite for legal verification assignments.").
- Press Accept Invite. The app sends
PATCH /api/v1/legal/partnership-invites/{inviteId}/accept. - A toast reads "Invite accepted. You are now contracted." The partnership moves from
invite_pendingtocontracted, the list refetches and the row disappears. - On failure the toast shows the API message (for example "Invite has already been processed"), or "Failed to accept invite".
While one accept is running, every Accept Invite button on the card is disabled.
To reject an invite, or to look at the inviter's profile first, use the Invites page, see Partnership invites. The dashboard only offers accept.
States and edge cases
| Situation | What the user sees |
|---|---|
| Assignments loading | A centred spinner replaces the whole page |
| Invites loading | A small spinner inside the Partnership Invites card |
| No pending invites | "No pending invites at the moment." |
| No assignments | All five cards show 0 and the summary reads "You have 0 total assignments" |
| Assignments request fails | The cards show 0. There is no error message |
| A new assignment or invite arrives | The numbers do not change live. They refresh on reload, or after an action on this page refetches the data. A notification still arrives in the bell |
What happens next
- Accepting an invite makes the lawyer selectable when that agent or landlord assigns a listing, and the API emails the inviter "Your Legal Partnership Invite Was Accepted".
- New work shows up as a higher Assigned count. Open it from Assignments.
HomeLink Hub