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

chore(Sidebar): use EventStack component #2990

Merged
merged 20 commits into from
Oct 3, 2018
Merged

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Jul 9, 2018

We have a cool API called EventStack. It's time to make it more awesome 🐱 This PR offers a new component exposes the EventStack API as public and provides a declarative way to manage it.

This will allow to reduce complexility with subscribtions to events and will allow our users to work with our API deeply.

Signed-off-by: Oleksandr Fediashov <[email protected]>
Oleksandr Fediashov added 9 commits July 13, 2018 12:33
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
Signed-off-by: Oleksandr Fediashov <[email protected]>
@codecov-io
Copy link

codecov-io commented Jul 13, 2018

Codecov Report

Merging #2990 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2990      +/-   ##
==========================================
- Coverage   99.92%   99.92%   -0.01%     
==========================================
  Files         169      169              
  Lines        2801     2790      -11     
==========================================
- Hits         2799     2788      -11     
  Misses          2        2
Impacted Files Coverage Δ
src/modules/Sidebar/Sidebar.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ceee24...834d721. Read the comment docs.

@@ -191,6 +162,7 @@ class Sidebar extends Component {
<Ref innerRef={this.handleRef}>
<ElementType {...rest} className={classes}>
{childrenUtils.isNil(children) ? content : children}
{visible && <EventStack name={'click'} on={this.handleDocumentClick} />}
Copy link
Member Author

Choose a reason for hiding this comment

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

30 lines vs 1 line, exciting result ✌️

Copy link
Member

Choose a reason for hiding this comment

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

Very cool, I'll give this a proper review before merging. It looks like a fantastic idea :D

@levithomason
Copy link
Member

I assume the future of this component will change now that we're publishing EventStack from elsewhere (eventually Stardust)?

@layershifter
Copy link
Member Author

Yep, I will move this component to a package.

…Org/Semantic-UI-React into feat/eventstack

# Conflicts:
#	src/modules/Sidebar/Sidebar.js
@layershifter layershifter changed the title feat(EventStack): add component chore(Sidebar): use EventStack component Sep 17, 2018
Oleksandr Fediashov added 2 commits October 3, 2018 12:44
@layershifter layershifter merged commit d5697d4 into master Oct 3, 2018
@layershifter layershifter deleted the feat/eventstack branch October 3, 2018 09:55
@levithomason
Copy link
Member

Released in [email protected].

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.

3 participants