Co-authored-by: andrzejewsky <vox3r69@gmail.com>
Co-authored-by: timur <timuric@gmail.com>
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
* Fix missing metadata and payment balance on unconfirmed orders
* Update changelog with fix missing fields on order page
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
* Change table layout to flexbox
* Move taxes before total
* Move discounts above subtotal
* Add type to util function
* Remove maybes
* Improve discounts
* Change taxes message
* Make font smaller
* Query total balance in order details
* Use totalBalance from api
* Show refunded when more than 0
* Make taxes grey
* Delete unused import
* Update fixtures
* Update snapshots
* Extract messages
* Move styles to seperate file
* Fix refunded amount
* Add settled message for zero balances
* Change payment status to payment balance
* Update snapshots
* Fix messages post rebase
* Add warning alert before finilizing draft order
* Add line error indicators in draft order view
* Handle unfilled fields errors before draft order finalize
* Handle draft order line errors
* Differentiate line alert severity
* Fix order line alert margin
* Remove unnecessairy comment
* Refactor order draft alert components
* Update order draft test snapshots
* Refaactor order details code
* Hide add products button when no products available on order draft page
* Hide no shipping methods warning if they cannot be determined
* Update product assignment dialog messaages
* Update order channel error messages
* Fix missing order lines in error crash
* Move order fulfillment warehouse selection to fulfill page
* Use modal to select warehouse on fulfill order page
* Remove tracking number input from fulfill order page
* Update visual structure of fulfill order page
* Fix fulfill order page styles
* Update order fulfill utils
* Pass query params to iframe from dashboard
* Pass search params in product details and order details extensions
* Move released features in Changelog
* Add entry to chagnelog
* Fix ESLint issues
* 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
* 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 metadata field to filters
* Fix type
* Add metadata filters to orders list
* Refactor key value filter into separate component
* Update Filter types to support other values than string[]
* Rename IFilterElement to FilterElement, remove duplication in types
* Add new messages for Metadata filter
* Fix metadata key-value pair not formatted correctly in the URL
* Add delete metadata button
* Update snapshots
Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>
* Prevent form submit if country is not selected
* Refactor error checking function
* Make address forms not invoke chrome's autofill
* Add a comment
* Update tests
* 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"
* Remove redundant confirmLeave on tracking number dialog
* 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
* Move cardMenu to page header
* Update tests
* Fix extension menu items
* Refactor card menu in page header
* Update tests
* Apply new page styling to gift cards list