Benjamin Wheeler
4d3e46e40b
Revert "Revert "Add to studio modal should only show studios user can actually change""
2019-01-22 17:07:52 -05:00
Benjamin Wheeler
5ddb7660f6
Revert "Add to studio modal should only show studios user can actually change"
2019-01-17 11:22:00 -05:00
Ben Wheeler
ab82d37720
only show studios user can manipulate in add to studio modal
...
Refactored studio list consolidation code for add to studio; set canAdd,
canRemove flags directly on each studio.
pass flag userOwnsProject through to add to studio modal and its
buttons.
pass flag isAdmin through to add to studio and its buttons.
set flags in add to studio buttons for whether user has permission to
add project to studio, remove project from studio.
Set user ability/inability to click add to studio buttons using
permissions flags and css
2019-01-16 13:49:54 -05:00
Benjamin Wheeler
db6e0ed88f
Merge pull request #2624 from apple502j/patch-7
...
Raise z-index of navbar
2019-01-16 11:17:00 -05:00
Ben Wheeler
e88e669297
set the z-index of the player as a whole, to go under nav bar
...
separately set z-index in fullscreen mode, to go over other project page
UI including nav bar
correct isFullScreen prop
2019-01-15 23:45:05 -05:00
chrisgarrity
ed1cf35721
de-dup helpers.cloudData
2019-01-15 10:10:36 -05:00
chrisgarrity
b2b00ee867
Support link to cloud variable log
...
Add Cloud Variables to the ‘Extension’ Chips when there are cloud variables in the project. If the user is logged in, also link to the cloud variable log for the project.
2019-01-14 15:32:00 -05:00
chrisgarrity
cebdd0a17d
Merge pull request #2656 from chrisgarrity/issue/2628-remix-loading-project
...
Don’t allow remixing if the project is not loaded
2019-01-10 14:41:52 -05:00
Paul Kaplan
6c8881106e
Merge pull request #2657 from paulkaplan/more-replies
...
Allow loading more than 20 replies
2019-01-10 14:29:27 -05:00
chrisgarrity
ccbaa60e59
Don’t allow remixing if the project is not loaded
...
Depends on https://github.com/LLK/scratch-gui/pull/4312
Adds new `isProjectLoaded` state to the project view, and disables the remix button until the project is loaded. Passes new callback to gui to be notified when the project is loaded.
2019-01-10 10:50:37 -05:00
Paul Kaplan
f7e8922757
Allow loading more than 20 replies
2019-01-10 10:46:01 -05:00
Paul Kaplan
7f99e8b8c2
Prevent uncaught errors from going to sentry
...
For real this time. Just needed to figure out the right plugins to filter. TryCatch plugin is the one that reports errors from setTimeouts, which the VM executes code in.
Remove the previous window.onerror kludge, it was not working and prevented errors from reaching the console.
Tested locally by providing the staging DSN for Sentry
2019-01-10 10:07:30 -05:00
Paul Kaplan
2ea49fc4d3
Disable window onerror
2019-01-09 16:56:31 -05:00
Paul Kaplan
885977e554
Disable global handlers
2019-01-08 14:19:11 -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
07ad54bb6c
Only track green flag once
2019-01-02 16:22:42 -05:00
Paul Kaplan
dcb03a0526
Fix lint whitespace
2018-12-20 13:48:38 -05:00
Colby Gutierrez-Kraybill
6a946b99fc
Update to new sentry API pattern
...
Use current Sentry browser package and forward errorId into eventId
Fix up errorInfo reference
Put Sentry on the window object for GUI to use
Remove unneeded reference to old style Raven and raven-js
Move Sentry webpack config into production only
Add GA tracker ID to window
Allows scratch-gui to use same GA id
2018-12-20 12:56:33 -05:00
Paul Kaplan
a196462818
Merge pull request #2515 from paulkaplan/enfasten-remixing-further
...
Set isRemixing to true and then start remixing process
2018-12-20 08:31:58 -05:00
Paul Kaplan
137015cfc0
Set isRemixing to true and then start remixing process
...
This makes it feel snappier to start the remixing project because it does not wait for the GUI to notify
2018-12-19 15:58:38 -05:00
Benjamin Wheeler
64fc4b3ed8
Merge pull request #2508 from benjiwheeler/switch-to-editor-on-remix
...
switch to editor after remixing from project page
2018-12-19 15:35:18 -05:00
Ben Wheeler
5ff13da56d
admins should not see editable project title in editor
2018-12-19 11:59:47 -05:00
Ben Wheeler
859574a8bd
switch to editor after remixing from project page
2018-12-19 11:40:49 -05:00
Benjamin Wheeler
293b7beefc
Merge pull request #2506 from benjiwheeler/mod-info
...
added author username to moderation info area
2018-12-18 11:45:51 -05:00
Ben Wheeler
edec88f0ab
added author username to moderation info area
2018-12-18 10:43:11 -05:00
Ben Wheeler
153c749546
pass onUpdateProjectThumbnail to gui when on project page
2018-12-17 15:36:09 -05:00
Ray Schamp
295c1df2ff
Hook up onClickLogo in GUI
...
This way it will take us to where we expect on staging and production.
Resolves #2296
2018-12-13 09:44:14 -05:00
Paul Kaplan
ef217b96a1
Use custom meta tag info for project page.
...
Note this _will not_ work until the page uses a template that does not include these meta tags. That is because react-helmet does not override any existing info in the head.
Thus, this was tested by removing that info from the template and seeing it work, then putting the template back.
2018-12-12 19:30:48 -05:00
Benjamin Wheeler
a9f9d7ee49
Merge pull request #2428 from benjiwheeler/fix-favorite-love
...
make love and favorite icons respond to click immediately, cleanly
2018-12-12 11:25:31 -05:00
Paul Kaplan
78506f82c7
Hide project info alerts when switching to editor
2018-12-11 11:18:53 -05:00
Paul Kaplan
ace110c59b
Show username and cloud var alerts on projects that use them.
...
Only implemented for scratch3 projects
2018-12-11 11:15:00 -05:00
chrisgarrity
594ce06b5b
Merge pull request #2427 from chrisgarrity/issue/sb2-mod-info
...
Add moderator info for sb2 projects
2018-12-11 10:13:45 -05:00
Ben Wheeler
d5ec7e17df
add clientFaved and clientLoved, fix number selection
2018-12-10 11:59:32 -05:00
Paul Kaplan
26e821214a
Merge pull request #2431 from paulkaplan/fix-multi-love
...
Only try to update fave counts if there are no requests in progress.
2018-12-10 10:56:34 -05:00
Paul Kaplan
901dfeb6ca
Merge pull request #2425 from rschamp/admin-panel-occlusion
...
Don't occlude page content with the admin panel
2018-12-10 10:35:59 -05:00
Paul Kaplan
7c5d909a68
Only try to update fave counts if there are no requests in progress.
2018-12-10 10:31:58 -05:00
chrisgarrity
84cfcdee85
Add moderator info for sb2 projects
2018-12-10 08:47:01 -05:00
Benjamin Wheeler
9d5788cc77
Merge pull request #2417 from benjiwheeler/view-count
...
pass onGreenFlag to GUI; when called, call API to register project view
2018-12-07 16:52:44 -05:00
Paul Kaplan
d20b16d79c
Merge pull request #2424 from paulkaplan/admin-toggle-comments
...
Allow admins to toggle comments
2018-12-07 16:47:01 -05:00
Paul Kaplan
551cc0cc13
Remove userOwnsProject because it is unused
2018-12-07 16:09:34 -05:00
Ray Schamp
1979675ebf
Don't occlude page content with the admin panel
...
/ht @paulkaplan for the idea to move it below the nav bar.
2018-12-07 13:15:38 -05:00
Paul Kaplan
5d409bcdcf
Allow admins to toggle comments
2018-12-07 12:57:50 -05:00
Paul Kaplan
4522983e20
Show addToStudio for all logged in users on shared projects
2018-12-07 12:51:00 -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
Ray Schamp
402799e55f
Fix lint issues
...
My linter doesn't catch prop order for some reason. So fix linting so the build works.
2018-12-06 23:15:54 -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
Ray Schamp
bc59a63e5e
Only show the admin panel to admins
2018-12-06 17:07:28 -05:00
Ben Wheeler
07568b0f65
remove editor from url when not appropriate
2018-12-06 16:01:28 -05:00
Ben Wheeler
1adca1800a
Banner message showing that user has remixed
2018-12-06 16:01:28 -05:00
Ray Schamp
af32c08971
Merge pull request #2413 from rschamp/mod-panel-phase-3
...
Match scratchr2 admin panel behavior more closely
2018-12-06 15:47:48 -05:00