Commit graph

39 commits

Author SHA1 Message Date
SektorDV
8e1dc4e12d
Add loader to attribute picker (#1182)
* wip multiselectfield loader

* restyled spinner display

* get rid of redundant debouncer

* wip

* wip multiselectfield loader

* restyled spinner display

* get rid of redundant debouncer

* remove redundant prop

Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2021-07-01 10:20:35 +02:00
Dawid Tarasiuk
99aa6365be
SALEOR-3513 - Fix attribute values input display (#1156)
* Fix attribute values input display with additional search handler

* Update changelog

* Update attribute value search handler
2021-06-14 14:19:23 +02:00
Dawid Tarasiuk
d342bdb63b Variant attribute values pagination (#1133)
* Implement attribute values pagination in variant pages

* Implement attribute values pagination in variant creator

* Update variant creator design bugs

* Fix deleting attribute value error

* Refactor attribute value handling in variant creator

* Update after review

* Create local pagination state for attribute values

* Fix autocomplete select field scrolling on fetch more

* Change onAttributeSelect to onAttributeFocus

* Update cypress test function with attribute values pagination
2021-06-08 09:51:27 +02:00
Dawid Tarasiuk
453e4192fe Attribute values pagination in product details (#1125)
* Attribute values pagination in product list filters

* Update product queries and mutations to handle attribute values pagination

* Search for attribute values dynamically on product details page

* Update product attributes mutation payload

* Support attribute values pagination on product create page

* Temporary mock not implemented attribute values pagination in variants and pages

* Trigger CI

* Fix simple product update channel listings

* Add simple local pagination implementation

* Create useLocalPageInfo hook to handle client side pagination

* Allow custom values always for attribute select inputs to prevent bug
2021-06-08 09:51:26 +02:00
Jakub Majorek
5ace78f279
Change rateType from enum to string (#1121)
* Change rateType from enum to string

* Update snapshots

* Fix accidental recurrency caused by race condition

* Handle null type on SEO form

* Trigger deployment

* Fallback to empty string for undefined/null values
2021-05-24 15:50:41 +02:00
Dominik Żegleń
935a6f4542
Reduce bundle size (#1103)
* Add analysis tools

* Use deep imports to reduce bundle size

* Remove tslint config

* Remove unused packages

* Remove lodash-es references

* Use root level mui imports

* Remove mui from restricted imports
2021-05-14 10:15:15 +02:00
mmarkusik
8fe66a3bde
Add channel shipping zones (#1015)
* Add naked input option to SingleAutocompleteSelectField and update it's stories

* Add new icons - chevron up, down & trash

* Add deletable item component and stories

* Add card add items footer component to be used in warehouses and product stocks assign

* Update schema and types

* Add shipping zones card components

* Update channel details page form to also include shipping zones

* Update makeTopLevelSearch hook files directory and add getSearchFetchMoreProps function to avoid extracting it manually every time

* Update channels types & fragments

* Move getDefaultNotifierSuccessErrorData function to useNotifier utils, update dir etc., also make order discount provider use it from the new dir

* Add shippinh zone to channel update and create and add shipping zone search

* Update messages

* Fix types

* Fix lint, types etc

* Small refactor from review and quick fix styles of shipping zones card

* Refactor a bit and update snapshots

* Refactor a bit and update snapshots

* Addd / refactor channels availability components

* Add useChannelsWithProductVariants hook with utils and types

* Add / refactor more channels availability components

* Move avatar from table cell avatar to separate component for it to be usable outside of tables

* Add channels with variants logic to product create and update pages & views

* Refactor components to use updated channels availability components

* Remove unnecessary comments

* Update storybook

* Update types

* Update messages

* Fix prices for variants / simple product not uodating properly

* Post merge cleanup, update schema, types, etc.

* Change shipping zone details warehouses card into settings card and add ability to assign channels to shipping zone

* Update types

* Update snapshots

* Fix selecting / deselecting all channels in channels with variants modal

* Fixes after review, some types changes etc.

* Update snapshots

* Small types fixes

* Make price rates views use parent shipping method channels instead of all

* Make price rates views use parent shipping method channels instead of all

* Update types

* Fix bugs

* Fixes after review

* Fix channels availability data submission

* Fix lint

* Fix variant pricing card showing not related channels

* Fixes after review

* Fix types

* Hide unaviable variants in add products to draft order dialog

* Fix channels with variants availability modal showing confirm button as enabled when it shouldn't

* Fix types

* Update semi checked icon to match old designs

* Update types

* Update channels icon in channels with variants availability

* Fix product cypress test after product channels mutation changed

* Fix trash and chevron down colors in dark mode

* Fix shipping zones card footer not updating query after click away

* Fix types in schema, add condition not to display shipping zones select in channel details if all zones have already been selected

* Fix products adding in order draft dialog

* Fix simple productupdate

* Update snapshots after merge with master

* Update messages

* Fix product api request for cypress

* Add missing test id

* Fix selecting if product is simple -> form being submitted with empty data sometimes

* Update snapshots, messages and add fix for invalid date at product update

* Remove unnecessary imports

* Fix failing test in saleor 2552 (#1061)

* fix

* fix

* fix

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
Co-authored-by: Karolina <rakoczy.karolina@gmail.com>
2021-04-14 15:44:25 +02:00
Jakub Majorek
80cb7c0404
Optimize product list view queries (#1016)
* Skip unused queries on product list

* Further optimize queries

* Fix product type details search on product create page

* Fix test fixtures

* Update query for product type details in product create page

* Update cypress test for product list

* Update package.lock

Co-authored-by: Dawid Tarasiuk <tarasiukdawid@gmail.com>
2021-04-08 18:14:15 +02:00
Dominik Żegleń
416d7d87f6
Improve theming (#1020)
* Remove unused code

* Move theme to separate directory

* Separate types

* Separate shadows

* Separate shadows

* Rename types

* Modularize code

* Do not pollute prototypes

* Fix missing import

* Aliast mui styles

* Import theming internally

* Fix types

* Fix override type
2021-03-30 09:40:18 +02:00
Jakub Majorek
7bc4bc6696
Define node requirements, ts cleanup (#1008)
* Define node requirements, ts cleanup

* Update snapshot

* fix tests
2021-03-19 13:06:17 +01:00
mmarkusik
9a694071ce
Saleor 2078/create cypress test ids (#958)
* Add first id

* Add more ids

* Add more test ids

* Fix typing

* Remove unnecessary import

* Update snapshots
2021-01-26 11:21:54 +01:00
Magdalena Markusik
6c74ae5591 Update condition for falsy values in Single autocomplete select field 2020-10-29 15:30:31 +01:00
Magdalena Markusik
10d8319073 fix 2020-10-22 12:28:15 +02:00
Magdalena Markusik
bfdeb0d654 Fix single autocomplete inputs 2020-10-22 11:38:10 +02:00
Magdalena Markusik
03aafd8b63 wip 2020-10-22 11:38:09 +02:00
dominik-zeglen
d514cd3d88 Remove unused imports 2020-10-12 12:56:11 +02:00
dominik-zeglen
c15aaa833b Fix attribute empty option 2020-10-12 12:56:08 +02:00
dominik-zeglen
2b92211b99 Add tax section to product view 2020-09-24 13:46:48 +02:00
Krzysztof Wolski
a82de30309
Add circleci config and enhance our linters (#519)
* Add circleci config

* Season linting config

* Apply code style
2020-05-14 11:30:32 +02:00
dominik-zeglen
93d1d74230 Allow creating warehouse from shipping zone view 2020-04-28 16:33:09 +02:00
dominik-zeglen
60ec16961c Add warehouse create action button 2020-04-28 16:33:08 +02:00
dominik-zeglen
aeb209744a Add category and collection filter 2020-01-20 16:47:18 +01:00
dominik-zeglen
96176924f9 Add missing style names 2019-12-03 16:28:40 +01:00
dominik-zeglen
421da92cb3 Use eslint instead of tslint 2019-12-02 16:33:58 +01:00
dominik-zeglen
74d6794679 Update @material-ui to v4 2019-11-07 14:29:07 +01:00
Krzysztof Bialoglowicz
afdfab3529 Remove unsused declaration 2019-10-22 14:43:14 +02:00
Krzysztof Bialoglowicz
9b5c701198 Fix autocomplete select field toggle on click 2019-10-22 14:41:53 +02:00
dominik-zeglen
4295a6152a Fix typesr 2019-10-16 17:56:46 +02:00
dominik-zeglen
16263d67a8 Improve in-memory filtering 2019-10-16 17:55:47 +02:00
dominik-zeglen
035271adf0 Use selects with loadMore option 2019-10-16 17:52:49 +02:00
dominik-zeglen
d99321be84 Add dynamic loading 2019-10-16 17:52:16 +02:00
dominik-zeglen
0bf7594ce0 Refactor ui a bit 2019-10-16 17:52:15 +02:00
Krzysztof Bialoglowicz
a63248c406 Fix erros in selects 2019-09-10 17:14:36 +02:00
Krzysztof Bialoglowicz
b7dfb8a38c Fix dropdown select bg, snackbars styles 2019-09-05 12:25:39 +02:00
Dominik Żegleń
94c0833766 Refactor translations in components (#133)
* Refactor translations in components

* Update pot file
2019-08-29 14:42:59 +02:00
dominik-zeglen
6eb3e6d2dd Add tc tags for e2e tests 2019-08-27 15:29:00 +02:00
dominik-zeglen
bd211a6720 Update from saleor/master 2019-08-09 13:14:35 +02:00
dominik-zeglen
0c53e9883a Do not use asterisk imports 2019-08-09 12:26:22 +02:00
dominik-zeglen
5d959e6d6e Initial commit 2019-06-19 16:40:52 +02:00