wacrm/src/app/(dashboard)
Arnas Donauskas 8bbbe0a471
fix(settings): wrap useSearchParams pages in Suspense so nav works in prod
The settings page derived its active panel from `useSearchParams()` but
wasn't wrapped in a Suspense boundary. In Next 16 that fails the
production build ("missing Suspense with CSR bailout") and forces the
page to bail to full client-side rendering — shipping a settings screen
whose rail click handlers never wire up. Because the account-menu
Settings link targets `?tab=whatsapp`, users land on the WhatsApp panel
and can't navigate to any other section ("locked on WhatsApp").

Wrap the `useSearchParams` consumer in `<Suspense>` on the three
affected dashboard pages — settings, inbox, automations/new — mirroring
the split login/signup already use. Also add the missing
`Settings.sections.quick-replies` label, which was rendering as a raw
translation key in the settings rail.

Verified: production build now succeeds (previously errored out during
static generation); every settings rail section navigates correctly in a
production build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 15:08:25 +03:00
..
agents feat(ai): add token-usage dashboard (AI Agents → Usage) 2026-07-08 14:31:36 +03:00
automations fix(settings): wrap useSearchParams pages in Suspense so nav works in prod 2026-07-17 15:08:25 +03:00
broadcasts feat(i18n): localize Broadcasts module and wizard 2026-07-07 17:29:45 -04:00
contacts feat: internationalize contact 2026-07-07 17:02:02 -04:00
dashboard feat(i18n): translate dashboard overview components 2026-07-07 14:31:01 -04:00
flows feat(i18n): complete internationalization of flow builder components 2026-07-07 19:43:26 -04:00
inbox fix(settings): wrap useSearchParams pages in Suspense so nav works in prod 2026-07-17 15:08:25 +03:00
notifications feat(notifications): implement account-based notification retrieval and update logic 2026-06-30 11:16:20 +05:30
pipelines feat(i18n): localize pipelines module and components 2026-07-07 17:14:48 -04:00
settings fix(settings): wrap useSearchParams pages in Suspense so nav works in prod 2026-07-17 15:08:25 +03:00
dashboard-shell.tsx feat(team): member presence (online / away / offline) on the roster 2026-06-22 14:37:29 +03:00
layout.tsx Revert "feat(i18n): re-attempt next-intl with hardened artifact tracing" 2026-05-31 21:05:34 +03:00