wacrm/src
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
..
app fix(settings): wrap useSearchParams pages in Suspense so nav works in prod 2026-07-17 15:08:25 +03:00
components feat(automations): dispatch tag added triggers 2026-07-16 00:26:21 -06:00
hooks Merge pull request #322 from RiadDeveloper/main 2026-07-01 11:27:20 +03:00
i18n feat: add fallback logic for missing locale dictionaries and update NextIntlClientProvider configuration 2026-07-02 08:42:37 -04:00
lib Merge pull request #386 from Andeveling/contrib/feat-colombian-peso-currency 2026-07-17 13:47:55 +03:00
types feat: WhatsApp interactive messages (reply buttons + lists) 2026-07-08 19:03:15 +03:00
middleware.test.ts fix(auth): preserve refreshed Supabase cookies across middleware redirects 2026-06-23 10:08:05 +03:00
middleware.ts fix(auth): preserve refreshed Supabase cookies across middleware redirects 2026-06-23 10:08:05 +03:00