saleor-dashboard/src/components
Paweł Chyła 55337b5998
Order details datagrid (#3325)
* Show available channels

* Add price  and updatedAt columns

* Fix sorting, only sort on selected columns

* Sort by channel

* Allow delete name and product type

* Fix show not product found

* Extract mssages

* Product datagrid custom column picker

* Column picker in data grid in dirty hack for bug

* fix storybook props

* Restore Datagrid defalt column picker with custom render

* Add sort by attributes

* Use datagrid loading cells

* Fix product searching

* Show attributes before last updated

* Readonly all fields in datagrid

* Fix creating new datagrid row

* Remove add new procut button from datagrid

* Show only active sorted column

* Temp fix for column filter

* Fix column mismatch

* Add comments and spred props to ColumnPicker

* Cleanup

* Update avatar size and styles

* On row click with hover on row styles

* Use new theme

* Change placeholder image

* Draw rounded image with border

* Readonly product datagrid

* Use new theme colors in datagrid

* Add vertical borders control to datagrid

* Add empty column to add padding

* Add coursor to datagrid

* Restore vertical borders, fix cursor pointer

* Add custom freezed column

* Initial tooltip for column

* Move tooltip to datagrid

* Adjust datagrid colors style, add possibility to select column

* Change datagrid selected cells colors

* Fix typo and extract messages

* Base order  datagrid

* Cleanup Datagrid component

* Cleanup and code refactor

* Remove cursor pointer props from readonlyCell

* Use money cell for total column

* Add custom cell renderers and fix types

* Simple tags implemenrtion for status and payment col

* Add colors from theme

* Make tagCell more dynamic

* Refactor Datagrid file structure

* Add loading indicators

* Selecting column without cells in readonly

* Add sort icons to orders list

* Refactor after CR. fix typos

* Change color of selected colum cell on hover

* Improve selected header text contrast

* Move useColumnPickerColumns to hooks dir with tests

* Add less padding to column picker button

* Remove double border top

* Fix cursor pointer for tagCell and moneyCell

* useGetCellContent hook

* On loading show only one row

* Add missing darkmod color for warning tag

* Refactor columns in datagrid

* Add new macaw theme provider to storybook

* Fix  passing props in datagrid

* Trigger deployment

* Fix column picker in products

* useDatagridColumns

* Fix one more time

* Add column picker with default columns

* Change color for selected header change to textBrandDefault

* Remove unused code, move attributes colums as last

* Cleanup useDatagridColumns

* Improve DatagridProps

* Static datagrid for products (#3144)

* Migrate top nav of product list page to new MacawUI (#3290)

* feat: migrate top nav of product page

* feat: add proper deprecation links

---------

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

* Datagrin on order details intial

* Adjust ExtraInfoLines

* Remove padding on datagrid card content

* Remove datagrid card paddding (#3310)

* Disable column icon when no rows in orders

* Datagrid row hover show only when readonly and row clickable

* Implement card view for product list (#3292)

* Add temporary view switcher

* Add basic product tile view

* Bump macaw-ui

* Add ellipsis

* Bump macaw-ui

* Add status dot & fix non-rectangular thumbnails

* Bump macaw-ui

* Add variable size placeholder icon

* Improve loader

* Fix top nav menu key error

* Add pagination

* Add unit tests

* Extract messages

* Extract status color to function

* CR Refactor

* Hold product view state in local storage (#3315)

* Remember view state for product list

* Use util status function for status dots

* Datagrin in orderDraftDetails

* Remove not used components

* Fix for empty column and hover in datagrid for product (#3324)

* Remove datagrid card paddding (#3310)

* Fix for empty column and hover in datagrid for product (#3324)

* Use themeValues from macaw (#3326)

* Upgrade macaw

* Use themeValues

* Use themeValues from macaw (#3326)

* Upgrade macaw

* Use themeValues

* Add empty column from datagrid, improve theme types

* Use theme type from typeof

* Use empty column and themeValues

* Filter empty column from default

* New product header (#3346)

* Extraxt messages

* Remve title left padding

* Fix switching view

* Add margin right to nav button

* Improve view switch

* Update switch view icons

* Add spacing to switch

* Add more space

* Add new filterbar to order list

* Code refactor and tests

* Refactor OrderDraftDetailsDatagrid

* Extract messages

* Refactor OrderDraftDetailsDatagrid

* Update alert messages

* Extract messages

* Write unit tests

* Improve switch component

* Overwrite Pill styles

* Common method to get status color for pills

* Local Pill component POC

* Add ThemeProvider to test wrapper

* Extract messages

* Refactor Pill

* Fix Pill path

* Fix tests mocks

* Remove scrollbar and border bottom

* Add custom border to to datagrid

* Fix borders

* Fix border bottom

* Refactor and cleanup

* Remove not needed selectionActions code

* Move logic code t misc

* Fix scrollbar and zindex datagrid borders

* Fix product tiles condition

* Use utils functions, remove not used code

* Refactor to hooks

* Loading prps instead of disabled

* use getStatusColor

* Move getMenuItems to separate function

* Fix loading props

* Use empty colum hook in OrderDetailsDatagrid

* Fix empty column when save column change

* Fix bottom line in layout overlap

* Show moneCell with discounted price

* Make quantity ediable in order draft datagrid

* Readonly datagrid cells

* Update onyl when column is quantity

* Fix message

* Keep first column in datagrid not removable

* Fix for not existing column

* Add loader over datagrid, fix problem with border top when empty text in variants

* Fix error color and change color in datagrid

* Use formatMoneyAmount

* Fix remove order draft product with discount

* Extract messages

* Add product sku to order draft details datagrid

* Fix loading state and change cell color

* Add MoneyDiscuntedCell

* Use MoneyDiscuntedCell in order draft details datagrid

* Add trash bin icon

* Restor discount modal for order draft summary

* Fix problem with deleting quantity

* Improve await for promises and handler zero quantity error

* Fix column order issue

* Add discount modal box shadow

* Allow decimal as percentage value for discount

* Fix max fixed value

* Remove double border

* Fix z-index issue on discount modal

* Remove padding on order details datagrid

* Add proper error message to common discount modal

* Fix is submit disabled

* Move status as last column in datagrid

* Add padding to money discount cell editor

* Make quantity column smaller

* Fix recalculating disount value

* Fix calculate change discount type

* Store calculated value without triming decimal, trim decimal in input

* Refactor money cells

* markCellsDirty rename to areCellsDirty

* Remove discount from MoneyCell

* Use const to store row height in discount editor

* Fix copy in discount modal

* Remove past on money discount cell

* Remove locale in product varaints

* Fix nullable sku

* Extract messages

* Fix keeping always first column

* Remove padding on tracking info

* Fix story

* Fix render 0 money amount

* Fix displaying not empty string money

* adding new tests: add new product, change quantity, add inline discount, delete product for grid - on orders details view (#3652)

* adding new e2e for grid on orders details view

* merging conflicts fix - and adding new TC numbers to new tests

* trigger tests

* failing tests fixes

---------

Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
Co-authored-by: Michał Droń <droniu@droniu.dev>
Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-18 09:52:13 +02:00
..
Accordion Clean up storybook (#2941) 2023-01-05 13:34:34 +01:00
AccountPermissionGroups Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
AccountPermissions Fix custom app cruch whe no permissions (#3347) 2023-03-14 09:25:21 +01:00
ActionDialog Select filter presets (#3412) 2023-04-12 09:11:11 +02:00
AddressEdit Handle error when editing address (#3598) 2023-05-09 09:48:06 +02:00
AddressFormatter Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
Alert Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
AppLayout Migrate product create page to new MacawUI (#3372) 2023-05-04 10:57:18 +02:00
AssignAttributeDialog New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
AssignAttributeValueDialog Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
AssignCategoryDialog Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
AssignCollectionDialog Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
AssignContainerDialog New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
AssignProductDialog New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
AssignVariantDialog New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
Attributes Product list bulk delete (#3562) 2023-05-10 14:09:52 +02:00
AttributeUnassignDialog Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
AutocompleteSelectMenu Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Backlink Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
BulkAttributeUnassignDialog Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Button Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
ButtonWithDropdown 🏷️ Rework product list view (#3296) 2023-03-20 13:06:33 +01:00
ButtonWithSelect 🏷️ Rework product list view (#3296) 2023-03-20 13:06:33 +01:00
Card Migrate product create page to new MacawUI (#3372) 2023-05-04 10:57:18 +02:00
CardMenu 🏷️ Rework product list view (#3296) 2023-03-20 13:06:33 +01:00
CardTitle ESLint: No unused variables (#1981) 2022-10-04 13:30:51 +02:00
ChannelsAvailability Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
ChannelsAvailabilityCard Product list bulk delete (#3562) 2023-05-10 14:09:52 +02:00
ChannelsAvailabilityContent Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
ChannelsAvailabilityDialog Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
ChannelsAvailabilityDialogChannelsList Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
ChannelsAvailabilityDialogWrapper Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
ChannelsAvailabilityDropdown Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
ChannelsAvailabilityMenuContent Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
Checkbox Order details datagrid (#3325) 2023-05-18 09:52:13 +02:00
Chip Clean up storybook (#2941) 2023-01-05 13:34:34 +01:00
CollectionWithDividers Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
ColorPicker Remove app list view from old apps dir (#3241) 2023-03-02 10:22:01 +01:00
ColumnPicker 🏷️ Rework product list view (#3296) 2023-03-20 13:06:33 +01:00
CompanyAddressInput Test navigation refactor (#3294) 2023-03-09 09:18:07 +01:00
CountryList Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
CreatorSteps Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
Datagrid Order details datagrid (#3325) 2023-05-18 09:52:13 +02:00
Date Replace all old tooltips with new one from macaw (#3485) 2023-04-12 15:55:42 +02:00
DateTimeField Migrate product create page to new MacawUI (#3372) 2023-05-04 10:57:18 +02:00
DeletableItem Clean up storybook (#2941) 2023-01-05 13:34:34 +01:00
DeleteButton Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
DeleteFilterTabDialog Select filter presets (#3412) 2023-04-12 09:11:11 +02:00
DeleteIconButton [cypress] Add tests for delete several gift cards (#2646) 2022-12-02 10:37:09 +01:00
DemoBanner Demo banner (#3306) 2023-03-17 14:30:39 +01:00
DevModePanel Overwrite variables for GraphQL playground (#3504) 2023-04-25 13:16:47 +02:00
DiscountedPrice Support for new transactions API (#2233) 2023-03-09 16:51:19 +01:00
DryRun Fix Gift Cards (#3352) 2023-03-17 08:41:44 +01:00
DryRunItemsList Fix allow click on webhook checkbox (#3327) 2023-03-13 11:55:03 +01:00
EditableTableCell Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
ErrorMessageCard Use esbuild-loader (#1983) 2022-05-05 09:54:28 +02:00
ErrorNoticeBar Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
ErrorPage Setup chromatic and cleanup storybook (#3588) 2023-05-12 13:06:27 +02:00
EventTime Support for new transactions API (#2233) 2023-03-09 16:51:19 +01:00
ExtendedPageHeader Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
ExternalLink Add rel=noopener to links that take users to external sites (#1980) 2022-10-04 14:28:26 +02:00
FileUploadField Migrate product create page to new MacawUI (#3372) 2023-05-04 10:57:18 +02:00
Filter Select filter presets (#3412) 2023-04-12 09:11:11 +02:00
FilterBar 🏷️ Rework product list view (#3296) 2023-03-20 13:06:33 +01:00
FilterCard Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
FilterPresetsSelect Add presets tests for products list view (#3506) 2023-04-18 11:54:23 +02:00
Form 🏷️ Rework product list view (#3296) 2023-03-20 13:06:33 +01:00
GraphiQL GraphiQL styles (#3549) 2023-05-04 17:09:10 +02:00
GraphiQLPlain Add DevMode panel (trigger: CMD+') (#3333) 2023-03-17 15:10:58 +01:00
Grid Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
HorizontalSpacer Remove app list view from old apps dir (#3241) 2023-03-02 10:22:01 +01:00
IconButton Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
IconButtonTableCell Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
ImageUpload New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
InternalLink Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
LanguageSwitch Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Layouts Remove scrollbar on Safari when on details page (#3448) 2023-04-04 10:56:53 +02:00
LinkChoice Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
ListItemLink Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
Locale Fix default locale to en-US locale (#3356) 2023-03-14 14:25:40 +01:00
MediaTile Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
messages Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Metadata Migrate product create page to new MacawUI (#3372) 2023-05-04 10:57:18 +02:00
Money Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
MoneyRange 🏷️ Rework product list view (#3296) 2023-03-20 13:06:33 +01:00
MultiAutocompleteSelectField Remove app list view from old apps dir (#3241) 2023-03-02 10:22:01 +01:00
MultiSelectField Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
Navigator Remove semver logic from navigator & autohide banner (#3584) 2023-04-28 13:37:24 +02:00
NavigatorButton Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
NotFoundPage Setup chromatic and cleanup storybook (#3588) 2023-05-12 13:06:27 +02:00
OverflowTooltip Remove transactions feature flag (#3557) 2023-04-28 13:24:10 +02:00
PageHeader Made headers smaller (#2466) 2022-10-27 15:04:29 +02:00
PageSectionHeader Remove app list view from old apps dir (#3241) 2023-03-02 10:22:01 +01:00
Percent Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
PhoneField Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Pill Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
PreviewPill Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
PriceField Order details datagrid (#3325) 2023-05-18 09:52:13 +02:00
RadioGroupField Order details datagrid (#3325) 2023-05-18 09:52:13 +02:00
RadioSwitchField Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
ResponsiveTable Support for new transactions API (#2233) 2023-03-09 16:51:19 +01:00
RichTextEditor Migrate product create page to new MacawUI (#3372) 2023-05-04 10:57:18 +02:00
RowNumberSelect Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
SaveFilterTabDialog Add presets tests for products list view (#3506) 2023-04-18 11:54:23 +02:00
SearchBar Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
SeoForm Migrate product create page to new MacawUI (#3372) 2023-05-04 10:57:18 +02:00
Shop Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Sidebar Update Saleor icons and favicons (#3509) 2023-04-20 09:40:29 +02:00
SingleAutocompleteSelectField Migrate product create page to new MacawUI (#3372) 2023-05-04 10:57:18 +02:00
SingleSelectField Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
SortableChip Clean up storybook (#2941) 2023-01-05 13:34:34 +01:00
SortableChipsField Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
SortableTable Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
StatusDot Increase dots size in product card list (#3505) 2023-04-20 09:06:40 +02:00
Tab New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
TableButtonWrapper Apps marketplace (#2850) 2023-01-10 11:04:30 +01:00
TableCellAvatar Apps marketplace (#2850) 2023-01-10 11:04:30 +01:00
TableCellHeader New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
TableFilter Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
TableHead Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
TablePagination Product list bulk delete (#3562) 2023-05-10 14:09:52 +02:00
TableRowLink New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
TextFieldWithChoice Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
TextWithSelectField Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Timeline Remove transactions feature flag (#3557) 2023-04-28 13:24:10 +02:00
Timezone Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
TooltipTableCellHeader Replace all old tooltips with new one from macaw (#3485) 2023-04-12 15:55:42 +02:00
TypeDeleteWarningDialog Remove app list view from old apps dir (#3241) 2023-03-02 10:22:01 +01:00
UserAvatar Fix add missing avatars (#3351) 2023-03-17 12:12:21 +01:00
VersionInfo Adding env variable that allows to display any version name in the dashboard settings (#3533) 2023-04-26 12:05:16 +02:00
VerticalSpacer Remove app list view from old apps dir (#3241) 2023-03-02 10:22:01 +01:00
VisibilityCard Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Weight Use esbuild-loader (#1983) 2022-05-05 09:54:28 +02:00
WeightRange Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
WindowTitle Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
BackButton.tsx Select filter presets (#3412) 2023-04-12 09:11:11 +02:00
CardSpacer.tsx Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
ConfirmButton.tsx Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Container.tsx Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00
ControlledCheckbox.tsx add tests for creating vouchers for 3.1 (#1844) 2022-02-11 15:39:10 +01:00
ControlledSwitch.tsx New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
DateTimeTimezoneField.tsx Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Debounce.tsx Update @material-ui to v4 2019-11-07 14:29:07 +01:00
DebounceForm.tsx Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
Dropzone.tsx Update from saleor/master 2019-08-09 13:14:35 +02:00
FormSpacer.tsx Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
Hr.tsx Migrate product create page to new MacawUI (#3372) 2023-05-04 10:57:18 +02:00
LimitReachedAlert.tsx Fix limit reached alert position (#3297) 2023-03-08 09:58:07 +01:00
Link.tsx Add app header (#3223) 2023-02-28 16:19:56 +01:00
MenuToggle.tsx Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
RequirePermissions.tsx Migrate from @saleor alias to @dashboard (#2981) 2023-01-16 10:45:12 +01:00
Savebar.tsx New macaw ui (#3069) 2023-02-20 16:21:28 +01:00
Skeleton.tsx Replace classnames with clsx (#2759) 2022-12-02 11:45:19 +01:00