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

feat: migrate from CRA4 to Vite, Storybook to v8, jest to Vitest #7285

Open
wants to merge 50 commits into
base: develop
Choose a base branch
from

Commits on Jun 11, 2024

  1. Configuration menu
    Copy the full SHA
    5b27bc3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a005e34 View commit details
    Browse the repository at this point in the history
  3. feat: update ts-config

    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    94ee411 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b62caaf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    557f9fd View commit details
    Browse the repository at this point in the history
  6. feat: make decryption workers work on Vite

    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    f1cf08c View commit details
    Browse the repository at this point in the history
  7. fix: theme typing generation script

    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    4012c62 View commit details
    Browse the repository at this point in the history
  8. fix: bundle worker as es

    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    772d2a9 View commit details
    Browse the repository at this point in the history
  9. fix: update storybook to work with vite

    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    b3f5493 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    cc6f2e1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5c850dc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    18a3390 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0e0ea4f View commit details
    Browse the repository at this point in the history
  14. feat: format and lint

    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    a14a151 View commit details
    Browse the repository at this point in the history
  15. feat: update msw package (to v1 latest, not v2 yet)

    v2 requires more changes, not worth it for now
    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    e3e4109 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ebf0b1b View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    0ef58c2 View commit details
    Browse the repository at this point in the history
  18. fix: remove preview changes from .storybook/main.ts

    actually good to snapshot full page instead of just fixed pages
    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    be17c25 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    da276f9 View commit details
    Browse the repository at this point in the history
  20. fix: flakey toast test due to multiple tests running at the same time

    hypothesis is that multiple toasts are rendering???
    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    cc655c5 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    1f1d89e View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    fdfcb2d View commit details
    Browse the repository at this point in the history
  23. feat: remove unused .builtime-env

    does not seem to be needed now that we use vite
    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    fbbd1e4 View commit details
    Browse the repository at this point in the history
  24. fix: misrenamed import

    karrui authored and KenLSM committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    b3c93c0 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    3687d5b View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    f2a558a View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. feat: upgrade to react 18 and chakra v2 (#7292)

    * feat: upgrade react and chakra-ui
    react v17 -> react v18
    chakra v1 -> chakra v2
    
    * fix: breaking changes from Chakra v2
    
    * fix: use React 18
    
    * feat: update framer-motion, MotionBox instantiation
    
    * feat: update changed React.FC to FCC prop type
    
    * fix: sync all type-fest package types
    
    * fix: remove unnecessary package patches
    
    * feat: remove unnecessary scripts and script comments
    
    * fix: correctly generate chakra theme types
    
    * fix: revert motionbox back to old implementation
    
    new implementation doesn't work lol
    
    * fix: upgrade serverless type-fest to sync with rest of app
    
    * fix: use updated useToken call signature
    
    * fix: update react-joyride for React 18 compat
    
    * fix: types for allowed MyInfo types
    
    * fix: broken types assertions or code raised by linter
    
    * fix: invalid React SVG prop clip-path -> clipPath
    
    * fix: replace dnd package with React 18 compatible package
    
    * fix: update package to remove console warning about deprecated calls
    
    ReactMarkdown: Support for defaultProps will be removed from function components in a future major release.
    
    * fix: temporary fix for menu focus color desync
    
    final fix is to move to OGPDS
    
    * feat: update `@testing-library/*` packages
    
    remove unused testing-library/dom package
    
    * feat: lock storybook packages
    
    * fix: correctly upgrade virus-scanner type-fest package
    
    * fix: use `isDisabled` prop over disabled
    
    will not correctly set state if isDisabled is used instead
    
    * fix: test assertions due to RTL changes
    
    * fix: upgrade floating-ui package for compatibility
    
    * fix: compat issues in ChakraUI v2
    
    * feat: update input theming for ChakraUI v2
    
    * fix: NumberInput render
    
    * feat: update Drawer and Modal themes to have background using cssVars
    
    * fix: use explicit style context required by Chakra V2
    
    * fix: correctly import from component Button
    
    * fix: update margin due to flex using `gap` now
    
    instead of the margin-top previously, which allowed for margin collapse
    
    * fix: update Rating component spacing due to flex gap change in chakra
    
    * fix: update YesNo field margins due to Flex gap change
    
    * fix: weird margins with collaborator menu, match width
    
    * fix: use __css instead of sx for FeatureBanner
    
    or text will be space-betweened
    
    * fix: button spacing for CreateWorkspaceModal
    
    * fix: button spacing for DeleteWorkspaceModal
    
    * fix: button spacing for RenameWorkspaceModal
    
    * fix: spacing on LandingPage sections
    
    * feat: update ParagraphField story to catch multiline changes too
    
    * feat: remove unnecessary focus-visible package
    
    * feat: update `isTruncated` -> `noOfLines`
    
    * feat: fix width of PermissionDropdown for consistent widths
    
    * fix: align ViewOnlyPermission row margins
    
    * fix: SingleSelect theme breaking because of Menu
    
    really need to go to OGPDS soon lol
    
    * fix: add padding to prefill lock icon
    
    * fix: add correct msw handlers for workspace page
    
    * fix: add back missing margins
    
    * fix: make AvatarMenu have automatic height
    
    instead of following button's height
    
    * fix: add back missing menuitem padding for SingleSelect
    
    * fix: update imported lottie file type
    
    * fix: correct modal story color scheme for cancel button
    
    * fix: set minH of TagInput to input's var
    
    * fix: use input exported css variables for styling TagInput
    
    * fix: move combobox input to the top when focused
    
    so the border won't look janky
    
    * feat: use mockdate decorator so skeleton width fixed in snapshot
    
    * fix: spacing of collaborator list view again
    
    * fix: landing page margins
    
    * fix: avatarmenudivider margins
    
    * fix: remove removed patches copy in dockerfile
    
    * remove ineffective white bg on style header
    
    ---------
    
    Co-authored-by: Ken <[email protected]>
    karrui and KenLSM committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    2db7cf4 View commit details
    Browse the repository at this point in the history
  2. feat: upgrade typescript to 5.4.5 across app (#7305)

    * feat: upgrade react and chakra-ui
    react v17 -> react v18
    chakra v1 -> chakra v2
    
    * fix: breaking changes from Chakra v2
    
    * fix: use React 18
    
    * feat: update framer-motion, MotionBox instantiation
    
    * feat: update changed React.FC to FCC prop type
    
    * fix: sync all type-fest package types
    
    * fix: remove unnecessary package patches
    
    * feat: remove unnecessary scripts and script comments
    
    * fix: correctly generate chakra theme types
    
    * fix: revert motionbox back to old implementation
    
    new implementation doesn't work lol
    
    * fix: upgrade serverless type-fest to sync with rest of app
    
    * fix: use updated useToken call signature
    
    * fix: update react-joyride for React 18 compat
    
    * fix: types for allowed MyInfo types
    
    * fix: broken types assertions or code raised by linter
    
    * fix: invalid React SVG prop clip-path -> clipPath
    
    * fix: replace dnd package with React 18 compatible package
    
    * fix: update package to remove console warning about deprecated calls
    
    ReactMarkdown: Support for defaultProps will be removed from function components in a future major release.
    
    * fix: temporary fix for menu focus color desync
    
    final fix is to move to OGPDS
    
    * feat: update `@testing-library/*` packages
    
    remove unused testing-library/dom package
    
    * feat: lock storybook packages
    
    * fix: correctly upgrade virus-scanner type-fest package
    
    * fix: use `isDisabled` prop over disabled
    
    will not correctly set state if isDisabled is used instead
    
    * fix: test assertions due to RTL changes
    
    * fix: upgrade floating-ui package for compatibility
    
    * fix: compat issues in ChakraUI v2
    
    * feat: update input theming for ChakraUI v2
    
    * fix: NumberInput render
    
    * feat: update Drawer and Modal themes to have background using cssVars
    
    * fix: use explicit style context required by Chakra V2
    
    * fix: correctly import from component Button
    
    * fix: update margin due to flex using `gap` now
    
    instead of the margin-top previously, which allowed for margin collapse
    
    * fix: update Rating component spacing due to flex gap change in chakra
    
    * fix: update YesNo field margins due to Flex gap change
    
    * fix: weird margins with collaborator menu, match width
    
    * fix: use __css instead of sx for FeatureBanner
    
    or text will be space-betweened
    
    * fix: button spacing for CreateWorkspaceModal
    
    * fix: button spacing for DeleteWorkspaceModal
    
    * fix: button spacing for RenameWorkspaceModal
    
    * fix: spacing on LandingPage sections
    
    * feat: update ParagraphField story to catch multiline changes too
    
    * feat: remove unnecessary focus-visible package
    
    * feat: update `isTruncated` -> `noOfLines`
    
    * feat: fix width of PermissionDropdown for consistent widths
    
    * fix: align ViewOnlyPermission row margins
    
    * fix: SingleSelect theme breaking because of Menu
    
    really need to go to OGPDS soon lol
    
    * fix: add padding to prefill lock icon
    
    * fix: add correct msw handlers for workspace page
    
    * fix: add back missing margins
    
    * fix: make AvatarMenu have automatic height
    
    instead of following button's height
    
    * fix: add back missing menuitem padding for SingleSelect
    
    * fix: update imported lottie file type
    
    * fix: correct modal story color scheme for cancel button
    
    * fix: set minH of TagInput to input's var
    
    * fix: use input exported css variables for styling TagInput
    
    * fix: move combobox input to the top when focused
    
    so the border won't look janky
    
    * feat: use mockdate decorator so skeleton width fixed in snapshot
    
    * fix: spacing of collaborator list view again
    
    * fix: landing page margins
    
    * fix: avatarmenudivider margins
    
    * fix: remove removed patches copy in dockerfile
    
    * remove ineffective white bg on style header
    
    * feat: upgrade typescript to 5.4.5 across app
    
    * fix: all frontend type errors after typescript upgrade
    
    * fix: backend type errors after upgrading typescript
    
    ---------
    
    Co-authored-by: Ken <[email protected]>
    karrui and KenLSM committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    1345be1 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/develop' into 04-23-feat_add_ini…

    …tial_vite_config_and_new_eslint_rules
    KenLSM committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    759cb2e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    379f745 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a860902 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a2e7658 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f37bb65 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    002f140 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ff9366 View commit details
    Browse the repository at this point in the history
  3. fix: frm-1818 scroll lock trapping

    KenLSM committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    7e780bc View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Configuration menu
    Copy the full SHA
    5f348af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    55d6f7c View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Configuration menu
    Copy the full SHA
    10cf995 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Merge remote-tracking branch 'origin/develop' into 04-23-feat_add_ini…

    …tial_vite_config_and_new_eslint_rules
    
    # Conflicts:
    #	frontend/.storybook/main.js
    #	frontend/package-lock.json
    #	frontend/package.json
    #	frontend/src/components/Field/Attachment/Attachment.tsx
    #	frontend/src/components/Searchbar/Searchbar.stories.tsx
    #	frontend/src/features/admin-form/create/builder-and-design/BuilderAndDesignDrawer/FieldListDrawer/field-panels/MyInfoPanel.tsx
    #	frontend/src/features/admin-form/share/ShareFormModal.tsx
    #	frontend/src/features/public-form/PublicFormContext.tsx
    #	frontend/src/hooks/useMdComponents.tsx
    #	playwright.config.ts
    #	shared/constants/form.ts
    KenLSM committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    0ceb51d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a88630a View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    ec01fc5 View commit details
    Browse the repository at this point in the history
  2. fix: fe lint-sort

    KenLSM committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    2aee35d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    971c6d9 View commit details
    Browse the repository at this point in the history
  4. Merge remote-tracking branch 'origin/develop' into 04-23-feat_add_ini…

    …tial_vite_config_and_new_eslint_rules
    
    # Conflicts:
    #	frontend/.storybook/main.js
    KenLSM committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    f8514e4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2998079 View commit details
    Browse the repository at this point in the history
  6. try no logs

    KenLSM committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    dabcfa1 View commit details
    Browse the repository at this point in the history
  7. mute all logs

    KenLSM committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    380f738 View commit details
    Browse the repository at this point in the history
  8. add missing tweetnacl module

    KenLSM committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    4561bf8 View commit details
    Browse the repository at this point in the history
  9. revert test code

    KenLSM committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    bc974ce View commit details
    Browse the repository at this point in the history