Commit graph

3601 commits

Author SHA1 Message Date
Michał Droń
b386cf060f
Add order expiration (#3843)
* Add TTL expiration & migrate some components in channel details

* Migrate button

* Update fixtures

* Add changeset

* Typo & lint

* Reorder UI elements

* Set custom height to match old input

* Add explanatory comment

* test - created test for expired orderes functionality in channels, fixed validation test which checks using same slug twice when creating channel

* Fix create page

* Fix lint issue

* Fix error handling double notification

* tests added: creating channel with expiration days for orders, creating channel with expiration days for orders with boundary conditions exciding requirements

* function name typeExpirationDate changed to typeExpirationDays

---------

Co-authored-by: wojteknowacki <wojciech.nowacki@saleor.io>
2023-07-12 14:04:50 +02:00
Michał Droń
66976d547b
Drop dynamic column toggles in column picker (#3878)
* Drop dynamic column toggles

* Replace removal icon

* Add changeset

* Add docs

* Update docs

* Fix types on order draft datagrid

* Adjust collections column picker to new architecture

* Adjust categories column picker to new architecture

* Test column picker: adding, removing and searching for dynamic columns in picker (#3901)

* test - column picker. Adding, removing and searching for dynamic columns in picker.

* update tests tame with TC ids

* removed unused row checks on products list view

* Lint files

---------

Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
2023-07-12 13:59:17 +02:00
Paweł Chyła
2ab11bb407
Fix remove delete button after bulk delete in categories, collections and order draft lists (#3898) 2023-07-12 10:30:24 +02:00
Patryk Andrzejewski
2074915055
Product query vars (#3897) 2023-07-12 10:06:26 +02:00
Paweł Chyła
b86bb025a2
Introduce new column picker in Categories list (#3876) 2023-07-11 13:19:26 +02:00
Matthias Berchtold
5b4d07d547
View all orders of anonymous customer (#3879)
* feat: view all orders of anonymous customer

* fix: formatting error
fix: translation-messages
2023-07-11 10:48:49 +02:00
Patryk Andrzejewski
4652f56531
Refactor initial index for filtering (#3893)
* Refactor initial index

* Changeset

* Ignore handler

* Fix linter

* Fix linter

* Lift up providers

* Delete FIltersArea.tsx
2023-07-11 09:30:18 +02:00
Paweł Chyła
4ad8c15366
Collections listing datagrid (#3835)
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
Co-authored-by: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
2023-07-11 08:59:01 +02:00
Krzysztof Żuraw
03d9e92c97
Add prettier command and run it inside src folder (#3892) 2023-07-11 08:34:08 +02:00
Timur Carpeev
de098fd520
Order page nudges (#3671)
* Capitalize first letter

* Use small pills

* Add default title

* Shorten button label

* Move action button to the right

* Update messages

* Harmonize styles

* Align rows

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

Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>

* Update src/orders/components/OrderTransaction/components/CardTitle/CardTitle.tsx

Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>

* Update src/orders/components/OrderTransaction/components/CardTitle/CardTitle.tsx

Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>

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

Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>

* Fix import

* Extract messages

* Fix spacing

* Changeset

---------

Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>
Co-authored-by: Paweł Chyła <pawel.chyla@saleor.io>
Co-authored-by: andrzejewsky <vox3r69@gmail.com>
2023-07-10 15:06:11 +02:00
Paweł Chyła
391b429fce
Introduce new column picker in Order Draft list (#3869) 2023-07-10 11:28:25 +02:00
Paweł Chyła
0ea8f32378
Use Accordion component from new macaw (#3712) 2023-07-10 10:24:34 +02:00
Carlos Ramírez
093388c46f
Add rowHeight prop to Datagrid component (#3888)
* Add rowHeight prop to Datagrid component

* Add changeset
2023-07-10 09:48:19 +02:00
Patryk Andrzejewski
6d6d1588b3
Start mapping selected filters to query variables (#3886)
* Initial variables mapping

* Changeset
2023-07-10 09:47:03 +02:00
Krzysztof Żuraw
cc0e0e58f3
Experimental filters: refactor API hooks (#3882) 2023-07-10 08:17:30 +02:00
wojteknowacki
b09f2d556f
Test env snap update (#3875)
* new channel added to env snap
2023-07-07 08:36:59 +02:00
Michał Droń
1c9291932a
Enable no-console ESLint rule (#3871)
* Enable no-console

* Lint files

* Add changeset
2023-07-06 14:37:22 +02:00
Paweł Chyła
3093be1b7d
Drop deprecated field in transactionsAPI (#3873) 2023-07-06 13:01:10 +02:00
Patryk Andrzejewski
74e5e07466
Remove console log (#3872) 2023-07-06 11:12:43 +02:00
Paweł Chyła
f71e0b762c
Fix customer is not present on the order list page (#3823) 2023-07-06 11:05:51 +02:00
Patryk Andrzejewski
05ff533731
Fix null-checks for filters (#3868)
* Fix null checks

* Changeset

* Cr
2023-07-06 10:44:22 +02:00
Patryk Andrzejewski
4433a9463a
Refactor filter container (#3867)
* Refactor filter container

* Changeset

* Lint
2023-07-05 16:32:34 +02:00
Patryk Andrzejewski
8fbf0d4a88
Display hash commit instead of version on main. (#3840)
* Set commit hash on main

* Changeset

* Set commit hash on main

* Update .github/workflows/deploy-master-staging.yaml

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

---------

Co-authored-by: Mikail <6186720+NyanKiyoshi@users.noreply.github.com>
2023-07-05 16:02:38 +02:00
Krzysztof Żuraw
f8c9317ede
Experimental filters: Type initial API calls (#3864) 2023-07-05 15:05:43 +02:00
wojteknowacki
ad341e9954
Tests - fixes pages scenarios (#3857)
* test fixes for pages scenarios

* fixed pages tests - should create published page should keep failing since waits for BE fix
2023-07-05 14:23:56 +02:00
Patryk Andrzejewski
52bac3b8f5
Storing filter value by left operand (#3866)
* Update expression value

* Changeset

* Fix linter
2023-07-05 14:12:16 +02:00
Patryk Andrzejewski
97e4401897
Implement url management, clan up UrlEntry (#3858)
* UrlEntry clean up, fix types

* Changeset
2023-07-05 13:28:46 +02:00
Paweł Chyła
e37c8ce44c
Refactor product list datagrid to use new hooks (#3845) 2023-07-05 12:29:05 +02:00
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