Commit graph

2729 commits

Author SHA1 Message Date
Michał Droń
974f2a06a7
Delete edit icon from permission group list (#1503) (#1506)
* delete edit icon from permission group list

* delete unused import

* update snapshots
2021-10-18 10:14:11 +02:00
Michał Droń
80de7b92d5
Add spacing between address cards (#1509) (#1513) 2021-10-18 10:13:48 +02:00
GrzegorzKowalik
7663aa4bd5
Fix codeql workflow missing python code (#1498)
* Fix codeql workflow missing python code

* Try something else
2021-10-14 14:21:09 +03:00
JanChodorowski
cbeed52a30
[Fix] preorder fixes (#1477)
* Fix creating variant without preorder

* Fix creating simple product in preorder

* Proper stock display for variant in preorder

* Fix ending preorder for simple product

* CR response

* CR response

* Fix global threshold empty input
2021-10-14 14:15:59 +03:00
Karolina Rakoczy
5bee739872
Saleor 4581 tests for products images (#1450)
* tests for images on product list

* image on product details page should be displayed

* test for upload image

* fix collection utils import

* fix creating test data

* update jest
2021-10-14 13:47:41 +03:00
Magdalena Markusik
185a48b421
Add filters and search to gift cards list (#1466)
* Fix filters not handling autocomplete values properly

* Add handling single selection to filter autocomplete field

* Change giftCardsListUrl function name to GiftCardListUrl for consistency

* Update schema

* Add gift card currencies query and update types

* Add validating function for filter number fields

* Add util function for mapping person node to select choice, fix types

* Add gift card list filters and search

* Add handling of gift card list search and filters dialogs in dialogs provider

* Add gift card search bar in gift card list

* Update gift card list queries and types, add filters to gift card list provider

* Fix types

* Fix types

* Fix currency filters in gift card list

* Update messages

* Remove unnecessary usages of maybe

* Change gift card balance filters not to be send to api when currency filter not present

* Update messages
2021-10-13 14:42:20 +03:00
Dawid Tarasiuk
22db86ed65
Add stock reservation settings (#1459)
* Add stock reservation settings

* Update page section header

* Fix test snapshots

* Fix stock reservation inputs

* Update test snapshots

* Trigger CI
2021-10-13 14:35:00 +03:00
Grzegorz
de3384f20b Fix typo in workflows 2021-10-12 11:48:04 +02:00
GrzegorzKowalik
80641f76e2
Update AWS credentials (#1492) 2021-10-12 11:37:56 +02:00
GrzegorzKowalik
031d012d0d
Add slack notifications after deployments (#1485)
* Add slack notifications after deployments

* Fix copy paste mistakes

* Add deployment workflows to CODEOWNERS
2021-10-11 10:51:53 +02:00
GrzegorzKowalik
2096671e0c
Invalidate second production cloudfront (#1483) 2021-10-11 10:39:21 +02:00
Jakub Majorek
51be4c79c0
Update organization name (#1484) 2021-10-11 09:53:22 +03:00
Patryk Zawadzki
37b99a7b5a
Update main branch name from master (#1475) 2021-10-08 11:31:01 +02:00
Magdalena Markusik
7ac6572a1a
Fix gift card update view crashing when gift card created by app (#1462) 2021-10-08 11:28:31 +02:00
Patryk Zawadzki
d750d3684e
Update the footer to point to the correct org 2021-10-06 15:39:19 +02:00
Jakub Majorek
6d9d353799
Fix sidebar navigation and Products Page overlapping problem (#1382) (#1472)
* fix content overlapping issue

* replace margin value

Co-authored-by: Kamil Pastuszka <33246308+kamilpastuszka@users.noreply.github.com>
2021-10-06 13:11:00 +02:00
Jakub Majorek
81c29e2458
Refactor Translations Page (#1451) (#1470)
* refactoring

* rename parameter

* update messages

* changes after review

* change imports

Co-authored-by: Kamil Pastuszka <33246308+kamilpastuszka@users.noreply.github.com>
2021-10-06 13:10:12 +02:00
Jakub Majorek
8820ed01fe
Fix wrong words and ordering for staff member form (#1424) (#1471)
* fix wrong words and ordering for staff member form

* add messages

* remove line

* apply changes from review

* change to local messages

Co-authored-by: Kamil Pastuszka <33246308+kamilpastuszka@users.noreply.github.com>
2021-10-06 11:45:29 +02:00
Jakub Majorek
3083f65744
Remove depedabot config file (#1469) 2021-10-06 11:15:32 +02:00
dependabot-preview[bot]
2645f69d30
[Security] Bump ws from 5.2.2 to 5.2.3 (#1159)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3. **This update includes a security fix.**
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-10-06 11:14:51 +02:00
Karolina Rakoczy
f7b452cb12
tests for warehouses in checkout (#1379)
* tests for warehouses in checkout

* fix puchase product with type
2021-10-05 13:46:58 +02:00
Magdalena Markusik
547f5f7c3e
Fix fulfill non shippable gift cards option not being used in update mutation (#1465) 2021-10-04 14:51:23 +02:00
Wojciech Mista
bb752d3bad
Fix an issue where adornment can't be clicked in multi-select input fields (#1435)
* WIP

* Make adornment click-through

* Fix adornemnt in single autocomplete select field

* Added stories tests
2021-10-04 09:40:24 +02:00
Cezary Miącz
4193894191
Fix demo deployment workflow (#1461) 2021-10-01 15:59:22 +02:00
Cezary Miącz
601add997f
Add demo deployment workflow (#1460) 2021-10-01 15:48:09 +02:00
JanChodorowski
25f7c8e4d8
Preorders (#1426)
* Feed preorder data to product variant forms

* Add end preorder date input and handle date data

* Translate strings, refactor date parsing

* Fix snapshots

* CR response

* CR response

* CR response

* Fix negative threshold, product variant preorder toggle, product variant update, and simple product creation

* Make preorder data optional

* Prevent setting past date as preorder end

* Disable replacing preorder variant in order

* Adjust fulfill view to preorder in variant

* CR response + prevent subbmiting form when endPreorderDate is in the past and display warning

* Add ErrorNoticeBar

* Translate preorder end date in past error message, fix form submissison disabling logic

* Rebase fixes

* Fix preorder form disabling logic, remove isPreorder field

* Fix edge cases aroud preorder inputs

* Update storyshots
2021-10-01 14:41:31 +02:00
Łukasz Szewczyk
6ddb537445
Prevent from mapping over undefined (#1457) 2021-10-01 14:23:01 +02:00
Cezary Miącz
d03bf9c791
Change cloud deployment trigger to repository_dispatch (#1455)
* Change cloud deployment trigger to repository_dispatch

* Refactor staging deployments
2021-09-30 16:03:04 +02:00
Dawid Tarasiuk
d21e688f7d
Update dashboard to work without SKU (#1440)
* Update dashboard to work without SKU

* Allow variant ID export in products export

* Update messages

* Update test snapshots

* Update schema

* Update order line detials without SKU

* Update test ssnapshots

* Make SKU optional for prodduct without variants
2021-09-30 15:08:22 +02:00
Marcin Gębala
d8f3d0145f
Add sales webhooks (#1454) 2021-09-30 15:06:39 +02:00
Łukasz Szewczyk
ec230e55c0
Add variants to sale view (#1420)
* Update schema and biuld types for sale per variant

* Create variant search module and generate types for it

* Add listing component for sale view

* Create dialog for variant assignment

* Expand sale page with vairnats

* Add new sale fixtures

* Add transaltions for variants on sale view

* Update snapshot

* Refactor sales dialogs and tables, move styles and ittl to local files

* Rework search dialog. Create item/subitem selectable table for variants, update spapshot

* Adjust table columns width

* Standardize the tables

* Unify messages

* Drop whole variant object in favor of just ids, simplify filtring functions

* Update snapshots

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-09-30 14:51:13 +02:00
Karolina Rakoczy
2407ae6f76
gift cards in checkout (#1376)
* gift cards in checkout

* complete checkout after trying to add gift card

* fix gift cards tests

* fix gift cards

* update snapshots

* fix tests

* fix gift cards in checkout

* delete created channels
2021-09-29 15:24:47 +02:00
Danijel Dedic
c9678c5167
Save as empty value, when trying to save undefined var to local storage (#1443)
* Save empty value, when trying to save undefined var to localstorage

* Lint fix

* Newline at the end of file to satisfy linter?

* Linter again
2021-09-28 17:29:57 +02:00
Jakub Majorek
d4ebf69bc7
Remove image white background in dark mode (#1432) (#1446)
Co-authored-by: Kamil Pastuszka <33246308+kamilpastuszka@users.noreply.github.com>
2021-09-28 14:25:00 +02:00
marbin274
a47667a9fb
Add missing rowNumber dependency to update queryVariables (#1256)
* fix: add rowNumber like dependency to update queryVariables

* Add resetPagination hook and refactor

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2021-09-28 14:24:45 +02:00
Wojciech Mista
04dac84d63
Add margin to notification box (#1436)
* Add margin to notification box

* Code fix
2021-09-28 12:46:34 +02:00
Wojciech Mista
e018ea5b7d
Change values in create sale page when percentage/fixed amount is switched (#1431)
* WIP

* Fix get sale channel bug

* Add sale value field text

* Extract logic to useEffect

* Code cleanup
2021-09-28 09:06:05 +02:00
Jakub Majorek
9c92332d3c
Add draft order webhook events (#1438) (#1439) 2021-09-27 16:06:21 +02:00
Karolina Rakoczy
2c64a966cc
Saleor 4437 refactor tests (#1389)
* reference type cypress working

* refactor

* remove screenshots

* add reference

* add slash marker

* run tests based on shop version

* fix run tests based on shop version

* fix run tests based on shop version

* change base url to localhost

* fix plugins

* fix plugins

* fix plugins

* fix plugins

* fix plugins

* fix plugins

* fix yml

* fix yml

* chage file names

* fix files names

* fix broken imports add checking for errors in grpah responses

* fix broken imports add checking for errors in grpah responses

* update jest

* fix snapshot
2021-09-27 12:04:21 +02:00
Wojciech Mista
b98f069aab
Add page type and attributes permissions handling (#1425)
* WIP add new configuration menu

* Add missing permissions

* Changed filtering to one based on arrays of permissions

* Add hasAnyPermissions and hasAllPermissions functions

* Simplify getConfigMenuItemsPermissions function

* Simplify routing logic
2021-09-24 14:01:54 +02:00
Kamil Pastuszka
d4ffd88752
Display app versions (#1433)
apply changes from review

apply changes from review

use useShop hook for core version
2021-09-23 16:18:38 +02:00
Dawid Tarasiuk
eaed88a23a
Refactor Gift Card List Top Alert (#1388) 2021-09-22 08:45:24 +02:00
Magdalena Markusik
c566539cc1
Add tab selector util for lists and refactor (#1421)
* Add tab selector util for lists, refactor

* Remove unnecessary imports

* Update types

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-09-21 16:06:45 +02:00
Jakub Majorek
6e102964a1
Fetch shop data after user is authenticated (#1427) 2021-09-21 15:30:41 +02: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
ffa065d301
fix placeholder text issue for autocomplete component (#1423)
with new logic

improve logic

update snapshot
2021-09-20 16:28:44 +02:00
Kamil Pastuszka
901ab2a505
Fix products table content display (#1422) 2021-09-20 16:28:15 +02:00
Magdalena Markusik
705df796d2
Add gift card expired status (#1412)
* Add gift card expiry status to gift card details provider WIP

* Add gift card expiry handling in gift card update page header

* Add gift card expiry handling to gift card update details tag section & refactor

* Add gift card expiry handling to gift card update details expiry date section

* Add gift card expiry handling to gift card update metadata fields, add disabled prop to metadata cards

* Add comment

* Add gift card expiry handling to gift card list & refactor

* Change back some parts because of change of requirements

* Extract messages

* Remove comments, fix wrong expiry label being displayed in gift card list
2021-09-20 15:41:18 +02:00
Dominik Żegleń
ffe44be733
Fix back button on manage channels at product details (#1380) (#1417)
* Simplify "changed" logic

* Improve code composition

* Test base state and setters

* Add more tests

* Fix changed logic

* Rename hasChanged output

* Move channel data outside hook

* Move some logic to utils

* Save data in dialog and pass to view

* Split hooks

* Fix react warnings

* Fix story

* Alias type

* Fix stories

* Remove rebase artifact

* Reset state after closing modal

* Capitalize type name
2021-09-17 18:02:44 +02:00
Wojciech Mista
90717b7ed0
Add saving and retreiving currency from localstorage in giftcard create dialog (#1415) 2021-09-17 15:28:50 +02:00