Skip to Content
HomeLink Hub

Dashboard

The lawyer's landing page, with assignment counts by status and a quick way to accept partnership invites.

Where it lives

RouteView fileAccess
/legalsrc/views/lawyer/dashboard/lawyer-dashboard.tsxlawyer

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 LAWYER role.
  • No other precondition. A brand-new lawyer sees zeros and an empty invite list.

Flow

Read the overview

  1. Opening /legal sends two requests: GET /api/v1/legal/assignments (no paging parameters, so the API returns every assignment as one array) and GET /api/v1/legal/partnership-invites.

  2. The page is headed "Legal Review Overview" with "Track your property verification assignments and review status".

  3. Five stat cards count the lawyer's assignments by status:

    CardCounts assignments with status
    Assignedassigned
    In Reviewin_review
    Changes Requestedchanges_requested
    Verifiedverified
    Rejectedrejected
  4. The Summary card reads "You have N total assignments" and shows two totals:

    TotalFormula
    PendingAssigned plus In Review
    CompletedVerified plus Rejected
  5. 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

Assignments in 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

  1. The Partnership Invites card ("Accept invites from agents and landlords to become assignable for legal verification.") lists every invite still in invite_pending.
  2. 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.").
  3. Press Accept Invite. The app sends PATCH /api/v1/legal/partnership-invites/{inviteId}/accept.
  4. A toast reads "Invite accepted. You are now contracted." The partnership moves from invite_pending to contracted, the list refetches and the row disappears.
  5. 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

SituationWhat the user sees
Assignments loadingA centred spinner replaces the whole page
Invites loadingA small spinner inside the Partnership Invites card
No pending invites"No pending invites at the moment."
No assignmentsAll five cards show 0 and the summary reads "You have 0 total assignments"
Assignments request failsThe cards show 0. There is no error message
A new assignment or invite arrivesThe 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.

On this page