Commit graph

3612 commits

Author SHA1 Message Date
Paweł Chyła
158b22d1ed
Introduce usePresetFilters and useRowSelction hooks (#3836) 2023-07-03 13:02:17 +02:00
wojteknowacki
5eb6888c42
test - fix vouchers tests (#3832) 2023-06-30 14:02:37 +02:00
Michał Droń
3123f04c69
Upgrade to ESLint 8 (#3781)
* Upgrade ESLint

* Add eslint-nibble

* Move typescript to dev deps

* Update ESLint config

* Turn off semi, comma-dangle & quotes rules

* Enable simple sort

* Fix errors in ESLint (#3788)

* Disable rules requiring heavy changes

* Autofix new ESLint rules

* Autofix more-rules

* Fix jsx/generics ambiguity

* Add warnings for broken rules requiring manual fixes

* Remove redundant expected-error

* Add simple-sort

* Add prettier config

* Lint config

* Fix sort plugin

* Fix simple sort plugin

* Fix sort order

* Update src/orders/components/OrderTransaction/components/TransactionEvents/components/PspReferenceLink.tsx

Co-authored-by: Paweł Chyła <chyla1988@gmail.com>

* Remove redundant comment

* Remove chai friendly

* Update package.json

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

* Remove to-be-checked comment

* Update formatjs plugin

* Lint staged only in src

* Add changeset

* Add tracking issue for new rules

* Resolve auto-fixable warning after merge

* Change sorts to warnings

* Run lint on new files

* Fix errors

---------

Co-authored-by: Paweł Chyła <chyla1988@gmail.com>
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
2023-06-30 10:07:13 +02:00
Lukasz Ostrowski
a1482cc453
Refactor AppDetailsPage to Macaw Next (#3818)
* Refactor AppDetailsPage to Macaw Next

* Update locales

* CR fixes

* Add error boundary
2023-06-29 15:50:13 +02:00
wojteknowacki
c12a42932d
test - fixes createSales ans updateSales (#3816)
* test - fixes createSales ans updateSales

* changed name shouldVariantBeOnSale into getVariantWithSaleStatus

* cr fixes
2023-06-29 15:40:51 +02:00
Karolina Rakoczy
df76e07f8e
Cypress tests on releases - fix slack notify message (#3719)
* status always should be failure

* also fix when notification after scheduled tests
2023-06-29 14:18:36 +02:00
Patryk Andrzejewski
198341cb41
New filters for the product listing page (prototype) (#3811)
* Expression filters

* Filters

* Tokenizing

* Tokenizing

* feat: fetch inital state from API

* fix: integrate with code

* Loading

* feat: add attribute name & label

* feat: move input type

* Loading

* feat: update left operator + condition

* feat: fetch inital options on focus

* feat: fetch right options on autocomplete

* Flags

* Refactor

* fix: add loading state

* fix: after changes

* fix: remove debugger

* fix: proper selected setting

* Refactor

* Display properly

* Display properly

* Display properly

* feat: fetch left options

* Persist

* feat: add loading state

* feat: refactor getAPIOptions

* feat: add additional checks to filter element

* feat: use debounce

* FilterArray

* FilterArray

* Modeling

* fix: filters in popover

* feat: use new macaw ui version

* Types

* Feature flag

* fix: type errors

* Alignment

* Fix api

* feat: add slug

* feat: add slug

* feat: add slug for the last time

* fix: return slug from left options

* Fix combobox

* Force slug

* Changeset

* fix: serialize value

---------

Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
2023-06-29 14:10:19 +02:00
Paweł Chyła
a08d034e75
Fix unable to save attribute value (#3814) 2023-06-29 10:57:48 +02:00
Michał Droń
d3791b6a23
Migrate voucher channel listings to new inputs (#3742) 2023-06-29 10:03:36 +02:00
Lukasz Ostrowski
6640294078
Update app-sdk and pass saleor versions to handshake event for apps (#3789)
* Update app-sdk (early build) and pass saleor versions to handshake event for apps

* Add changeset

* Fix sdk version

* Fix broken external app context

* cr fixes
2023-06-28 15:06:08 +02:00
Timur Carpeev
eb92e08670
Remove gift card balance bar (#3743) 2023-06-28 11:17:00 +02:00
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