-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2022-01-25] Storybook - Errors appear in the JS console when tap any default page Canvas/ Docs #7187
Comments
Triggered auto assignment to @mountiny ( |
When testing locally as well as on staging, there are the following errors showing up in the console: I could not replicate the same errors which are shown on staging in dev (running, not built storybook). I have updated the issue description to also include the broken scenario for HeaderWithCloseButton component, where the translate props are not passed. It might be trickier to identify the other error, but it would be nice to get someone External to look into this, it is a low priority task. cc @roryabraham since you have worked on the recent rehaul of the Storybook. |
Triggered auto assignment to @NicMendonca ( |
Proposal
The Fix
const decorators = [
Story => (
<ComposeProviders
components={[
OnyxProvider,
LocaleContextProvider,
]}
>
<Story />
</ComposeProviders>
),
];
Onyx.init({
keys: ONYXKEYS,
});
This will fix the errors and as a plus, we can create stories for any component that depends on OnyxData. Just add the mock data in |
@parasharrajat This looks great, but just to clarify. Will this fix the errors shown in the console, which do not have necessarily any negative effect on the app afaik, but we would still like to get rid of them. |
Yeah. It will resolve all of them for storyBook. But it does not affect the Warnings that are coming in our app. Those warnings will be removed when we will update Urban Airship lib. |
@parasharrajat Great! Feel free to start working on the PR. Nicole will create the jobs later on. |
Sorry for the delay everyone! Here is the job: https://www.upwork.com/jobs/~0132a07ec55f3a9411 |
Current assignee @parasharrajat is eligible for the Exported assigner, not assigning anyone new. |
Current assignee @mountiny is eligible for the Exported assigner, not assigning anyone new. |
No worries @NicMendonca, this one was a speedy one. @parasharrajat Can you please apply for the job? |
Done. |
@NicMendonca Can you please hire Rajat for this job? Thank you very much! |
hired! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.30-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-01-25. 🎊 |
@parasharrajat paid! thank you! |
@mountiny Issue reproduced during Regression with build 1.1.46.0 Recording.113.mp4 |
@kbecciv Can you please comment on some PRs from the release which worked with Storybook, there is a couple I am not sure which this is related to, but this is an old issue and if this is a regression that now appeared in staging, it must be related to the deployed PRs and not here. I will close this issue, thank you! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
and verify that you can see the storybook docs with the themes matching the screenshots below.
Expected Result:
Verify that no errors appear in the JS console and HeaderWithCloseButton component renders without a problem.
Actual Result:
Errors appear in the JS console and the HeaderWithCloseButton component does not render due to an error.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1. 29.1
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL: Applause
Issue reported by:
Slack conversation:
Issue was found when executing: #7154
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: