Skip to content

fix(web): wrap waiting-tasks column picker in a menu group - #839

Merged
pikann merged 1 commit into
Paca-AI:masterfrom
kayahk:fix/waiting-tasks-column-menu-group
Nov 30, 2026
Merged

pikann merged 1 commit into
Paca-AI:masterfrom
kayahk:fix/waiting-tasks-column-menu-group

Conversation

@kayahk

@kayahk kayahk commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Problem

Clicking Columns on the home page Waiting tasks widget crashes with:

Base UI error #31; visit https://base-ui.com/production-error?code=31

The full message is Base UI: MenuGroupContext is missing. Menu group parts must be used within <Menu.Group> or <Menu.RadioGroup>.

Cause

DropdownMenuLabel maps to Base UI's Menu.GroupLabel, which requires a group
context. The column picker rendered its label and DropdownMenuCheckboxItems
directly inside DropdownMenuContent, so opening the menu threw. Every other
dropdown in the app already puts its label inside DropdownMenuGroup.

Change

Wrap the label and checkbox items in DropdownMenuGroup. No behaviour change
otherwise: same fields, same localStorage keys, same toggling rules.

Verification

  • New regression test opens the picker, toggles a column and asserts the
    persisted value. Without the fix it fails with the exact error above.
  • vitest run src/components/home — 15 passed
  • biome check on both files — clean
  • tsc --noEmit -p tsconfig.app.json — clean

Not verified: manual click-through in a running app.

Base UI's Menu.GroupLabel requires a group context, so opening the
Columns menu on the home page threw "Base UI error Paca-AI#31". Wrap the label
and its checkbox items in DropdownMenuGroup (the pattern the other
dropdowns already use) and cover the picker with a regression test.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Approach: sound — the crash is caused by DropdownMenuLabel (Base UI Menu.GroupLabel) being rendered outside a group, and wrapping the picker's label plus checkbox items in DropdownMenuGroup restores the required context with no behavior change.

Reviewed changes

  • Column picker grouped: waiting-tasks-list.tsx now renders the picker's label and the four DropdownMenuCheckboxItems inside DropdownMenuGroup, matching the pattern already used by every other dropdown in apps/web/src. Field list, localStorage key, and the "never allow an empty list" guard are untouched.
  • Regression test: the new test opens the picker (the operation that used to throw) and asserts both the propagated visibleFields via the ListGroup stub and the persisted home.waitingTasks.fields value.

I checked the other DropdownMenuLabel call sites (automation-node-palette.tsx, user-menu.tsx, app-sidebar.tsx) and they are all already inside groups, so no sibling site shares the bug.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann pikann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the contribution! 🚀

@pikann
pikann merged commit 62856e1 into Paca-AI:master Nov 30, 2026
2 checks passed
@kayahk
kayahk deleted the fix/waiting-tasks-column-menu-group branch November 30, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants