Commit graph

446 commits

Author SHA1 Message Date
dominik-zeglen
7aebb67cfd Do not allow negative values and display errors 2020-10-13 13:29:42 +02:00
dominik-zeglen
450b3bf15c Limit slug to 255 characters 2020-10-12 16:32:19 +02:00
dominik-zeglen
d514cd3d88 Remove unused imports 2020-10-12 12:56:11 +02:00
dominik-zeglen
87ece837db Show empty option only when prop is passed 2020-10-12 12:56:10 +02:00
dominik-zeglen
c15aaa833b Fix attribute empty option 2020-10-12 12:56:08 +02:00
Dominik Żegleń
769f30e135
Use regex instead of string to replace all "\n" occurences (#736)
* Use regex instead of string to replace all

* Add global flag to regex to replace all occurences

Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2020-10-02 11:05:52 +02:00
Dominik Żegleń
287a2eb8ed
Hide save bar if no action is available (#735) 2020-10-01 17:50:17 +02:00
Krzysztof Wolski
7cd3409bb3
Fix failing cypress test (#738)
* Add test selector for autocomplete field

* Update snapshot
2020-09-30 11:48:00 +02:00
Marcin Gębala
7e24e4a14f
Merge pull request #720 from mirumee/feat/add-slug-to-seo-form
Add slug field to category, product, collection & page details
2020-09-25 18:44:08 +02:00
Marcin Gębala
354b0f5b90
Merge pull request #732 from mirumee/fix/table-layout
Fix exploding table layout
2020-09-25 18:43:44 +02:00
Marcin Gębala
55d748e3c6
Merge pull request #731 from mirumee/revert-menu
Revert menu
2020-09-25 18:16:18 +02:00
Magdalena Markusik
8f43226e95 Merge branch 'master' into feat/add-slug-to-seo-form 2020-09-25 17:41:58 +02:00
dominik-zeglen
85b4d13ba2 Hide navigator button on mobile devices 2020-09-25 17:27:50 +02:00
dominik-zeglen
80c57ae0c0 Revert "Fix return to previous page on screen size change (#710)"
This reverts commit 45d33c3920.
2020-09-25 17:23:07 +02:00
dominik-zeglen
e13086fef3 Fix exploding table layout 2020-09-25 17:00:17 +02:00
Marcin Gębala
cf91edaaf9 Revert "Merge pull request #697 from mirumee/ref/sidebar"
This reverts commit b1623eaaf5, reversing
changes made to 14da39ebfa.
2020-09-25 16:45:27 +02:00
Magdalena Markusik
f956be3fbc refactor after review 2020-09-25 16:44:11 +02:00
Marcin Gębala
42931a1d31 Revert "Merge pull request #703 from mirumee/ref/sidebar-mobile"
This reverts commit acfd04e81a, reversing
changes made to 40d27a9280.
2020-09-25 16:38:59 +02:00
mmarkusik
c8e06812e6
Merge branch 'master' into feat/add-slug-to-seo-form 2020-09-25 15:39:05 +02:00
Magdalena Markusik
cc166f463c refactor after review 2020-09-25 15:27:57 +02:00
Magdalena Markusik
c0d02d6943 refactor 2020-09-24 15:31:29 +02:00
Magdalena Markusik
2519ed9496 add pattern matching for slug field not to use special characters 2020-09-24 15:30:16 +02:00
Magdalena Markusik
828e207209 add error handling to seo form 2020-09-24 14:11:30 +02:00
dominik-zeglen
baff4413a5 Improve rendering of large lists 2020-09-24 13:46:50 +02:00
dominik-zeglen
2b92211b99 Add tax section to product view 2020-09-24 13:46:48 +02:00
Dawid Tarasiuk
30ab1bb439 Fix misaligned rich text draft controls 2020-09-23 17:58:25 +02:00
mmarkusik
8093876c7b
Merge branch 'master' into feat/add-slug-to-seo-form 2020-09-23 09:39:29 +02:00
Magdalena Markusik
c20c84da35 refactor 2020-09-22 13:10:53 +02:00
mmarkusik
c7124ffc41
Merge branch 'master' into feat/add-slug-to-seo-form 2020-09-22 09:58:33 +02:00
dominik-zeglen
b0053e1f92 Fix table horizontal scrolling 2020-09-21 17:19:33 +02:00
Magdalena Markusik
e69c7057bd fix lint 2020-09-21 16:30:18 +02:00
Magdalena Markusik
ca644c9bb0 refactor 2020-09-21 15:34:32 +02:00
dominik-zeglen
35624d3008 Fix uncontrolled to controlled input change 2020-09-21 15:34:15 +02:00
Magdalena Markusik
77063deb4f fix seo form to work with null values from some props 2020-09-21 14:45:57 +02:00
Magdalena Markusik
52cf01ed72 update mutation and fixtures 2020-09-21 12:05:43 +02:00
Dawid Tarasiuk
88b8950408 Add drag-and-drop to allow variants reordering 2020-09-21 10:33:24 +02:00
Magdalena Markusik
d20b58dd79 fixes afer merge 2020-09-18 16:40:48 +02:00
Magdalena Markusik
7631a7a281 Merge branch 'master' into feat/add-slug-to-seo-form 2020-09-18 15:35:22 +02:00
Dawid Tarasiuk
45d33c3920
Fix return to previous page on screen size change (#710)
* Fix header responsiveness

* Update changelog
2020-09-18 15:08:50 +02:00
AlicjaSzu
cd88102af7
fix product availability date (#696)
* VisibilityCard - fix product availability date

* revert changes in VisibilityCard, refetch data on successfully updated availability

* fix availability in ProductCreate and ProductUpdate

* ProductUpdate - remove unneeded refetch

* create  getProductAvailabilityVariables handler
2020-09-18 15:01:00 +02:00
Magdalena Markusik
8a80f3dd4d Add slug field for page details wip 2020-09-17 16:06:13 +02:00
dominik-zeglen
bf752d1ee7 Add mobile drawer menu 2020-09-11 15:58:15 +02:00
dominik-zeglen
989f66f7de Add SquareButton component 2020-09-11 12:43:55 +02:00
dominik-zeglen
6fcc0eaf79 Improve userbar styles 2020-09-11 12:29:08 +02:00
dominik-zeglen
95f11a3032 Fix app header responsiveness 2020-09-10 17:37:25 +02:00
dominik-zeglen
a7c65f77e4 Move userbar to separate component 2020-09-10 17:20:22 +02:00
dominik-zeglen
ed3d168d22 Fix app header 2020-09-10 17:11:36 +02:00
dominik-zeglen
14b32db8ec Fix test selectors 2020-09-09 13:15:18 +02:00
dominik-zeglen
297fa35edd Fix menu hiding 2020-09-09 12:59:59 +02:00
dominik-zeglen
155dcbecb3 Listen to all clickAways 2020-09-09 12:59:58 +02:00
dominik-zeglen
89c33deb3d Fix submenu shadow 2020-09-09 12:59:56 +02:00
dominik-zeglen
a1b8cba07b Do not break white space 2020-09-09 12:59:55 +02:00
dominik-zeglen
c862cc1eae Align text to left 2020-09-09 12:59:54 +02:00
dominik-zeglen
4fa7730611 Improve dom nesting 2020-09-09 12:59:53 +02:00
dominik-zeglen
3d571e3f4f Visual improvements 2020-09-09 12:59:52 +02:00
dominik-zeglen
e8a69cd9fc Fix sidebar positiion 2020-09-09 12:59:51 +02:00
dominik-zeglen
da0677ca42 Fix submenu text color 2020-09-09 12:59:49 +02:00
dominik-zeglen
ac0e8f03fc Remove obsolete files 2020-09-09 12:59:47 +02:00
dominik-zeglen
97c3d06241 Improve accessibility 2020-09-09 12:59:46 +02:00
dominik-zeglen
f1960281f8 Add styles to expand button 2020-09-09 12:59:45 +02:00
dominik-zeglen
da16d8a087 Remove unused style 2020-09-09 12:59:44 +02:00
dominik-zeglen
c1c5713592 Add styles to menu 2020-09-09 12:59:43 +02:00
dominik-zeglen
2711292315 Add menu skeleton 2020-09-09 12:59:41 +02:00
dominik-zeglen
ce6d9d835a Fix en locale, symlinks and use async await 2020-09-04 16:08:24 +02:00
Dominik Żegleń
8e0740372a
Merge pull request #692 from eaglesemanation/fix/lazyload-locales
Fix/lazyload locales
2020-09-04 16:07:26 +02:00
Dominik Żegleń
591f2eced3
Merge pull request #690 from mirumee/ref/savebar
Update savebar design
2020-09-04 13:05:10 +02:00
Vladimir Romashchenko
54577a1a30
Made locales load lazily. 2020-09-03 22:40:28 -04:00
dominik-zeglen
de309be807 Update background volor 2020-09-03 19:06:47 +02:00
dominik-zeglen
203c5ba696 Update savebar design 2020-09-03 19:01:32 +02:00
AlicjaSzu
092655c16e fix availability date logic 2020-09-03 16:14:23 +02:00
AlicjaSzu
a6db73f189 fix typo in AvailabilityCard 2020-09-03 16:10:15 +02:00
AlicjaSzu
eba4ba2edf
update VisibilityCard component (#679)
* update VisibilityCard component

* add visibleInListings in Product

* update mutations and types with visibleInListings

* update ProductExportDialogInfo with availableForPurchase

* update defaultMessages

* update useDateLocalize hook

* update cypress tests

* update orders with availability info

* revert cypress changes

* update changelog

* update product update handlers

* fix VisibilityCard styles

* create AvailabilityCard component

* update defaultMessages

* update snapshots and messages

* fix ProductCreatePage form data types

* update defaultMessages
2020-09-03 12:25:16 +02:00
Dominik Żegleń
7770ae34df
Add metadata (#670)
* Add metadata editor component

* Add tests

* Fix plurals

* Use pascal case in selectors

* Update product metadata

* Add metadata handler decorator

* Update snapshots

* wip

* Remove operation provider component

* Add metadata to collections

* Add metadata editor to variant

* Add metadata editor to categories

* Add metadata to product types

* Simplify code

* Add metadata to attributes

* Drop maybe

* Rename Metadata to MetadataFragment

* Update changelog and snapshots
2020-08-28 14:45:11 +02:00
Dominik Żegleń
265c8bc0ca
Merge pull request #664 from mirumee/add/data-test-filters
Add test ids to filters
2020-08-27 16:56:00 +02:00
dominik-zeglen
dddfa135a5 Add apps and permission groups to navigator 2020-08-26 11:47:00 +02:00
Krzysztof Wolski
4166bff0a9 All items in menu will have test context 2020-08-25 09:54:24 +02:00
Krzysztof Wolski
44b3b66ff3 Add static test id to the menu items 2020-08-25 09:27:02 +02:00
dominik-zeglen
affb8e031b Use pascal case 2020-08-24 16:23:45 +02:00
Dominik Żegleń
8f66954590
Merge pull request #660 from mirumee/fix/plugin-view
Fix minor bugs in plugin details view
2020-08-21 15:39:01 +02:00
dominik-zeglen
5e73440e4f Add test ids to filters 2020-08-21 13:03:14 +02:00
Dominik Żegleń
1badb8a1e2
Merge branch 'master' into fix/navigator-button 2020-08-20 16:39:51 +02:00
Krzysztof Wolski
6f3c8647f0
Merge branch 'master' into fix/unassign_user 2020-08-20 14:13:48 +02:00
dominik-zeglen
48e9fe1366 Fix minor bugs in plugin details view 2020-08-19 13:35:35 +02:00
dominik-zeglen
09fd02ddec Update checkboxes to newest design 2020-08-18 16:10:15 +02:00
dominik-zeglen
88168cb157 wip 2020-08-18 16:10:14 +02:00
dominik-zeglen
70bb077840 Fix rendering on safari browser 2020-08-18 11:38:34 +02:00
Vladimir Romashchenko
d0422323ba
Added "info" variant for Action Dialog
Info messages should not require any kind of confirmation, so I added
option to disable ConfirmButton by providing "info" as a variant
2020-08-11 04:04:16 -04:00
dominik-zeglen
dbbe2d7287 Update snapshots, messages and changelog 2020-08-10 15:12:21 +02:00
dominik-zeglen
154899704d Add navigator button 2020-08-10 14:43:24 +02:00
dominik-zeglen
3816ebb0a5 Add navigator button 2020-08-08 14:59:09 +02:00
Dominik Żegleń
df5aea6200
Add product export (#620)
* Add component backbone

* Make step component generic and typed

* Add step tabs

* Add settings view

* Encapsulate all dialog components in one directory

* Move types to separate file

* Add mutations

* Use gql types

* Add error handling

* Do not keep separate types file

* Allow products to be exported

* Fix types

* Update snapshots

* Update to latest schema

* Add disabled option

* Use wizard hook

* Update type definitions

* Queue export check task

* Fix bug causing jobs to be endless and duplicated

* Fix minor bugs

* Add accordion component

* Allow selection of fields  to be exported

* Add attribute export

* Update snapshots

* Update messages

* Update changelog

* Add missing key

* Add quick peek to accordioin

* Sort imports

* Remove unused files

* Add chiips to attribute selection

* Change menu positioning

* Add product counter

* Add select all option

* Update snapshots

* Update messages

* Remove unused import

* Add chips

* Add test tags

* Update snapshots

* Change number of max chips

* Add accordion tags

* Update messages
2020-07-30 11:54:16 +02:00
AlicjaSzu
211b0b892d
Apps (#599)
* create Apps view

* create more app components, generate types and messages

* apps refactor, update snapshots

* show error message in tooltip  when app installation fail

* update apps components and view, add apps list to storybook

* update defaultMessages

* create app details view

* update AppListPage with Skeleton component

* create app activate/deactivate dialogs, create app details stories

* add AppHeader to AppDetailsPage

* update defaultMessages

* update AppDetails view and components after review

* create custom app details view

* refactor webhooks

* update webhooks fixtures

* update WebhookDetailsPage story

* update strings

* create CustomAppCreate view and components

* update AppListPage story

* create AppInstall view and page

* handle errors in AppInstall view

* update defaultMessages

* add AppInstallPage to storybook

* add status prop to MessageManager

* update defaultMessages

* remove service account section

* remove service account routes

* remove as operator from notify status

* add notifications for app installations

* update styles for deactivated app

* update app installations with local storage

* update defaultMessages

* AppInstall update

* dd delete button to ongoin installations table

* fix active installations condition

* fix error messages in AppsList

* update defaultMessages

* add iframe to AppDetailsPage

* create AppDetailsSettingsPage

* install macaw-ui

* apps styles clean up

* update schema, fixtures

* few apps updates

* WebhookCreate - fix onBack button name

* WebhookCreatePage story update

* rename apps table from external to thirdparty

* update defaultMessages

* fix test, update snapshots

* AppDetailsSettings - add token to headers

* fix first number in local apps query

* app details settings - use shop domain host

* add onSettingsRowClick to InstalledApps

* resolve conflicts

* update changelog and messages

* add noopener noreferrer do app privacy link

* update snapshots

* update snapshots

* updates after review

* update defaultMessages

* CustomAppDetails - add missing notify status
2020-07-22 12:54:15 +02:00
Krzysztof Wolski
c778c200ed
Move from test cafe to Cypress (#584)
* Typo

* Add cypress config

* Login and logout tests

* Typo

* Add basic test for warehouse

* Wrong password test

* Fixes and docs

* Remove testcafe

* Add gh action

* Update changelog

* Fix typo

* Update msgs

* Work on GH action

* Record artifacts

* Fix warehouse test
2020-07-20 11:42:44 +02:00
dominik-zeglen
c09fc4ce00 Apply fixes from 2.10.1 2020-07-16 13:48:00 +02:00
Carl-Philip Majgaard
71ca341538
Clears all filters on filter reset 2020-07-14 15:57:52 -04:00
dominik-zeglen
8173624fca Fix order note when no user was given 2020-07-13 11:21:52 +02:00
dominik-zeglen
eddec1a5c2 Move fragments to avoid circular imports 2020-07-07 12:14:12 +02:00
AlicjaSzu
4cf6a64449 MessageManager - fix identical operands error 2020-07-02 15:39:11 +02:00
AlicjaSzu
ce19f6aab6 MessageManager - update data-test 2020-07-02 14:55:39 +02:00
AlicjaSzu
3f903b8525 remove timer from error notification 2020-07-02 14:49:48 +02:00
AlicjaSzu
a3d16975da MessageManager clean up 2020-07-02 14:49:46 +02:00
AlicjaSzu
adebcc4452 remove react-alert lib, create MessageManagerProvider 2020-07-02 14:49:45 +02:00
AlicjaSzu
5960eb4644 set notifications column width to widest element 2020-07-02 14:49:44 +02:00
AlicjaSzu
88da4cab1d MessageManager - update classNames 2020-07-02 14:49:43 +02:00
AlicjaSzu
f247e79369 update defaultMessages 2020-07-02 14:49:42 +02:00
AlicjaSzu
2921d14b75 update messages stories 2020-07-02 14:49:41 +02:00
AlicjaSzu
58c0a5859a use react-alert to render multiple notifications 2020-07-02 14:49:38 +02:00
AlicjaSzu
49df188703 add expandedText prop to MessageManager 2020-07-02 14:49:37 +02:00
AlicjaSzu
b3eb13a785 update MessageManager 2020-07-02 14:49:37 +02:00
Krzysztof Wolski
f4d570c7e5
Fix warnings and better test tag (#582)
* Resolve test warnings

* Tename data-tc to data-test

* Update src/orders/components/OrderFulfillPage/OrderFulfillPage.tsx
2020-07-02 12:59:09 +02:00
Dawid Tarasiuk
65e5539173 Remove basePrice from schema 2020-06-10 15:39:10 +02:00
Krzysztof Wolski
a82de30309
Add circleci config and enhance our linters (#519)
* Add circleci config

* Season linting config

* Apply code style
2020-05-14 11:30:32 +02:00
dominik-zeglen
6af08af910 Update product stock management to newest design 2020-05-04 18:06:36 +02:00
dominik-zeglen
6fb5c3d4e5 Fix form error 2020-04-29 16:53:52 +02:00
dominik-zeglen
fdf76fa967 Minor fixes 2020-04-29 16:14:20 +02:00
dominik-zeglen
16fc30c662 Fix type 2020-04-28 16:37:20 +02:00
dominik-zeglen
d0e082dc21 Add error translations 2020-04-28 16:33:24 +02:00
dominik-zeglen
4b661c9bff Add simple product stock management 2020-04-28 16:33:22 +02:00
dominik-zeglen
65dedb4263 Add warehouse select dialog 2020-04-28 16:33:20 +02:00
dominik-zeglen
0805ff052d Fix assigning shipping zone to warehouse 2020-04-28 16:33:18 +02:00
dominik-zeglen
1afafa6732 Fix minor bug causing form not to reload 2020-04-28 16:33:16 +02:00
dominik-zeglen
97ffc07738 Make warehouse and shipping work 2020-04-28 16:33:15 +02:00
dominik-zeglen
369be96850 Fix types 2020-04-28 16:33:11 +02:00
dominik-zeglen
93d1d74230 Allow creating warehouse from shipping zone view 2020-04-28 16:33:09 +02:00
dominik-zeglen
60ec16961c Add warehouse create action button 2020-04-28 16:33:08 +02:00
dominik-zeglen
ee36d6046c Add variant stock filtering by warehouse 2020-04-28 16:30:06 +02:00
dominik-zeglen
ccc51b1243 Add link with choices component 2020-04-28 16:30:05 +02:00
dominik-zeglen
34698b7d6f Fix rtypes 2020-04-28 16:29:58 +02:00
dominik-zeglen
74ea099824 Make company address shared component 2020-04-28 16:28:37 +02:00
dominik-zeglen
414f6d7a3d Add warehouse list view 2020-04-28 16:28:33 +02:00
Krzysztof Wolski
a595acdda1 Handle disabling unavailable fields 2020-04-27 11:11:21 +02:00
Krzysztof Wolski
a44e96a278 Update chosen pills 2020-04-27 09:53:34 +02:00
Krzysztof Wolski
082a12e0b8
Permission groups section (#406)
* Add permission groups 👪
2020-04-23 17:43:08 +02:00
dominik-zeglen
1ede1a33b1 Update types 2020-04-20 13:11:07 +02:00
dominik-zeglen
1446a993a5 Update stories 2020-03-24 13:54:27 +01:00
dominik-zeglen
96c98077d8 Use error codes in account sections 2020-03-24 13:54:08 +01:00
dominik-zeglen
c94ec7eafa Add error state 2020-03-24 13:53:07 +01:00
dominik-zeglen
4c27d69229 Fix form errors 2020-03-03 14:33:35 +01:00
dominik-zeglen
8b0bf50ed4 Remove unused code 2020-03-02 11:20:47 +01:00
dominik-zeglen
1a843e59bd Fix types 2020-03-02 11:20:45 +01:00
dominik-zeglen
c9cf31851e Display error message if invalid content is passed 2020-03-02 11:20:45 +01:00
dominik-zeglen
c4863ece60 Do not store errors in form component 2020-02-24 15:14:48 +01:00
dominik-zeglen
fa8231992f Explicitely return not found page 2020-02-20 15:18:22 +01:00
dominik-zeglen
5c98d870a9 Do not share configs 2020-02-13 12:58:45 +01:00
dominik-zeglen
e20ff94910 Use json files in translations 2020-02-13 12:54:23 +01:00
Marcin Gębala
9a42438ee0
Merge branch 'master' into fix/column-picker 2020-02-12 13:55:38 +01:00
dominik-zeglen
44d79897f2 Fix column picker errors 2020-01-31 16:20:14 +01:00
dominik-zeglen
35d433f7ca Improve form error handling 2020-01-31 14:48:39 +01:00
dominik-zeglen
5fbde28cb4 Fix select menus 2020-01-20 16:47:50 +01:00
dominik-zeglen
8ddf66f134 Add attribute filter 2020-01-20 16:47:46 +01:00