saleor-dashboard/src/components
Magdalena Markusik 3d636f4789
Exit dirty form (#1816)
* Add Exit form prompt component and change some minor styles in other components to match

* Add Exit form prompt provider

* Adjust generic form and useform hook to allow using exit form prompt provider

* Add exit form prompt provider to index

* wip

* Fix types

* Fix styling

* Fix types

* Revert warehouse details refactor

* Add handling of edge cases to exit prompt

* Refactor, add comments, fix some types

* Refactor after exit form dialog name change

* fix types

* Fixes after review

* Add default value for useform prop opts so the app doesn't crash

* Add missing category prop to getting initial data for category details form

* Add exit dialog to everywhere WIP (#1600)

* Add Exit form prompt component and change some minor styles in other components to match

* Add Exit form prompt provider

* Adjust generic form and useform hook to allow using exit form prompt provider

* Add exit form prompt provider to index

* wip

* Fix types

* Fix styling

* Fix types

* Revert warehouse details refactor

* Add handling of edge cases to exit prompt

* Refactor, add comments, fix some types

* Refactor after exit form dialog name change

* fix types

* Add CommonUseFormResultWithHandlers type for later use and refactor handleFormSubmit util

* Refactor login form not to use custom form since it doesn't need to

* Add exit form dialog to order refund page

* Add exit form dialog to order return page

* Add exit form dialog to order order settings  page

* Add exit form dialog to product variant page

* Add exit form dialog to product create page

* Add exit form dialog to product update page

* Add exit form dialog to product variant create page

* Fix confirm leave prop passing in generic Form

* Add util function to handle for submit to extract errors

* Add confirmLeave prop to generic forms

* Move handleChange for custom forms to useForm

* Add exit dialog to more forms

* Add extract mutation errors util function

* Add extracting errors to submit functions that use metadata create handler

* Fix typo

* Add missing category prop to getting initial data for category details form

* Fix types

* wip

* wip

* wip

* wip

* Fix types & refactor

* Fix types & refactor

* Fix typescript

* Fix unmatching tag

* Fixes

* Add handling of multiple forms at once to exit dirty form provider

* Change all usages of ExitFormDialogContext to designated hook

* wip

* wip

* wip

* Fix types wip

* Fix types

* Remove console logs

* Add isSubmitting prop to exit form dialog in order to avoid enabling exit dialog while submit is still in progresS

* Replace handleSubmit global util with a hook to use exit form dialog props inside

* Move useHandleSubmit to general hooks dir, update imports

* Small fixes

* Update snapshots

* Fix types

* Small fixes due to extensive rebase

* Update package lock

* Fixes after rebase

* Remove exit form from customer address dialog

* Fix types and update messages

* Fix types

* Change imports names

* Refactor

* Remove unnecessary console.log

* Update types, snapshots. etc after rebase
2022-02-01 10:58:06 +01:00
..
Accordion Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
AccountPermissionGroups Reduce bundle size (#1103) 2021-05-14 10:15:15 +02:00
AccountPermissions Use Auth SDK (#1474) 2021-12-17 12:10:54 +01:00
ActionDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
AddressEdit Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
AddressFormatter Reduce bundle size (#1103) 2021-05-14 10:15:15 +02:00
Alert Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
AppLayout Reload page after navigation after error (#1795) 2022-01-31 09:30:13 +01:00
AssignAttributeDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
AssignAttributeValueDialog Product reference attributes (#948) 2021-01-20 17:37:36 +01:00
AssignCategoryDialog Add variants to sale view (#1420) 2021-09-30 14:51:13 +02:00
AssignCollectionDialog Add variants to sale view (#1420) 2021-09-30 14:51:13 +02:00
AssignContainerDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
AssignProductDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
AssignVariantDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Attributes Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
AttributeUnassignDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
AutocompleteSelectMenu fix placeholder text issue for autocomplete component (#1423) 2021-09-20 16:28:44 +02:00
AvailabilityStatusLabel split messages between individual views 2021-08-10 19:03:52 +02:00
BulkAttributeUnassignDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
ButtonWithSelect Add dashboard extensions (#1292) 2021-08-20 15:58:53 +02:00
CardMenu Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
CardTitle Exit dirty form (#1816) 2022-02-01 10:58:06 +01:00
ChannelsAvailability Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
ChannelsAvailabilityCard Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
ChannelsAvailabilityContent Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
ChannelsAvailabilityDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
ChannelsAvailabilityDialogChannelsList Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
ChannelsAvailabilityDialogWrapper Fix partially cut checkboxes in channel dialogs (#1560) (#1613) 2021-11-22 12:57:32 +01:00
ChannelsAvailabilityDropdown Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Checkbox Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
Chip Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
CollectionWithDividers Gift cards post mvp (#1632) 2022-01-25 13:44:19 +01:00
ColorPicker Add swatch attributes (#1301) 2021-09-21 15:16:21 +02:00
ColumnPicker Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
CompanyAddressInput Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
CountryList Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
CreatorSteps Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
Date Reduce bundle size (#1103) 2021-05-14 10:15:15 +02:00
DeletableItem Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
DeleteButton Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
DeleteFilterTabDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
DeleteIconButton Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
DemoBanner Add Demo Banner (#1416) 2021-09-17 10:09:45 +02:00
DiscountedPrice Use variant prices in add product modal (#1698) 2021-12-23 16:00:37 +01:00
EditableTableCell Exit dirty form (#1816) 2022-02-01 10:58:06 +01:00
ErrorMessageCard Reduce bundle size (#1103) 2021-05-14 10:15:15 +02:00
ErrorNoticeBar Preorders (#1426) 2021-10-01 14:41:31 +02:00
ErrorPage Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
ExtendedPageHeader Gift cards post mvp (#1632) 2022-01-25 13:44:19 +01:00
ExternalLink Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
FileUploadField Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Filter Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
FilterBar Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
FilterCard Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Form Exit dirty form (#1816) 2022-02-01 10:58:06 +01:00
Grid Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
IconButtonTableCell Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
ImageUpload Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
InternalLink Add channel picker product details (#1355) 2021-09-03 14:27:34 +02:00
LanguageSwitch Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
LinkChoice Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Locale Fix react-intl missing translation error (#882) 2020-12-01 18:18:58 +01:00
MediaTile Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
messages Add margin to notification box (#1436) 2021-09-28 12:46:34 +02:00
Metadata Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Money Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
MoneyRange SALEOR-1903 - Fix custom currency formatting (#1067) 2021-04-21 11:03:57 +02:00
MultiAutocompleteSelectField fix failing tests (#1797) 2022-01-31 09:37:49 +01:00
MultiSelectField Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
Navigator Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
NavigatorButton Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
NotFoundPage Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
PageHeader Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
PageSectionHeader Add stock reservation settings (#1459) 2021-10-13 14:35:00 +03:00
PageTitleWithStatusChip Gift cards post mvp (#1632) 2022-01-25 13:44:19 +01:00
Percent Use proper loading and null value logic (#848) 2020-11-23 10:38:46 +01:00
PhoneField Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
PriceField Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
RadioGroupField Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
RadioSwitchField Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
ResponsiveTable Horizontal scroll fix on tables (#1306) (#1313) 2021-08-20 14:16:19 +02:00
RichTextEditor Fix EditorJS read-mode toggle race condition (#1711) 2022-01-10 14:34:17 +02:00
RowNumberSelect Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
SaveFilterTabDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
SearchBar Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
SeoForm Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Shop Use Auth SDK (#1474) 2021-12-17 12:10:54 +01:00
SingleAutocompleteSelectField fix failing tests (#1797) 2022-01-31 09:37:49 +01:00
SingleSelectField Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
SortableChip Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
SortableChipsField Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
SortableTable Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
StatusChip Add Gift Cards #1 (#1291) 2021-08-16 15:44:00 +02:00
StatusLabel Introduce fulfillment creation API (#1241) 2021-08-20 16:36:05 +02:00
Tab Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
TableCellAvatar Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
TableCellHeader Gift cards post mvp (#1632) 2022-01-25 13:44:19 +01:00
TableFilter Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
TableHead Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
TablePagination Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
TextFieldWithChoice Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
TextWithSelectField Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Timeline Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Timezone Do not use asterisk imports 2019-08-09 12:26:22 +02:00
TypeDeleteWarningDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
UserChip Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
VersionInfo Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
VisibilityCard Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Weight Update @material-ui to v4 2019-11-07 14:29:07 +01:00
WeightRange Update @material-ui to v4 2019-11-07 14:29:07 +01:00
WindowTitle Add circleci config and enhance our linters (#519) 2020-05-14 11:30:32 +02:00
BackButton.tsx Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
CardSpacer.tsx Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
ConfirmButton.tsx Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
Container.tsx Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
ControlledCheckbox.tsx Gift cards post mvp (#1632) 2022-01-25 13:44:19 +01:00
ControlledSwitch.tsx Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
DateTimeField.tsx [SALEOR-3088] Date & DateTime attributes (#1180) 2021-07-29 14:15:14 +02:00
DateTimeTimezoneField.tsx Preorders (#1426) 2021-10-01 14:41:31 +02:00
Debounce.tsx Update @material-ui to v4 2019-11-07 14:29:07 +01:00
DebounceForm.tsx Add circleci config and enhance our linters (#519) 2020-05-14 11:30:32 +02:00
Dropzone.tsx Update from saleor/master 2019-08-09 13:14:35 +02:00
FormSpacer.tsx Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
Hr.tsx Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
LimitReachedAlert.tsx Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
Link.tsx Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
MenuToggle.tsx Use eslint instead of tslint 2019-12-02 16:33:58 +01:00
RequirePermissions.tsx Move fragments to avoid circular imports 2020-07-07 12:14:12 +02:00
Savebar.tsx Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
Skeleton.tsx Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00