Commit graph

2429 commits

Author SHA1 Message Date
Karolina Rakoczy
2c916e6566
tests for filters (#1250) 2021-08-18 13:58:07 +02:00
Jakub Majorek
f50e3bdde1
Bump master to 3.1.0-a.0 (#1296) 2021-08-16 16:01:04 +02:00
mmarkusik
dae95cb410
Add Gift Cards #1 (#1291)
* Add gift cards section to menu and add empty list component

* Update messages

* Change styling of app wide page header to match design

* Add gift cards list table wip

* Update prop name for status chip component to make it more consistent with other components

* Replace old trash icon with new one

* Add Size type based on action dialog sizes to be used app wide

* Add delete icon button

* Add new sizes option to status chip component

* Add / update gift cards list components

* Add bulk actions type

* Work on gift cards list WIP

* Small refactor

* Fix styling of gift cards table

* Remove temp files

* Remove unnecessary type

* Add gift cards section to menu and add empty list component

* Update schema and types

* Add link to gift card update page to gift cards list and add route to gift cards index

* Extract order page title with status chip into a separate generic component and use it in order page title

* wip

* Update money component

* Add gift card details card balance section

* Refactor gift card details

* Add vertical spacer component

* Update schema and types

* Add gift card tag input component along with necessary queries

* Add gift card tag input to gift card update page

* Add gift card update details card expiry section WIP

* Add time period select field WIP

* Post rebase refactor

* Add time period select field to gift card update view

* Fixes after review

* Update schema, types and gift cards query

* Add getFullName util function and replace existing manual usages

* Add text with select field component

* Add gift card update info card and refactor

* Fix import

* Add displaying order link in gift card update

* Refactor

* Connect gift card list to api

* refactor

* Add gift card create dialog

* Fix gift card list styles, change location for gift card list query, minor refactor

* Fix menu structure data for gift cards

* Add channel currencies type to shop

* Refactor text with select field

* Add gift card expiry select component

* Add gift card error type and fragment

* Update global types

* Add default prop to getFormErrors function

* Move gift card details provider to providers dir

* Update global utils with mapSingleValueNodeToChoice function

* Update gift card tag input

* Move and refactor time period field

* Update schema

* move format money function to other money ulities

* Update gift card urls

* Add content or skeleton component

* Add gift card create util for extracting expiry settings input data

* Remove content or skeleton component and move displaying logic to existing skeleton

* Move displaying logic of gift card create dialog to list

* Refactor

* Add hooks for gift card bulk actions and gift card list to be used instead of context directly

* Fix types for text with select field + add parsing for number typed field

* Add initial currency to gift card create form

* Fix gift card create dialog closing animation

* Add gift card update info card

* Refactor gift card update details card

* Add gift card balance dialog

* Move gift card update form providers to providers dir

* Connect gift card update page to api, add necessary contexts etc.

* Refactor

* Refactor

* Add hooks to use instead of gift card contexts directly

* Fix types

* Fix text field target name missing in passed event in text with select field

* Add minimal value option to text with select field, add to gift card inputs

* Fix gift card update balance dialog not changing hasChanged prop after submit

* Refactor

* Fix update balance dialog crashing the app when enetered wrong amount

* Fix gift card list table header styles

* Add enable / disable section to gift card update

* Refactor

* Refactor

* Refactor

* Add metadata to gift card update

* Update messages ids

* Refactor

* Refactor

* Refactor

* Refactor

* Update types after rebase

* Fix types

* Fixes after qa

* Fix tests
2021-08-16 15:44:00 +02:00
SektorDV
6b24fa0dc3
Merge pull request #1283 from mirumee/SALEOR-3967-multiple-item-deletion-parseqs-fix
multiple item deletion parseqs fix
2021-08-13 14:18:19 +02:00
SektorDV
82e7b58bbf
Merge pull request #1287 from mirumee/SALEOR-3617-variant-creator-multiselect-fix
variant creator multiselect fix
2021-08-12 12:05:32 +02:00
sektordv
22210564e7 fix for single selects with values selected 2021-08-12 11:00:49 +02:00
sektordv
bb890fa5f0 clear values on blur for attribute selects 2021-08-11 16:38:44 +02:00
SektorDV
173a925f55
Merge pull request #1278 from mirumee/SALEOR-3418/disable-global-channel-picker-outside-home
Saleor 3418/disable global channel picker outside home
2021-08-11 14:22:41 +02:00
SektorDV
2d67891685
Merge branch 'master' into SALEOR-3418/disable-global-channel-picker-outside-home 2021-08-11 13:48:15 +02:00
sektordv
048dde6ac9 Merge branch 'SALEOR-3418/disable-global-channel-picker-outside-home' of https://github.com/mirumee/saleor-dashboard into SALEOR-3418/disable-global-channel-picker-outside-home 2021-08-11 13:46:43 +02:00
sektordv
049210b1b6 reapply changes after rebase 2021-08-11 13:44:47 +02:00
sektordv
e5d0ee1179 hide channelselect instead of disabling 2021-08-11 13:40:00 +02:00
sektordv
0585f61522 disable picker via context 2021-08-11 13:39:18 +02:00
SektorDV
e26d6b5a66
Merge pull request #1269 from mirumee/SALEOR-3695-collection-list-adjustments
Add filter bar to collection view
2021-08-11 12:09:21 +02:00
sektordv
11bead49c4 clear values on blur, prevent unnecessary updates 2021-08-11 11:47:01 +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
sektordv
2e14716a29 split messages between individual views 2021-08-10 19:03:52 +02:00
Jakub Majorek
b65a632e07
Add product variant translation view (#1285)
* Add product variant translation view

* Final adjustments
2021-08-10 16:38:48 +02:00
Dominik Żegleń
6d3e346a19
Improve limit messages (#1274) 2021-08-10 10:59:15 +02:00
sektordv
d74acdbab5 Merge branch 'SALEOR-3967-multiple-item-deletion-parseqs-fix' of https://github.com/mirumee/saleor-dashboard into SALEOR-3967-multiple-item-deletion-parseqs-fix 2021-08-09 17:28:46 +02:00
sektordv
72fb6b098d replace stringifyQs imports 2021-08-09 17:27:13 +02:00
sektordv
5fc77af3a0 fix params type for single values 2021-08-09 17:15:41 +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
sektordv
e328c6fe1e fix params type for single values 2021-08-09 16:55:03 +02:00
Jakub Majorek
8d2021675e
Revert "fix crash when deleting more than 21 vouchers" (#1282) 2021-08-09 14:45:34 +02:00
SektorDV
c57289a424
Merge pull request #1263 from mirumee/SALEOR-3967-multiple-voucher-deletion
fix crash when deleting more than 21 vouchers
2021-08-09 12:07:18 +02:00
sektordv
026bd80e15 hide channelselect instead of disabling 2021-08-06 20:54:18 +02:00
sektordv
572d698aca add auto active to autocomplete field 2021-08-06 13:12:06 +02:00
SektorDV
d3865662c8
Update src/components/AvailabilityStatusLabel/AvailabilityStatusLabel.tsx
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-08-06 10:27:12 +02:00
SektorDV
b26c7ec6d6
Update src/components/AvailabilityStatusLabel/AvailabilityStatusLabel.tsx
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-08-06 10:27:02 +02:00
sektordv
5a9f7cbaa1 activate filter on !!val and clear val on !filter 2021-08-05 15:28:59 +02:00
Marcin Gębala
19b0a9623e
Add translation webhook events (#1273) 2021-08-05 11:26:17 +02:00
sektordv
3233b46aec create generic availability status label component 2021-08-04 16:24:14 +02:00
sektordv
6e66c6d60e update stringifyQs imports 2021-08-04 12:02:05 +02:00
sektordv
c21f76f86e undo unnecessary changes 2021-08-03 13:05:42 +02:00
sektordv
220cee0cbb add filter bar to collection view 2021-08-03 12:06:32 +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
sektordv
26f118e42a fix crash when deleting more than 21 vouchers 2021-07-27 16:35:35 +02:00
Karolina Rakoczy
283e714202
tests for pages (#1222)
* tests for pages

* fix tests

* fix imports

* tests for pages

* add wait

* tests for pages

* fix weight recalculate
2021-07-27 10:57:17 +02:00
Karolina Rakoczy
5e7dc8e2a5
fixed all tests (#1253)
* fixed all tests

* fix shipping weight tests

* fix create product

* delete users created in previous tests

* merge
2021-07-26 11:58:47 +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
Karolina Rakoczy
1f01a09e87
add tags (#1251)
* add tags

* edit e2e.yaml

* fix test for customer registration

* add empty lines
2021-07-23 12:46:44 +03: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
Jakub Majorek
e831791493
Create separate e2e workflow (#1243) 2021-07-21 15:09:08 +02:00
Dawid Tarasiuk
8d58a4efeb
Fix trimmed quantity inputs in draft order (#1232)
* Fix trimmed quantity inputs in draft orders

* Make order draft quantity inputs more responsive

* Update width
2021-07-21 11:10:16 +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
Karolina Rakoczy
0ec88cdb1e
all tests for site settings (#1236) 2021-07-20 13:59:23 +03:00
Dawid Tarasiuk
e830d199c2
Fix update pages (#1237) 2021-07-19 14:58:02 +02:00