Michał Droń
e90a2fd757
Remove submitting from exit dirty form modal ( #2820 )
...
* Remove submit from exit dirty form util
* Extract messages
* Change data-test-id attributes
* Add a unit test
* Change given when then to AAA
* Mock packages
* Change button click to user events
2022-12-16 15:54:41 +01:00
Dawid
bba95a8fb4
Extract "webhooks & events" to separate page ( #2818 )
...
* Extract "webhooks & events" to separate page
* Create separate /custom-app/ path for custom apps with webhooks
* Change all /webhooks/ paths to /custom-apps/
* Update messages
* Update generated graphql types
* Create findById util
* Refactor consts and resolvers for custom app urls
* Fix app graphql fragment
* Update Miscellaneous icon for Webhooks and Events
* Add tests for custom apps utils
* Fix dark-mode Miscellaneous icon for Webhooks and Events
* adjustments for autotests
Co-authored-by: karolm-saleor <karol.macheta@saleor.io>
2022-12-15 14:51:05 +01:00
Andrey Yolkin
6f55804978
Fixed: fixed typo 'Расродажи' in rebased ru.json ( #1999 )
...
thanks!
2022-12-13 13:06:40 +01:00
Lukasz Ostrowski
e06d3bdf0d
Improve dashboard and marketplace connection ( #2666 )
...
* Change env variables related to marketplace, add navigation item
* Change apps order
* Add button to browse marketplace
* Add redirect to Saleor Apps Marketplace on button click
* Move apps tabs state to URL
* Pass theme for initial marketplace iframe load
* Improve marketplace mount
* fix types
* fix cr
* Update env variables to disable marketplace on envs other than master staging
* Extract locales
* update snapshots
2022-11-30 17:20:20 +01:00
Wojciech Mista
9574e6a92c
Macaw UI update ( #2512 )
...
Co-authored-by: andrzejewsky <vox3r69@gmail.com>
Co-authored-by: timur <timuric@gmail.com>
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
2022-11-24 13:16:51 +01:00
Dawid
2e45f04802
Fix improper double attempt to get external access token ( #2504 )
...
* Fix improper double attempt to get external access token
* Update messages
* Add auth error types
2022-11-23 12:09:48 +01:00
Dawid
e1b3d5b4f3
Add names of attributes translations ( #2566 )
...
* Add names of attributes translations
* Support plain text attributes translation
* Fix translation field type
* Refactor attribute translations input data
* Refactor translation fields code
* Fix translation fields invalid skeleton display
2022-11-17 15:14:45 +01:00
Michał Droń
5c1a62171d
🦄 Simple taxes ( #2072 )
...
* Tax configuration - implement channels view (#2048 )
* Add channels view
* Fix channels view import
* Remove legacy stories references
* Fix link in configuration
* Update snapshots
* Remove sample checkboxes props
* Disable hover in country exceptions
* Update snapshots
* Extract country exception rows to seperate component
* Extract components to seperate files
* Remove duplicated section name
* Remove backlink
* Add translations to section names
* Extract messages
* Add ListItemLink component
* Replace navigator with link in TaxChannelsMenu
* Fix horizontal scroll in TaxChannelsMenu
* Change codegen to build from custom schema
* Build types
* Update fragments
* Add fixtures
* Change any to proper types
* Add story for tax channels page
* Replace MUI Skeleton with Saleor Skeleton
* Change clsx import to classnames
* Fix checkboxes shadows in settings card
* Update IDs in fixtures
* Fix offset in TaxChannelsMenu
* Update snapshots
* Remove any from TaxSettings
* Fix todos
* Change relative marginLeft to before pseudoelement
* Extract styles to seperate files
* Change folder structure
* Extract redirect logic to custom hook
* Update snapshots
* Fix comment
* Add early return in channels view
* Tax configuration - implement countries view (#2053 )
* Add channels view
* Remove sample checkboxes props
* Disable hover in country exceptions
* Extract country exception rows to seperate component
* Extract components to seperate files
* Remove duplicated section name
* Remove backlink
* Add translations to section names
* Replace navigator with link in TaxChannelsMenu
* Fix horizontal scroll in TaxChannelsMenu
* Change any to proper types
* Add story for tax channels page
* Replace MUI Skeleton with Saleor Skeleton
* Change clsx import to classnames
* Fix checkboxes shadows in settings card
* Update IDs in fixtures
* Fix offset in TaxChannelsMenu
* Remove any from TaxSettings
* Add countries list view
* Add TaxCountryMenu component
* Add CountryList page
* Change channels menu rows height
* Change countries menu rows height
* Add TaxInput component
* Add tax classes rates to countries page
* Fix search input padding
* Add minmax to TaxInput
* Add searching through tax class rates
* Extract messages
* Add better handlers
* Add fullWidth to TaxInput
* Specify type for TaxInputs
* Remove spinboxes on firefox
* Remove custom spinboxes
* Remove maxHeight from menu rows
* Post-rebase fix
* Change setter to formchagne
* Add TaxConfiguration fragment
* Add isDefault field to taxClass
* Add fixtures
* Shape data
* Replace useEffect with useTaxUrlRedirect
* Fix country names in menu
* Add country page story
* Add early return in countries view
* Unify loading states between channels and countries pages
* Handle special chars and case insensitiveness in local search
* Replace navigate function with ListItemLink
* Move styles to seperate file
* Move styles to seperate file
* Migrate to strict null checks
* Remove unnecessary optional chaining
* Change overflow scroll to Y only
* Add useMemo on finding selected country
* Add useMemo on local search
* Translate labels in page tabs
* Change url from /taxes/classes to /taxes/tax-classes
* Remove capitalization from strings
* Extract messages
* Bump macaw to 0.6.2
* Update snapshots
* Add spinboxes explanation comment
* Handle empty state
* Add tax classes view (#2093 )
* Add TaxClass fragment
* Build types
* Add tax classes to fixtures
* Add tax classes view
* wip Add tax classes page
* Add tax classes menu
* Add TaxRate fragment
* Extract logic
* Handle loading state & add story
* Extract messages
* Update snapshots
* Change schema building from schema back to introspection
* Update schema
* Update fragments
* Build types
* Update fixtures
* Reshape data
* Move styles to seperate file
* Use getById
* Add explicit undefined
* Comment out unfinished modal stories
* Update snapshots
* Taxes - add API calls in channels view (#2106 )
* Build types
* Add TaxRate fragment
* Update snapshots
* Add taxConfigurationList query
* Add taxCountriesList query
* Add TaxClassesList query
* Rename TaxConfigurationsList query
* Handle empty state
* Fix types post-rebase
* Add form to TaxChannelsPage
* wip Add dialog for handling country exceptions
* wip Fix dialog url
* wip Add update exceptions handlers
* Add dialog story
* Fix type errors
* Add mutation support
* Fix types in story
* Add transition state to submit button
* Add notifier
* Extract messages
* Remove unused import
* Add backlink in savebar
* Update snapshots
* Fix link in navigation
* Update snapshots
* Remove message from tax config error fragment
* Add hook description
* Use useStateFromProps
* Remove error handling
* Improve url & path function names
* Use theme.spacing in TaxCountryDialog styles
* Remove redundant key modification
* Revert "Use useStateFromProps"
This reverts commit d3c68b04701cf935e917d7baa3ed1361ca3446d5.
* Move initial map to parent & add open dependency to countries state
* Use useModalDialogOpen
* Fix state update
* Remove scrolls & add ellipsis in side menu
* Center checkboxes
* Update snapshots
* Add fake div for list alignment
* Trigger deployment
* Close modal on submit
* Remove divider on last ListItem
* Align add country button
* Wrap grid child in div to avoid card stretching
* Update snapshots
* Trigger changes in add/delete exceptions
* Trigger change on expcetion checkboxes
* Add trailing commas
* Connect countries view to API (#2178 )
* Add empty states
* Update countries view urls
* Remove unused import
* Add country modal to countries view
* Update schema
* Implement country view mutations & error fragments
* Implement tax class update mutation
* Add sidebar temporary state for new configs
* Remove unused imports
* Wrap in form
* Add savebar & fix search
* Update schema
* Add form wrapper
* Fix types
* Extract messages
* Bump macaw
* Update snapshots
* Fix comma dangles
* Update snapshots
* Notify about mutation success
* Add logic for mixing current and new rates
* Workaround for sending null rates
* Fix filling form with correct data after submitting
* Handle deleting configuration
* Fix selected banner
* Remove leftover comment
* Add handler for country configuration delete
* Trigger deployment
* Clean up useEffects causing infinite render loops
* Sort countries from api by name
* Fix card bottom padding
* Remove bottom divider & fix padding
* Remove scroll wrapper in side menu
* Update snapshots
* Remove scroll wrapper from tax classes menu
* Update snapshots
* Refresh form to initial onSubmit
* Revert "Refresh form to initial onSubmit"
This reverts commit 42414237d35086da63f4aa088c8072411429b1d8.
* Allow only 3 decimal characters in tax inputs
* Update snapshots
* Update schema
* Update types
* Change logic from default tax class to null class
* Fix sorting
* Send empty country rates as nulls in mutation
* Extract messages
* Update lockfile
* Update schema
* Drop default tax classes
* Update snapshots
* Post-rebase fixes
* Connect tax classes view to API (#2334 )
* Add mutations
* Handle empty state
* Wrap page in form
* Update stories
* Build types
* Handle tax class delete
* Handle update tax class
* Update stories
* Handle tax class change name
* Add mutation state to savebar
* Handle creating new tax classes
* Extract messages
* Specify type
* Update stories
* Sort rates
* Fix skeleton rendering
* Remove placeholders
* Fix skeleton rendering on country list
* Update snapshots
* Change initial pagination to 100
* Disallow creating multiple new tax classes
* Disallow creating multiple country configurations
* Fix messages
* Autofocus on new tax class name
* Add country name to header
* Temporarily comment out broken code in tax channels
* Update snapshots
* Update snapshots post-rebase
* Add tax strategies & assigning tax classes (#2369 )
* Update fragments
* Add optional merging in useForm
* Handle tax strategies
* Update snapshots
* Update fixtures
* Extract messages
* Remove unused shop query fields
* Fix breaking bug when fetchMore is used in non-searchable SingleAutocompleteSelectFields
* Migrate product types to tax classes
* Add tax classes to shipping methods
* Use encapsulated logic in product types
* Fix product type stories
* Fix shipping fixtures
* Fix product type type mismatch
* Fix shipping stories
* Fix product type fixtures
* Fix mismatching types
* Extract messages
* Update snapshots
* Update snapshots
* Fix comment
* Drop deprecated graphql fields
* Replace tax types with tax classes in product create view
* Replace tax types with tax classes in product update view
* Fix tests, stories, fixtures
* Extract messages
* Update snapshots
* Move status messages to commonStatusMessages
* Handle empty array case in tax class change handler
* Reuse messages
* Simple taxes bugfixes (#2395 )
* Fix tax channels menu - dense layout
* Change view names to fit convention
* Fix per country exceptions in tax channels view
* Fix skeleton rendering on tax countries card title
* Filter out existing countries from modal
* Update snapshots
* Fix deleting country configuration
* Disallow negative values in tax inputs
* Handle empty tax classes view
* Allow empty options in shipping & product types views tax class assignment field
* Modify undefined rates in tax classes view
* Update macaw-ui
* Fix UI on channels view
* Fix UI on countries view
* Fix UI on countries view
* Align tax class rate label to the right
* Updaste snapshots
* Extract messages
* Fix adding rates on new tax class
* Fix key errors
* Update schema
* Build types
* Allow empty rates in taxClassUpdate mutation
* Extract tax channels change country function as a handler
* Deprecate useStateFromProps
* Change useStateFromProps to useStateUpdate
* Fix dividers
* Delete delete icon on new tax classes
* Update snapshots
* Update lockfile
* Update macaw to 0.6.6
* Update snapshots
* Specify type of input in country change handler
* Extract autofocus logic to custom hook
* Replace alternative with switch statement
* Extract country exclusion logic from JSX
* Update lockfile
* Update lockfile
* Trigger deployment
* Fix invisible select markers
* Fix linter issue
* Fix crashing product details page
* Fix e2e error
* Update snapshots
* Allow view taxes with any staff permissions (#2510 )
* Update after rebase
Co-authored-by: Dawid <tarasiukdawid@gmail.com>
2022-11-17 13:48:50 +01:00
Dawid
7fd2eb2a2c
Revert "Add names of attributes translations ( #2433 )" ( #2531 )
...
This reverts commit 796383637c
.
2022-11-07 12:20:58 +00:00
Dawid
796383637c
Add names of attributes translations ( #2433 )
...
* Add names of attributes translations
* Support plain text attributes translation
* Fix translation field type
* Refactor attribute translations input data
* Refactor translation fields code
* Fix translation fields invalid skeleton display
2022-11-04 11:11:47 +01:00
Michał Droń
7387019288
Use single price value instead of range in product list ( #2386 )
...
* Render single value when amount of money is matching
* Use Intl.NumberFormat in money formatting
* Extract messages
2022-11-02 12:20:25 +01:00
Patryk Andrzejewski
c009f07581
DataGrid full-screen mode ( #2453 )
...
* full screen mode
* add product title, review
* update snapshots
* Update messages
2022-10-27 17:26:09 +02:00
Krzysztof Żuraw
3c63b0baf1
Display all error messages on new-password page ( #2410 )
2022-10-26 12:12:37 +02:00
Dawid
158188002a
Update React to 17 and related packages ( #2370 )
...
* Update React to 17
* Update types for React 17
* Update references in useEffect cleanup functions
* Update react-error-boundary
* Update react-inlinesvg
* Update Apollo Client and Upload Link
* Update apollo-upload-client types
* Fix comment about csstypes
* Downgrade apollo-client version due to log-in bug
* Add missing apollo link
* Update package-lock version
* Fix button type
* Fix datagrid test after react update
* Fix polish language letter bug
2022-10-24 11:49:11 +02:00
Lukasz Ostrowski
7a20c12d22
remove dead link ( #2435 )
2022-10-21 15:16:36 +02:00
Lukasz Ostrowski
d67e4799b2
Apps tabs ( #2380 )
...
* Add tabs to apps page
* Detect app in tunnel
* Disable manifest install if Saleor Apps context
* Show only app origin instead full manifest
* Add copy manifest feature
* Update tests
* Add ENV with marketplace endpoint for fetching saleor apps
* Fetch Saleor apps for Marketplace and display them in the tab, otherwise hide
* Code review fixes
* Extract translation messages
* Update tests
2022-10-20 13:35:31 +02:00
Dominik Żegleń
31e0c11fea
New datagrid view for product variant management ( #2162 )
...
* New datagrid view for product variant management (#2040 )
* Split simple and product with variants updates
* Simplify code
* Change selectedVariantsIds to availableVariants
selectedVariantsIds suggested that these variants *were just* selected
* Add datagrid component
Add datagrid component
Add actions column
Add column picker
Add ts-ignore comment
Remove unused import
Fix after rebase
Add story
Fix column picking
Fix column dragging
Add column resizing
Extract components to own files
Apply styles from class
Improve data storage
Extract state to hook
Expose handlers
Fix styles
Fix header overflow
Add select all option
Add cell types
Fix types
Add number type cell
Add min to stocks
Fix types
Generate columns from shop data
Add number type editor
Fix tests
Update src/components/Datagrid/Datagrid.tsx
Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>
Reconstruct data after column toggling
Minor fixes
Add missing id
Remove unused import
Fix container width
Keep changes in state
Drop onChange usage
Use glide datagrid
* Add column picker
* Memoize callbacks
* Add right toolbar
* Make toolbar as prop
* Clean up code
* Fix styling
* Lint files
* Save variant data in datagrid (#2161 )
* Allow rows to be deleted
* Add row adding
* Clean up code
* Improve mutations
* Add stock saving
* Add sku and attribute saving
* Display notification after all mutations
* Fix types
* Save channels in datagrid (#2197 )
* wip
* Merge simple and variantable handlers
* Move channel setting to form
* Link availability card to form
* Extract listing management to hook
* Update only touched channels
* Improve channel listing managemend
* Display channel data in datagrid
* Save variant channels
* Save changes in channel listings
* Group columns
* Fix types
* Display touched fields
* Return errors from hook
* Display errors in cells
* Improve naming
* Improve naming
* Use reliable called/loading state
* Update src/components/Datagrid/cells.ts
Co-authored-by: Michał Droń <dron.official@yahoo.com>
* Apply fixes from review
Co-authored-by: Michał Droń <dron.official@yahoo.com>
* Fix type error
* Trigger CI
* Trigger CI
* Save added and deleted variants (#2237 )
* Save new variants
* Update channel data
* Remove bulk variant delete dialog
* Do not fetch products from api after save
* Extract types
* Reset errors after api response
* Display error when creating variants
* Fix variant reordering
* Remove commented code
* Fix imports
* Edit attributes in datagrid (#2305 )
* Add basic dropdown cell
* Fix clickaway
* Add choice customization
* Add callback to fetch choices
* Add attriute value search
* wip
* Pass getSuggestions cb using props
* Fix row adding
* Fix choice creation
* Add styles to datagrid (#2315 )
* Improve cell styling
* Prevent navigation when scrolling horizontally
* Fix text editor styles
* Remove unused variable
* Update whole row after editing cell
* Translate column names
* Improve empty message
* Highlight newly created rows
* Add name editing
* Add disabled context menu to added rows
* Add column groups
* Translate column groups names
* Save edited name
* Fix missing column id error
* Add card to datagrid
* Improve shadow on scroll
* Improve fonts
* Fix toolbar placement
* Update api type definitions
* Fix copypasting from excel
* Fix editor font weight
* Improve dark theme
* Improve cell coloring
* Drop styling from story
* Add docs to datagrid (#2339 )
* Add docs
* Add summary
* Datagrid fix bugs (#2341 )
* Pass refetch to form to avoid double calls
* Add missing prop
* Remove paddings (#2352 )
* remove paddings
* remove paddings
* remove paddings
* remove vertical scroll
* update tests
* styles, currency
* Fix variants tests in datagrid (#2365 )
* refactor variant test after adding datagrid
* adding assertion to check if datagrid table is visible
* adding check for datagrid
* fix flaky tests in variants
* fix flaky tests in variants
* small changes
* amedments
* update styles
* refactoring, handle prices
* update snapshots
* messages
* snap
* scrolling handle, css for safari
* snap, random mock
* update overflow
* history back hook
* fix cross-price changing, scroll optimization
* trigger ci
* channel checking when adding new variant
Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
2022-10-18 11:10:15 +02:00
Lukasz Ostrowski
1fb4479058
Add quick app install from manifest ( #2378 )
...
* Create a button that navigates to app install page
* Add translations keys
* Extract messages
* Change type literal to enum
* Update snapshots
2022-10-13 17:13:08 +02:00
Dawid
43fb52bc56
Enable save button on page pages ( #2325 )
...
* Enable save button on page edit pages
* Update e2e page create tests
* Update page create tests snapshots
* Update changelog with enable save button
* Update messages of pages views
* Update page details messages
2022-10-04 16:02:17 +02:00
Michał Droń
ed59fe423f
Fix message in voucher view ( #2338 )
...
* Fix message
* Extract messages
* Update snapshots
2022-10-03 11:41:00 +02:00
Dawid
6738467304
Handle form errors before product creation ( #2299 )
...
* Handle form errors before product creation
* Update e2e product create tests
* Handle channel errors in product update
* Update changelog
* Fix invalid values of product type picker
* Refactor product create utils
* trigger ci
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
2022-09-23 14:15:59 +02:00
Patryk Andrzejewski
ae9b7b31dc
Add UI to enable channel listing in variants view ( #2303 )
...
* syncg
* manage channels modal, price editing
* fix typings
* fix typings, splitting components
* fix typings, splitting components
* update snapshot
* update types
* update messages
* use toggle
* update e2e tests
* update messages
* add manage button to edit page
* add manage button to edit page
* re-organize components
* update modals
* fix toggle all
* cover scenario when we have no channels
2022-09-22 12:00:13 +02:00
Dawid
61fe80bb7a
Fix no product error on unconfirmed order lines ( #2324 )
...
* Fix no product error onunconfirmed order lines
* Update changelog with fix no product error
2022-09-22 11:03:21 +02:00
Michał Droń
b7a809f1fc
Improve error page message ( #2287 )
...
* Change error page content message
* Extract messages
* Update snapshots
2022-09-13 15:42:13 +02:00
Michał Droń
a989996b1f
Remove product type from product name cell in product list ( #2283 )
...
* Remove simple/configurable info from product list
* Update snapshots
* Remove unused import
* Extract messages
* Trigger deployment
2022-09-13 15:41:46 +02:00
Michał Droń
19d5e7e71d
Add product variant reference attribute ( #2268 )
...
* Handle variant references
* Update schema & types
* Update changelog
* Extract messages
* Fix handlers
* Update schema
* Build types
* Update types
* Improve assign reference value modals
2022-09-13 12:07:41 +02:00
Dominik Żegleń
4ee5eb7795
Fix fulfillment page if not tracking stock ( #2290 )
...
* Fix fulfillment page if not tracking stock
* Update snapshots and messages
2022-09-07 16:08:41 +02:00
Michał Droń
c1185198f5
Payment status card improvements ( #2222 )
...
* Change table layout to flexbox
* Move taxes before total
* Move discounts above subtotal
* Add type to util function
* Remove maybes
* Improve discounts
* Change taxes message
* Make font smaller
* Query total balance in order details
* Use totalBalance from api
* Show refunded when more than 0
* Make taxes grey
* Delete unused import
* Update fixtures
* Update snapshots
* Extract messages
* Move styles to seperate file
* Fix refunded amount
* Add settled message for zero balances
* Change payment status to payment balance
* Update snapshots
* Fix messages post rebase
2022-09-01 13:47:13 +02:00
Michał Droń
6789b73f00
Fix saving permission groups ( #2239 )
...
* Allow saving regardless of membersChanged value
* Fix in-place sorting on readonly value
* Fix capital letter in button message
* Update snapshots
* Fix stories
* Remove unused import
2022-08-29 13:37:42 +02:00
Dawid
e610aefcfa
Add allocation strategies with sortable warehouses ( #2258 )
...
* Add allocation strategy options in channel view
* Update schema with channel allocation strategy
* Reorder channel warehouses after channel saving
* Refactor and clean code of allocation strategy options
* Update schema with allocation strategy
* Trigger CI
* Update allocation starategy options UI
* Update allocation strategy messages
* Trigger CI
* Fix shipping zones and warehouses cards style
* Fix message
* Fix snapshots
Co-authored-by: Michał Droń <dron.official@yahoo.com>
2022-08-29 13:35:55 +02:00
Dawid
df55dba571
Update product and page default availability settings ( #2165 )
...
* Update product and page default settings
* Update product and page test snapshots
* Update product create errors handling
* Fix preselected publication info of product with variant without any channel listing
* Update package lock file
* Fix page publication state and its date on page view
* Update page tests
2022-08-22 14:53:17 +01:00
Dawid
eea1ba235f
Remove bulk variant creator ( #2179 )
...
* Remove bulk vaariant creator
* Update variant test snapshots
* Update variant E2E tests
* fixed test for products variants (#2187 )
Co-authored-by: Karolina Rakoczy <rakoczy.karolina@gmail.com>
2022-08-10 11:29:17 +01:00
Dawid
6fdec6e5f1
Update simple product availability card ( #2144 )
...
* Update simple product availability card
* Update channel availability messages
2022-08-10 10:15:01 +01:00
Dawid
f01966f0d4
Handle errors on finalizing draft order ( #2191 )
...
* Add warning alert before finilizing draft order
* Add line error indicators in draft order view
* Handle unfilled fields errors before draft order finalize
* Handle draft order line errors
* Differentiate line alert severity
* Fix order line alert margin
* Remove unnecessairy comment
* Refactor order draft alert components
* Update order draft test snapshots
* Refaactor order details code
* Hide add products button when no products available on order draft page
* Hide no shipping methods warning if they cannot be determined
* Update product assignment dialog messaages
* Update order channel error messages
* Fix missing order lines in error crash
2022-08-10 10:11:32 +01:00
Dawid
2c97b2da41
Move fulfillment warehouse selection to fulfilll page ( #2199 )
...
* Move order fulfillment warehouse selection to fulfill page
* Use modal to select warehouse on fulfill order page
* Remove tracking number input from fulfill order page
* Update visual structure of fulfill order page
* Fix fulfill order page styles
* Update order fulfill utils
2022-08-02 14:57:18 +02:00
Dawid
3a85027934
Fix variant details/create page sidebar ( #2180 )
2022-07-29 18:45:52 +02:00
Carles López Magem
437a2130eb
Menu item translations ( #2181 )
...
* [Feat] Added MenuItem translations
* [Feat] Added MenuItem translations
* Stories snaps
* max
2022-07-26 11:12:02 +02:00
Dawid
62c9f10f64
Add plain text attribute ( #2121 )
2022-07-19 16:16:43 +02:00
Wojciech Mista
ef3c7a203b
Add Marketplace preview label ( #2107 )
...
* Add preview pill to marketplace view
* Update messages
* Remove marketplace
* Add margin
2022-07-19 10:41:49 +02:00
Dawid
ab8111a62d
Add status pills to webhooks list ( #2153 )
2022-07-13 13:12:58 +02:00
Dawid
f1ffb5093f
Add assign warehouse section in channel page ( #2127 )
...
* Add assign warehouse section in channel page
* Update data-test-ids on channel page
* Update channel page form details
* Update shipping zones and warehouses cards in chaannel page
* Assigning warehouses by channel in product and variant pages (#2135 )
* Assigning warehouses by channel in product and variant pages
* Disable warehouse assignment when no channel on variant page
* Update products stocks section messages
2022-07-11 11:43:08 +02:00
Dawid
eff15075d4
Add transaction events to order history ( #2138 )
2022-07-08 12:14:42 +02:00
Michał Droń
a54fc0396b
Deprecate secret key in webhooks ( #2119 )
...
* Add deprecated message
* Extract messages
* Add deprecated pill to webhook secret key
* Update snapshots
* Move extra info to pill toolbar
* Extract messages
* Update snapshots
* Remove preventDefault
* Open link in a new tab
* Update snapshots
* Fix linter issue
* Make webhooks active by default when creating new ones
* Update snapshots
2022-07-07 10:29:33 +02:00
Wojciech Mista
c922dfb6fe
Application Marketplace available in dashboard ( #2054 )
...
* Add marketplace
* Update messages
* Extract styles
* Update test env
* Update config and rename uri
* Update template
* Trigger CI
* Possible fix
* Update deploy yml
* Add marketplace to staging
* Fix responsiveness
* Trigger CI
* Fix navigation tests (#2081 )
* fix navigate through shop
* wait for progress bar not to exist
* simplify code
* add wait
* Fix navigate through shop (#2076 )
* fix navigate through shop
* wait for progress bar not to exist
* simplify code
* Refine App about section (#2056 )
* Trigger CI
* Trigger CI
* Trigger CI
* Trigger CI
* Fix app activation/deactivation
* Hide configuration url and policy if theres none
* Remove about and support links
* Remove unused code
* Update stories and tests
* Update messages
* Fix privacy policy
* Fix activation and "open app"
* Update tests
Co-authored-by: Karolina Rakoczy <rakoczy.karolina@gmail.com>
2022-06-08 08:44:28 +02:00
Jonatan Witoszek
5138608f86
Apps list page enchancements ( #2035 )
...
* Remove marketplace from Apps list
* Move apps in progress to bottom
* Remove pagination from InstalledApps
* Add apps permissions tooltip
* Activate/deactivate InstalledApps from list
* Add changes description to CHANGELOG
* Update package.json to include macaw required changes
* Upadte fixtures
* Rename Local Apps -> Third Party Apps
* Update macaw, fix TS errors
* Refactor AppPermission component to use permission fragment
* Add fragment for app list query, refactor InstalledApps props type
* Fix check for usage within context inside useAppListContext
* Remove redundant errors check in mutation hooks inside AppsList
* Update extracted messages
* Fix AppListPage stories failing
* Fix Tooltip not working in failed installed apps
* Update messages
2022-05-31 17:18:15 +02:00
Jonatan Witoszek
a113c9202f
Update voucher creation text for "Only once per order" ( #2059 )
...
* Update voucher creation text for "Only once per order"
* Update snapshots
2022-05-25 10:53:19 +02:00
Jonatan Witoszek
1e38c14116
Use links instead of onClick navigate function ( #1969 )
...
Add links instead of navigate + onClick in:
* Lists - ex. product list (except Plugins, see below)
* SortableTables - ex. product variants
* Sidebar
* Buttons that open new page - ex. "Create product"
* Backlinks
* Menus - ex. "Account Settings"
* Links that actually used onClick - ex. warehouse shipping zone, reset password
2022-05-06 10:59:55 +02:00
Dominik Żegleń
7d9441a7ec
Use esbuild-loader ( #1983 )
...
* Minor fixes for intl messages
* Add esbuild-loader
* switch from babel to esbuild-loader
* use formatjs enforce-id linter
* Generate ids for intl messages
* id format defined by idInterpolationPattern
* Modify intl messages extraction
* remove react-intl-translations-manager
* remove transpile-tx.js
* use formatjs cli
* Modify defaultMessages.json
* modify ids in defaultMessages.json with defined idInterpolationPattern
* Fix errors
* Fix page crash
* Use babel to transpile tests
* Fix useStateFromProps
* Improve render count
* Add test to useStateFromProps
* Fix reloading state buh
* Do not check if form with channels is dirty
* Stop blocking save if form has not changed
* Remove debug code
* Fix form disabling
* Fix variant selection checkbox onClick
* Update translations
* Update messages
* Use esbuild to build storybook
Co-authored-by: Bartłomiej Wiaduch <tukan2can@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2022-05-05 09:54:28 +02:00
Michał Droń
6cf148c4c3
Fulfillment creation refactor ( #1896 )
...
* Create change warehouse dialog (#1850 )
* Add allocations & variant stocks to order details query
* Add asc sorting to warehouse search query
* Add OrderChangeWarehouseDialog component
* Add key to warehouse list in dialog
* Update snapshots
* Remove debug directive
* Remove IDs from messages
* Fix typo in method name & extract messages
* Add quantity to allocations in order details query
* Add types to functions
* Move functions to local utils file
* Add utility type WithOptional
* Fix warehouse types
* Change multiple items unavailable message name
* Fix fetching onScroll
* Fix types in utils
* Add backdrop click support
* Add id to stocks and allocations
* Change unavailableLines from .map to .filter
Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com>
* Fix linter issue
Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com>
* Refactor order cards headers (#1875 )
* Add keys to TableLines
* Bump macaw
* Move & rename CardTitle used in Cards with order lines
* Improve OrderCardTitle typography
* Replace StatusLabels with CircleIndicators
* Fix card title divs placement
* Add warehouse selection button to OrderUnfulfilledCard
* Fix fulfill button placement
* Update snapshots
* Make warehouse in order details view optional so that it works with uncofirmed orders
* Fix undefined lines in warehouse dialog
* Fix spacing in warehouse change button
* Fix macaw dependency
* Bump macaw-ui
* Extract messages
* Implement default warehouse selection logic
* Move CircleIndicator render condition to wrapper
* Fix failing reduce on orders with no lines
* Improve warehousesAvailable early return
* Drop counter in favor of filter().length
* Fix tests post-rebase
* Refactor fulfillment details page (#1915 )
* Add shipment information card
* Refactor multiple warehouse fulfilling to one warehouse
* Fix fulfill button navigation
* Remove redundant code from OrderFulfill view
* Fix OrderFulfill story
* Move styling to seperate file & remove unused classes
* Replace colQuantityTotal class with colStock
* Add warehouse label under page header
* Fix preorder cases
* Change default values to maximum
* Simplify logic
* Add badge for preorder & deleted variant cases
* Remove unused data
* Add yellow outline for exceeding stock
* Fix failing tests
* Extract messages
* Fix tests post-rebase
* Add support for tracking number
* Block fulfilling no items
* Fix deleted variant order details bug
* Fix preorder & deleted variant cases
* Update snapshots
* Remove redundant import
* Fix linter issue
* Extract fulfillment lines as separate component
* Fix types
* Export styles & messages to seperate files
* Simplify formset changes
* Fix warning input styling
* Fix shouldEnableSave for overfulfillment cases
* Simplify preorder rendering
* Move empty line rendering
* Change Warehouse prop to just id of it
* Add endAdornment for deleted variant cases
* Update snapshots
* Fix linter issue
* Extract messages
* Fix incorrect operator precedence resulting in NaN values
* Extract fulfillment lines to fragment
* Replace nested types with fragment type
* Match fragment names
* Update snapshots
* Create exceeding stock confirmation dialog (#1970 )
* Cherry-pick OrderFulfillStockExceededDialog
* Fix types to graphql-codegen
* Unify names in OrderFulfillStockExceededDialogLines
* Fix types in OrderFulfillStockExceededDialogLines
* Fix types in util
* Change utils for usage with single warehouse context
* Refactor OrderFulfillStockExceededDialogLine for usage with single warehouse context
* Fix deleted variant cases in OrderFulfillStockExceededDialogLine
* Include only exceeded lines
* Display stock exceeded dialog on error
* Add confirm button state
* Change fixed height in OrderFulfillStockExceededDialog to responsive
* Extract messages
* Move initial form data after interfaces
* Change nested type to fragment
* Reuse logic
* Remove unused import
* Remove redundant isStockError
* Remove unused imports
* Fix minor bugs in fulfillment creation refactor (#1972 )
* Fix unfulfilled card header quantity calculation
* Fix formset default value for deleted variants
* Update snapshots
* Fix default warehouse selection in order draft (#1971 )
* Fix default warehouse selection
* Replace Skeleton with circular progress
* Reuse logic
* Reuse logic
* Apply CR fixes
* Remove unused imports
* Fix canceled order header status
* Update snapshots
* Revert CircularProgress & change to Skeleton
* Change complex types to fragments
* Extract default warehouse logic to hook
* Fix linter issue
* Remove type assertion from OrderFulfillPage story
* Handle exceeding stock fulfillment approvals (#1988 )
* wip Add OrderFulfillStockExceeded modal for fulfillment approvals
* wip Fix types & imports
* wip Fix union typing in stock exceeded dialog for both views
* Add allowStockToBeExceeded flag on submit
* Fix lines keys in FulfilledCard
* Remove redundant import
* Extract attributes caption function
* Use getById util
* Fix deleted warehouse cases in approvals
* Fix typo
* Fix styling for long warehouse names (#2019 )
* Fix styling in change warehouse dialog
* Fix styling in warehouse selection button
* Add extra margin in button
* Update snapshots
Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com>
2022-04-29 11:16:58 +02:00
Dominik Żegleń
8fc48eb5f2
Allow all attributes to appear in grid in PLP ( #1933 )
...
* Remove unnecessary attribute filtering
* Enable all attribute types to be displayed in plp
* Improve attribute rendering in plp
* Remove obsolete filters
* Add story
* Rmove dashboard settings section
* Update snapshots
* Remove unused import
* Add column search
* Fix type
* Update messages
* Allow popper to appear on top of select
* Update snapshots
* Update label
* Use autocomplete from macaw
* Fix stories
* Remove unused imports
* Update macaw
* Update message
* Update messages and snapshots
2022-04-28 10:43:05 +02:00