Commit graph

3573 commits

Author SHA1 Message Date
Paweł Chyła
d282769fd9
Refactor order list datagrid to use new hooks (#3846) 2023-07-05 12:28:22 +02:00
Michał Droń
8d16513eab
Enable method signature style ESLint rule (#3849)
* Remove redundant rules handled by prettier

* Turn on method-signature-style

* Auto-lint files according to method-signature-style rule

* Add changeset
2023-07-05 11:19:58 +02:00
Paweł Chyła
72d4df482e
Fix show selected content in single autocomplete field (#3855) 2023-07-05 09:31:44 +02:00
Krzysztof Żuraw
fec476b7e2
Experimental filters: Add API types and handlers (#3841) 2023-07-05 09:21:32 +02:00
Krzysztof Żuraw
8d425700eb
Experimental filters: fix wrong type (#3856) 2023-07-05 08:59:24 +02:00
Lukasz Ostrowski
b0214c6454
App Permissions Modal - QA fixes (#3853)
* Fix App Permissions Modal scrolling

* change changeset to be minor

* fix height of permissions modal - confimration step
2023-07-05 08:06:36 +02:00
Krzysztof Żuraw
07fa3bc0cc
Experimental filters: add type to filter event (#3851) 2023-07-05 08:04:32 +02:00
Patryk Andrzejewski
7309c736bb
Clean up FilterElement types (#3850)
* Filter element types

* Lint

* Lint
2023-07-04 09:55:57 +02:00
Paweł Chyła
09c9024e0d
Order drafts list datagrid (#3765) 2023-07-04 09:27:17 +02:00
Paweł Chyła
b4f11eff66
Category listing datagrid (#3760)
Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-07-04 09:23:27 +02:00
Lukasz Ostrowski
1cb6e8b5fc
Manual app permissions setting by the user (#3829)
* Remove react-markdown, render app about section as string

* Add modal with permissions - WIP

* Extract components

* add permissions diff

* add mutation

* add notification

* fix dialog scrolling

* Extract messages in permissions dialog

* test for useGetAvailableAppPermissions.ts

* add test to state

* fix enums

* add changeset and extract root messages

* Update wicked-berries-watch.md

* fix linter

* fix ts

* cr fixes
2023-07-03 14:50:53 +02:00
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