mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-19 19:38:39 -05:00
aa040595c3
- a11y: make OpenTextSummary rows keyboard-triggerable. Adds
role="button", tabIndex={0}, aria-label, focus-visible ring, and an
onKeyDown handler so Enter/Space open the modal — matching the
pattern used in connectors-table-data-row.tsx.
- race: track the in-flight responseId in a ref inside
ResponseSampleModal and bail out of .then/.catch/.finally branches
when a newer responseId has been selected, preventing stale results
from overwriting the current row's data.
- errors: surface action errors. Check getFormattedErrorMessage on
both action results, toast.error and render the message inside the
dialog instead of leaving the modal stuck on a loading spinner when
the fetch fails or returns no data. Clear the error state on close.
- coverage: add unit tests for getResponseWithQuotas covering the
happy path with/without screened-in quotas, the prisma select shape,
input validation, the null-response path, and the database/generic
error mappings.