Files
PaperClipAI/ui/src
Dotta 931e7ac40d Surface review-thread access error instead of silent empty state (PAP-10580)
Doc-detail's review-index query is gated by the parent issue's authorization
boundary, but the document itself is listable via the company-scoped library.
A board user who can browse a doc but not its issue got a 403 that react-query
swallowed, falling through to a misleading "No feedback yet" empty state and a
Done-reviewing dialog reporting 0 comments / 0 suggestions.

Catch the 403 and surface it: the rail renders a "Review thread unavailable"
panel naming the parent issue to ask for access, the Done-reviewing CTA is
suppressed (no stats to hand off), and the dialog shows the access message
instead of misleading zeros. Also stop retrying the query on 403/404.
2026-06-07 03:31:35 +00:00
..
2026-05-06 06:30:44 -05:00