Brett Sun
56044488d7
Replace mergeOptions with js-utility-belt's safeMerge
...
And avoid using safeMerge when a normal Object.assign() would do.
2016-06-14 17:57:59 +02:00
Brett Sun
a4216db6d9
Remove redundant '_utils' suffix in util file names
2016-06-14 17:57:57 +02:00
Brett Sun
b99782455e
Fix typo with whitelabel store's error handler
2016-06-07 14:56:39 +02:00
Tim Daubenschütz
960e16475b
Fix all occurrences of react/addons usage
...
Fixed also: cloneWithProps deprecation
2016-06-06 16:07:16 +02:00
Brett Sun
53ef5248ca
Merge pull request #71 from ascribe/AD-1387-improve-redundancy-of-notifications
...
AD-1387 Improve robustness of notifications
2016-05-27 11:33:47 +02:00
Brett Sun
26dde8a42c
Merge pull request #160 from ascribe/add-default-notifications-message
...
Discard (and log) global notifications that do not have a message specified
2016-05-27 11:33:39 +02:00
Brett Sun
874aad05b8
Use empty array as initial state of piece and edition list notifications
2016-03-10 13:08:05 +01:00
Brett Sun
4cd093aaa8
Ignore global notifications that do not contain a message
2016-03-10 12:45:21 +01:00
Tim Daubenschütz
5b79648385
Merge pull request #153 from ascribe/fix-digital-work-file-name
...
Fix digital work file name download
2016-03-03 10:05:13 +01:00
Tim Daubenschütz
e863349531
Refactor to comply with PR feedback
2016-03-01 12:55:27 +01:00
Brett Sun
57b1ef6b41
Hotfix revert on altUser for logging out on whitelabels
2016-02-09 09:40:27 +01:00
Brett Sun
8f2a93ff39
Revert "Remove altUser since the UserStore is now always being passed as a prop"
...
This reverts commit 325651b581
.
2016-02-08 17:49:11 +01:00
Brett Sun
a4292f09c3
Merge with master
2016-02-05 17:06:16 +01:00
Brett Sun
325651b581
Remove altUser since the UserStore is now always being passed as a prop
...
Also don’t recycle altWhitelabel on logout as the whitelabel stores
aren’t dependent on the user.
2016-02-05 13:12:58 +01:00
Brett Sun
826ca08073
Merge with master
2016-02-05 10:38:59 +01:00
Brett Sun
b24e66ed11
Fix logout not working properly after moving logic to UserStore
2016-01-18 19:14:34 +01:00
Brett Sun
1ffa1eb6aa
Fix potential race condition causing ProxyHandler to not evaluate its redirect functions if the component doesn't get updated
2016-01-13 16:03:08 +01:00
Brett Sun
19841ce6c4
Refactor EventActions and UserStore to more cleanly handle user authentication and log out events
2016-01-08 14:59:45 +01:00
Brett Sun
0f8094ef55
Merge pull request #69 from ascribe/AD-1346-hide-piece-registration-if-cant-submit
...
AD-1346 Hide piece registration if user cannot submit to whitelabel
2015-12-17 16:44:25 +01:00
Brett Sun
e81341269d
If fetching COA results in 404, created a new COA
2015-12-17 15:46:30 +01:00
Brett Sun
5ee3b07cc1
Revert "Hotfix for iOS Safari mergeOptions clashes"
...
This reverts commit 1b4c6938f6
.
The actual problem was the late loading of the polyfills.
2015-12-15 16:26:49 +01:00
Brett Sun
1b4c6938f6
Hotfix for iOS Safari mergeOptions clashes
2015-12-14 21:27:58 +01:00
Brett Sun
6cc9ce8094
Don't redirect to register piece and then to contract notifications
...
Avoids new user getting asked if they want to cancel registration of a
piece before they even agree to the Ikono contract.
2015-12-14 18:34:27 +01:00
Brett Sun
482fa51e9e
Finalize text changes
2015-12-10 18:56:19 +01:00
Brett Sun
b9e41d5cba
Use mergeOptions instead of Object.assign when merging sources to check for clashes
2015-12-10 15:42:33 +01:00
Brett Sun
b126de5c2d
Add empty object defaults to stores that use sources
...
Avoids inconsistent state where the store might set `null` or
`undefined` due to the server’s response
2015-12-10 15:41:55 +01:00
Brett Sun
90c75ca4c5
Change uploader error text
2015-12-09 17:08:47 +01:00
Tim Daubenschütz
057a278d19
In EditionStore use empty object instead of null as default state
2015-12-09 13:21:55 +01:00
Tim Daubenschütz
2a251897d5
Split EditionSource up into CoaSource and EditionSource
2015-12-09 13:18:07 +01:00
Tim Daubenschütz
03481f3b09
Fix bug: Old edition HTTP request holds loading data for new edition request
2015-12-09 13:04:15 +01:00
Brett Sun
e0b35e0a24
Merge with master
2015-12-08 20:55:13 +01:00
Tim Daubenschütz
e8d5e0390d
Improve robustness for server-side failing requests for COA
2015-12-08 17:38:04 +01:00
Tim Daubenschütz
2cc02d9599
Increase robustness of coa fetching routine
2015-12-08 14:18:31 +01:00
Tim Daubenschütz
da75353b00
Refactor Edition endpoints to create Coa on demand properly
2015-12-08 13:28:47 +01:00
Tim Daubenschütz
23556b1b4c
Merge pull request #34 from ascribe/add-pause-resume-to-global-notifications
...
Implement pause and resume functionality to global notifications
2015-12-07 17:22:02 +01:00
Tim Daubenschütz
2b6b78310c
Merge pull request #1 from ascribe/AD-1177-display-404-on-pieces-and-editio
...
AD-1177 display 404 on pieces and editio
2015-12-07 11:49:39 +01:00
Brett Sun
e69dfeb355
Revert "Merge with AD-1443"
...
Revert https://github.com/ascribe/onion/pull/40 , as that needs more
work.
2015-12-03 17:43:15 +01:00
Tim Daubenschütz
5a6c827f0b
Merge branch 'master' into AD-1177-display-404-on-pieces-and-editio
...
Conflicts:
js/components/ascribe_detail/edition_container.js
js/components/ascribe_detail/piece_container.js
2015-11-30 15:00:39 +01:00
Brett Sun
3d017392c1
Only use previous filterBy on refreshing edition lists if no filterBy argument was given
...
Also fix the behaviour of refresh using the list’s current length
rather than the previous page size.
2015-11-30 11:32:48 +01:00
Brett Sun
9b54a75e27
Bind ErrorQueueStore to ErrorQueueActions
2015-11-29 16:57:29 +01:00
Tim Daubenschütz
7146f00c05
Refactor webhooks: add source, clear state on create hide create on no items left
2015-11-27 13:36:42 +01:00
diminator
1c25f8e776
webhooks in settings without acl
2015-11-27 03:24:37 +01:00
Brett Sun
0d6b3710f7
Fix bugs in ErrorQueueStore and deepMatchObject()
2015-11-25 18:58:56 +01:00
Brett Sun
01e3fd5fcd
Add error queue store
...
Allows errors to be queued for showing to the user, such as in the
uploader’s error states.
2015-11-25 16:30:17 +01:00
Brett Sun
6649b7d7f1
Implement pause and resume functionality to global notifications
...
Also part of this change:
* Handle the notification cooldown periods using status changes rather
than emptying the queue
* Refactor how notifications are rendered
2015-11-21 19:23:20 +01:00
Tim Daubenschütz
efde22270c
Add error nullification in sources
2015-11-16 17:44:56 +01:00
Tim Daubenschütz
f8c923daec
Adjust naming for promise-based callback functions in sources
2015-11-16 17:16:13 +01:00
Tim Daubenschütz
ecdcbbc25e
Fix minor issue
2015-11-03 10:09:44 +01:00
Tim Daubenschütz
35e9bedf04
Convert WhitelabelFetcher to WhitelabelSource
2015-11-03 10:07:44 +01:00
Tim Daubenschütz
f0325f2473
Specify and applying naming conventions 📃 for source and store methods
2015-11-02 16:32:55 +01:00