Skip to Content
HomeLink Hub

Lawyer Portal overview

Who the lawyer portal is for, how a lawyer account comes to exist, how it is guarded, and how the pieces fit together.

The lawyer portal is a separate set of screens inside the dashboard web app (client-app). It shares the sign-in pages, the app shell and the Settings screen with agents and landlords, but has its own sidebar, routes and dashboard under /legal. A lawyer uses it to accept partnership invites from agents and landlords, and to review the properties those partners assign for legal verification.

Where it lives

RouteView fileAccess
/legalsrc/views/lawyer/dashboard/lawyer-dashboard.tsxlawyer
/legal/assignmentssrc/views/lawyer/assignments/lawyer-assignments.tsxlawyer
/legal/assignments/:idsrc/views/lawyer/assignments/assignment-detail.tsxlawyer
/legal/invitessrc/views/lawyer/invites/lawyer-invites.tsxlawyer
/legal/invites/partner/:idsrc/views/lawyer/invites/partner-profile.tsxlawyer
/legal/notificationssrc/views/lawyer/notifications/lawyer-notifications.tsxlawyer
/legal/settingssrc/views/lawyer/settings/lawyer-settings.tsxlawyer

Routes are declared in src/routes/lawyer.routes.tsx and mounted under legal in src/routes/router.tsx. The layout is src/layouts/LawyerLayout.tsx. All API calls are in src/services/legal/legal-api.ts (base path /api/v1/legal).

Before you start

  • The account. A lawyer creates their own account on /auth/signup by choosing the Lawyer account type ("Review documents and handle legal checks on deals"). Nobody can create it for them: an agent's invite only works for an email that already belongs to a lawyer account.
  • Signing in. After email or Google sign-in, a user whose role is LAWYER is sent to /legal. Lawyers are never sent to onboarding and never to a saved callback URL.
  • Work arrives by invitation. A new lawyer has an empty portal until an agent or landlord invites them, the lawyer accepts, and the partner assigns a listing.

Flow

How the work reaches a lawyer

  1. An agent or landlord sends an invite to the lawyer's email. The lawyer is emailed and the invite shows on /legal and /legal/invites as Invite Pending.
  2. The lawyer accepts. The partnership becomes contracted. See Partnership invites.
  3. The partner assigns one of their listings to the lawyer. An assignment with status assigned appears on /legal/assignments. See Assignments.
  4. The lawyer accepts the assignment, starts the review, reads any documents the lister sent and submits a decision. See Reviewing an assignment.
  5. The decision updates the listing's legal status. A Verified decision can make the listing go live.
StageStatus valueChanged by
Partnershipinvite_pending, then contracted or rejectedLawyer
Assignment createdassignedAgent or landlord (or the platform's automatic default-lawyer assignment)
Assignment acceptedacceptedLawyer
Review startedin_reviewLawyer
Decisionverified, rejected or changes_requestedLawyer
Documents sent after a change requestback to in_reviewAgent or landlord
Replaced by another lawyerreassignedAgent, landlord or admin

The shell is the same component agents see (src/components/app-shell.tsx), switched to lawyer mode.

PlaceItems
Sidebar, MenuDashboard (/legal), Assignments (/legal/assignments), Invites (/legal/invites)
Sidebar, GeneralSettings (/legal/settings), Help (/help), Logout (/auth/signin)
Top barGreeting with "Review your pending legal assignments and submit decisions on time to keep property approvals moving.", theme toggle, notification bell, account menu
Account menuAccount (/legal/settings), Contact Support (/help), Replay App Tour, Logout

The global search box and the Add Property button are hidden for lawyers. The bell opens /legal/notifications, see Notifications and settings.

The lawyer dashboard: assignment counts, summary and partnership invites.
The lawyer dashboard: assignment counts, summary and partnership invites.

On first visit a short guided tour runs. It points at the bell ("Stay in the loop"), Dashboard ("Your legal overview"), Assignments, Invites ("Partnerships") and the account menu. It can be replayed from the account menu.

Help is unreachable for lawyers

Both Help in the sidebar and Contact Support in the account menu go to /help. That route sits under the agent layout, which redirects every lawyer back to /legal. A lawyer who clicks either link lands on their dashboard again.

Route guards

Three checks run in the browser, in this order:

  1. src/layouts/ProtectedRoute.tsx wraps every signed-in route. With no access token it redirects to /auth/signin. If the stored user's role is not AGENT, LANDLORD or LAWYER, it clears the token, refresh token and user, then redirects to /auth/signin.
  2. src/layouts/LawyerLayout.tsx wraps /legal and everything under it. If the stored role is not LAWYER it redirects to /.
  3. src/layouts/RootLayout.tsx wraps the agent and landlord routes. If the stored role is LAWYER it redirects to /legal.

So an agent who types /legal/assignments lands on the agent dashboard, and a lawyer who types /listings lands on the lawyer dashboard.

The browser check is not the security boundary

The role is read from the user object in local storage. The API enforces the real rule: every lawyer endpoint requires the LAWYER role, and each invite or assignment must belong to the signed-in lawyer ("You do not have access to this invite").

States and edge cases

SituationWhat happens
Not signed inRedirect to /auth/signin
Signed in as agent or landlord, opens a /legal URLRedirect to /
Signed in as lawyer, opens an agent URL such as /requests or /helpRedirect to /legal
Access token expiredAPI calls fail and screens show their empty or not-found states. The lawyer screens use RTK Query, which does not trigger the automatic sign-out
New lawyer with no invites or assignmentsDashboard shows zeros and "No pending invites at the moment."

What happens next

Read the pages in order: Dashboard, Partnership invites, Assignments, Reviewing an assignment, Notifications and settings. The agent's side of the same workflow is in Legal partners and Legal verification.

On this page