Skip to content

Comments

[Bulk actions workflow]: Updates for MouseEvent / added Chevron up & down to contextual menu#640

Merged
OwenCoogan merged 5 commits intofeature/bulk-action-workflowfrom
oc/DRA-4477
Feb 19, 2026
Merged

[Bulk actions workflow]: Updates for MouseEvent / added Chevron up & down to contextual menu#640
OwenCoogan merged 5 commits intofeature/bulk-action-workflowfrom
oc/DRA-4477

Conversation

@OwenCoogan
Copy link
Contributor

What does this PR do?

Related to: #

What are the observable changes?

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Migrated touched components to Glimmer Components
  • Properly labeled

@OwenCoogan OwenCoogan self-assigned this Feb 13, 2026
@linear
Copy link

linear bot commented Feb 13, 2026

@action
callAction(action: ContextMenuItem['action']): void {
const returnValue = action?.();
callAction(action: ContextMenuItem['action'], eventOrValue?: MouseEvent | boolean): void {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is from the typing on the context menu action

Copy link
Member

Choose a reason for hiding this comment

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

Why are we adding this ? 🤔

@OwenCoogan OwenCoogan marked this pull request as ready for review February 18, 2026 14:05
@OwenCoogan OwenCoogan changed the title [Bulk actions workflow]: Updates for MouseEvent [Bulk actions workflow]: Updates for MouseEvent / added Chevron up & down to contextual menu Feb 18, 2026
@action
callAction(action: ContextMenuItem['action']): void {
const returnValue = action?.();
callAction(action: ContextMenuItem['action'], eventOrValue?: MouseEvent | boolean): void {
Copy link
Member

Choose a reason for hiding this comment

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

Why are we adding this ? 🤔

assert.dom('[data-control-name="context-menu"]').hasText(this.label);
});

test('it shows chevron-down when closed and chevron-up when open', async function (assert) {
Copy link
Member

Choose a reason for hiding this comment

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

should be added in the module('When clicking on the button', function () { down in the file and can be split into two separate tests there. (there already is a "When clicking a second time on the button" module in there too)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved down in the when clicking on the button

callAction(action: ContextMenuItem['action']): void {
const returnValue = action?.();
callAction(action: ContextMenuItem['action'], event?: MouseEvent): void {
const returnValue = action?.(event ?? undefined);
Copy link
Member

Choose a reason for hiding this comment

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

isn't event already undefined if not passed in the params ? 🤔
don't think the ?? undefined but might be mistaken

@OwenCoogan OwenCoogan merged commit ec3b1c7 into feature/bulk-action-workflow Feb 19, 2026
3 checks passed
@OwenCoogan OwenCoogan deleted the oc/DRA-4477 branch February 19, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants