Commit graph

3583 commits

Author SHA1 Message Date
Paweł Chyła
0d690ff414
Fix double requests when search in order and product list (#3513)
* Fix double requests

* Fix old handle filters

* Remove not needed check in useFilterHandlers

* Test useFilterHandlers hook
2023-05-15 14:03:55 +02:00
wojteknowacki
192be719fe
fixing tests: 2505 2506 - should update product to be visible or not in listings (#3648)
* fix tests should update product to be visible in listings, should update product to not be visible in listings

* lock conflict fixes

* update tests: products published or not to new implementation
2023-05-15 14:03:19 +02:00
Krzysztof Żuraw
50c8e93534
Setup chromatic and cleanup storybook (#3588) 2023-05-12 13:06:27 +02:00
Karolina Rakoczy
b9bf19ddfb
Fix cypress tests for plugins and gift cards exports (#3626)
* Fix test for plugins

* remove unused import

* Fix plugins

* decrease limit meaasge

* Fix export gift cards

* remove only
2023-05-11 15:44:26 +02:00
wojteknowacki
cf4adbc1af
test bulk delete products (#3633)
* wip

* bulk delete 2 products

* removed unused helper

* added TC number
2023-05-11 15:03:37 +02:00
Anna Szczęch
70c7f3a2f8
Add e2e for capture transactions in orders (#3567)
* 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

* add e2e for capture transactions in orders

* creates tests for transactions order view switched on

---------

Co-authored-by: Jonatan Witoszek <jonatan.witoszek@saleor.io>
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-11 08:46:33 +02:00
Patryk Andrzejewski
967d10f992
Cover case when there is no fallback uri (#3621) 2023-05-10 15:01:06 +02:00
Karolina Rakoczy
ab2c50768c
Update snapshot without mailhog data (#3610)
* Update snapshot without mailhog data

* Update snapshot without mailhog data
2023-05-10 14:52:15 +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
wojteknowacki
86932d1cd9
Test variant selection fix (#3617)
* fixing attribute variants selection tests
2023-05-10 14:03:33 +02:00
Karolina Rakoczy
2b87e8b141
Move from mailhog to mailpit main (#3616)
* move from mailhog to mailpit

* update packaje-lock
2023-05-10 12:13:52 +02:00
Patryk Andrzejewski
f79629129a
Trigger auth plugin by given query param (#3586)
* Trigger auth plugin by given query param

* Fix fallback patameters

* Move hook to the separated file

* Re-login case
2023-05-09 17:11:20 +02:00
Patryk Andrzejewski
01c24c1622
Handle error when editing address (#3598) 2023-05-09 09:48:06 +02:00
Patryk Andrzejewski
ea29aed3d4
Checking old macaw-ui/material ui usage in the modules (#3596)
* MacawUI migration workflow

* Trigger on pr

* Checkout action version
2023-05-08 14:24:03 +02:00
Patryk Andrzejewski
97b682c805
Sku triggers variant name change (#3470)
* Sku triggers variant name change

* fixes product variants failing tests SALEOR_2901 and SALEOR_2902

* fix should be able to create several variants visible for the customers. TC: SALEOR_2902

---------

Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-05-05 11:34:35 +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
Paweł Chyła
6acf43bab5
Fix update metadata (#3560) 2023-04-27 11:55:16 +02:00
Cezary Miącz
13fd9f43a2
Release every push to release branches to staging (#3566) 2023-04-26 12:09:21 +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
2d331a15d8
Fix double scroll issue on add produtct to draft order (#3355)
* Fix double scroll issue on add produtct to draft order

* Fix double scroll approche 2

* Max height 75vh

* Fix rest of scrolls
2023-04-25 12:45:33 +02:00
Michał Droń
71de66f9cc
Add SWC to optional deps (#3530)
* Add swc to optional deps

* Push lock

* Revert "Push lock"

This reverts commit 6f90b95205b57e898cdfa63a9d1fe7820a5dfac7.

---------

Co-authored-by: Paweł Chyła <pawel.chyla@saleor.io>
2023-04-25 11:57:32 +02:00
Krzysztof Żuraw
701d96a690
Allow macaw-ui to be linked (#3539) 2023-04-25 08:33:09 +02:00
Paweł Chyła
5526763c4d
Fix row group height in datagrid (#3550) 2023-04-24 14:28:20 +02:00
Karolina Rakoczy
f0466c5be3
Fix tests on release - setting branch (#3556) 2023-04-24 13:28:08 +02:00
Karolina Rakoczy
f71855e4f2
Fix tag in tests workflow (#3547)
* Fix tag in tests workflow

* Fix quote
2023-04-24 07:21:42 +00:00
Karolina Rakoczy
08a5ea93ab
Fix cypress tests workflow (#3546)
* Fix cypress test workflow

* use latest version of cypress action

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

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

---------

Co-authored-by: Mikail <6186720+NyanKiyoshi@users.noreply.github.com>
2023-04-21 13:43:34 +02:00
Anna Szczęch
3487dce57f
Fix test for orders after changing view to grid (#3545) 2023-04-21 13:34:56 +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
Cezary Miącz
44ba16e7ee
Notify dashboard-dev group on deployment failures (#3531) 2023-04-20 15:44:27 +02:00
Karolina Rakoczy
6c176f649a
Fix tests workflow (#3527) 2023-04-20 12:54:22 +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
Krzysztof Żuraw
fc8f4be4e9
Add author field to app details page (#3455) 2023-04-20 09:39:54 +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
Karolina Rakoczy
dc960a22b4
fix release workflow for minor versions (#3366)
* fix release workflow for minor versions

* fix run title

* fix run title

* fix run title

* fixes after review

* Fix get branch

* remove complicated if
2023-04-19 14:05:27 +02:00
Krzysztof Żuraw
82b0684c0e
Pin macaw-ui version (#3522) 2023-04-19 11:13:56 +02:00
Krzysztof Żuraw
1d8cbd86a9
Allow refreshing proper token based on token owner (#3516) 2023-04-18 14:35:16 +02:00
wojteknowacki
375aea0fff
Add presets tests for products list view (#3506) 2023-04-18 11:54:23 +02:00
Lukasz Ostrowski
799ba9bbfc
Update @saleor/app-sdk to 0.37.3 (#3502) 2023-04-18 08:44:42 +02:00
Karolina Rakoczy
054cd415cf
Add job for cleaning environments (#3359)
* add job for cleaning environments

* Fix job for cleaning environment

* Update .github/workflows/cleanEnvironments.js

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

---------

Co-authored-by: Mikail <6186720+NyanKiyoshi@users.noreply.github.com>
2023-04-13 12:44:22 +00:00
Jonatan Witoszek
593867f0c5
Fix iframe reloaded on each theme change (#3491)
* Fix iframe reloaded on each theme change

* CR
2023-04-13 14:18:14 +02:00