* Minor fixes for intl messages
* Add esbuild-loader
* switch from babel to esbuild-loader
* use formatjs enforce-id linter
* Generate ids for intl messages
* id format defined by idInterpolationPattern
* Modify intl messages extraction
* remove react-intl-translations-manager
* remove transpile-tx.js
* use formatjs cli
* Modify defaultMessages.json
* modify ids in defaultMessages.json with defined idInterpolationPattern
* Fix errors
* Fix page crash
* Use babel to transpile tests
* Fix useStateFromProps
* Improve render count
* Add test to useStateFromProps
* Fix reloading state buh
* Do not check if form with channels is dirty
* Stop blocking save if form has not changed
* Remove debug code
* Fix form disabling
* Fix variant selection checkbox onClick
* Update translations
* Update messages
* Use esbuild to build storybook
Co-authored-by: Bartłomiej Wiaduch <tukan2can@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
* Use generated hooks in apps
* Remove unused files
* Use proper types in apps
* Use generated hooks in attributes
* Use generated hooks in auth module
* Use generated hooks in categories
* Use generated hooks in channels
* Use generated types in collections
* Remove legacy types from background tasks
* Use generated hooks in customers
* Use generated hooks in discounts
* Use generated hook in file upload
* Use generated types in gift cards
* Use generated types in home
* Use generated hooks in navigation
* Use generated hooks in orders
* Use generated hooks in pages
* Use generated hooks in page types
* Use generated hooks in permission groups
* Use generated hooks in plugins
* Use generated hooks in products
* Use fragment to mark product variants
* Improve code a bit
* Use generated hooks in page types
* Use generated types in searches
* Use generated hooks in shipping
* Use generated hooks in site settings
* Use generated hooks in staff members
* Use generated hooks in taxes
* Place all gql generated files in one directory
* Use generated hooks in translations
* Use global types from new generated module
* Use generated hooks in warehouses
* Use generated hooks in webhooks
* Use generated fragment types
* Unclutter types
* Remove hoc components
* Split hooks and types
* Fetch introspection file
* Delete obsolete schema file
* Fix rebase artifacts
* Fix autoreplace
* Fix auth provider tests
* Fix urls
* Remove leftover types
* Fix rebase artifacts
* add api error log in notifications
* Refactor graphql error handling
* Update messages
* Install macaw-ui from commit hash
* Make notification id be ref index rather than date
* Refactor notification container styles to allow scroll
* Add fix to apollo onError function to get operation name
* Fix userPermission race-condition
* Add refactored error handling
* Temporarly install macaw from pill PR
* Handle case when there are no graphql errors
* Update errors
* Run build-types
* Update stories to include messages
* Update shipping types
* Traverse through onCompleted data and show errors
* Update tests
* Update messages
* Clear error notifications on submit
* Check if context exists - fix tests
* Add Exit form prompt component and change some minor styles in other components to match
* Add Exit form prompt provider
* Adjust generic form and useform hook to allow using exit form prompt provider
* Add exit form prompt provider to index
* wip
* Fix types
* Fix styling
* Fix types
* Revert warehouse details refactor
* Add handling of edge cases to exit prompt
* Refactor, add comments, fix some types
* Refactor after exit form dialog name change
* fix types
* Fixes after review
* Add default value for useform prop opts so the app doesn't crash
* Add missing category prop to getting initial data for category details form
* Add exit dialog to everywhere WIP (#1600)
* Add Exit form prompt component and change some minor styles in other components to match
* Add Exit form prompt provider
* Adjust generic form and useform hook to allow using exit form prompt provider
* Add exit form prompt provider to index
* wip
* Fix types
* Fix styling
* Fix types
* Revert warehouse details refactor
* Add handling of edge cases to exit prompt
* Refactor, add comments, fix some types
* Refactor after exit form dialog name change
* fix types
* Add CommonUseFormResultWithHandlers type for later use and refactor handleFormSubmit util
* Refactor login form not to use custom form since it doesn't need to
* Add exit form dialog to order refund page
* Add exit form dialog to order return page
* Add exit form dialog to order order settings page
* Add exit form dialog to product variant page
* Add exit form dialog to product create page
* Add exit form dialog to product update page
* Add exit form dialog to product variant create page
* Fix confirm leave prop passing in generic Form
* Add util function to handle for submit to extract errors
* Add confirmLeave prop to generic forms
* Move handleChange for custom forms to useForm
* Add exit dialog to more forms
* Add extract mutation errors util function
* Add extracting errors to submit functions that use metadata create handler
* Fix typo
* Add missing category prop to getting initial data for category details form
* Fix types
* wip
* wip
* wip
* wip
* Fix types & refactor
* Fix types & refactor
* Fix typescript
* Fix unmatching tag
* Fixes
* Add handling of multiple forms at once to exit dirty form provider
* Change all usages of ExitFormDialogContext to designated hook
* wip
* wip
* wip
* Fix types wip
* Fix types
* Remove console logs
* Add isSubmitting prop to exit form dialog in order to avoid enabling exit dialog while submit is still in progresS
* Replace handleSubmit global util with a hook to use exit form dialog props inside
* Move useHandleSubmit to general hooks dir, update imports
* Small fixes
* Update snapshots
* Fix types
* Small fixes due to extensive rebase
* Update package lock
* Fixes after rebase
* Remove exit form from customer address dialog
* Fix types and update messages
* Fix types
* Change imports names
* Refactor
* Remove unnecessary console.log
* Update types, snapshots. etc after rebase
* add resetScroll behavior to navigator hook
* disable scroll to top on modal close
* refactor useNavigator hook
* fix linter issue
* fix no default value of destructured parameter
* WIP add new configuration menu
* Add missing permissions
* Changed filtering to one based on arrays of permissions
* Add hasAnyPermissions and hasAllPermissions functions
* Simplify getConfigMenuItemsPermissions function
* Simplify routing logic
* Add gift cards section to menu and add empty list component
* Update messages
* Change styling of app wide page header to match design
* Add gift cards list table wip
* Update prop name for status chip component to make it more consistent with other components
* Replace old trash icon with new one
* Add Size type based on action dialog sizes to be used app wide
* Add delete icon button
* Add new sizes option to status chip component
* Add / update gift cards list components
* Add bulk actions type
* Work on gift cards list WIP
* Small refactor
* Fix styling of gift cards table
* Remove temp files
* Remove unnecessary type
* Add gift cards section to menu and add empty list component
* Update schema and types
* Add link to gift card update page to gift cards list and add route to gift cards index
* Extract order page title with status chip into a separate generic component and use it in order page title
* wip
* Update money component
* Add gift card details card balance section
* Refactor gift card details
* Add vertical spacer component
* Update schema and types
* Add gift card tag input component along with necessary queries
* Add gift card tag input to gift card update page
* Add gift card update details card expiry section WIP
* Add time period select field WIP
* Post rebase refactor
* Add time period select field to gift card update view
* Fixes after review
* Update schema, types and gift cards query
* Add getFullName util function and replace existing manual usages
* Add text with select field component
* Add gift card update info card and refactor
* Fix import
* Add displaying order link in gift card update
* Refactor
* Connect gift card list to api
* refactor
* Add gift card create dialog
* Fix gift card list styles, change location for gift card list query, minor refactor
* Fix menu structure data for gift cards
* Add channel currencies type to shop
* Refactor text with select field
* Add gift card expiry select component
* Add gift card error type and fragment
* Update global types
* Add default prop to getFormErrors function
* Move gift card details provider to providers dir
* Update global utils with mapSingleValueNodeToChoice function
* Update gift card tag input
* Move and refactor time period field
* Update schema
* move format money function to other money ulities
* Update gift card urls
* Add content or skeleton component
* Add gift card create util for extracting expiry settings input data
* Remove content or skeleton component and move displaying logic to existing skeleton
* Move displaying logic of gift card create dialog to list
* Refactor
* Add hooks for gift card bulk actions and gift card list to be used instead of context directly
* Fix types for text with select field + add parsing for number typed field
* Add initial currency to gift card create form
* Fix gift card create dialog closing animation
* Add gift card update info card
* Refactor gift card update details card
* Add gift card balance dialog
* Move gift card update form providers to providers dir
* Connect gift card update page to api, add necessary contexts etc.
* Refactor
* Refactor
* Add hooks to use instead of gift card contexts directly
* Fix types
* Fix text field target name missing in passed event in text with select field
* Add minimal value option to text with select field, add to gift card inputs
* Fix gift card update balance dialog not changing hasChanged prop after submit
* Refactor
* Fix update balance dialog crashing the app when enetered wrong amount
* Fix gift card list table header styles
* Add enable / disable section to gift card update
* Refactor
* Refactor
* Refactor
* Add metadata to gift card update
* Update messages ids
* Refactor
* Refactor
* Refactor
* Refactor
* Update types after rebase
* Fix types
* Fixes after qa
* Fix tests
* Replace withStyleswith useStyles (#1100)
* Replace withStyleswith useStyles
* Update messages
* Use rem as a spacing unit (#1101)
* Use rems as spacing units
* Fix visual bugs
* Update stories
* Use macaw-ui as theme provider (#1108)
* Use macaw ui as a theme provider
* Add react-dom to aliases
* Fix jest module resolution
* Update useTheme hook usage
* Fix test wrapper
* Use macaw from git repo
* Fix CI
* Update stories
* Fix aliasing
* Extract savebar to macaw ui (#1146)
* wip
* Use savebar from macaw
* Use confirm button from macaw
* Improve file structure
* Use sidebar context from macaw
* Update macaw
* Update macaw version
* Remove savebar from storybook
* Update stories
* Use alerts and notifications from macaw (#1166)
* Use alerts from macaw
* Add notifications from macaw
* Update stories
* Pin macaw version
* Encapsulate limit reached in one component
* Remove unused imports
* Use backlinks from macaw (#1183)
* Use backlink from macaw
* Update macaw version
* Use macaw sidebar (#1148)
* Use sidebar from macaw
* Use shipped logo
* Use lowercase
* Update stories
* Use user chip from macaw (#1191)
* Use user chip from macaw
* Use dedicated components for menu items
* Simplify code
* Bump version and fix types (#1210)
* Rename onBack to onClick
* Rename UserChip to UserChipMenu
* Rename IMenuItem to SidebarMenuItem
* Update macaw version
* Fix tables after changes in macaw (#1220)
* Update macaw version
* Update changelog
* Update stories
* Fix after rebase
* Update to macaw 0.2.0
* Lint files
* Update macaw to 0.2.2
* Create user addresses select modal
* Prepare user addresses select modal form
* Add user addresses select modal to order draft details page
* Update draft order validation of adresses in edit modal
* Add Customer Change modal
* Update snapshots and messages
* Indication of address form errors by address type
* Refactor addresses submiting
* Refactor address transform functions
* Add data-testids to addresses change dialog
* Update customer address choice style
* Trigger CI
* Update customer addresses edit flow
* Move styles outside of component files
* Refactor after review
* Refactor after review
* Do not update customer if the same selected
* Handle setting adress after edit customer with no addresses
* Trigger CI
The bug was introduced in OAuth2 implementation (1645e2fd), where the tokenAuthLoading flag from AuthProvider was not used and it did not blocked UI in loading state.