Commit graph

131 commits

Author SHA1 Message Date
Kimmo Puputti
946cf7f53c Use Image variants instead of sizes 2018-04-16 12:28:43 +03:00
Kimmo Puputti
f5fb478166 Add comment about CSS custom properties being global 2018-04-11 15:59:22 +03:00
Kimmo Puputti
aa4b3e7fcc Prefix local CSS properties with component name
Since the CSS custom properties are defined in the :root, they will be
global when the variables are preserved in the output bundle. This
changes them to something globally unique.
2018-04-11 14:29:42 +03:00
Vesa Luusua
397b9be4b1 Fix test snapshot 2018-04-06 12:08:07 +03:00
Vesa Luusua
27cffb31da Fix back-to-checkoutpage-from-transactionpage bug 2018-04-06 12:08:07 +03:00
Hannu Lyytikäinen
65dfaf0207
Merge pull request #787 from sharetribe/svg-colors
Define svg colors in css
2018-04-02 10:23:58 +03:00
Vesa Luusua
598c3ab99e review changes 2018-03-28 23:32:49 +13:00
Vesa Luusua
b2fd6db90a convert dates to relevant API date / UTC moment 2018-03-27 01:47:30 -11:00
Vesa Luusua
180103f966 Fix old param change (no effect to functionality) 2018-03-27 01:47:29 -11:00
Hannu Lyytikainen
e9a45042e4 Define svg colors in css 2018-03-27 13:05:18 +03:00
Vesa Luusua
0ed1d879a5 Always add error info to Sentry logging 2018-03-16 12:10:07 +02:00
Kimmo Puputti
3877ef83f0 Log more info in tx handling errors 2018-03-05 10:08:26 +02:00
Kimmo Puputti
4f91b2aa9e Handle speculation errors properly in checkout
- Hide form if speculation failed
- Add specific error message for missing author Stripe account
- Add generic error message for other speculation errors
2018-02-28 09:55:47 +02:00
Vesa Luusua
7551fec85e Add notes about missing quantity prop when unitType is line-item/units 2018-02-02 16:20:37 +02:00
Vesa Luusua
b310613017 Refactor fetchSpeculatedTransaction to accommodate booking data easily if needed 2018-02-02 16:20:36 +02:00
Vesa Luusua
239eb1fad2 Enable passing booking data (like quantity, color) in addition to BookingDates 2018-02-02 16:20:36 +02:00
Kimmo Puputti
ed2319e781 Add helper to get denormalised entities from an SDK response 2018-01-19 15:30:12 +02:00
Kimmo Puputti
135a6dab7e Transition ref rename: preauthorize -> request 2018-01-11 14:43:43 +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
Kimmo Puputti
14763906c5 Make booking unit type configurable 2018-01-03 13:22:17 +02:00
Kimmo Puputti
683b989e1f Use propTypes instead of hardcoded transition string 2017-12-19 10:40:20 +02:00
Vesa Luusua
cbc1fcc05c TransactionPage 2017-12-15 02:10:34 +02:00
Kimmo Puputti
030e66c7d3 Send initial tx message from checkout 2017-11-09 13:51:34 +02:00
Kimmo Puputti
18a808b3b8 Payment form label and styles 2017-11-09 13:50:40 +02:00
Kimmo Puputti
27ea4a66f2 Allow adding a message in the StripePaymentForm 2017-11-09 13:50:39 +02:00
Kimmo Puputti
a09149d4c8 Add subheadings, fix baselines 2017-11-09 13:50:39 +02:00
Kimmo Puputti
14d9b0745d Remove heading from page (will be moved to the form) 2017-11-09 13:50:39 +02:00
Kimmo Puputti
d9ad1507f9 Call submit with an object that can be extended 2017-11-09 13:50:39 +02:00
sktoiva
9384638e2d Camel case current-user 2017-11-08 11:52:04 +02:00
Kimmo Puputti
8e82e95d9d Add UserCard component 2017-11-07 16:16:37 +02:00
Kimmo Puputti
807c5005ed Make avatars into links to the user profile page 2017-11-07 11:18:23 +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
Vesa Luusua
c1d111d11a CheckoutPage uses storableError func and correct proptype validation. 2017-10-18 18:13:10 +03:00
Kimmo Puputti
a996f154d1 Import PropTypes from the prop-types package 2017-10-17 09:50:22 +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
f1682b9021 CheckoutPage: import routeConfiguration and remove context.flattenedRoutes 2017-10-11 14:18:33 +03:00
Vesa Luusua
3a11c6b95c NamedLink: import routeConfiguration and remove context.flattenedRoutes
Add displayName
2017-10-11 14:18:32 +03:00
Kimmo Puputti
5da52521e1 Merge pull request #461 from sharetribe/add-info-about-too-low-tx-amount
Show specific error text when tx amount is too low
2017-10-04 15:05:06 +03:00
Kimmo Puputti
5fb5ce42ee Remove unneeded translation param 2017-10-04 14:59:42 +03:00
Kimmo Puputti
67acea907b Show a specific error when the tx amount is too low 2017-10-04 14:51:01 +03:00
Kimmo Puputti
b74ffebb3e Fix null handling 2017-10-04 14:50:41 +03:00
Hannu Lyytikainen
e1a820fa18 Add more extra data to log requests 2017-10-04 14:04:12 +03:00
Hannu Lyytikainen
b35658accb Remove log.duck.js 2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
2cfd3deaa1 Move clearUserId to Auth.duck.js
Clear user ID from the logger in logout thunk instead of the Topbar.

Also call dispatch logging function also as the last action of a thunk
function where possible.
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