Commit graph

3432 commits

Author SHA1 Message Date
wojteknowacki
d5af778e7d
test fix - test env deployment yaml fix (#3759)
* test fix - redirect url from mailing was not correct, changed url in yaml to have extra slash and removed one

* Revert "test fix - redirect url from mailing was not correct, changed url in yaml to have extra slash and removed one"

This reverts commit 5312aecd1e36e227447797d428d9640c708d92d6.

* test fix - changed cypress baseurl to include needed / in test-env-deploy yaml
2023-06-19 10:00:49 +02:00
Lukasz Ostrowski
8ba29059a2
Display custom Apps' logos (#3749)
* wip

* implement logo in all contexts

* fix types

* Improve icons rendering

* Reuse App Header in Manage App page

* Remove loading fallback icon for official Saleor apps. It will be fetched with manifest now

* Imprve app fallback icon

* wip fix tests

* Remove useless test

* Add sizes for logos queries

* Fix thumbnail size
2023-06-15 16:06:08 +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
Krzysztof Żuraw
3754de6196
chromatic - take only the last version of build into account (#3748) 2023-06-13 14:48:46 +02:00
Lukasz Ostrowski
fbc5fe31e7
Update Saleor schema to 3.14 (#3751) 2023-06-13 13:33:46 +02:00
Krzysztof Żuraw
8e8faa4bbe
Adjust pkg json with new dashboard version after release (#3750) 2023-06-13 11:51:12 +02:00
wojteknowacki
17bca62f31
test fix - filtering products (#3739) 2023-06-13 09:06:57 +02:00
Paweł Chyła
dcf8e26169
Set same font size as in dashboard (#3741) 2023-06-12 10:01:30 +02:00
Timur Carpeev
f2f11a6450
Remove configurable label (#3646)
* Remove default export

* Rename misleading labels

* Remove default export

* Remove redundant message

* Extract messages

---------

Co-authored-by: andrzejewsky <vox3r69@gmail.com>
2023-06-06 14:27:56 +02:00
Timur Carpeev
f5f216eca3
Remove misleading currency caption (#3620)
* Remove misleading voucher value caption

* Remove misleading order value caption

* Remove misleading sale value caption

* Remove misleading pricing card value caption

* Remove misleading variant pricing card value caption

* Extract messages

* Update messages

---------

Co-authored-by: andrzejewsky <vox3r69@gmail.com>
2023-06-06 14:27:30 +02:00
wojteknowacki
3c3e6f4093
test - test nightly workflow - scheduled tests run only on chrome (#3731)
* test - removed firefox job from test nightly workflow

* Revert "test - removed firefox job from test nightly workflow"

This reverts commit 6cb0bb4578087c3098b70b13317569e62eac385f.

* brought back job since we can use it manually
2023-06-06 14:02:10 +02:00
Krzysztof Żuraw
455602c2b2
Fix redirect loop on login with external provider 2023-06-06 09:42:07 +02:00
Michał Droń
5e6d12848b
Fix saving attribute value without name (#3706) 2023-06-02 10:07:15 +02:00
Lukasz Ostrowski
df6cb4979e
Enable disabled app row to be clicked and nav to details (#3720) 2023-06-01 20:07:11 +02:00
Lukasz Ostrowski
2ce10652a5
Add CODEOWNERS to target appstore team on src/apps (#3718) 2023-06-01 14:56:11 +02:00
Krzysztof Żuraw
d419a9dd9c
Fix issue templates (#3714) 2023-06-01 11:49:40 +02:00
wojteknowacki
f4da8daa90
test fix should change admin email plugin. TC: SALEOR_3602 - test was filing when running on 2 browsers - triggered only chrome now (#3708) 2023-06-01 10:07:32 +02:00
wojteknowacki
771ce401fd
Test update snapshot keys (#3707)
* test-update-snaps
hot-keys

* new user for all devs - updated snapshot
2023-05-31 16:07:29 +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
wojteknowacki
2505012746
tests - removed test for img thumbnail, commented payment test, bump mail fetching retries (#3701)
* removed test for img thumbnail since during triage it was decided it is possible img will not be available, also commented test for payment status since there is bug created and we are waiting to fix it, also increased retries for mail fetching

* CR fixes - xit instead comment, get mail retry var declaration
2023-05-30 14:06:54 +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
Patryk Andrzejewski
b2888dae32
Create RFC template (#3698)
* Create RFC template

* Update .github/ISSUE_TEMPLATE/rfc.yaml

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

---------

Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
2023-05-29 20:58:44 +02:00
wojteknowacki
38ccecea1f
test fix - removed deleting resources from db since this was creating… (#3691)
* test fix - removed deleting resources from db since this was creating concurrent conflicts between pr on the same env

* test fix - missing faker import, api request missing uniq slug, draft order test,

* fix failing tests

* test fix filtering products

* test - final fix of 2 last failing tests - staff memebers and click and collect
2023-05-29 09:15:07 +02:00
Krzysztof Żuraw
58838b48d8
Change bug report to form (#3692) 2023-05-25 17:04:55 +02:00
Lukasz Ostrowski
a86e0e6b13
Add hook that sends updated app token to the App (#3683)
* Add hook that sends updated app token to the App

* Install latest app-sdk@0.39.1
2023-05-25 15:35:17 +02:00
wojteknowacki
16f8e0b177
test fix for order suite and add missing critical tags (#3690) 2023-05-24 16:27:01 +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
wojteknowacki
b396c8e9a5
fixes staff members tests (#3678)
* fixes staff members tests

* removing 'only' from suite
2023-05-23 09:51:36 +02:00
Karolina Rakoczy
30ee7c1ff9
Fix user emails plugins after backup restore (#3681) 2023-05-22 11:45:10 +02:00
Krzysztof Żuraw
1781edc29a
Add contributing guide and codeowners (#3670)
Co-authored-by: andrzejewsky <vox3r69@gmail.com>
2023-05-22 11:17:11 +02:00
Krzysztof Żuraw
1b278c170a
Fix font in customer history login data (#3669) 2023-05-22 11:12:20 +02:00
Krzysztof Żuraw
2f4b822acb
Adjust storybook to prevent false positivies (#3679) 2023-05-22 11:09:36 +02:00
Lukasz Ostrowski
8f58efcd50
Rebuild App Settings to be nested inside app screen (#3676)
* Rebuild App Settings to be nested inside app screen

* Remove memoization

* Update src/apps/components/AppPage/AppPageNav.tsx

Co-authored-by: Michał Droń <droniu@droniu.dev>

---------

Co-authored-by: Michał Droń <droniu@droniu.dev>
2023-05-22 08:35:35 +02:00
Krzysztof Żuraw
ea5b6a80a5
set 6GB as max node memory usage while building dashboard (#3666) 2023-05-19 13:53:08 +02:00
Krzysztof Żuraw
531dd236f2
Run chromatic on PR & on main branch (#3654) 2023-05-18 16:40:48 +02:00
Karolina Rakoczy
dc2cd4cef1
Run tests on multiple browsers (#3635)
* Run tests on multiple browsers

* Add all option

* Fix ids

* Fix typo

* Add firefox install

* remove container with cypress

* remove mocha reporters

* remove test file

* add quotes
2023-05-18 11:42:12 +02:00
Karolina Rakoczy
14ee7dc054
Fix tests for pages (#3660) 2023-05-18 11:40:25 +02:00
Anna Szczęch
21e0be5109
Add e2e for should be able to switch to products tile view SALEOR_2610 (#3619)
* add e2e for switching to tile view

* remove unused reference

* add change to tile view helper

* use cypress command checkIfElementIsVisible

Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>

* change to kebab case

* add check for switch to grid view

---------

Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
2023-05-18 11:30:05 +02:00
Krzysztof Żuraw
8a86a32c08
Logout user that do not have permissions (#3559) 2023-05-18 10:54:30 +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
wojteknowacki
757833ca57
test fix create product without sku (#3623) 2023-05-18 09:47:12 +02:00
wojteknowacki
352ac9566b
test fix available for purchase (#3661) 2023-05-18 09:01:34 +02:00
Karolina Rakoczy
36c14bd9a0
3481 if there is more than 20 failed tests add another notification to saleor-qa channel (#3622)
* Add slack notification

* Add correct webhook url

* Create new file with helpers

* add default

* add missing checkout
2023-05-17 10:24:43 +02:00
Patryk Andrzejewski
3d2559ca0c
Set test id for apps iframe (#3640) 2023-05-16 10:02:54 +02:00
wojteknowacki
dc45c3d090
test: fix for transaction orders test - set local storage to hide navigator banner (#3649) 2023-05-15 14:14:40 +02:00
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