wacrm/src
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
..
app Merge pull request #333 from ArnasDon/feat/ai-knowledge-base 2026-07-02 17:50:18 +03:00
components fix(flows): wrap add-node menu groups in DropdownMenuGroup (#336) 2026-07-07 11:45:01 +03:00
hooks Merge pull request #322 from RiadDeveloper/main 2026-07-01 11:27:20 +03:00
lib fix(ai-kb): address code-review findings 2026-07-02 17:20:38 +03:00
types Merge pull request #324 from ArnasDon/feat/inbox-tag-company-filter 2026-07-01 13:06:14 +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