Conversation
Unfortunately I couldn't do the same with loading projects, since the presence of the component (necessitating the menu to be open) allows the actual upload from file to work, since it needs the FileInput component to be present, so it can emit a change event. We should revisit
chrisgarrity
left a comment
There was a problem hiding this comment.
It will be nice to be able to actually update projects, but there's still a lot of todo items. Perhaps there should be open issues/@todos with links to them?
| @@ -0,0 +1,27 @@ | |||
| const SET_PROJECT_ID = 'scratch-gui/project-id/SET_PROJECT_ID'; | |||
|
|
|||
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
| animation: hue-rotate 3s linear infinite; | ||
| } | ||
|
|
||
| @keyframes hue-rotate { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
| {saveNowMessage} | ||
| </MenuItem> | ||
| ) : ( | ||
| <MenuItemTooltip |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
| }; | ||
|
|
||
| const mapStateToProps = state => ({ | ||
| canUpdateProject: typeof (state.session && state.session.session && state.session.session.user) !== 'undefined', |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
| this.setState({projectSaveInProgress: true}, | ||
| () => { | ||
| updateFun().then(() => { | ||
| this.setState({projectSaveInProgress: false}); |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
| handleCloseFileMenuAndThen (fn) { | ||
| return () => { | ||
| this.props.onRequestCloseFile(); | ||
| fn(); |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
@rschamp none of the things I flagged are blockers, but it probably does need to have a passing build. |
|
Thanks @chrisgarrity! Captured these as follow-up items ^ |
Remove the default prop test because the default projectId prop comes from redux now, so it doesn't make sense to test the default Lint
Fastly is not configured yet
Dependent PRs
This requires https://github.com/LLK/scratch-projects/pull/76
Resolves
What Github issue does this resolve (please include link)?
Proposed Changes
Describe what this Pull Request does
7e3b53a for why I couldn't do the same for loading a project
Reason for Changes
Explain why these changes should be made
We want to start testing how the GUI will be used on the website, and part of that is saving projects.
Test Coverage
Please show how you have added tests to cover your changes
It breaks some tests. I'm fixing that. Hard to test this type of thing since it happens over the network though.
Browser Coverage
Check the OS/browser combinations tested (At least 2)
Mac
Windows
Chromebook
iPad
Android Tablet