Commit graph

3021 commits

Author SHA1 Message Date
Michał Droń
dc5a6ac76b
Update Typescript (#2494)
* Update TypeScript

* Fix recursive typing in navigation

* Fix linter issue

* Update lockfile
2022-11-03 11:43:44 +01:00
Krzysztof Żuraw
44f7dc9ba9
tests: use env file for e2e tests (#2457) 2022-11-02 14:53:38 +01:00
Dawid
3a3a4a7ae6
Add metadata webhook events (#2375) 2022-11-02 13:31:17 +01:00
Michał Droń
7387019288
Use single price value instead of range in product list (#2386)
* Render single value when amount of money is matching

* Use Intl.NumberFormat in money formatting

* Extract messages
2022-11-02 12:20:25 +01:00
Krzysztof Żuraw
da8e4e5a9c
Fallback data length to 0 on product dialog (#2485) 2022-10-31 11:39:42 +01:00
Krzysztof Żuraw
cac3e43702
Disable spellcheck for PII fields (#2416) 2022-10-31 11:37:07 +01:00
Patryk Andrzejewski
802524744b
Set different version of macaw (#2501)
* Set different version of macaw

* Spanshots
2022-10-28 11:29:07 +02:00
Anna Szczęch
522e06d519
Fix test should create simple product without sku SALEOR_2806 (#2497)
* fix eslint errors

* add assertion to fillAutocompleteSelect
2022-10-28 10:39:22 +02:00
Michał Droń
513b39ae5f
Bump version to 3.9.0-dev (#2491)
* Bump package.json version to 3.9.0-dev

* Update lockfile
2022-10-28 09:48:43 +02:00
Patryk Andrzejewski
223fe64456
Update CI workflow for demo staging (#2487) 2022-10-27 20:37:27 +02:00
Patryk Andrzejewski
992aa64937
Update Macaw-UI (#2495)
* Update Macaw-UI

* Update snapshots
2022-10-27 17:52:13 +02:00
Patryk Andrzejewski
c009f07581
DataGrid full-screen mode (#2453)
* full screen mode

* add product title, review

* update snapshots

* Update messages
2022-10-27 17:26:09 +02:00
Timur Carpeev
cfb8be1893
Made headers smaller (#2466)
* Made headers smaller

* Changed to h3

* update snapshots

Co-authored-by: andrzejewsky <vox3r69@gmail.com>
2022-10-27 15:04:29 +02:00
Michał Droń
96650bb237
Update macaw to 0.6.6 (#2459)
* Update macaw-ui

* Update snapshots

* Change caret to tilde
2022-10-27 14:02:51 +02:00
Jonatan Witoszek
11a990d197
Remove hover from non-interactive table rows (#2358)
* Disable hover effect when TableRow is not clickable

* Replace TableRow with TableRowLink

* Update snapshots
2022-10-27 12:58:17 +02:00
Karolina Rakoczy
b729a59fce
Fix tests for metadata (#2462) 2022-10-27 11:40:52 +02:00
Karolina Rakoczy
8a28230577
Activate plugins before tests (#2477) 2022-10-27 11:40:33 +02:00
Karolina Rakoczy
4dcc38cf48
Fix tests for products (#2447) 2022-10-27 11:27:34 +02:00
Anna Szczęch
469328de0b
remove multiselect from use attributes in variant selection (#2484) 2022-10-27 10:30:08 +02:00
Karolina Rakoczy
d669fef773
Disable test for weight recalculate (#2476) 2022-10-26 17:15:52 +02:00
Patryk Andrzejewski
ea0d213683
handle the case when quantities are null (#2465) 2022-10-26 16:54:31 +02:00
Karolina Rakoczy
d9a1916fd0
remove adding sku to simple product (#2467) 2022-10-26 16:33:49 +02:00
Krzysztof Wolski
d3e2be165d
Add customer extensions mount points and pass object IDs to extensions (#2176)
* 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
2022-10-26 13:19:20 +02:00
Krzysztof Żuraw
3c63b0baf1
Display all error messages on new-password page (#2410) 2022-10-26 12:12:37 +02:00
Karolina Rakoczy
730e9da122
Revert "remove set-output command (#2450)" (#2460)
This reverts commit 96aad9d744.
2022-10-26 11:18:55 +02:00
Karolina Rakoczy
80ecb7bce3
Create workflow for building dashboard and executing tests (#2351)
* add workflow for deploying dashboard and running cypress tests

* deploy and run test with api

* Fix after review
2022-10-26 10:09:46 +02:00
Karolina Rakoczy
4d1e41517d
In old release versions run small package of most important tests (#2379)
* In old version release run small package of most important tests

* add to releases tests for stocks, warehouses and orders

* Update .github/workflows/tests-nightly.yml

Co-authored-by: Mika <6186720+NyanKiyoshi@users.noreply.github.com>

* remove set-output command

Co-authored-by: Mika <6186720+NyanKiyoshi@users.noreply.github.com>
2022-10-25 19:27:26 +02:00
Krzysztof Żuraw
1fc82a08a0
Edit variant name on variant edit/create (#2388)
Co-authored-by: Michał Droń <dron.official@yahoo.com>
2022-10-25 14:19:48 +02:00
Dawid
d66083d38a
Update @testing-library/react (#2390) 2022-10-25 14:05:06 +02:00
Karolina Rakoczy
ca9c6ebea9
Fix test for order refund (#2398)
* Fix test for order refund

* remove commented code
2022-10-25 13:44:10 +02:00
Karolina Rakoczy
96aad9d744
remove set-output command (#2450) 2022-10-25 13:19:20 +02:00
Lukasz Ostrowski
8f1a291c65
Change order of apps list and apps installations (#2452) 2022-10-24 15:56:03 +02:00
Dawid
158188002a
Update React to 17 and related packages (#2370)
* 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
2022-10-24 11:49:11 +02:00
Karolina Rakoczy
4b46b4891c
Fix test for creating app (#2439) 2022-10-24 10:22:45 +02:00
Lukasz Ostrowski
7a20c12d22
remove dead link (#2435) 2022-10-21 15:16:36 +02:00
Karolina Rakoczy
3ae956ce5f
Fix test for shipping method update (#2431) 2022-10-21 12:14:40 +04:00
Karolina Rakoczy
968c87a1ae
Fix tests for pages (#2366) (#2427) 2022-10-21 12:12:23 +04:00
Lukasz Ostrowski
cb9d6ad471
Ensure app doesnt break when manifestUrl in app doesnt exist (#2434) 2022-10-20 16:36:21 +02:00
Karolina Rakoczy
019a419411
Fix tests for staff members (#2426) 2022-10-20 16:07:45 +04:00
Patryk Andrzejewski
faa41039fe
Add policy for use name instead of slug (#2402) 2022-10-20 13:55:55 +02:00
Lukasz Ostrowski
d67e4799b2
Apps tabs (#2380)
* Add tabs to apps page

* Detect app in tunnel

* Disable manifest install if Saleor Apps context

* Show only app origin instead full manifest

* Add copy manifest feature

* Update tests

* Add ENV with marketplace endpoint for fetching saleor apps

* Fetch Saleor apps for Marketplace and display them in the tab, otherwise hide

* Code review fixes

* Extract translation messages

* Update tests
2022-10-20 13:35:31 +02:00
Ewa Czerniak
5c48f5387e
fix for flaky TC:2902 test (#2423) 2022-10-20 13:03:08 +02:00
Karolina Rakoczy
2e292c2e06
Fix tests for orders (#2372) (#2399) 2022-10-20 14:03:53 +04:00
Ewa Czerniak
7aecd46ffd
refactor product variants tests (#2418) 2022-10-20 11:16:50 +02:00
Ewa Czerniak
d10c355618
remove test for variant creator (#2415)
* remove test for variant creator

* force deploy
2022-10-20 11:16:31 +02:00
Karolina Rakoczy
4c18f5ee34
add wait for cypress dashboard status and fix tag (#2411) 2022-10-20 12:55:27 +04:00
Ewa Czerniak
cb93dbea2a
Remove unused imports and variables (#2420) 2022-10-20 07:36:49 +02:00
Dominik Żegleń
6f10c32176
Bump version to 3.8.0-dev (#2308) 2022-10-19 10:40:07 +02:00
Dominik Żegleń
31e0c11fea
New datagrid view for product variant management (#2162)
* New datagrid view for product variant management (#2040)

* Split simple and product with variants updates

* Simplify code

* Change selectedVariantsIds to availableVariants

selectedVariantsIds suggested that these variants *were just* selected

* Add datagrid component

Add datagrid component

Add actions column

Add column picker

Add ts-ignore comment

Remove unused import

Fix after rebase

Add story

Fix column picking

Fix column dragging

Add column resizing

Extract components to own files

Apply styles from class

Improve data storage

Extract state to hook

Expose handlers

Fix styles

Fix header overflow

Add select all option

Add cell types

Fix types

Add number type cell

Add min to stocks

Fix types

Generate columns from shop data

Add number type editor

Fix tests

Update src/components/Datagrid/Datagrid.tsx

Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>

Reconstruct data after column toggling

Minor fixes

Add missing id

Remove unused import

Fix container width

Keep changes in state

Drop onChange usage

Use glide datagrid

* Add column picker

* Memoize callbacks

* Add right toolbar

* Make toolbar as prop

* Clean up code

* Fix styling

* Lint files

* Save variant data in datagrid (#2161)

* Allow rows to be deleted

* Add row adding

* Clean up code

* Improve mutations

* Add stock saving

* Add sku and attribute saving

* Display notification after all mutations

* Fix types

* Save channels in datagrid (#2197)

* wip

* Merge simple and variantable handlers

* Move channel setting to form

* Link availability card to form

* Extract listing management to hook

* Update only touched channels

* Improve channel listing managemend

* Display channel data in datagrid

* Save variant channels

* Save changes in channel listings

* Group columns

* Fix types

* Display touched fields

* Return errors from hook

* Display errors in cells

* Improve naming

* Improve naming

* Use reliable called/loading state

* Update src/components/Datagrid/cells.ts

Co-authored-by: Michał Droń <dron.official@yahoo.com>

* Apply fixes from review

Co-authored-by: Michał Droń <dron.official@yahoo.com>

* Fix type error

* Trigger CI

* Trigger CI

* Save added and deleted variants (#2237)

* Save new variants

* Update channel data

* Remove bulk variant delete dialog

* Do not fetch products from api after save

* Extract types

* Reset errors after api response

* Display error when creating variants

* Fix variant reordering

* Remove commented code

* Fix imports

* Edit attributes in datagrid (#2305)

* Add basic dropdown cell

* Fix clickaway

* Add choice customization

* Add callback to fetch choices

* Add attriute value search

* wip

* Pass getSuggestions cb using props

* Fix row adding

* Fix choice creation

* Add styles to datagrid (#2315)

* Improve cell styling

* Prevent navigation when scrolling horizontally

* Fix text editor styles

* Remove unused variable

* Update whole row after editing cell

* Translate column names

* Improve empty message

* Highlight newly created rows

* Add name editing

* Add disabled context menu to added rows

* Add column groups

* Translate column groups names

* Save edited name

* Fix missing column id error

* Add card to datagrid

* Improve shadow on scroll

* Improve fonts

* Fix toolbar placement

* Update api type definitions

* Fix copypasting from excel

* Fix editor font weight

* Improve dark theme

* Improve cell coloring

* Drop styling from story

* Add docs to datagrid (#2339)

* Add docs

* Add summary

* Datagrid fix bugs (#2341)

* Pass refetch to form to avoid double calls

* Add missing prop

* Remove paddings (#2352)

* remove paddings

* remove paddings

* remove paddings

* remove vertical scroll

* update tests

* styles, currency

* Fix variants tests in datagrid (#2365)

* refactor variant test after adding datagrid

* adding assertion to check if datagrid table is visible

* adding check for datagrid

* fix flaky tests in variants

* fix flaky tests in variants

* small changes

* amedments

* update styles

* refactoring, handle prices

* update snapshots

* messages

* snap

* scrolling handle, css for safari

* snap, random mock

* update overflow

* history back hook

* fix cross-price changing, scroll optimization

* trigger ci

* channel checking when adding new variant

Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
2022-10-18 11:10:15 +02:00
Krzysztof Żuraw
b9c3f720ff
Update README.md with info about trailing slash (#2384) 2022-10-17 13:06:55 +02:00