Skip to content

fix: Stories rendering issues#7222

Merged
mountiny merged 1 commit into
Expensify:mainfrom
parasharrajat:storybook
Jan 14, 2022
Merged

fix: Stories rendering issues#7222
mountiny merged 1 commit into
Expensify:mainfrom
parasharrajat:storybook

Conversation

@parasharrajat

@parasharrajat parasharrajat commented Jan 14, 2022

Copy link
Copy Markdown
Member

Details

Fixed Issues

$ #7187

Tests | QA Steps

  1. Go to staging.new.expensify.com/docs/index.html
    and verify that you can see the storybook docs with the themes matching the screenshots below.
  2. Canvas / Header/ Default
  3. Canvas / ButtonWithDropdwn/ Fefault
  4. Canvas/ MenuItem/ Default
  5. Repeat step 2-4 for Docs tab
  6. Go to HeaderWithCloseButton
  • Verify that no errors appear in the JS console

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

image508579.png)

Mobile Web

Desktop

iOS

Android

@parasharrajat parasharrajat requested a review from a team as a code owner January 14, 2022 13:33
@MelvinBot MelvinBot requested review from mountiny and removed request for a team January 14, 2022 13:33
@mountiny

Copy link
Copy Markdown
Contributor

Is this ready for a review?

@parasharrajat

Copy link
Copy Markdown
Member Author

Yeah, Stories only work on the Web. So only a screenshot of the Web is attached.

@mountiny

Copy link
Copy Markdown
Contributor

Yeah yeah, I see you did not run npm install to get the new design and Expensify logo in the Storybook :)

@mountiny

Copy link
Copy Markdown
Contributor

@parasharrajat Just to confirm, I keep seeing these console errors locally
image

When I seacherd for these previously, these avraibles are not defined in our codebase so I assume this must be a problem inside Storybook. What do you think?

@parasharrajat

Copy link
Copy Markdown
Member Author

Let me run thenpm install first.

@parasharrajat

Copy link
Copy Markdown
Member Author

I checked the storybook local server and I don't see any error.
image

Please tell me if you are using something else.

@mountiny

mountiny commented Jan 14, 2022

Copy link
Copy Markdown
Contributor

@parasharrajat nono I am using the same. That is odd.

Whenever I switch between the components, I get those 3 errors.

@parasharrajat

Copy link
Copy Markdown
Member Author

An interesting fact is I can't find these strings in our codebase. 😃

@mountiny

Copy link
Copy Markdown
Contributor

Yeah, I said that before too which makes me think it must be from Storybook. Well, let's try this on staging then 😄 Thank you for working on this!

@mountiny mountiny merged commit de8d439 into Expensify:main Jan 14, 2022
@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by @mountiny in version: 1.1.29-6 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

@kavimuru

Copy link
Copy Markdown

@parasharrajat PR is failing. Still we see console errors. Able to reproduce this bug #7187
chrome_DnwJhUVZLL
7

@parasharrajat

Copy link
Copy Markdown
Member Author

These are cors and security errors. It does not break the Storybook in any way. You can see that headers are rendered correctly on the Canvas.
It is about the deployment and configuration of the Storybook so it should be handled on the backend. To me, it does not matter much but I will leave this to @mountiny to decide.
image

@mountiny

Copy link
Copy Markdown
Contributor

Yes, that is true. These errors are cors related and not sure if there is anything simple we can do about this. These errors are not reproducible in the local dev environment.

@kavimuru I think we will have to accept these particular errors will be around for Storybook for a while. Would you be able to reflect it in your QA steps, please? They always refer Content Security Policy or CSP.

Can you also label this as passing the QA? It has resolved the other issues and Rajat can't do much about this particular type of errors.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by @roryabraham in version: 1.1.30-3 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants