* New ConfirmButton component
* Update macaw ui
* Remove old confim button
* New confirm button
* Replace all place with new confirm button
* Remove ConfirmButtonTransitionState use from mcaw
* Does not change button width when showing loader and success state
* Test ConfirmButton
* Remove story, update tests
* WIP change pull_request to push for chromatic
* Revert "WIP change pull_request to push for chromatic"
This reverts commit 8f0909bf54f185898a7f1d236f072d6544fd5d86.
* Add comments
* Remove css prop from DialogTable
* Make confirm button larger in order send refund
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Paweł Chyła <chyla1988@gmail.com>
* Update macaw to include Paginator changes
* Add link support to TablePagination component
* Rewrite usePaginator to use context and links instead of onClick
* Refactor ProductList to use new usePaginator hook
* Add decorator for PaginatorContext in ProductList stories
* Refactor AppList to use new usePaginator hook
* Refactor AttributeList to use new usePaginator hook
* Add missing pagination props for local pagination to AttributeValues
* Refactor CategoryList to use new usePaginator hook
* Refactor CategoryDetails to use useLocalPaginator and context
* Refactor CollectionList to use new usePaginator hook
* Refactor CollectionProducts to use new usePaginator hook
* Refactor CustomerList to use new usePaginator hook
* Refactor VoucherDetailsPage to use PaginationContext
* Refactor SaleDetails to use PaginatorContext
* Refactor SaleList to use new usePaginator hook
* Refactor VoucherList to use new usePaginator hook
* Fix type error in paginatorContextValues fixture
* Refactor GitfCardList to use new usePaginator hook
* Remove unused imports
* Refactor MenuList to use new usePaginator hook
* Refactor OrderDraftList to use new usePaginator hook
* Refactor OrderListPage to use new usePaginator hook
* Refactor PageList to use new usePaginator hook
* Refactor PageTypeList to use new usePaginator hook
* Refactor PermissionGroupList to use new usePaginator hook
* Refactor PluginsList to use new usePaginator hook
* Refactor ProductTypeList to use new usePaginator hook
* Refactor ShippingMethodProducts to use PaginationContext
* Refactor ShippingZonesList to use new usePaginator hook
* Refactor StaffList to use new usePaginator hook
* Fix TS errors
* Update TranslationEntities and TranslationFields to use new usePaginator
* Refactor WarehouseList to use new usePaginator hook
* Fix errors in stories that didn't use PaginationContextDecorator
* Mention changes in changelog
* Update to latest macaw version, update snapshots
* Fix redirect when modal is opened on apps list
* Update snapshots
* Fix failing Cypress test
* Fix issues with TableRowLink and buttons that have onClick
* Fix CustomAppDetailsPage using wrong Backlink compponent
* Remove custom click event handler from TableRowLink
* Add TableButtonWrapper component
* Refactor Buttons and Links in TableRowLink to use TableButtonWrapper
* Refactor Buttons in SortableTableRowLink to use TableButtonWrapper
* Add comments about reasoning behind TableButtonWrapper
* 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>
* Add onBeforeUnload handler to prevent accidental refresh
* Update button messages
* Fix exit form not working after submit
* Make onBeforeUnload disable if env is development
* Fix onClose
* Remove internal date time field state
* Update messages and dialog
* Prevent navigation on 400 error
* Add submit disabled ref in exit form
* Update exit form dialog for disabled save
* Update confirmLeave forms to set ref if save is disabled
* Remove unused error handling
* Remove explicit ref type
* Remove unused import
* Fix disabled type
* Add disable check function to generic forms
* Add custom isDisabled method to sale and voucher forms
* Add default isDisabled functions to confirmLeave forms
* Update tests
* Remove unused code
* Rebase fixes + update tests
* Refactor form and useform
* Refactor disabling forms
* Change "saveDisabled" name to "isSaveDisabled" for improved readability
* Change "isDisabled" function to "checkIfSaveIsDisabled"
* Update exit form disabling conditions for zone rates forms
* Add information about immediate save
* Remove leftover code
* Add info about immediate save in sales
* Add info about immediate save in orders
* Add info about immediate save in attributes
* Add info about immediate save in shipping
* Add saved notification
* Fix type errors
* Update messages
* Remove debug code
* Update messages
* Lint project
* 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
* 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
* Update schema
* Update queries, mutations, and types
* Add render with dividers util function
* Add plugin details channels card component
* Update plugin details to use channels
* Update stories
* Update plugin configuration type across the app, fix some other types, temporarily comment some things out in plugins list so types match"
* Update schema
* Update types
* Update plugins list to show channels and global statuses, add plugin channel status, update status label component
* Add render with dividers util function
* Comment out some stuff for types to match - temporary
* Add useChannelsSearchWithLoadMore util to imitate loading more from backend for channels list with load more
* Change filters logic to be able to display multiple fields in a field section and add it to plugins view
* Add scroll option to plugin availability popup on plugin list
* Fix plugin list page story
* Temporarily comment some stuff out, fix some types
* Add filters errors WIP
* Fix filters not updating list
* Add error handling to plugins list filters and filters in general
* Rename some components according to review
* Move useChannelsSearch and useChannelsSearchWithLoadMore to hooks, change some imports accordingly
* Fix imports
* Move render collection with dividers to a component, fix usages
* Replace channels with load more and search query to base channels query
* Change render with dividers function to take in a component instead of render function
* Update tests
* Extract messages
* Remove unnecessary imports
* Fix filters - autocomplete messing items order sometimes & some fields not working
* Update plugin update mutation variables - change channelId to channel
* fix failing tests
* Add test ids
* fix failing tests
* fix failing tests
* Rename misc.tsx to ts
* Remove usage of render collection with diviers, change it to CollectionWithDividers component
* Remove unnecessary imports
* Update messages ids
* Update snapshots
Co-authored-by: Karolina Rakoczy <rakoczy.karolina@gmail.com>
* Add Delete button component
* Add product / page type delete warning dialog
* Replace old product types delete dialog with new one, add products total count query
* Update schema, types and queries for pages, add use page count query and add warning delete dialog to page types
* Move type delete warning dialog data to proper hooks, refactor
* Remove unused components and stories
* Add plural forms to messages for product / page type delete warning, refactor
* Add type delete warning dialog stories
* Move type delete hooks to proper directiories, fix imports
* Fix imports
* Remove countallproducts query and instead use useproductcountquery
* Remove unnecessary types and imports