Vesa Luusua
f7efde7baf
EditListingPage: use draft thunks and check listing draft state
2018-11-07 16:32:12 +02:00
Vesa Luusua
bbb08d75ee
EditListingPage.duck: create listing draft, publish listing draft.
...
Removing requestCreateListing and actions for storing local draft data to redux store.
2018-11-07 16:25:28 +02:00
Vesa Luusua
049f6a7f37
import lodash per file to reduce bundle size
2018-05-18 15:24:09 +03:00
Vesa Luusua
07635524ff
use image.upload instead of specific upload calls to profile and listing image
2018-05-15 16:25:23 +03:00
Kimmo Puputti
946cf7f53c
Use Image variants instead of sizes
2018-04-16 12:28:43 +03:00
Kimmo Puputti
d933c099e5
Add README.md docs for EditListingPage
2018-04-12 15:30:07 +03:00
Kimmo Puputti
85e29f3126
Remove trimming whitespace from listing description and user bio
2018-03-13 10:19:43 +02:00
Kimmo Puputti
b6010beb25
Use a shared var for the listing page variant
2018-01-31 11:22:34 +02:00
Kimmo Puputti
30ccb1e85b
Redirect to the correct URL if listing is pending approval
2018-01-31 10:46:01 +02:00
Hannu Lyytikäinen
88fbebadbd
Merge pull request #676 from sharetribe/edit-listing-features
...
Edit listing features
2018-01-30 15:38:50 +02:00
Vesa Luusua
a41f329cf4
bugfix: onUpsertListingDraft was working wrongly
2018-01-30 13:57:23 +02:00
Hannu Lyytikainen
65ef465d05
Override arrays when modifying listings
...
Adds a customizer function to be used with lodash's mergetWith funtion.
It works like normal merge but always replaces arrays whith the new
value instead of merging the two.
2018-01-29 14:36:20 +02:00
Vesa Luusua
3f0d3b5790
Review changes
2018-01-25 14:56:51 +02:00
Vesa Luusua
3b8c698959
EditListingWizard: smooth scroll to visible tab on mobile
2018-01-23 16:35:12 +02:00
Kimmo Puputti
059a161872
Use publicData attribute for custom metadata
...
- Store location in publicData
- Read location from publicData
- Store category to publicData
2018-01-22 13:47:10 +02:00
Mikko Koski
c8994c11ed
Review: Use generic getMarketplaceEntities instead
2018-01-18 12:58:33 +02:00
Boyan Tabakov
e2813fb346
Update to use current API endpoints for own listings
2018-01-18 10:05:20 +02:00
Kimmo Puputti
f0b955dc5b
Refactor propTypes module
...
- Rename types
- Collect propTypes within a named propTypes export
- Use named imports for easier refactoring and customisation later
- Rename sdk types to sdkTypes in imports to avoid confusion
2018-01-11 11:40:03 +02:00
Vesa Luusua
5c37ecdccd
Custom attributes: EditListingPage can handle customAttributes
2017-12-20 15:17:47 +02:00
Kimmo Puputti
6edac96811
Require scrollingDisabled prop
2017-11-03 13:12:24 +02:00
Kimmo Puputti
007e140afb
Remove logoutError prop from Page component
...
The logout error will be a flash message that the Auth duck sets for
the component that will be responsible for rendering the flash
messages.
2017-11-03 11:36:44 +02:00
Kimmo Puputti
ee51d0d9b2
Remove passing the removed authInfoError prop to Page
2017-10-23 16:27:06 +03:00
Kimmo Puputti
d07fd9f63d
Make TODOs about draft listings into generic comments
...
The API might not ever support saving unpublished/draft listings, so
no need to keep the TODO comments as tasks in the code.
2017-10-23 15:05:52 +03:00
Vesa Luusua
ff69b99908
EditListingPage and forms use storableError func and correct proptype validation.
2017-10-18 18:13:11 +03:00
Kimmo Puputti
a996f154d1
Import PropTypes from the prop-types package
2017-10-17 09:50:22 +03:00
Vesa Luusua
db1a9d4b61
Update test snapshots
2017-10-16 15:19:25 +03:00
Vesa Luusua
fbd88d0f75
TopbarContainer and bunch of pages were calling withRouter and connect in wrong order
2017-10-16 15:17:07 +03:00
Kimmo Puputti
90ab9c9a69
Format with latest Prettier
2017-10-13 10:11:51 +03:00
Kimmo Puputti
df02956579
Update snapshot files to the new Jest snapshot format
2017-10-12 14:09:03 +03:00
Kimmo Puputti
78de6d9d69
Disable deprecated proptype import lint error
2017-10-12 14:09:02 +03:00
Vesa Luusua
59f88b6467
EditListingPage uses TopbarContainer
2017-10-11 20:12:14 +03:00
Vesa Luusua
a1e8917b1c
EditListingPage: import routeConfiguration and remove context.flattenedRoutes
2017-10-11 14:18:34 +03:00
Hannu Lyytikainen
b35658accb
Remove log.duck.js
2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
de5ec59119
Add error codes
...
An error code can be passed to logger. This code gets added to the
Sentry error report as a tag and can be used to search this specific
error.
2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
3c4f20f2ad
Add log.duck.js
...
Logging requests from duck files can now be dispatched to a logging
thunk action that does not interrupt the application.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
e35628660c
Change the way util/log.js is imported
...
Always import the whole module when using util/log.js.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
f95702c313
Add error logging
2017-10-04 13:16:28 +03:00
Vesa Luusua
30578a65bc
Rename PageLayout to Page
2017-09-29 15:15:32 +03:00
Vesa Luusua
82f73a8016
Render more Helmet stuff
2017-09-29 15:15:31 +03:00
Janne Koivistoinen
524d6b0446
box-shadow fix
2017-09-28 11:23:43 +03:00
Janne Koivistoinen
869d3c2836
fixes for comments
2017-09-28 11:13:23 +03:00
Janne Koivistoinen
85592a4e9c
various fine-tuning fixes
2017-09-27 16:58:33 +03:00
Vesa Luusua
38a845e0f2
Topbar box-shadow removed with classes (earlier z-index thing was not right)
2017-09-26 15:43:31 +03:00
Kimmo Puputti
1814a0d960
Add proper inProgress and ready states for listing creation
2017-09-21 16:35:44 +03:00
Kimmo Puputti
7c8b51f258
Add in progress flag for listing creation
2017-09-21 16:34:17 +03:00
Kimmo Puputti
416d645e8a
Fix loading translation
2017-09-21 14:46:37 +03:00
Vesa Luusua
cda5042d28
PayoutDetailsForm can handle generic error
2017-09-20 14:08:55 +03:00
Vesa Luusua
6e1155dac7
Add currentUserHasOrders info to EditListingPage
...
Verification props to EditListingsPage
2017-09-14 12:52:41 +03:00
Kimmo Puputti
08139e3a5a
Trim listing description before saving to API
2017-08-18 08:16:33 +03:00
Kimmo Puputti
f80689fbb0
Merge pull request #345 from sharetribe/remove-listing-images
...
Remove listing images
2017-08-18 08:14:50 +03:00