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

Fix Storybook #439

Merged
merged 3 commits into from
Mar 4, 2024
Merged

Fix Storybook #439

merged 3 commits into from
Mar 4, 2024

Conversation

jean-the-coder
Copy link
Contributor

Description

There are some compilation errors in the Storybook stories for the medical sources card component. This PR clears them up as well as updating some documentation.

Changes

  • Updated CONTRIBUTING.md to add a bit more about Storybook and what commands to run
  • Makefile changes:
    • Renamed serve-frontend-storybook to serve-storybook as there isn't a backend equivalent. Can change back if you want, but I didn't think the frontend was needed clarification and shorter commands are easier to type.
    • Removed test-frontend-storybook as it was the same command as serve-storybook and doesn't actually run tests like the other test commands. This threw me for a loop as a newbie to Storybook because I was expecting the test command to exit successfully like the other test commands.
    • Added build-storybook that can be used like test commands to ensure compilation succeeds without running the server.
  • Removed attributes that were causing compilation errors in the medical-sources-card stories
  • Removed two stories (custom brand logo and hidden) as it doesn't look like that functionality is implemented
  • Added story for if the brand logo is missing to ensure that the ImageFallbackDirective works as expected

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 21.00%. Comparing base (05a6840) to head (bbe447a).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #439   +/-   ##
=======================================
  Coverage   21.00%   21.00%           
=======================================
  Files         288      288           
  Lines       17285    17285           
  Branches      615      615           
=======================================
  Hits         3631     3631           
  Misses      13317    13317           
  Partials      337      337           
Flag Coverage Δ
unittests 21.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

jean-the-coder and others added 3 commits March 3, 2024 22:28
Split tests into separate development workflow that can be included within ci file.

Restrict ci to only run on pushes to main/beta branches.

run dev workflow on pull requests
@AnalogJ AnalogJ merged commit 7dec049 into fastenhealth:main Mar 4, 2024
4 checks passed
@AnalogJ
Copy link
Member

AnalogJ commented Mar 4, 2024

fantastic work once again. Thanks @jean-the-coder 🥳

@jean-the-coder jean-the-coder deleted the fix-storybook branch March 6, 2024 19:32
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.

None yet

3 participants