Skip to Content
HomeLink Hub
Lawyer Experience

Lawyer Dashboard

Which tabs a lawyer gets, what the Overview screen shows and how the first-launch tour works for the lawyer role.

Lawyers use the same binary and the same (tabs) navigator as agents and landlords. The tab layout reads state.auth.user.role and, when it equals LAWYER, swaps the agent tabs for three lawyer tabs.

Where it lives

Screen routeFileWho sees it
/(tabs) (Home tab)app/(tabs)/index.tsxAll roles in the (tabs) navigator, lawyers included
/(tabs)/lawyer-dashboard (Overview tab)app/(tabs)/lawyer-dashboard.tsxLAWYER only
Tab bar and role gateapp/(tabs)/_layout.tsxAll roles in the (tabs) navigator
Tour stepscomponents/tour/tours.ts, components/tour/app-tour.tsxOne tour per role

Before you start

  • Signed in with the LAWYER role. After sign-in utils/home-route.ts sends lawyers to /(tabs).
  • No onboarding or KYC gate applies. roleNeedsAgentOnboarding returns true only for AGENT, so lawyers are never redirected to /agent-onboarding.
  • No device permissions are needed for these screens.

Flow

Tabs a lawyer sees

The tab bar shows icons only (labels are turned off). From left to right:

TabRouteNotes
Home/(tabs)Shared screen, see the callout below
Chats/(tabs)/chatsShared. Documented in the agent section, page "chats-and-notifications"
Overview/(tabs)/lawyer-dashboardThis page
Partnerships/(tabs)/partnershipsSee the Partnerships page
Assignments/(tabs)/assignmentsSee the Assignments page
Profile/(tabs)/profileShared. Documented in the agent section, page "profile-and-settings"

The agent tabs Listings, Legal Team and Bookings are hidden for lawyers (href is set to null). The notifications screen has no tab; it is reached from the bell on Home.

The Tabs navigator and the tour provider are keyed on the role, so signing out of a lawyer account and into an agent account on the same device rebuilds the navigator instead of patching it.

Home is the agent dashboard

A lawyer lands on the Home tab, which is the same screen agents see: "Good Morning", Performance Overview (Total Listings, Active Listing, Pending), Closings Volume, Recent Activity and the floating add-listing button. It calls GET /api/v1/dashboard/stats and GET /api/v1/dashboard/recent-activity, which are open to any signed-in user, so a lawyer normally sees zeros and "No recent activity yet.". Nothing on this screen is lawyer-specific and the add-listing button is not hidden for lawyers. The lawyer's real dashboard is the Overview tab.

Overview screen

  1. Opening the tab fires two requests in parallel: GET /api/v1/legal/assignments (every assignment for this lawyer, no status filter) and GET /api/v1/legal/partnership-invites (pending invites only).
  2. The teal header reads "Dashboard", "Legal Overview" and "Welcome," followed by the user's first name from the auth slice ("Counselor" if it is missing).
  3. Five stat cards count the loaded assignments by status. Tapping any card opens the Assignments tab; it does not pre-select a filter.
Card labelAssignment status counted
Assignedassigned
In Reviewin_review
Changeschanges_requested
Verifiedverified
Rejectedrejected
  1. The summary banner shows Total Assignments (all statuses), Pending (assigned plus in_review) and Done (verified plus rejected).
  2. Two quick actions follow: View Assignments opens /(tabs)/assignments, Partnerships opens /(tabs)/partnerships.
  3. The "Partnership Invites" card lists every invite with status invite_pending, with a count badge. Each row shows the inviter's name ("Platform Partner" if the inviter is not populated), the invite note ("Legal partnership invitation" if empty) and the invite date.
  4. Tap Accept on a row. The app fires PATCH /api/v1/legal/partnership-invites/:inviteId/accept. On success a toast "Partnership accepted!" appears and the invites refetch, so the row disappears. On failure an alert titled "Error" shows the server message or "Failed to accept invite".
  5. Pull down to refresh both queries.

There is no Reject button and no profile link on this card. To decline an invite or look at the inviter first, use the Partnerships tab.

Guided tour for lawyers

  1. The tour starts automatically the first time a signed-in lawyer is on the Home tab (path /), about 900 ms after the screen settles. It does not start on any other screen, so a lawyer who opened the app from a chat notification sees it on their next visit to Home.
  2. It is a spotlight overlay. Nothing underneath can be tapped while it runs. The tooltip has progress dots, the step title and body, and the buttons Skip tour (hidden on the last step), Back (hidden on the first step) and Next, which reads Get started on the last step.
  3. The lawyer tour has six steps:
StepTargetTitleBody
1Bell on HomeStay in the loopNew partnership invites and assignment updates are announced here.
2Chats tabTalk to agentsMessage the agents and clients you're working with.
3Overview tabYour legal overviewA summary of your active assignments and pending invites at a glance.
4Partnerships tabPartnershipsAccept invites from agents who want you on their legal team.
5Assignments tabAssignmentsWork through the contracts and documents agents have assigned to you.
6Profile tabYour profile and helpManage your account and settings here. The Help Center has guides and FAQs, and you can replay this tour from it at any time.
  1. When the tour stops, whether finished or skipped, the app records it in AsyncStorage under local:TOURS_SEEN as a map keyed lawyer: plus the user id. Sign-out does not clear this key, so the tour is offered once per account per device.
  2. To run it again, open Profile and tap Replay App Tour ("A quick walkthrough of the main features"). The app navigates to Home and restarts the tour after a short delay.

States and edge cases

  • Loading: a centred spinner replaces the body until both queries have returned at least once. The header stays visible.
  • No invites: a card with a mail icon and "No pending partnership invites".
  • No assignments: every stat card and the summary banner show 0.
  • Statuses without a card: assignments in accepted or reassigned count toward Total Assignments but have no stat card and are in neither Pending nor Done.
  • Accept spinner: the loading flag is shared by all rows, so while one invite is being accepted every Accept button shows a spinner and is disabled.
  • Refresh indicator: the pull-to-refresh spinner follows the assignments query only.
  • Request errors: failed queries are not surfaced; the screen renders with zeros and the empty invites card.
  • Push notifications: tapping a push about an assignment opens /(tabs)/notifications, not the assignment itself. Only chat pushes deep-link to their thread.

What happens next

  • Accepting an invite sets its status to contracted, stamps acceptedAt and emails the inviter ("Your Legal Partnership Invite Was Accepted"). The agent or landlord sees the lawyer as Contracted in their Legal Team tab after a refresh.
  • New assignments reach the lawyer as an in-app and push notification titled "New Legal Assignment" plus an email. The stat cards update the next time the Overview is refreshed.

On this page