Show “View All Notes” when job has no notes (empty state)

Problem

On inspection detail, when there are no pinned/mention notes, NotesSection returns only an empty state (“No notes yet”) and does not render the View All Notes affordance. Users cannot jump to the full notes list / composer without existing preview notes.

Where

  • inspector-app/components/inspection/NotesSection.tsx — early return when notes.length === 0 (after load) omits the link that exists in the non-empty branch (Link to /inspection/${inspectionId}/notes).

Expected

  • Keep the empty state (icon + copy is fine).
  • Always show the same View All Notes row/button below it (reuse styles from the non-empty path: viewAllButton / viewAllText + chevron) so users can open the dedicated notes screen even when the preview list is empty.

Acceptance criteria

  • [ ] Zero notes → empty state and tappable “View All Notes” → navigates to notes route.
  • [ ] With notes → existing behavior unchanged.

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
🏠

Main App

Date

2 months ago

Author

Linear

Subscribe to post

Get notified by email when there are changes.