Skip to Content
HomeLink Hub

Reviewing an assignment

The assignment detail page, from accepting the work and starting the review to reading the lister's documents and submitting a decision.

Where it lives

RouteView fileAccess
/legal/assignments/:idsrc/views/lawyer/assignments/assignment-detail.tsxthe lawyer the assignment belongs to

Shared component: src/components/legal-document-submissions.tsx (the document list, also shown to the lister on the listing page).

Before you start

  • Signed in with the LAWYER role, and the assignment is yours.
  • The three actions are strictly ordered. Each button appears only in one status, and the API rejects anything out of order.
Current statusButton shownNext status
assignedAccept Assignmentaccepted
acceptedStart Reviewin_review
in_reviewSubmit Decisionverified, rejected or changes_requested
anything elsenone, "This assignment has been completed"

Flow

Read the assignment

  1. Click a card on /legal/assignments. The page loads GET /api/v1/legal/assignments/{assignmentId}.
  2. The header shows "Assignment Details", the listing title, the status badge and "Assigned (date)". The back arrow returns to /legal/assignments.
  3. The left column shows:
    • The first photo with an "N photos" chip, and up to six thumbnails. Clicking any of them opens the "Property Gallery" dialog with previous and next arrows.
    • Property Information: Location (street, community, state), Property Details (bedrooms and bathrooms) and Pricing (rent per year, else the sale price, else "N/A").
    • Assignment Notes: what the lister wrote when assigning, or "No assignment notes provided".
    • Submitted Documents, when the lister has sent any.
    • Legal Decision, once a decision exists.
  4. The right column is the Actions card. Below the button, a yellow box shows "Due Date: (date)" when the lister set one.
An assignment: the property photos and details, and the Actions card with Submit Decision and the due date.
An assignment: the property photos and details, and the Actions card with Submit Decision and the due date.

Accept the assignment

  1. With status assigned, press Accept Assignment ("Accepting..." while it runs).
  2. The app sends PATCH /api/v1/legal/assignments/{assignmentId}/accept.
  3. A toast reads "Assignment accepted successfully". The status becomes accepted and the button changes to Start Review.
  4. On failure the toast shows the API message, such as "Cannot accept assignment. Current status is 'accepted', expected 'assigned'", or "Failed to accept assignment".

There is no decline button. A lawyer who cannot take the work has to tell the lister outside the app.

Start the review

  1. With status accepted, press Start Review ("Starting...").
  2. The app sends PATCH /api/v1/legal/assignments/{assignmentId}/start-review.
  3. A toast reads "Review started successfully". The status becomes in_review and the button changes to Submit Decision.
  4. On failure the toast shows the API message ("Cannot start review. Current status is '...', expected 'accepted'"), or "Failed to start review".

Review the documents

  1. The Submitted Documents card ("Sent by the lister for this review. Newest first.") lists each batch the lister sent.
  2. A batch shows "Sent (date) at (time) by (name)", the lister's note, and one link per file with its size.
  3. Clicking a file opens it in a new browser tab.
  4. The card is hidden until the lister has sent at least one batch.

Documents flow one way

Only the lister can upload, from the listing page in their dashboard. The lawyer cannot attach files, comment on a file or message the lister from this page. To ask for something, submit a Changes Requested decision and describe it in the notes.

Submit a decision

  1. With status in_review, press Submit Decision. The "Submit Legal Decision" dialog opens.

  2. Fill in:

    FieldOptions and rule
    Decision OutcomeOne of Verified, Rejected, Changes Requested. Required
    Decision Notes ("Explain your decision...")Free text. Must not be empty after trimming. This is where the reasons for a rejection or change request go
  3. Submit Decision stays disabled until an outcome is chosen and notes are typed. Cancel closes the dialog and clears both.

  4. The app sends PATCH /api/v1/legal/assignments/{assignmentId}/decision with { "outcome": "verified", "notes": "..." }. The outcome is verified, rejected or changes_requested.

  5. A toast reads "Decision submitted successfully". The dialog closes and the page refetches.

  6. On failure the toast shows the API message, or "Failed to submit decision".

    CauseMessage
    Outcome or notes missing (client check)"Please select an outcome and add notes"
    Outcome or notes missing (API check)"Decision outcome and notes are required"
    Assignment is not in review"Cannot submit decision. Current status is '...', expected 'in_review'"
The Submit Legal Decision dialog: Verified, Rejected or Changes Requested, with decision notes.
The Submit Legal Decision dialog: Verified, Rejected or Changes Requested, with decision notes.

What each outcome does:

OutcomeAssignment statusListing
VerifiedverifiedlegalStatus becomes legally_verified, and the lawyer, time and notes are stored as the verification. A listing waiting in pending_verification becomes listed, unless an open duplicate flag is holding it
RejectedrejectedlegalStatus becomes legally_rejected
Changes Requestedchanges_requestedlegalStatus becomes changes_requested

After any decision, a Legal Decision card shows the outcome with an icon, the "Decision Notes:" and "Decided on (date) at (time)".

No checklist in the form

The API accepts an optional checklist with each decision (an item, a status of pass, fail or comment, and a comment). The dialog does not offer one, so decisions are sent with notes only.

After a change request

  1. The status is changes_requested and the Actions card shows no button.
  2. The lister sees the lawyer's notes on their listing and uploads the requested documents.
  3. That upload moves the assignment back to in_review. The lawyer receives the notification "New Documents to Review", the new batch appears at the top of Submitted Documents, and Submit Decision is available again.
  4. The previous decision stays visible in the Legal Decision card until a new decision replaces it.

Misleading text while waiting on the lister

In changes_requested the Actions card reads "This assignment has been completed", the same text used for verified, rejected and reassigned assignments. The assignment is not finished; it is waiting for the lister's documents.

States and edge cases

SituationWhat the user sees
LoadingCentred spinner
Unknown id, someone else's assignment, or a failed request"Assignment not found" with a Back to assignments button
Listing has no photosThe photo block is omitted
Lister sends documents while the page is openNothing changes until the page is reloaded
Status verified, rejected or reassignedNo action button. A decision cannot be changed from this app

What happens next

  • Accept: the person who assigned the listing gets the in-app notification "Legal Review Started".
  • Start review: that person is emailed "Legal Review Has Started".
  • Decision: that person gets the notification "Legal Review Decision: (outcome)". Their listing page shows the new legal status, and after a change request it shows the lawyer's notes with a Submit requested documents button. See Legal verification.
  • A verified property can go live on the consumer app, as described in the outcome table above.

On this page