Commit graph

326 commits

Author SHA1 Message Date
Krzysztof Żuraw
79779f2d3d
Add changesets (#3786) 2023-06-23 10:26:02 +02:00
Bartłomiej Wiaduch
5dabfc315f
Update subscription query with Event types only and improve Event picking (#3357) 2023-03-23 16:31:04 +01:00
Jakub Neander
82d15f4441
Copy filters automatically to GraphiQL playground (#3385) 2023-03-23 15:53:48 +01:00
Jakub Neander
49b50cb4c3
Fix styling for GraphiQL on the webhook page (#3389) 2023-03-22 12:40:35 +01:00
Jakub Neander
15f8b6625c
Migrate to es2020 for TS (#3386) 2023-03-22 10:21:46 +01:00
Jakub Neander
c0b69e7c31
Add DevMode panel (trigger: CMD+') (#3333) 2023-03-17 15:10:58 +01:00
Abdullah Hilson
31fcd45fac
Use schema-ast plugin to generate the graphql schema (#2538) 2023-03-14 08:48:33 +01:00
Bartłomiej Wiaduch
0fef41b04f
Allow subscription query for sync events (#3099)
Allow subscription query for sync events
2023-02-23 10:03:41 +01:00
Bartłomiej Wiaduch
ab2ce01c8a
Add WebhookHeaders component (#3107)
* Add custom request headers to webhook form
2023-02-22 14:14:51 +01:00
Jakub Neander
d4d9b1b91c
Extract permissions for subscription query (#3155) 2023-02-21 12:38:28 +01:00
Jakub Neander
b510d68fa9
Add redirect to GraphiQL from product & order (#2940) 2023-01-26 12:04:39 +01:00
Jakub Neander
112747a51c
Add GraphiQL for defining subscription queries for webhooks (#2885)
Co-authored-by: Bartłomiej Wiaduch <tukan2can@gmail.com>
Co-authored-by: timur <timuric@gmail.com>
Co-authored-by: Michał Droń <dron.official@yahoo.com>
2023-01-24 14:59:14 +01:00
Dawid
be76836e12
Add format tip for text attribute rows (#2340)
* Add format tip for text attribute rows

* Update changelog with added attribute tip

* Update attributes test snapshots

* Update question-help icons for dark mode
2022-10-13 12:41:26 +02:00
Dawid
943b96436c
Enable save button on channel pages (#2328)
* 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>
2022-10-13 10:34:21 +02:00
Dawid
1002a11f41
Fix pagination errors on voucher and sale pages (#2317)
* 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
2022-10-04 16:45:24 +02:00
Dawid
43fb52bc56
Enable save button on page pages (#2325)
* Enable save button on page edit pages

* Update e2e page create tests

* Update page create tests snapshots

* Update changelog with enable save button

* Update messages of pages views

* Update page details messages
2022-10-04 16:02:17 +02:00
Dawid
575a91b5e9
Enable save button on discount pages (#2319)
* Enable save button on discount pages

* Update changelog with save button enable update

* Refactor channel input map
2022-09-28 10:42:28 +02:00
Dawid
6738467304
Handle form errors before product creation (#2299)
* Handle form errors before product creation

* Update e2e product create tests

* Handle channel errors in product update

* Update changelog

* Fix invalid values of product type picker

* Refactor product create utils

* trigger ci

Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
2022-09-23 14:15:59 +02:00
Dawid
9f7c934dec
Fix dropdown select arrow clicks bugs (#2301)
* Fix dropdown arrow click

* Fix multi-select dropdown arrow click

* Update changelog

* Update test snapshots of select inputs

* Grey out select dropdowns bottom arrow

* Prevent clearing input value in multiselect on item select

Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
2022-09-23 13:39:25 +02:00
Dawid
4c62ebe45d
Fix invalid values of channel picker (#2313)
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
2022-09-23 13:21:30 +02:00
Dawid
214b677684
Fix missing metadata and payment balance on unconfirmed orders (#2314)
* 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>
2022-09-23 12:25:56 +02:00
Dawid
61fe80bb7a
Fix no product error on unconfirmed order lines (#2324)
* Fix no product error onunconfirmed order lines

* Update changelog with fix no product error
2022-09-22 11:03:21 +02:00
Dawid
20920f3cf2
Fix exit form dialog false positive (#2311)
* 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
2022-09-16 16:16:26 +02:00
Michał Droń
19d5e7e71d
Add product variant reference attribute (#2268)
* Handle variant references

* Update schema & types

* Update changelog

* Extract messages

* Fix handlers

* Update schema

* Build types

* Update types

* Improve assign reference value modals
2022-09-13 12:07:41 +02:00
Jonatan Witoszek
69eeb4c280
Pass query params for product and order details app mounting points (#2100)
* 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
2022-06-24 14:17:58 +02:00
Jonatan Witoszek
5138608f86
Apps list page enchancements (#2035)
* 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
2022-05-31 17:18:15 +02:00
Jonatan Witoszek
1a19289e43
Enhancements to pagination navigation (#2063)
* 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
2022-05-31 14:53:16 +02:00
Jonatan Witoszek
993a99ff07
Fix EditorJS inputs (#2052)
* 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
2022-05-26 10:06:46 +02:00
Jonatan Witoszek
707c6b94a7
Fix cannot clear attribute value (#2047)
* Always send updated values of attributes

* Send only changed product attributes to API

* Add change to changelog

* Add tests for preparing upload attribute values
2022-05-20 10:00:53 +02:00
Jonatan Witoszek
1e38c14116
Use links instead of onClick navigate function (#1969)
Add links instead of navigate + onClick in:
* Lists - ex. product list (except Plugins, see below)
* SortableTables - ex. product variants
* Sidebar
* Buttons that open new page - ex. "Create product"
* Backlinks
* Menus - ex. "Account Settings"
* Links that actually used onClick - ex. warehouse shipping zone, reset password
2022-05-06 10:59:55 +02:00
Dominik Żegleń
fc0e3757ae
Disable query batching (#1922)
* Remove query batching

* Fix imports

* Update changelog
2022-03-17 16:00:17 +01:00
Jakub Majorek
5e8b93262e
Update changelog (#1890) 2022-02-23 13:17:58 +01:00
Jakub Majorek
51be4c79c0
Update organization name (#1484) 2021-10-11 09:53:22 +03:00
Piotr Grundas
ebe56da583
Add swatch attributes (#1301)
* Initial work

* #

* Base color logic

* Handle file urls

* Improvements, fix snapshots

* Add messages

* Update changelog

* Update storybook

* Improvements

* Messages

* Review corrections

* Bugfixes
2021-09-21 15:16:21 +02:00
Kamil Pastuszka
4fcc3eec5e
Add Demo Banner (#1416) 2021-09-17 10:09:45 +02:00
Paweł Kucharski
386a2488e7
Click & Collect (#1268)
* Add initial form of c&c related properties for warehouse

* Add Typography & styling to RadioButtons, drop duplicated state

* Add fields for warehouse fixtures + cleanup

* Add order collectionPointName field + handle click&collect display in order

* Fix review issues + add snapshots

* Modify choices in WarehouseZones with filter

* Rename WarehouseZones to WarehouseSettings

* Add translations messages

* Update schema

* Fix review issues pt.2

* Fix review issues pt.3

* Fix review issues

* Align defaultMessages.json to messages refactor

* Rename interface WarehouseInfo -> WarehouseSettings

* Add pickup annotation to shipping address in order details

* Introduce fragment matcher + small change in deliveryMethod query

* Fixes after rebase

* Add resolve fulfillment option for local warehouse

* Align types after rebase

* Update snapshots

* Repair weird union behaviour

* Add entry to CHANGELOG.md
2021-08-27 10:10:41 +02:00
SektorDV
3194654bf1
Disable shipping dialog confirm button when no items selected (#1304) 2021-08-23 11:16:35 +02:00
Dawid Tarasiuk
08637b27fd
Introduce fulfillment creation API (#1241)
* Display warehouse name for each fulfillment (#1259)

* Hide no-stocks columns in fulfillment view (#1260)

* Hide no-stocks columns in fulfillment view

* Update tests

* Refactor

* Update tests

* Add fulfillment settings card (#1242)

* Add fulfillment setting card

* Make fulfillment approvement naming consistent

* Fix mutation bug

* Update types

* Trigger CI

* Handle fulfillment acceptance on order details page (#1255)

* Handle fulfillment acceptance on order details page

* Make fulfillment approvement naming consistent

* Update fulfillment schema and its usage

* Render history events regarding waiting fulfillments (#1265)

* Add awaiting for approval fulfillment order event

* Fix warehouse name

* Change fulfillment quantity calculation (#1267)

* Change fulfillment quantity calculation

* Fix warehouse name

* Update messages

* Trigger CI

* Refactor

* Fix refactor

* Fix fulfillment for no variant

* Allow creating fulfillments waiting for acceptance (#1248)

* Fix fulfillment page style and typescript classname types perfomance issue

* Allow creating fulfillments waiting for acceptance

* Make fulfillment approvement naming consistent

* Update schema

* Add tooltip to fulfillment savebar

* Update unpaid fulfillment creation restriction

* Update fulfillment cration restriction

* Update test snapshots

* Add possibility to cancel "waiting" fulfillments (#1288)

* Allow to cancel waiting fulfillments

* Add delete button to fulfillment card

* Update test snapshots

* Handle waiting fulfillments on refund page (#1290)

* Handle waiting fulfillments on refund page

* Trigger CI

* Trigger CI

* Calculate quantity to refund on quantityToFulfill

* Update changelog

* Update snapshots

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-08-20 16:36:05 +02:00
Kamil Pastuszka
8064b357d7
Fixed issue with modals containing invalid/redundant scrolls (#1240)
* fixed conflicts

* added improvements

* added changes

* deleting theme

* Update CHANGELOG.md
2021-08-11 11:03:39 +02:00
Kamil Pastuszka
034eea0dcd
Add text attribute for product and page translations (#1276)
* initial commit

* Refactor translation components

* Wire up products

* Update types

* add logic for withChoices flag

* refactoring

* fixing errors

* change in intl.ts

* amended Changelog

* fix formatting

* fixing stuff

* Update translations

* remove unused declaration

* add changes

* Fixes

* Add newline

* Update displayName

* Update snapshots

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-08-09 16:59:12 +02:00
Krzysztof Wolski
79e752cdbf
Fix for errors on changing channel availability (#1264)
* Add array diff util

* Use arrayDiff instead of diff

* Update changelog
2021-07-29 17:22:44 +02:00
Piotr Grundas
cacf3030a2
[SALEOR-3965] Extend Sale & Voucher to include Metadata #7653 (#1245)
* Add base logic

* Add missing metadata handlers

* Update changelog

* Cleanup schema

* Add messages
2021-07-29 14:47:22 +02:00
Piotr Grundas
6abdc4613a
[SALEOR-3088] Date & DateTime attributes (#1180) 2021-07-29 14:15:14 +02:00
Kamil Pastuszka
db5ad19827
Fixed incorrectly handled image upload errors (#1223)
* fixed incorrectly handled image upload errors

* updated Changelog

* updated defaultMessages.json

* fix for collections and products

* fix for user avatar upload error

* implemented changes after review

* fixed conflict
2021-07-23 14:56:46 +02:00
Dawid Tarasiuk
b024a0fde6
Add variant create options dialog (#1238)
* Add variant create options dialog

* Update e2e tests

* Update option field name

* Refactor

* Use macaw UI in Variant create dialog

* Update messages
2021-07-22 11:56:13 +02:00
Dominik Żegleń
62817568a7
Use MacawUI (#1229)
* 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
2021-07-21 10:59:52 +02:00
Dawid Tarasiuk
58b9634f75
Fix positive float number input validation (#1233)
* Fix positive float number validation

* Update changelog
2021-07-16 12:54:38 +02:00
Dawid Tarasiuk
ecb7c69c59
Fix list pagination crash on search (#1230)
* Fix list pagination on search

* Update changelog
2021-07-16 12:51:47 +02:00
Dawid Tarasiuk
ab54fc6d68
Fix content type validation in create page view (#1205)
* Fix content type validation in create page view

* Update changelog

* Change disabled to valid
2021-07-12 10:34:13 +02:00
Dawid Tarasiuk
51dba9f43b
Disable next step when no value selected in variant selector (#1218)
* Disable next step when no value selected in variant selector

* Update changelog

* Update test snapshots
2021-07-12 10:02:47 +02:00