saleor-dashboard/src
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
..
apps Add quick app install from manifest (#2378) 2022-10-13 17:13:08 +02:00
attributes Fix broken pagination in swatch attributes (#2282) 2022-09-21 17:35:04 +02:00
auth Remove copyright from login page (#2139) 2022-07-13 13:10:31 +02:00
categories Add rules of hooks (#2131) 2022-07-13 11:13:58 +02:00
channels New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
collections Fix assigning products to collection (#2320) 2022-09-21 15:35:05 +02:00
components New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
configuration Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
containers Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
customers ESLint: No unused variables (#1981) 2022-10-04 13:30:51 +02:00
discounts Fix pagination errors on voucher and sale pages (#2317) 2022-10-04 16:45:24 +02:00
files Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
fragments New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
giftCards ESLint: No unused variables (#1981) 2022-10-04 13:30:51 +02:00
graphql New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
home Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
hooks New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
icons Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
marketplace Add Marketplace preview label (#2107) 2022-07-19 10:41:49 +02:00
navigation Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
orders New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
pages Enable save button on page pages (#2325) 2022-10-04 16:02:17 +02:00
pageTypes Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
permissionGroups Fix saving permission groups (#2239) 2022-08-29 13:37:42 +02:00
plugins Fix invisible popup in darkmode (#2274) 2022-09-07 11:42:12 +02:00
products New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
productTypes Add plain text attribute (#2121) 2022-07-19 16:16:43 +02:00
searches New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
services/errorTracking Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
shipping ESLint: No unused variables (#1981) 2022-10-04 13:30:51 +02:00
siteSettings Fixes inability to update site settings (#2228) 2022-08-17 14:23:56 +02:00
staff Fix "Add Staff Member" form errors on inputs (#2186) 2022-08-04 08:40:14 +02:00
storybook New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
styles Drop "manage products" permission requirement to view orders (#2248) 2022-08-25 10:35:07 +02:00
taxes Fix exit form dialog false positive (#2311) 2022-09-16 16:16:26 +02:00
translations Menu item translations (#2181) 2022-07-26 11:12:02 +02:00
utils New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
warehouses Add allocation strategies with sortable warehouses (#2258) 2022-08-29 13:35:55 +02:00
webhooks Add correct URL (#2253) 2022-08-24 11:41:59 +02:00
config.ts Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
fixtures.ts Minor fixes to gift card list (#2218) 2022-08-18 12:50:09 +02:00
index.html New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
index.tsx New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
intl.ts Fix variant details/create page sidebar (#2180) 2022-07-29 18:45:52 +02:00
misc.ts New datagrid view for product variant management (#2162) 2022-10-18 11:10:15 +02:00
NotFound.tsx Use FC instead of deprecated StatelessComponent 2019-11-07 12:34:54 +01:00
sw.js Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
themeOverrides.ts Increase breakpoints (#2346) 2022-10-06 10:15:16 +02:00
types.ts Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00