Commit graph

3601 commits

Author SHA1 Message Date
Lukasz Ostrowski
e90f587a5f
Add test-id to installed app row (#3783) 2023-06-28 09:44:18 +02:00
Patryk Andrzejewski
3118741db8
Feature flags strategies (#3800)
* Feature flags

* Feature flags

* Feature flags

* Feature flags

* Feature flags

* Feature flags

* Types

* use @swc/jest

* Avoid calling constructors inside

* Types

* Types

* remove flagsmith

* Change to payload

* Change to payload

* Update tests

* Split resolver
2023-06-27 13:30:20 +02:00
Paweł Chyła
f4e6ab4101
Disable link in order details datagrid when no product variant id (#3790) 2023-06-27 11:48:15 +02:00
Krzysztof Żuraw
d3f342cf75
Run chromatic workflow on label (#3794)
* build: run chromatic on label

* fix: after CR
2023-06-27 11:09:47 +02:00
Lukasz Ostrowski
a8babc4252
Change all apps thumbnais to be 64px, to fix blurry render (#3805) 2023-06-27 10:50:26 +02:00
Lukasz Ostrowski
58a3c26f7e
src/apps refactors batch (#3773)
* Add refactors to apps folder

Remove default exports in apps/views

Rename apps/views components, ensure they have similar convention

Refactor apps indexes files

Rename marketplace mentions to appstore

Rename useMarketplaceApps to useAppstoreApps

Rename some marketplace mentions to appstore

fix test

* Add changeset
2023-06-27 09:29:40 +02:00
Michał Droń
66bab6feab
🏛️ Implement new column picker (#3514)
* (wip) basic column picker implementation

* (wip) fix stories error

* (wip) fix custom column cells & sorting

* (wip) Group attributes query values in props

* (wip) Add docs

* (wip) fix story error

* Implement new column picker in order list

* Fix search input padding

* Fix empty settings crash

* Fix empty settings crash

* Portalize popover

* Preselect category when there is only one

* Remove legacy code

* Move product column adapters to proper directory

* Improve file structure

* Rename custom columns to dynamic columns

* Improve strings

* (wip) Implement pagination logic

* Beautify pagination

* Update macaw-ui

* Add unit test for useColumns

* Improve naming

* Code review style fixes

* Update docs

* Remove empty column

* Remove unexpected padding from attribute columns

* Add min height to prevent jumping

* Fix typo in column picker files

* CSS fixes to popover content

* Implement auto-scroll to new column

* Improve docs

* Improve type in useColumns reducer

* Extract dynamic columns from NewColumnPicker as a smaller component

* Disable movement of empty column

* Fix circular loader

* Do not persist expanded state when closing picker

* Fix dynamic columns with long names line break

* Prevent user from disabling all static columns

* Simplify dynamic column reducer into flatMap

* Optimistic UIbasic implementation

* Make available attributes query lazy

* Fix displaying arrow next to sorted column

* Add explainatory comment

* Fix product list stories

* Fix dynamic columns and query handling for empty lists

* Remove jump on first attribute selection

* Remove jump on first attribute selection

* Fix search

* Add debounce to search

* CR - base state change on previous in popover

* Extract search into separate component

* Rename useDynamicColumnSettings to useColumnPickerSettings

* Use difference from lodash

* Improve static column rendering

* Improve order list

* Fix stories error

* Improve search for edge cases

* Extract messages

* Calculate more complex dynamic column adapter parameters in separate functions

* Fix url pointing to CardMenu substitute

* Extract nodes to separate component

* Move files, remove New prefix

* Extract to static columns

* Refactor utility functions

* Render column picker categories only when provided in props

* Replace switch with if statements

* Refactor to hooks

* Remove comments with legacy stacing

* Add spaces for better readibility

* Tighten types

* Add space

* Add extra comments to useColumns optimistic update logic

* Fix paddings

* Add arbitrary min/max height for handling various resolutions

* Add full-width hover & click effect on candidate columns labels

* Handle long attribute names

* Make column picker popover a modal

* Bump macaw-ui

* Fix macaw-ui type mismatch

* Update types

* Add data-test-id

* Fix closing picker with trigger button

* Replace list settings deep merging with shallow merging

* Fix list settings deep merging behaviour for arrays

* Replace conditional data-test-id- with close-search

* Rename targetArray to columnsToCheck

* Rename filterColumns to filterSelectedColumns

* Rename gridAttributes query objects to more descriptive

* Add explainatory comment to customizer function in useListSettings

* Update strictness

* Fix rendering dynamic columns
2023-06-26 11:36:01 +02:00
Paweł Chyła
85c8f15605
Fix update metadata in Attribute details (#3784)
* Fix update metadata

* Restore use makeMetadataChangeHandler
2023-06-26 10:05:25 +02:00
Krzysztof Żuraw
02c27b898f
Update PR template with changeset (#3797) 2023-06-23 14:59:29 +02:00
wojteknowacki
e69a62d9bb
fixed flaky draft order and products without sku tests (#3795) 2023-06-23 14:51:59 +02:00
wojteknowacki
6a2ee1f1d0
test for opening products from order grid (#3780) 2023-06-23 12:01:57 +02:00
Krzysztof Żuraw
79779f2d3d
Add changesets (#3786) 2023-06-23 10:26:02 +02:00
Krzysztof Żuraw
a573363f3b
Remove not needed GitHub workflow for reviews (#3785) 2023-06-23 10:16:15 +02:00
Krzysztof Żuraw
61d27625c4
Fix typo in contributing guide (#3791) 2023-06-23 10:03:54 +02:00
Patryk Andrzejewski
1d2eeb7592
Strict mode plugin (#3778)
* Stric mode plugin

* Update command
2023-06-21 11:28:00 +02:00
Lukasz Ostrowski
d98aa2ac8a
Fix breaking Manage App screen when app is disabled (#3777) 2023-06-20 16:03:42 +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
Karolina Rakoczy
3508852b4d
Update snapshot with new avalara key (#3763) 2023-06-19 15:41:42 +02:00
Michał Droń
37c36bfa3f
Fix double mutation when non staff user logs in (#3565)
* Fix double externalObtainAccessTokens mutation when non-staff user logs in

* Fix double availableExternalAuthenticationsQuery

* Make available attributes query lazy
2023-06-19 11:05:02 +02:00
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