ref(compactSelect) use MenuComponents for CompactSelect Slots#109198
ref(compactSelect) use MenuComponents for CompactSelect Slots#109198
Conversation
| }} | ||
| menuWidth="280px" | ||
| // eslint-disable-next-line @sentry/scraps/restrict-jsx-slot-children | ||
| menuFooter={<OrgFooterMessage />} |
There was a problem hiding this comment.
Opted to just update the CTA button and left the rest
4e7b563 to
1e449bd
Compare
The editAccessSelector was refactored to use MenuComponents.ApplyButton which renders 'Apply' instead of a custom button with 'Save Changes'. Update tests to match the new button text. Co-Authored-By: Claude <noreply@anthropic.com>
…TAButton priority - filterSelector: The Remove Filter button was migrated to MenuComponents.HeaderButton but the closeOverlay() call was dropped. Restore it by destructuring closeOverlay from menuHeaderTrailingItems. - menuComponents: CTAButton and CTALinkButton document that priority is locked, but didn't set it explicitly. Add priority="default" to match the previous behaviour of existing call sites. - addFilter.spec: Update test button name from 'Add Filter' to 'Apply' to match the MenuComponents.ApplyButton introduced in the refactor. Co-Authored-By: Claude <noreply@anthropic.com>
static/app/views/dashboards/widgetBuilder/components/visualize/selectRow.tsx
Show resolved
Hide resolved
natemoo-re
left a comment
There was a problem hiding this comment.
Nice cleanup! Consistency over composability seems like a fair tradeoff here.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| }} | ||
| /> | ||
| ); | ||
| }} |
There was a problem hiding this comment.
Branch selector reset button loses descriptive label
Medium Severity
The branch filter header button was changed from "Reset to all branches" to the generic "Reset" label. MenuComponents.ResetButton omits children from its props and always renders "Reset", so the context-specific label was lost. In a branch filter, "Reset" alone is ambiguous; users may not understand it resets to "All Branches".
Adds a configurable ESLint rule to `eslintPluginScraps` that restricts the JSX trees passed to specific slot props to a declared set of allowed elements. The rule is written in a generic way so that it can easily be extended to other component types. #109198 should address the violations and allow us to merge these changes --------- Co-authored-by: Claude <noreply@anthropic.com>
Adds a configurable ESLint rule to `eslintPluginScraps` that restricts the JSX trees passed to specific slot props to a declared set of allowed elements. The rule is written in a generic way so that it can easily be extended to other component types. #109198 should address the violations and allow us to merge these changes --------- Co-authored-by: Claude <noreply@anthropic.com>


Refactors usage of CompactSelect footer and title trailing props to mostly use the newly created MenuComponent prebuilt elements. This standardizes on the sizing, naming as well as some behavior of the selects so that they appear and act in a consistent manner throughout the UI
Fix DE-713, DE-753, DE-863