Commit graph

773 commits

Author SHA1 Message Date
Patryk Andrzejewski
1d2eeb7592
Strict mode plugin (#3778)
* Stric mode plugin

* Update command
2023-06-21 11:28:00 +02:00
Paweł Chyła
2db64cd135
Allow to copy and go to product details on order details datagrid (#3744) 2023-06-20 10:29:28 +02:00
Paweł Chyła
549fc57884
Fix close menu panel when click on account settings (#3699)
* Fix close panel settings

* Use controlled component

* Hide menu o theme change

* Fix trigger onOpenChange
2023-06-14 14:30:21 +02:00
Patryk Andrzejewski
f5cb534d12
Email confirmation checkbox (#3680)
* Email confirmation

* Email confimrmation form

* Email confimrmation form

* Copy, padding adjustments

* Messages
2023-05-31 10:27:10 +02:00
Paweł Chyła
adf3342d5c
Replace ConfirmButton from old macaw (#3647)
* New ConfirmButton component

* Update macaw ui

* Remove old confim button

* New confirm button

* Replace all place with new confirm button

* Remove ConfirmButtonTransitionState use from mcaw

* Does not change button width when showing loader and success state

* Test ConfirmButton

* Remove story, update tests

* WIP change pull_request to push for chromatic

* Revert "WIP change pull_request to push for chromatic"

This reverts commit 8f0909bf54f185898a7f1d236f072d6544fd5d86.

* Add comments

* Remove css prop from DialogTable

* Make confirm button larger in order send refund
2023-05-30 09:42:22 +02:00
Krzysztof Żuraw
67b55edca7
Migrate from legacy to new MacawUI spacing (#3697) 2023-05-30 08:47:21 +02:00
Krzysztof Żuraw
76cde7c7b1
Migrate MacawUI to new spacing scale (#3674) 2023-05-24 12:12:07 +02:00
Patryk Andrzejewski
730c96db88
Attach metadata to the fulfillments within the orders (#3667)
* Metadata for fulfillment

* Metadata for fulfillment

* Trigger deploy

* Fix removing priv metadata

* Remove blinks

* tests for adding, deleteing and updating public and prvate metadata for fullfilled orders (#3684)

---------

Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-23 13:51:56 +02:00
Patryk Andrzejewski
ed8b75a9b3
Fix object leak to the dom element (#3673) 2023-05-23 11:08:11 +02:00
Timur Carpeev
78077f8220
Remove misleading helperText on SEO form (#3677) 2023-05-23 10:35:16 +02:00
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
Krzysztof Żuraw
50c8e93534
Setup chromatic and cleanup storybook (#3588) 2023-05-12 13:06:27 +02:00
Paweł Chyła
5eb0be2dc3
Product list bulk delete (#3562)
* Datagrid column checkboxes with delete action

* Handle product bulk delete

* Fix border line between columns

* Clear selection after product delete mutation

* Handle row selection

* Improve handleRowDelete, use clearRowSelection

* Fix restart row selection

* Cleanup

* Fix for delete modal

* Fix showing delete modal

* Add delete button next to switcher

* Extract messages

* Fix checking rows in product list datagrid

* Check console

* Check on row click

* Fix fire click when selection checkbox

* Simplifie vertiacal border condition

* Clear selected product when pagination

* Fix issue with columns and row selections

* Fix hiding tooltip when modal close

* Update storybook props fix accordion use

* Fix row selection

* Fix clear selection after pagination change

* Apply cr changes
2023-05-10 14:09:52 +02:00
Patryk Andrzejewski
01c24c1622
Handle error when editing address (#3598) 2023-05-09 09:48:06 +02:00
Bartłomiej Wiaduch
65a329ebe4
GraphiQL styles (#3549) 2023-05-04 17:09:10 +02:00
Osama Hannan
d9099b4022
Fix discount type alignment in voucher detail page (#3512) 2023-05-04 11:24:52 +02:00
Krzysztof Żuraw
180e3c56e6
Migrate product create page to new MacawUI (#3372)
Co-authored-by: Michał Droń <droniu@droniu.dev>
Co-authored-by: timur <timuric@gmail.com>
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-04 10:57:18 +02:00
Timur Carpeev
4aa648353e
Realign hover effect (#3511)
* Realign hover effect

* Adjust spacing

* Update src/products/components/ProductListTiles/ProductListTiles.tsx

Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>

* Update src/products/components/ProductTile/ProductTile.tsx

Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>

* Remove theme dependency

* Use vars

* Update spacing values

---------

Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
2023-05-04 08:58:26 +02:00
Michał Miszczyszyn
7c933f0d9b
Fix grid scrolling issue (#3583)
* Fix grid scrolling issue

* Remove outline

* Strict null checks

* Strict null checks

* Strict null checks
2023-05-02 12:10:40 +02:00
Krzysztof Żuraw
cb3f7d971c
Remove semver logic from navigator & autohide banner (#3584) 2023-04-28 13:37:24 +02:00
Jonatan Witoszek
13ca6bbba8
Remove transactions feature flag (#3557)
* Update schema, remove transaction specific files

* Merge `.transaction` queries and mutations into regular files

* Merge OrderDetails fragments

* Remove usage of `.transaction` graphl types

* Update fixtures

* Remove usage of useFlag, remove duplicated queries & mutations

* Fix displayed event type for INFO

* Remove type alias from order/types.ts, remove type casting

* Fix failing tests

* Add preview label and better description in Channel settings

* Update button in GrantRefund page

* Fix missing data-test-id

* Extract messages

* Visual fixes

* Revert changes to generated files

* Revert changes to generated files

* Fix psp reference hover

* Fix colors on manu refunds screen

* Revert "Fix colors on manu refunds screen"

This reverts commit 02302930ab502a4fdc3c71558532a2d74f2e32c9.

---------

Co-authored-by: andrzejewsky <vox3r69@gmail.com>
Co-authored-by: Michal Miszczyszyn <michal@mmiszy.pl>
2023-04-28 13:24:10 +02:00
Michał Miszczyszyn
2d0f40c021
Fix Datagrid links regression (#3548)
* Add Datagrid hack anchor

* Add tabIndex=-1 and aria-hidden

* Use react-router-dom `navigate`  for smoother experience

* Remove debug

* Code review

* Add comment

* Typo
2023-04-27 12:33:47 +02:00
Patryk Andrzejewski
2c200af0dd
Adding env variable that allows to display any version name in the dashboard settings (#3533)
* Add env var that overrides version

* Trigger CI
2023-04-26 12:05:16 +02:00
Timur Carpeev
0cf9c1721e
Overwrite variables for GraphQL playground (#3504)
Co-authored-by: Bartłomiej Wiaduch <tukan2can@gmail.com>
2023-04-25 13:16:47 +02:00
Paweł Chyła
5526763c4d
Fix row group height in datagrid (#3550) 2023-04-24 14:28:20 +02:00
Timur Carpeev
6271eba349
Datagrid refinements (#3538)
* Increase row height

* Make header height consistent

* Make header text consistent

* Highlight header on column focus

* Apply consistent text colors

* Add visible hover to columns

* Adjust column select colors

* Use consistent hover color
2023-04-21 09:02:31 +02:00
Paweł Chyła
8adadfb2ab
Static datagrid in order view (#3276)
* Init datagrid

* Product type and channels on datagrid

* Move get cell content to utils

* Add channels to storybook

* Add product description to datagrid

* Thubnail cell with avatar

* Translations

* Allow add new empty  product in datagrid

* Search product types

* useProductForm wth save  bar and exit modal

* Add description to product fixture

* Add loading placeholder

* Remove old column picker

* Sorting

* Remove old ProductList

* Update filter props

* Add header icons

* Add sort icons to datagrid column

* 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>

* Remove datagrid card paddding (#3310)

* 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

* 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

* 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

* 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

* Fix empty column when save column change

* Fix bottom line in layout overlap

* 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

* Filter presets select

* Fix delete tab name in modal, change order preset key

* Extract messages and apply cr fixes

* Keep active tab when filter and search change

* Apply filter in useColumnDefault

---------

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>
2023-04-20 09:52:44 +02:00
Timur Carpeev
c5f476152d
Update Saleor icons and favicons (#3509) 2023-04-20 09:40:29 +02:00
Timur Carpeev
fc2554bd50
Add more padding in sidebar menu list item (#3510) 2023-04-20 09:12:59 +02:00
Timur Carpeev
70ed5f87a1
Increase dots size in product card list (#3505) 2023-04-20 09:06:40 +02:00
wojteknowacki
375aea0fff
Add presets tests for products list view (#3506) 2023-04-18 11:54:23 +02:00
Jakub Neander
d5d96b79cb
Align the background colors (#3473) 2023-04-13 10:19:10 +02:00
Paweł Chyła
5da48b07af
Replace all old tooltips with new one from macaw (#3485) 2023-04-12 15:55:42 +02:00
Paweł Chyła
548c10676e
Use new tooltip from macaw in filter presets (#3467) 2023-04-12 10:07:16 +02:00
Paweł Chyła
63b98a08bf
Select filter presets (#3412) 2023-04-12 09:11:11 +02:00
Jakub Neander
80f3e7a575
Fix background transparency in GraphiQL hints (#3434) 2023-04-05 12:13:59 +02:00
Krzysztof Żuraw
aa2031eac3
Remove scrollbar on Safari when on details page (#3448) 2023-04-04 10:56:53 +02:00
Paweł Chyła
0a5100c4a3
Fix colors for change and error cells in datagrid (#3422)
* Fix colors for change and error cells in datagrid

* Fix borader overlapping in bottom of datagrid
2023-03-28 08:20:14 +02:00
Jakub Neander
82d15f4441
Copy filters automatically to GraphiQL playground (#3385) 2023-03-23 15:53:48 +01:00
Jakub Neander
49b50cb4c3
Fix styling for GraphiQL on the webhook page (#3389) 2023-03-22 12:40:35 +01:00
Paweł Chyła
e22d8f0e68
Fix infinite spinner during tax selection (#3397) 2023-03-21 21:02:59 +01:00
Michał Droń
f8d86510b2
🏷️ Rework product list view (#3296) 2023-03-20 13:06:33 +01:00
Jakub Neander
c0b69e7c31
Add DevMode panel (trigger: CMD+') (#3333) 2023-03-17 15:10:58 +01:00
Timur Carpeev
b31e4522a1
Demo banner (#3306)
* Redesign demo banner

* Update messages

* Added hover and active states
2023-03-17 14:30:39 +01:00
Krzysztof Żuraw
368678c7c4
Fix add missing avatars (#3351) 2023-03-17 12:12:21 +01:00
Krzysztof Żuraw
4eebf16b55
Fix Gift Cards (#3352) 2023-03-17 08:41:44 +01:00
Krzysztof Żuraw
5c07ac0916
Fix default locale to en-US locale (#3356) 2023-03-14 14:25:40 +01:00
Paweł Chyła
fcfc5a52b6
Fix js editor loader height (#3349) 2023-03-14 13:59:08 +01:00
Lukasz Ostrowski
5b945162a7
Remove legacy Marketplace code and env variables that it was using (#3342)
* Remove legacy Marketplace code and env variables that it was using

* Update locales
2023-03-14 12:17:19 +01:00
Paweł Chyła
183a523e50
Fix custom app cruch whe no permissions (#3347) 2023-03-14 09:25:21 +01:00