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

Storybook #509

Merged
merged 20 commits into from
May 24, 2022
Merged

Storybook #509

merged 20 commits into from
May 24, 2022

Commits on May 9, 2022

  1. frontend: Add icons into repo, stop regenerating

    Regenerating icons each time is annoying and slow.
    illume committed May 9, 2022
    Configuration menu
    Copy the full SHA
    9eadf99 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2022

  1. frontend: Remove unecessary src/js folder, move files

    This is the default framework folder structure.
    Gives consistency with other CRA apps like Headlamp.
    
    Whilst renaming, we move components in common/ and layout/ into their
    own folder. So all the files related to them can be all together.
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    6503620 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5393876 View commit details
    Browse the repository at this point in the history
  3. frontend: Add in themes.ts handling from Headlamp

    Themes should work as before.
    All the theme selection features are not completely integrated
    yet, but it is enough to use the themes within storybooks.
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    254c1e6 View commit details
    Browse the repository at this point in the history
  4. frontend: Add storybook configuration

    from Headlamp.
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    49832b6 View commit details
    Browse the repository at this point in the history
  5. frontend: Add storyshots for testing

    The Card.stories.tsx is minimal and unfinished because storyshots
    requires one test to be there for the test to pass.
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    c9cfd75 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    128a0cf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5ad9340 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    022b5e4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    563f40a View commit details
    Browse the repository at this point in the history
  10. frontend: Add Channel stories and interface docs

    - Named files after component (ChannelItem.tsx not Item.tsx)
    - Fixed some types to match app data
    - Fixed some other type issues found
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    53c2751 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3c0e70f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    df481bf View commit details
    Browse the repository at this point in the history
  13. frontend i18n/dateTime: Add default locale+TZ under test

    This is because different systems have different default locales
    and different timezones - which makes testing more difficult.
    
    Moved date/time formatting functions out of helpers into
    src/i18n/dateTime.
    
    The cross-env package is for cross platform setting of env vars.
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    2d67561 View commit details
    Browse the repository at this point in the history
  14. frontend: Add Activity stories and interface docs

    - Removed __tests__/Activity (covered by storyshots)
    - Named files after component (ActivityItem.tsx not Item.tsx)
    - Fixed some types to match app data
    - Fixed some other type issues found
    - Added id to Activity API response
    - Fixed issue with key using number instead of unique id
    - Material UI generated IDs are not stable, mock for storyshots
    - Used toLocaleString to make date locale related tests happy
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    bac576d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    6612f69 View commit details
    Browse the repository at this point in the history
  16. frontend: Add Applications stories and interface docs

    - Removed __tests__/Applications(covered by storyshots)
    - Named files after component (ApplicationItem.tsx not Item.tsx)
    - Fixed some types to match app data
    - Fixed some other type issues found
    - Made ApplicationItemGroupItem use APIContext so stories can mock API
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    ae915cf View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    4580cce View commit details
    Browse the repository at this point in the history
  18. frontend: Add Groups stories and interface docs

    - Named files after component (GroupItem.tsx not Item.tsx)
    - Separated some components into their own files
    
    backend:
    - version_breakdown was returning null instead of [] when empty
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    d3dc16b View commit details
    Browse the repository at this point in the history
  19. frontend: Add coverage testing to make test and CI

    The coverage percentages in package.json that the testing needs to
    meet are the current levels.
    illume committed May 18, 2022
    Configuration menu
    Copy the full SHA
    2c2ef3a View commit details
    Browse the repository at this point in the history