wacrm/src/components
Arnas Donauskas f90563b35c fix(flows): wrap add-node menu groups in DropdownMenuGroup (#336)
Clicking "Add node" in the flow builder crashed the whole page to a
"This page couldn't load" error boundary, in both the list and canvas
views.

The add-node menus render a DropdownMenuLabel per category. That is
base-ui's Menu.GroupLabel, which calls useMenuGroupRootContext() during
render and THROWS ("MenuGroupContext is missing") when it has no
Menu.Group ancestor. Both menus wrapped each category in a plain <div>
instead of a DropdownMenuGroup, so the label had no group context. The
menu content only mounts when the menu opens, which is why initial
render was fine and the crash fired exactly on click.

Wrap each category's label + items in DropdownMenuGroup (base-ui
Menu.Group), which provides the context Menu.GroupLabel needs. The
between-group separator moves into a keyed Fragment so it stays a
sibling of the groups.

Adds a regression test pinning the contract: a bare DropdownMenuLabel
throws, a group-wrapped one does not.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-07 11:45:01 +03:00
..
auth feat(auth): extend useAuth with account context + RequireRole + useCan 2026-05-31 17:58:53 +03:00
automations feat(automations): add deal pipeline selectors 2026-06-26 15:57:06 -04:00
broadcasts fix(broadcasts): collect header media URL for image/video templates (#298) 2026-06-25 17:17:18 +03:00
contacts feat(contacts): send an approved template to a single contact (#296) 2026-06-29 17:11:02 +03:00
dashboard fix(theme): light-mode polish from review pass 2026-06-17 09:28:22 +03:00
flows fix(flows): wrap add-node menu groups in DropdownMenuGroup (#336) 2026-07-07 11:45:01 +03:00
inbox feat: AI reply assistant (bring-your-own-key) 2026-07-02 12:56:04 +03:00
layout feat(notifications): implement account-based notification retrieval and update logic 2026-06-30 11:16:20 +05:30
pipelines fix(theme): light-mode polish from review pass 2026-06-17 09:28:22 +03:00
presence feat(team): member presence (online / away / offline) on the roster 2026-06-22 14:37:29 +03:00
settings feat: AI knowledge base (RAG grounding) 2026-07-02 17:06:09 +03:00
tremor feat(theme): add light/dark mode toggle (#243) 2026-06-16 17:29:46 +03:00
ui fix(flows): wrap add-node menu groups in DropdownMenuGroup (#336) 2026-07-07 11:45:01 +03:00
themed-toaster.tsx fix(theme): light-mode polish from review pass 2026-06-17 09:28:22 +03:00