* Query total price in order line data
* Add order line total to discount context consumer
* Replace frontend calculations with api value for order line totals
* Split logic for order discount and order line discount contexts
* Pass extra props to money component
* Add unit test
* Do not pass all props to Money's span
* replace filter method from fuzzaldrin with native filter method of javascript to fix country select issue #2751
* added fuse.js and replace filter of fuzzaldrin with search of fuse.js to fix country select issue #2751
* use original array if query is empty in SingleAutocompleteSelectField, not use fusejs result
* RowMenu component
* Show first menu item as icon
* RowAction tests
* Change Edit button
* Remove outline from colum picker
* Change ghost color
* Update enterVariantEditPage test
* Update test id in test for edit button
* Update editVariant selector in test
* Remove submit from exit dirty form util
* Extract messages
* Change data-test-id attributes
* Add a unit test
* Change given when then to AAA
* Mock packages
* Change button click to user events
* Improve saving variant images
* Update storybook types
* Add getSelectedMedia function for products
* Add test for handleAssignMedia in products
* Follow AAA test convention
* Add confirm button to media dialog selector
* Move dialog styles to separate file
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 product channels update error
Fixed error occured after trying to update availability of variant
channel in datagrid, which (channel) was later on removed from being available on
product. Now variant channel availability shouldn't be appended to channel listing
update input when channel has been disabled on product.
* Add test of inferProductChannelsAfterUpdate
* Pass additional page context to the popup via URL params
* Add customerID to available app params
* Handle the new customer app extensions
* Add extensions to the customer list
* Fix missing extensions from sidebar when no permission is required for them
* Pass selected products and customers to extension view
* Update React to 17
* Update types for React 17
* Update references in useEffect cleanup functions
* Update react-error-boundary
* Update react-inlinesvg
* Update Apollo Client and Upload Link
* Update apollo-upload-client types
* Fix comment about csstypes
* Downgrade apollo-client version due to log-in bug
* Add missing apollo link
* Update package-lock version
* Fix button type
* Fix datagrid test after react update
* Fix polish language letter bug
* Add format tip for text attribute rows
* Update changelog with added attribute tip
* Update attributes test snapshots
* Update question-help icons for dark mode
* Enable save button on channel pages
* Update changelog with enable save button
* Remove disabling save while updating channel
* Trigger CI
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
* Fix pagination errors on voucher and sale pages
* Update messages on voucher and sale pages
* Update changelog with pagination fix
* Update test snapshots of voucher and sale pages
* Update types of voucher and sale pages
* Add rel=noopener to links that take users to external sites
* Update Storyshots for Link changes
* Fix invalid isExternalURL function usage
* Update snapshots
* 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>
* Reset modal state in collection details
* cover initial state
* modal updates
* cover case when there is no items to add
Co-authored-by: andrzejewsky <vox3r69@gmail.com>
* Fix exit form dialog false positive.
Fixed:
- saving legacy data due to assigned legacy ref of function data assigned to form
- lack of clearing dirty status of form data on successful submit
causing improperly displaying exit form dialog
* Update changelog with exit form dialog fix
* Add error handling override for queries
* Handle errors in order fulfill view
* Handle errors in order details view
* Disable errors in approval mutation
* Migrate @saleor/app-bridge to @saleor/app-sdk
app-bridge is deprecated and was merged into app-sdk.
This commit fixes imports and points to new package
* Downgrade package-lock version
* Update app-sdk to 0.9.1
* Change sdk version to production
* Refresh app-sdk install
* 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
* Allow saving regardless of membersChanged value
* Fix in-place sorting on readonly value
* Fix capital letter in button message
* Update snapshots
* Fix stories
* Remove unused import
* Update product and page default settings
* Update product and page test snapshots
* Update product create errors handling
* Fix preselected publication info of product with variant without any channel listing
* Update package lock file
* Fix page publication state and its date on page view
* Update page tests
* 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
* Fix assignment list search with no items found
* Create warehouse and shipping zones separated count queries
* Remove total count displaying from assignment list
* Add assign warehouse section in channel page
* Update data-test-ids on channel page
* Update channel page form details
* Update shipping zones and warehouses cards in chaannel page
* Assigning warehouses by channel in product and variant pages (#2135)
* Assigning warehouses by channel in product and variant pages
* Disable warehouse assignment when no channel on variant page
* Update products stocks section messages
* Add deprecated message
* Extract messages
* Add deprecated pill to webhook secret key
* Update snapshots
* Move extra info to pill toolbar
* Extract messages
* Update snapshots
* Remove preventDefault
* Open link in a new tab
* Update snapshots
* Fix linter issue
* Make webhooks active by default when creating new ones
* Update snapshots
* Add rank sortfield to orders sort field enum
* Make useSortRedirects hook generic
* Add sorting by rank to orders list
* Move useSortRedirects to generic hooks dir
* Add hook description
* Add type parameters
* 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
* Remove marketplace from Apps list
* Move apps in progress to bottom
* Remove pagination from InstalledApps
* Add apps permissions tooltip
* Activate/deactivate InstalledApps from list
* Add changes description to CHANGELOG
* Update package.json to include macaw required changes
* Upadte fixtures
* Rename Local Apps -> Third Party Apps
* Update macaw, fix TS errors
* Refactor AppPermission component to use permission fragment
* Add fragment for app list query, refactor InstalledApps props type
* Fix check for usage within context inside useAppListContext
* Remove redundant errors check in mutation hooks inside AppsList
* Update extracted messages
* Fix AppListPage stories failing
* Fix Tooltip not working in failed installed apps
* Update messages
* 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
* Handle case when attribute value is empty on initial render
* Fix useRichText when initial data is undefined
* Update snapshots
* Handle loading state in useRichText
* Add placeholder RichTextEditor when data is loading
* Update snapshots
* Bump Editor.js version
* Refactor RichTextEditor to use react-editor-js wrapper
* fixup! Bump Editor.js version
* Rewrite RichTextEditor to use uncontrolled input
* Fix RichTextEditorContent not rendering any content due to missing id
* Fix RichTextEditorContent not working on initial render
* Remove editorjs-undo
* Refactor usage of RichTextEditor to get its data only during submit
* Add useMultipleRichText hook for managing rich text attributes
* fixup! Refactor usage of RichTextEditor to get its data only during submit
* Rewrite Attributes usage to use EditorJS .save() on submit
* Refactor RichTextContext into separate file
* Rewrite tests for useRichText
* Add PR changes to the changelog
* Update snaphosts
* Fix failing tests for components that use RichTextEditor
* Remove duplicated getSubmitData function
* Always send updated values of attributes
* Send only changed product attributes to API
* Add change to changelog
* Add tests for preparing upload attribute values
* 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>
* Adding missing test to collections tests
* Adding missing test to collections tests
* fixing merge issues
* fixing merge issues
* update to test-env-deploy
* update to test-env-deploy
* changing test-env-deploy
* adding sugestions
* fixing what Karolina suggested
* pulling from main
* Fix selected header width in vouchers
* Update snapshots
* Change number of columns in customer list to correct value
* Update snapshots
* Same fix in navigation view
* Update snapshots
* Remove redundant import
* 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>
* Disable store domain field in cloud, update query to save store name
* Update field label for domain to "Store API URL"
* Remove store name from store settings page
* Skip enitre shopDomainUpdate mutation when running in cloud
* Remove SiteDetailsSettingsCard
* Update snapshots
* Ignore more than 2 decimal numbers in price input
* Handle currencies that don't support decimal values in PRiceField
* Fix helper function when no currency is provided, add calculated step
attribute
* Update storyshots for PriceField, replace $ currency symbol with USD
* Reject exponent character (e) in PriceField
* Add fallback when no currency symbol is provided
* Fix shortening decimal part in PriceField didn't work with >=3 numbers
* Update PriceField to use React.ChangeEventHandler
Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
* Fix missing element type in React.ChgangeEventHandler
Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
* 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
* Update unassignProductAttributeMutation to use new array parameter types
* Replace [Collection]! with [Collection!]! in queries to match API changes
* Fix failing test on ProductVariantPage
* Skip navigator's customerSearch query on dashboard load
* Fetch extensions list only with MANAGE_APPS permission
* Show sidebar sections with partial permissions
* Trigger deployment
* Change skipping query from always to when query is empty
* 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
* Remove savebar docking
* Hide attributes if empty
* Select text in autocomplete after initial click
* Update snapshots
* Use stable macaw version
* Remove maybes
* Add util filter function
* 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
* Update build-types script
* Remove "pricing" where it's unused; exclude pricing query if no channel is selected
* Update fixtures
* Fix minor preorder issue
* Update types
* Fix build-types script
* Remove unnecessary product fragment
* Fetch only data that is visible in products list (#1892)
* Conditionally include attributes in product list query
* Add 'hasSelectedAtrributes' variable to product list query
* Refactor condition
* Create AttributeValueDetailsFragment fragment
* Use attributeValueDetailsFragment
* Update fragment in products
* Add pill component
* Add preview pill to gift card list
* Use outlined prop
* Add arrow to tooltip
* Add preview pill to gift card view headers
* Add preview pills to mark preview features
* Update macaw
* Update tests
* Update messages
* Add black color to pill preview tooltip
Co-authored-by: Wojciech <wojciech.mista@hotmail.com>
* fix(SingleSelectField): dont allow to select an option when it is disabled
* feat(storybook): add story to the SingleSelectField
* fix(storybook): update snapshot
* Fix rest of the world checkbox on shipping zone create
* Add query to fetch rest of the world countries
* Fix query in shipping zone view
* Remove default shipping zonecountries
* Refactor rest of the world queries
* Refactor rest of the world
* Update shipping zone countries query
* Fix naming
* Handle no rest of the world countries left
* tests for product types for 3.1
* updated stories
* chage test cases names for product types
* add test for setting attribute as variant selection in product type
* add test for setting attribute as variant selection in product type
* split product types spec file
* uncomment purchase with product types test
* Update cypress/integration/configuration/productTypes/attributesInProduductTypes.js
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
* 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
* Add hover tooltip on sorting disabled columns in lists (#1784)
* Update macaw
* Add TooltipTableCellHeader component
* Add filterDependency type to lists
* Add tooltip to conditional columns in Voucher List
* Add tooltip to conditional columns in Sale List
* Add tooltip to conditional columns in Collection List
* Add tooltip to conditional columns in Product List
* Update snapshots
* Improve component clarity
* Change TableCellHeader to React.forwardRef component
* Change TooltipTableCellHeader to use TableCellHeader
* Remove RefTableCellHeader
* Bump macaw
* Update snapshots
* Remove merge conflict leftovers
* Add tooltip header to gift card list
* Refactor gift card list tooltip
Co-authored-by: Wojciech <wojciech.mista@hotmail.com>
* added tests for gift cards
* update tests names for gift cards
* change naming, move functions from test file, fix testId
* fix move function
* Edit test case name
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
* 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
* fix failing tests
* fix tests for gift cards
* fix tests for gift cards
* upload video only when fail
* fix preorder time
* fixed translation page
* fix navigation, stripe and adyen
* fix graphQl npm
* update stories
* Add gift bulk create (#1490)
* Add gift card bulk create dialog WIP
* Update schema, add gift card bulk create mutation and types
* Add gift card bulk create modal and mutation
* Fix types and update messages
* Refactor gift card bulk create
* Add closing gift card bulk create dialog after success
* Change gift card list closeDialog prop name to onClose
* Review fixes
* Review fixes
* Add error message to invalid expiryDate (#1518)
* Add error message to invalid expiryDate
* Add default messages
* Replace filter with some
* Add gift card export (#1499)
* wip
* Add exporting gift cards
* Update messages
* Fix types
* Review fixes
* Review fixes
* Refactor passing messages to export settings component
* Refactor
* Update messages
* Gift card customer page (#1520)
* Add gift cards card to customer page (#1456)
* WIP
* WIP
* Extract activate/deactivate logic to a hook
* add optional side action
* Add query for customer's gift cards
* Add component for giftcard status chip
* Graphql run types
* Add gift card card to customer page
* Fix status chip header
* Revert style change
* Unify status chip logic
* Fix naming scheme
* Add currentOpts to act/deactivate gift cards hook
* Add queries to refetch prop
* Simplify gift card list component
* Fix order status chip
* Extract messages to separate file
* Remove unused lines of code
* Tests and messages
* Fix card list rendering
* Type fix
* Code review fixes
* Review changes
* Scripts
* Change variable name
* Fix formatted message
* Check if giftcards exist before rendering collection
* Add loading button to CardMenu component (#1476)
* WIP
* WIP
* Add gift card card to customer page
* Fix status chip header
* Fix naming scheme
* Add currentOpts to act/deactivate gift cards hook
* Remove unused lines of code
* Revert style change
* Tests and messages
* Fix card list rendering
* Type fix
* Code review fixes
* Review changes
* Scripts
* Add loading animation to card menu buttons
* Added default messages
* Change conditional prop checking to filtering
* Issue gift card in customer page (#1468)
* WIP
* WIP
* Replace typed query with make query
* Add customer details context to customer page
* Add context to customer gift cards
* Disable customer select when initial customer is present
* Pass initial customer to create gift card form
* Fixes after cherry-pick
* Code cleanup
* Remove getInitialData function
* Remove unused package
* Remove new line
* Post-rebase fixes
* Code cleanup & extract messages
* Remove unused code
* Create customer details hook
* Minor fixes
* Update default messages
* Update gift card types
* Type fixes
* Change directory of useCustomerDetails hook
* CR Fixes
* Update tests
* Make PageTitleWithStatusChip use ExtendedPageHeader
* Update tests
* Update hook name
* Post-rebase fixes
* Eslint fix
* Fix scrollbar appearing in menu issue (#1539)
* Change displayCode to last4CodeChars (#1573)
* Add filtered redirect to gift card page from customer details (#1556)
* Limit number of channel list items (#1607)
* Add max height to single select field menu items container
* Add storybook case
* Update stories tests
* Fix gift card product changing to preorder on save issue (#1583)
* Variant preorder fix
* Global threshold input should be optional
* update snapshot
* Add displaying logic gift cards list toolbar (#1617)
* add displaying logic for gift card toolbar
* Logic fix
* Handle bulk export after creation (#1544)
* Add gift bulk create (#1490)
* Add gift card bulk create dialog WIP
* Update schema, add gift card bulk create mutation and types
* Add gift card bulk create modal and mutation
* Fix types and update messages
* Refactor gift card bulk create
* Add closing gift card bulk create dialog after success
* Change gift card list closeDialog prop name to onClose
* Review fixes
* Review fixes
* Add gift card export (#1499)
* wip
* Add exporting gift cards
* Update messages
* Fix types
* Review fixes
* Review fixes
* Refactor passing messages to export settings component
* Refactor
* Update messages
* Handle export after bulk gift card creation
* Add default messages
* Create an util function to get correct input for export
* Update component's name
* Change modal's title
* Update messages
Co-authored-by: Magdalena Markusik <magdalena@markusik.com>
* Gift Card List item number change doesn't refetch fix (#1643)
* Fix number of rows change not refetching list
* Add pagination reset
* Update descriptions for gift card messages to be more descriptive (#1648)
* Gift card history timeline (#1597)
* Update queries and mutations
* Allow title to be a react node
* Show user name if it exists in data object
* Update types
* Refresh queries on note add
* Add gift card history
* type fix
* Update messages
* Fix timeline note
* Add event fragment to form update result
* Update types
* Fix typo
* Update messages
* Disable input if gift card is expired
* Remove unused imports
* CR Fixes
* Change messages location
* Change message to include user in order
* Allow adding notes to expired gift cards
* Fix disabled input showing dropdown issue (#1636)
* On click is disabled when component is disabled
* update tests
* Order filtering for gift cards in Order List View (#1628)
* Add gift card order filter
* Add gift card filter card in orders view
* Bump macaw version
* Update messages
* Update tests
* Code review changes
* update messages
* Change info card message to use only one message
* Fix order gift card filter
* Gift card filter in product list view (#1621)
* Add GiftCard or Normal filter in Product List View
* Fix tests
* Fix type check
* Don't filter if query param is not in enum
* Update messages
* Update tests
* Code cleanup
* Add default messages
* Pass intl rather than initialise it in util
* Post-rebase fixes
* Change product type details messages (#1642)
* Update product type gift card options messages
* update tests
* Add sorting to gift card list (#1569)
* Update queries and types for sorting
* Add optional handleError method to makeQuery
* Add sorting to gift card list
* Sorting hook uses useGiftCardList hook
* Convert to boolean
* Add default sorting field
* format fix
* Add expiry error handling for issuing gift cards (#1634)
* Add expiry error handling for issuing gift cards
* Add expiry error message to gift card bulk issue
* Update Gift Card tag queries to utilise multiple tags (#1685)
* Change displayCode to last4CodeChars (#1573)
* Update types
* WIP
* Update gift card forms to utilise multiple tags
* Code cleanup
* Update gift card event types
* Fixes
* Change column with no click handler behaviour
* Remove an ability to sort by tags
* Remove unused code
* Update tests
* Update timeline events
* Update messages
* change array reduce to join
* Add Y scroll to dialog content
* Bulk create Y scroll fix
* Endless loading fix (#1732)
* Order filtering for gift cards in Order List View (#1628)
* Add gift card order filter
* Add gift card filter card in orders view
* Bump macaw version
* Update messages
* Update tests
* Code review changes
* update messages
* Change info card message to use only one message
* Fix order gift card filter
* Wip
* Extract dialog component outside of gift card create
* Update component's name
* Extract dialog component outside of export component to provider
* Update tests
* Various gift card bugs fixes (#1749)
* Change currency to options field
* Fix hover and font size
* Fix gift card list width
* Fix bulk delete dialog
* Allow balance to be sorted only when currency is filtered
* Sorting by balance after removing currency filter defualts to usedBy
* Fix trash icon
* Add filter dependency
* Fix single deletion with bulk
* Update tests
* Refactor Links used in Gift Cards
* Fix export dialog (#1791)
Co-authored-by: Magdalena Markusik <magdalena@markusik.com>
* Update schema
* refactor(shippingMethods): change name from availableShippingMethods to shippingMethod
* refactor(shippingMethods): change shippingMethod to shippingMethodType
* Add missing files
* refactor(order): add active and message prop to the shippingMethod field
* Add support for new webhook types
* refactor(OrderShippingMethodEditDialog): show inactive shipping method as disabled
* refactor(SingleSelectField): change the disabled prop strictly boolean
Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
* refactor(OrderShippingMethodEditDialog): remove unused style
Co-authored-by: Michal Zajac <michal.99.zajac@gmail.com>
Co-authored-by: Michal Zajac <50200782+Michal99Zajac@users.noreply.github.com>
Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
* add link to product type in product details
* fix tests
* Apply CR suggestion
Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
* improve Link component
* Fix tests - add memory router
* fix undefined value in createHref
* fix onclick when it is not provided
* Fix undefined app mount uri
* fix undefined api uri in ci/cd tests
* remove onclick from product type link
Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
* Fix EditorJS read-mode toggle race condition
Fixes rare edge case when toggling read mode is peerformed at the same
time.
* Make PromiseQueue function
* Separate sync and async app webhooks
* Remove create webhook page and cleanups
* Update util
* Auto unselect events when anyEvent choice is selected
* Update test snapshots
* Add site settings and variant detail text fields related with limit per checkout
* Add message translations
* Fix review issues pt.1
* Update snapshots
* Apply fixes after review pt.2