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 rendering of 'types' in addon-actions #1887

Merged
merged 3 commits into from
Sep 25, 2017
Merged

Improve rendering of 'types' in addon-actions #1887

merged 3 commits into from
Sep 25, 2017

Conversation

rhalff
Copy link
Contributor

@rhalff rhalff commented Sep 24, 2017

This fixes the root level not rendering correctly

e.g. It now renders [SyntheticEvent, Event] instead of [Object, Object]

The constructor.name replacement which was done by the NodeRenderer is now done immediately using the reviver function during JSON.parse.

@codecov
Copy link

codecov bot commented Sep 24, 2017

Codecov Report

Merging #1887 into release/3.3 will increase coverage by 0.03%.
The diff coverage is 0%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release/3.3    #1887      +/-   ##
===============================================
+ Coverage        22.22%   22.25%   +0.03%     
===============================================
  Files              326      325       -1     
  Lines             6538     6520      -18     
  Branches           804      813       +9     
===============================================
- Hits              1453     1451       -2     
+ Misses            4497     4466      -31     
- Partials           588      603      +15
Impacted Files Coverage Δ
...ddons/actions/src/components/ActionLogger/index.js 33.33% <ø> (ø) ⬆️
...ddons/actions/src/containers/ActionLogger/index.js 10% <0%> (ø) ⬆️
addons/actions/src/util.js 18.91% <0%> (-0.71%) ⬇️
app/vue/src/server/config/babel.js 0% <0%> (-100%) ⬇️
app/react/src/server/utils.js 0% <0%> (-53.58%) ⬇️
addons/events/src/components/Event.js 0% <0%> (ø) ⬆️
...res__/update-addon-info/update-addon-info.input.js 0% <0%> (ø) ⬆️
lib/ui/src/modules/api/configs/init_api.js 40.42% <0%> (ø) ⬆️
addons/viewport/src/components/SelectViewport.js 15% <0%> (ø) ⬆️
addons/info/src/components/Node.js 39.43% <0%> (ø) ⬆️
... and 35 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 44e5ec8...e66ba60. Read the comment docs.

Copy link
Member

@ndelangen ndelangen left a comment

Choose a reason for hiding this comment

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

LGTM, TESTED ✅

@ndelangen
Copy link
Member

screen shot 2017-09-25 at 21 30 50

@ndelangen ndelangen merged commit 0ff95a5 into storybookjs:release/3.3 Sep 25, 2017
@ndelangen ndelangen changed the title Fix root level rendering Improve rendinging of 'types' in addon-actions Sep 25, 2017
@ndelangen ndelangen changed the title Improve rendinging of 'types' in addon-actions Improve rendering of 'types' in addon-actions Sep 25, 2017
@@ -113,5 +123,7 @@ export function retrocycle($) {
}
})($);

muteProperty(CYCLIC_KEY, $);
Copy link
Member

Choose a reason for hiding this comment

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

@rhalff this breaks when $ is a primitive value (e.g., a string). The failure is silent because of this catch block: https://github.com/storybooks/storybook/blob/master/lib/channel-postmessage/src/index.js#L68

@Hypnosphi Hypnosphi mentioned this pull request Nov 28, 2017
2 tasks
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