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

add addon background to monorepo #2220

Merged
merged 64 commits into from Nov 4, 2017
Merged

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Nov 2, 2017

Issue: storybook-eol/addon-backgrounds#36

What I did

  • Imported the repo using lerna import
  • Cleared out the dev dependencies
  • Added an example in cra-kitchen-sink
  • Fixed unit tests

How to test

  • Run the bootstrapping sequence (core)
  • Run the cra-kitchen-sink
  • Checkout the newly added Section for addon-backgrounds
  • Run unit tests

@ndelangen ndelangen self-assigned this Nov 2, 2017

### Development

This project is built using typescript and is tested with jest. To get started, clone this repo and run the following command:
Copy link
Member

Choose a reason for hiding this comment

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

is it still typescript?

Copy link
Member Author

Choose a reason for hiding this comment

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

good point, will remove it. No we removed the typescript.

@codecov
Copy link

codecov bot commented Nov 3, 2017

Codecov Report

Merging #2220 into master will increase coverage by 0.67%.
The diff coverage is 77.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2220      +/-   ##
==========================================
+ Coverage   21.48%   22.16%   +0.67%     
==========================================
  Files         263      268       +5     
  Lines        5804     5875      +71     
  Branches      693      706      +13     
==========================================
+ Hits         1247     1302      +55     
- Misses       4023     4038      +15     
- Partials      534      535       +1
Impacted Files Coverage Δ
addons/background/register.js 0% <0%> (ø)
addons/background/src/register.js 0% <0%> (ø)
addons/background/src/Swatch.js 83.33% <83.33%> (ø)
addons/background/src/index.js 86.36% <86.36%> (ø)
addons/background/src/BackgroundPanel.js 93.93% <93.93%> (ø)
.../ui/src/modules/ui/components/layout/dimensions.js 15.62% <0%> (ø) ⬆️
lib/components/src/navigation/menu_link.js 0% <0%> (ø) ⬆️
lib/ui/src/modules/ui/components/menu_item.js 19.14% <0%> (ø) ⬆️
addons/knobs/src/components/types/Object.js 5.81% <0%> (ø) ⬆️
app/react-native/src/preview/story_kind.js 0% <0%> (ø) ⬆️
... and 31 more

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 c4f56c9...30fb685. Read the comment docs.

@ndelangen ndelangen changed the title [WIP] add addon background to monorepo add addon background to monorepo Nov 3, 2017
@Hypnosphi Hypnosphi self-requested a review November 3, 2017 23:43
@@ -0,0 +1,19 @@
import React from 'react';
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this file isn't used, I'll delete it

@@ -0,0 +1,17 @@
import React from 'react';
Copy link
Member

Choose a reason for hiding this comment

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

does it work with Vue?

@Hypnosphi Hypnosphi merged commit dd0a62e into master Nov 4, 2017
@Hypnosphi Hypnosphi deleted the ndelangen/import-addon-background branch November 4, 2017 00:50
getQueryParam: PropTypes.func,
setQueryParams: PropTypes.func,
}).isRequired,
channel: PropTypes.instanceOf(EventEmitter),
Copy link
Member

Choose a reason for hiding this comment

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

This fails in cra-kitchen-sink (probably because of different events package version):

manager.bundle.js:6219 Warning: Failed prop type: Invalid prop `channel` of type `Channel` supplied to `BackgroundPanel`, expected instance of `EventEmitter`

Let's use PropTypes.shape, like we do in other plugins

Copy link
Member Author

Choose a reason for hiding this comment

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

ok sure

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.

None yet

8 participants