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
e5a62a24ef
Improve logging
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
3a4e420ea4
Add log.duck.js to ducks index.js file
...
Also remove unused parameter from logError thunk function.
2017-10-04 13:16:28 +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
8520edd1d2
Fix logging errors
...
Fix cases where wrong (kind of) data is passed to the logger.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
9977e9a5a3
Remove transition keys
...
Instead use the common ones from util/propTypes.js.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
9c286cceec
Remove image read error logging
...
Instead of logging the error to Sentry print it to console.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
d56c17b887
Change invalid commission error logging
...
In case of an invalid commission, only pass the transaction id as extra
data to the logger.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
09f4fc9b9d
Improve comments for Sentry client setup
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
a75615707b
Remove Sentry config from logger setup functions
...
The Sentry DSN key and environment are read from environment
parameters/config in the logger modules.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
f95702c313
Add error logging
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
796bf17c93
Add user id to logger
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
5bf9d0f072
Send errors to sentry
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
1882e25d00
Equalize logger setup in server and browser
...
Set up logger in the server side with the same parameters as in the
browser and clean the environment variables out of the server/log.js
file.
Code commenting improved.
2017-10-04 13:15:10 +03:00
Hannu Lyytikainen
81e945eae3
Add error logging for BookingBreakdown
2017-10-04 13:12:47 +03:00
Hannu Lyytikainen
e37a0be42a
Add Sentry integration to the browser application
2017-10-04 13:11:50 +03:00
Hannu Lyytikäinen
251e0b2beb
Merge pull request #460 from sharetribe/manage-listings-title-plurality
...
Add plurality to manage listings title
2017-10-04 13:09:56 +03:00
Hannu Lyytikainen
8bb4f2d903
Add plurality to manage listings title
2017-10-04 12:53:55 +03:00
Kimmo Puputti
ba3b61ac29
Try to keep auth info up to date when fetching current user
2017-10-04 11:36:02 +03:00
Kimmo Puputti
812ee891ea
Merge pull request #457 from sharetribe/notfound-page
...
404 not found page content and styles
2017-10-04 09:53:30 +03:00
Kimmo Puputti
c7238e9a50
Change flex to flex-grow to be more explicit
2017-10-03 15:38:56 +03:00
Kimmo Puputti
e86f04fc92
Add NotFoundPage content and styling
2017-10-03 15:06:23 +03:00
Kimmo Puputti
dcb8396af4
Add modal title styles
2017-10-03 14:57:59 +03:00
Kimmo Puputti
5dc0658ee5
Fix component name in translation key
2017-10-03 14:57:34 +03:00
Janne Koivistoinen
6da8149b67
firefox fix for the svg spinner
2017-10-03 14:09:45 +03:00
Kimmo Puputti
7b0db4e35f
Merge pull request #455 from sharetribe/validate-email-addresses
...
Validate email addresses
2017-10-03 12:44:46 +03:00
Vesa Luusua
f9b50617e0
Update tests
2017-10-03 12:16:30 +03:00
Vesa Luusua
59d0f718cf
SaleDetailsPage needed correct imageWrappers (and aspect wrappers)
2017-10-03 12:14:59 +03:00
Vesa Luusua
de7d822a2e
OrderDetailsPage needed correct imageWrappers (and aspect wrappers)
2017-10-03 12:14:59 +03:00
Kimmo Puputti
e544ea8692
Validate email address format in email inputs
2017-10-03 11:28:32 +03:00
Kimmo Puputti
a897c71afd
Add validator for email address format
2017-10-03 11:26:59 +03:00
Vesa Luusua
91251bd26c
Send 200 or 401 from server side on auth=true pages
2017-10-02 17:19:11 +03:00
Kimmo Puputti
2de579c325
Fetch notifications based on last transition
...
As the transaction state was removed from the API, also filtering by
state was removed. This changes the tx query to use the new API param
for filtering by last transition to get the notification count for the
user.
2017-10-02 16:22:51 +03:00
Kimmo Puputti
d9996c9084
Use the current state filtering until API is changed
2017-10-02 16:05:06 +03:00
Kimmo Puputti
da7f2e686d
Use ensureTransaction instead of something similar manual
2017-10-02 16:04:43 +03:00
Kimmo Puputti
df9bd83e80
Use tx state helpers in Inbox
2017-10-02 15:50:38 +03:00
Kimmo Puputti
449d47b199
Rebase to changed listing shape
2017-10-02 15:50:38 +03:00
Kimmo Puputti
fa359f0826
Add breakdown examples for all provider tx states
2017-10-02 15:50:38 +03:00
Kimmo Puputti
3bcb461842
Use createBooking helper
2017-10-02 15:50:38 +03:00
Kimmo Puputti
24afaa1794
Use tx state helpers
2017-10-02 15:50:38 +03:00
Kimmo Puputti
234aeb342a
Use tx state helpers
2017-10-02 15:50:38 +03:00
Kimmo Puputti
9ba1f4ecee
Fix autorejected handling to match rejected handling
2017-10-02 15:50:38 +03:00
Kimmo Puputti
1a7f74f765
Add tx state helpers
2017-10-02 15:50:38 +03:00
Kimmo Puputti
b28d0a9528
Add snapshot for each tx state in sale panel
2017-10-02 15:50:38 +03:00
Kimmo Puputti
176b6fe9bb
Add snapshot for each tx state in order panel
2017-10-02 15:50:38 +03:00
Kimmo Puputti
ddb02dd059
Add test for rejected/autorejected tx transitions
2017-10-02 15:50:38 +03:00
Kimmo Puputti
0c7b8ca355
Use transaction lastTransition instead of state
2017-10-02 15:50:38 +03:00