Ben Wheeler
bbf211a106
corrected error messages that wrongly mentioned session
2019-12-05 22:59:13 -05:00
picklesrus
25620053c8
Merge pull request #3537 from picklesrus/join-flow-launch
...
Roll out new Join Flow.
2019-11-15 13:26:52 -05:00
picklesrus
5b351b6515
Roll out new Join Flow.
2019-11-15 11:28:10 -05:00
picklesrus
378cebe5f4
Take user to the homepage when finishing the join flow (unless they came from the editor). There is replication lag that makes creating a project immediatley a bad experience. We'll fix this in a followup.
2019-11-15 11:23:54 -05:00
Ben Wheeler
cd5f3b5437
change method of redirecting user to join flow page
2019-10-18 11:53:31 -04:00
Ben Wheeler
d4676ec990
redo navigation reducer to handle registration request with single action
2019-10-17 23:38:54 -04:00
Ben Wheeler
58baa25d9f
scratch3 join flow redirects to /join, outside editor
2019-09-20 17:50:33 -04:00
Ben Wheeler
cc578109fa
put back missing refreshSession() call
2019-09-12 10:45:48 -04:00
Ben Wheeler
65b6475ed6
smarter handling of handleCompleteRegistration
2019-08-27 12:15:49 -04:00
Benjamin Wheeler
110ce59cc7
Revert "Revert "on complete join flow, take user to new project""
2019-08-26 15:41:32 -04:00
Benjamin Wheeler
607a314189
Revert "on complete join flow, take user to new project"
2019-08-26 15:40:41 -04:00
Ben Wheeler
4270fa4b53
on complete join flow, take user to new project
2019-08-26 15:35:40 -04:00
Ben Wheeler
37c2112a3e
remove redundant use of redux registrationOpen
2019-08-26 14:19:08 -04:00
Ben Wheeler
add30d9d26
don’t close registration window when login status updates
2019-08-25 10:18:08 -04:00
Ben Wheeler
4146a7a308
Move flag that controls which join flow we use to redux
2019-08-23 17:30:38 -04:00
Ray Schamp
03e6a49b44
Update for async v2
...
async.auto / async.waterfall now take the callback as the last argument in functions with dependencies.
Async is modularized so eachLimit can be required specifically
2019-07-12 11:44:52 -04:00
Ben Wheeler
43d1f23b44
pass owner username to comment endpoints
2019-06-20 15:06:24 -04:00
Ben Wheeler
975a9c9645
omit token if null or falsy
2019-05-28 15:11:21 -04:00
Ben Wheeler
5a24e9d7d6
change studios for project API request to use admin status, owner status and token
2019-05-28 15:11:21 -04:00
Ben Wheeler
c3002be4a6
Revert "Merge pull request #2858 from benjiwheeler/studios-for-project-endpoint"
...
This reverts commit a3902acfd1
, reversing
changes made to 9e7a14cb76
.
2019-04-04 15:04:46 -04:00
Ben Wheeler
8d38d7d4e5
Revert "Merge pull request #2859 from benjiwheeler/comments-for-project-endpoint"
...
This reverts commit 07417846a9
, reversing
changes made to 32484656ba
.
2019-04-04 15:04:36 -04:00
Ben Wheeler
9b485cd16c
Revert "Merge pull request #2871 from benjiwheeler/pass-ownerusername-to-comment-replies-endpoint"
...
This reverts commit afe6d6f4a4
, reversing
changes made to c00b4fb189
.
2019-04-04 15:04:27 -04:00
Ben Wheeler
f1dfeab399
pass ownerUsername in three places it was left out
2019-04-02 17:25:00 -04:00
Ben Wheeler
dd51cf4ea6
pass token to comments endpoints every time, not only if user is admin
2019-03-25 14:21:06 -04:00
Ben Wheeler
163741f34e
add ownerUsername to comment API endpoint URIs; handle error responses from those endpoints
2019-03-25 13:40:12 -04:00
Ben Wheeler
49df9a6386
split admin and non-admin project studios endpoints
2019-03-23 10:03:51 -04:00
Ben Wheeler
986c608136
make token optional in call to getProjectStudios endpoint
2019-03-22 15:43:00 -04:00
Ben Wheeler
4a20a09f52
change studios for project endpoint to include owner, token
2019-03-21 21:11:14 -04:00
Paul Kaplan
4e8ea5c3bd
Get thumbnails from the project for reporting
2019-02-15 14:27:36 -05:00
Paul Kaplan
49afbd2c70
Use a dummy form submission instead of logging out via xhr.
...
This fixes an issue where you could get logged out but then remain on your page by dismissing the window.onbeforeunload prompt when you have unsaved changes. That would put you in a state where you looked logged in but could not save.
2019-02-11 10:08:38 -05:00
Paul Kaplan
16391f25ee
Strip out duplicates from replies and comments.
...
Fixes https://github.com/LLK/scratch-www/issues/2575
2019-01-10 13:49:07 -05:00
Paul Kaplan
f7e8922757
Allow loading more than 20 replies
2019-01-10 10:46:01 -05:00
Ben Wheeler
8e1d6fee54
love and favorite proxy, and use x-requested-with header
2019-01-07 11:39:31 -05:00
Paul Kaplan
3c7b090a1f
Change the endpoint for loading single comments
2018-12-14 14:03:18 -05:00
Ben Wheeler
634d6c93e0
if remix parent or original is unshared, don't crash project page
2018-12-12 13:24:41 -05:00
Ben Wheeler
8dd239ebe5
use authorUsername, not users own username, in hitting logProjectView endpoint; use cookie and tokens in request
2018-12-07 11:00:43 -05:00
Ben Wheeler
5c3300dd68
pass onGreenFlag to GUI; when called, call API to register project view
2018-12-06 23:06:27 -05:00
Ben Wheeler
dab1be812e
handle update project metadata errors without setting body
2018-12-04 15:47:21 -05:00
Paul Kaplan
172915f9d9
Add project thumbnail update action
2018-11-29 09:55:45 -05:00
Paul Kaplan
0b8c13fb40
Use the project author username in visibility request instead of viewer
...
/ht @chrisgarrity
2018-11-21 10:31:10 -05:00
Paul Kaplan
122160726d
Show details about why a project is not public
...
Follow up the project info request with a request to the visibility endpoint to find out if the project is trashed or censored. The project just not being published is handled by the existing code.
This PR generalizes the ShareBanner to a more generic "Banner" that is then filled with the relevant content.
2018-11-20 12:01:52 -05:00
Paul Kaplan
3fe1242aa6
Allow user to exit "single comment mode" and see all comments.
...
This visually appears like a "load more comments" button for now, but has the impact of unsetting the #comments-<id> hash in the url and resetting the comment state, showing all the comments (in paginated view)
2018-11-19 15:47:47 -05:00
Paul Kaplan
f8d598549d
Update instead of replacing project info to match API.
...
The API endpoint will return just the updated slice of the projectInfo, so just update the projectInfo instead of replacing.
2018-11-13 12:23:05 -05:00
Paul Kaplan
3a03f10aff
Move sharing to special endpoint.
...
This makes a couple of assumptions about the shape of the endpoint:
- Route is /proxy/projects/:id/share.
- Returns the full (updated) project info on success, just like the project update endpoint does.
I reviewed these with colby since this is frontrunning the actual API, but I can update once the API is finalized.
2018-11-13 08:49:37 -05:00
Paul Kaplan
ae05f07e07
Fix project not available flag setting and catch 404 responses
2018-11-08 08:43:36 -05:00
Paul Kaplan
315c8b78fc
Add "project not available" view for when project body cannot be loaded
...
This happens when the project id does not exist, or is not visible to the given user.
2018-11-07 16:32:12 -05:00
Paul Kaplan
fa7c2d5b09
Merge pull request #2230 from paulkaplan/single-comment-mode
...
Showing specific comment by url hash on preview
2018-10-24 15:41:14 -04:00
Paul Kaplan
5158907c5b
Merge pull request #2229 from paulkaplan/sudo-fix-load-more
...
Do not rely on total comment number for load more functionality
2018-10-24 11:42:00 -04:00
Paul Kaplan
520018ee50
View single thread of comments by URL hash
2018-10-24 10:29:33 -04:00
Paul Kaplan
ae626d5244
Do not rely on total comment number for load more functionality
...
Show the load more comments button any time the last comment page was filled to the requested limit. As noted in the comment, this heuristic will be wrong at most 5% of the time but the failure mode (showing load more which, when clicked doesn't load any more, just goes away) is very mild, and for the overwhelming majority of project views that happen on projects with many, many comments, this is very unlikely to ever be noticed. It obviously isn't a perfect solution, but I cannot think of another that does not need the server to do another query to find out the total number of visible comments, or to find out if there are more comments after the requested offset+limit.
2018-10-24 09:18:45 -04:00