Repository navigation
Description
Finding
Legal Hold place-hold pickers hide failed member and matter reads as empty choices
Impact
When an operator opens Governance → Legal hold → Place legal hold while the member or open-matter query has settled with a transport/server failure, the form presents the failed reads as if the organization has no selectable custodians or matters. The user gets no loading/error indicator and no retry path; a custodian hold cannot be targeted and the operator may misread an unavailable matter list as genuinely empty. This is a separate dialog-level failure from the legal-hold list tables.
Reproduction
- Open the Place legal hold dialog for an organization with at least one member or matter.
- Make
listOrgMembersForPickerand/orlistLegalMattersfail with HTTP 503 after loading settles. - Open the User picker and Matter picker.
Actual result: User picker shows the ordinary “No matching users.” empty copy and Matter picker has no options. The dialog has no alert, failed-read label, or Retry/Try again/Reload action. The Place hold action remains unavailable because no user can be selected.
Expected result: preserve the distinction between an empty list and an unavailable read. Show a read-failure state beside each affected picker with a retry action (and keep the form usable for unaffected choices). Do not render normal empty-state copy for isError data.
Root cause and scope
At current origin 9ea59724df24d62729a9360f3902d964dab39b3e:
services/platform/app/features/settings/governance/legal-hold/place-hold-dialog.tsx:47-78readsuseLegalMattersanduseOrgMembersForPickerbut derivesmatterOptionsandmemberOptionsonly from(query.data ?? []).- The render at
:219-282passes those arrays toSearchableSelectwithout consuming either query'sisLoading,isError,error, orrefetch. - The hooks expose the settled query state through
useBackendQuery, so the component can distinguish a successful empty response from a failed read.
This is distinct from issue #3818, which covers empty-on-error list tables (active holds, release queues, history); this finding covers the Place legal hold dialog's dependent pickers and the inability to target a custodian after a failed read.
Evidence
- Probe:
/Users/yannick/.codex/notes/tale-1000-additional/settings-next/place-hold-query-error.probe.test.tsx - Replay:
/Users/yannick/.codex/notes/tale-1000-additional/settings-next/place-hold-query-error.replay.log - Probe assertion: one Vitest test passed with both picker hooks controlled to
data: undefined, isLoading: false, isError: true; no alert/retry rendered, User picker showed “No matching users.”, and Matter picker had zero options.
Activity
yannickmonney commentedon Oct 4, 2026
Issues #3834 (TALE-266) and #3835 (TALE-267) describe the same PlaceHoldDialog picker-read root cause. One focused fix covers both: #4302 (head fff89cc), with Closes for both issues. It adds independent failure/retry states, preserves retry focus and unaffected hold flows, and localizes EN/DE/FR. Regression fails on main; focused Node/jsdom tests pass (16), locale/error guards pass (48), and the isolated toast guard passes (51). Targeted lint/format/type checks pass. PR #4276 is untouched; browser proof remains for independent review under this run’s jsdom-only resource limit. CI is being watched without reruns or cancellations.