Commit graph

3040 commits

Author SHA1 Message Date
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
Karolina Rakoczy
9e38fdb69d
Extend description how to run automation tests in PR template (#2371) 2022-10-14 11:15:20 +04:00
Lukasz Ostrowski
1fb4479058
Add quick app install from manifest (#2378)
* Create a button that navigates to app install page

* Add translations keys

* Extract messages

* Change type literal to enum

* Update snapshots
2022-10-13 17:13:08 +02: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
Tomasz Magulski
42d999a222
Simplify name of a subdirectory, where to build Dashboard in GCP (#2373) 2022-10-13 09:20:41 +02:00
Anna Szczęch
0d519e665c
wait for skeleton to disapear while searching for category (#2360) 2022-10-13 08:07:21 +02:00
Karolina Rakoczy
b6644efa54
Fix tests nightly (#2368)
* Fix test nightly

* Fix nightly tests

* use same action for checkout in all places
2022-10-11 14:04:37 +02:00
Dawid
2c49ea1af0
Revert "Update React to 17 and update related packages (#2344)" (#2367)
This reverts commit 3ba3dac2a7.
2022-10-11 12:01:17 +02:00
Lukasz Ostrowski
44eb27fed3
Hide app privacy URL if not provided (#2357) 2022-10-10 13:22:16 +02:00
Karolina Rakoczy
ed1c3abb33
Fix test nightly (#2362) 2022-10-10 12:47:00 +02:00
Ewa Czerniak
88260122fb
fix for manageStockReservation tests (#2335)
* fix for manageStockReservation tests

* correction of cleaning test data in hooks
2022-10-10 05:57:19 +00:00
Dawid
3ba3dac2a7
Update React to 17 and update related packages (#2344)
* 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

* Trigger CI

* Fix comment about csstypes
2022-10-07 12:50:02 +02:00
Karolina Rakoczy
e1c2e78b61
Upgrade saleor version before test run (#2349)
* on major versions workflow should first upgrade enironment

* use fetch()

* Change domain for url
2022-10-07 11:57:36 +02:00
Karolina Rakoczy
088555ce28
Fix revert to snapshot job (#2356) 2022-10-07 11:57:16 +02:00
Anna Szczęch
e7a7b79f3e
values set only a for few inputType (#2355) 2022-10-07 11:07:34 +02:00
Patryk Andrzejewski
f349bbc86a
prevent duplicated queries (channels, siteinfo) (#2343) 2022-10-06 13:46:23 +02:00
Timur Carpeev
0db6ef6377
Increase breakpoints (#2346) 2022-10-06 10:15:16 +02:00
Tomasz Magulski
58824f1486
Expose marketplace in Dashboard builds (#2108)
* Expose marketplace in Dashboard builds

* Use apps.saleor.io domain instead of one provided by Vercel
2022-10-05 13:02:53 +02:00
Patryk Andrzejewski
636d6ce416
pick explicitly fields for mutation (#2353) 2022-10-05 12:35:37 +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
Jonatan Witoszek
aceae75ce7
Add rel=noopener to links that take users to external sites (#1980)
* Add rel=noopener to links that take users to external sites

* Update Storyshots for Link changes

* Fix invalid isExternalURL function usage

* Update snapshots
2022-10-04 14:28:26 +02:00
Jonatan Witoszek
58d2a2b438
ESLint: No unused variables (#1981)
* Update eslint config to inform about unused variables

* Remove unused variables
2022-10-04 13:30:51 +02:00
Timur Carpeev
ab6e13ecaa
Add CORS instructions (#2101)
Added CORS troubleshooting instruction for local development
2022-10-04 09:23:39 +02:00
Michał Droń
ed59fe423f
Fix message in voucher view (#2338)
* Fix message

* Extract messages

* Update snapshots
2022-10-03 11:41:00 +02:00
M.Graczyk
904556f728
Revert "on major versions workflow should first upgrade enironment (#2332)" (#2347)
This reverts commit a12a910f0b.
2022-09-30 16:00:52 +02:00
Karolina Rakoczy
af5166510a
swich snapshot in automation tests (#2342) 2022-09-30 15:08:56 +02:00
Karolina Rakoczy
a12a910f0b
on major versions workflow should first upgrade enironment (#2332) 2022-09-30 13:08:46 +00:00
Patryk Andrzejewski
2d2151abc0
Hide shipping zones when you do not have access (#2333)
* hide shipping zones when you do not have access

* use single style hook

* cover warehouses

* snapshot
2022-09-29 10:40:19 +02:00
Patryk Andrzejewski
02c4e8d6e2
reset pagination state once we change number of rows (#2337) 2022-09-29 10:14:57 +02:00
Patryk Andrzejewski
7dc06cef91
firefox checkbox overlap workaround (#2329) 2022-09-28 15:14:31 +02:00