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

Web - Endless spinner is displayed when try to open Stories #8179

Closed
kbecciv opened this issue Mar 16, 2022 · 20 comments
Closed

Web - Endless spinner is displayed when try to open Stories #8179

kbecciv opened this issue Mar 16, 2022 · 20 comments
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Mar 16, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open Stories on Staging Web app via https://staging.new.expensify.com/docs/index.html

Expected Result:

Stories should open and no console error displayed

Actual Result:

Endless spinner is displayed with console error,

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.43.1

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): n/a

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Bug5493095_endless2.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause

Slack conversation:

Issue were found when execute PR: #7984

View all open jobs on GitHub

@MelvinBot
Copy link

Triggered auto assignment to @iwiznia (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@iwiznia
Copy link
Contributor

iwiznia commented Mar 17, 2022

@Expensify/design do we care that this is broken? Is anyone using it?

@shawnborton
Copy link
Contributor

cc @marcaaron

@roryabraham
Copy link
Contributor

Yes, I use Storybook frequently and I encourage you to try it out as well. Here are some reasons I like using storybook:

  1. I find it to be a very useful tool to develop reusable components without getting too caught up in testing business logic.
  2. We have lots of components that are really tied up with business logic, and Storybook can help us untangle that. If you can't create stories for a component, then you should consider generalizing your component or, if that's not possible, moving it to src/pages.
  3. We're also hopeful that it will be helpful to new contributors (finding the UI elements that we have available so that they can more easily piece them together).
  4. This isn't something we've started taking advantage of yet, but Storybook has lots of tools that can help with Accessibility testing.

In summary, Storybook is meant to be a bridge between the design world and the code where we can create a cohesive set of UI elements that we use in our app.

@iwiznia iwiznia removed their assignment Mar 17, 2022
@iwiznia iwiznia added the External Added to denote the issue can be worked on by a contributor label Mar 17, 2022
@MelvinBot
Copy link

Triggered auto assignment to @stephanieelliott (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@stephanieelliott
Copy link
Contributor

Posted to Upwork: https://www.upwork.com/jobs/~01bd97ac2dd22d9e6f

@melvin-bot
Copy link

melvin-bot bot commented Mar 18, 2022

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported)

@MelvinBot
Copy link

📣 @parasharrajat You have been assigned to this job by @expensify-bot[bot]!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 18, 2022
@melvin-bot
Copy link

melvin-bot bot commented Mar 18, 2022

Triggered auto assignment to @tgolen (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 18, 2022
@parasharrajat
Copy link
Member

parasharrajat commented Mar 18, 2022

Proposal

I can fix it cc: @tgolen

  1. Fix: Long press on image doesn't open the context menu #8018 indirectly caused this issue. But we can't blame that PR for this. Storybook's webpack config is not configured correctly and it is bundling extra files.

We just need to make sure only the necessary files are imported. Modify this line to use the correct files only as the main app webpack config. By default storyBook imports every possible module file.
image

config.resolve.extensions.push('.web.js', '.website.js');

to

    config.resolve.extensions = custom.resolve.extensions;

custom refers to the main App webpack config. This will fix it.

@marcaaron
Copy link
Contributor

marcaaron commented Mar 18, 2022

What broke it in the first place? Seems like a regression no? I see you linked the PR. So we should send it back to @ahmdshrif to fix ?

@parasharrajat
Copy link
Member

parasharrajat commented Mar 18, 2022

I don't blame that PR. This was a coincidence. I added a new Story in a PR which uses RenderHTML. Now #8018 modifies another component in the app which is used by RenderHTML. I reviewed #8018 before my PR was merged. And There was a long delay before CME merged #8018. Thus this got missed.

The only point is that I already spent time debugging this and I can quickly create the PR. just a thought. Thanks?

I always try to point out regressions first. But this time I didn't consider this as a regression.

@rushatgabhane rushatgabhane mentioned this issue Mar 19, 2022
86 tasks
@parasharrajat
Copy link
Member

At last, I am fine with anything. Sorry for confusing post 😆

@stephanieelliott
Copy link
Contributor

Ok based on @parasharrajat'scexplanation, it sounds like this is not a regression.

Bearing that in mind, @tgolen what do you think of the proposal Rajat shared here?

@tgolen
Copy link
Contributor

tgolen commented Mar 22, 2022

I'm good with that proposal 👍

@parasharrajat
Copy link
Member

PR ready...

@stephanieelliott
Copy link
Contributor

PR is on staging

@melvin-bot melvin-bot bot added the Overdue label Apr 6, 2022
@tgolen
Copy link
Contributor

tgolen commented Apr 6, 2022

Not overdue, melvin.

@melvin-bot melvin-bot bot removed the Overdue label Apr 6, 2022
@parasharrajat
Copy link
Member

It should be ready for payment now.

@stephanieelliott
Copy link
Contributor

Oop, this one didn't get Hold for Payment tag when it was merged 🤔

Thanks for the bump @parasharrajat, all paid in Upwork!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants