Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve entries apis: Context Pad, Palette, Popup Menu #431

Merged
merged 15 commits into from
Nov 11, 2019

Conversation

barmac
Copy link
Member

@barmac barmac commented Nov 7, 2019

Closes #428

Note: This breaks multiple test cases in bpmn-js, but all of the failures base on checking the internals. I'll prepare a fix for that.

@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Nov 7, 2019
@barmac barmac force-pushed the 428-improve-entries-apis branch 5 times, most recently from 96651f3 to 065ddca Compare November 7, 2019 15:13
@barmac barmac marked this pull request as ready for review November 7, 2019 15:42
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Nov 7, 2019
@barmac barmac requested a review from nikku November 7, 2019 15:42
@barmac
Copy link
Member Author

barmac commented Nov 7, 2019

This can be tested with https://github.com/barmac/bpmn-js-reworked-replace-menu

lib/features/context-pad/ContextPad.js Outdated Show resolved Hide resolved
lib/features/context-pad/ContextPad.js Outdated Show resolved Hide resolved
test/spec/features/popup-menu/PopupMenuSpec.js Outdated Show resolved Hide resolved
@barmac
Copy link
Member Author

barmac commented Nov 11, 2019

@nikku I updated the PR in accordance with the comments.

This allows us to do the following:

```
const fooEvent = eventBus.createEvent({
  type: 'foo'
});

eventBus.fire(fooEvent);
```

I assume this would already work, but it did not until now.
@nikku
Copy link
Member

nikku commented Nov 11, 2019

I've sketched how to register providers using the eventBus here.

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

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

Let's move to an eventBus based provider registration as discussed, cf. 59681ee

lib/features/context-pad/ContextPad.js Outdated Show resolved Hide resolved
lib/features/popup-menu/PopupMenu.js Outdated Show resolved Hide resolved
lib/features/popup-menu/PopupMenu.js Outdated Show resolved Hide resolved
@barmac
Copy link
Member Author

barmac commented Nov 11, 2019

@nikku Ready for another round.

@barmac barmac requested a review from nikku November 11, 2019 10:56
@fake-join fake-join bot merged commit 1d079a4 into develop Nov 11, 2019
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Nov 11, 2019
@fake-join fake-join bot deleted the 428-improve-entries-apis branch November 11, 2019 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Improve entries providers for palette, context pad and popup menu
2 participants