-
Notifications
You must be signed in to change notification settings - Fork 4k
User can load new project in 3.0 #3303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User can load new project in 3.0 #3303
Conversation
|
Tests seem to be failing because of this #3305 |
|
One thought: I think we could get similar functionality to the state machine from a set of booleans managed in the project-id reducer (or whatever we end up calling it). Not positive if it would feel cleaner, but if it worked, the interface to the components could be essentially the same, but the inner workings of the reducer would be more familiar to other developers, and it would be more redux-y. |
rschamp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed about half of this. But just want to get these comments published before the end of the day.
…of code to fetch title from api
…s also default one, then it loads new project twice
|
This is in good shape now, I think! The big outstanding issue are the tests. |
48fefb9 to
515102d
Compare
515102d to
ed4c063
Compare
stripped title handling from sb file uploader updated more projectState related names simplified hash-parser-hoc logic slightly
ed4c063 to
91028a0
Compare
| const loadingState = state.scratchGui.projectState.loadingState; | ||
| const user = state.session && state.session.session && state.session.session.user; | ||
| return { | ||
| accountMenuOpen: accountMenuOpen(state), |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
src/components/menu-bar/menu-bar.jsx
Outdated
| onRequestCloseLogin: () => dispatch(closeLoginMenu()), | ||
| onSeeCommunity: () => dispatch(setPlayer(true)) | ||
| onClickNew: canSave => dispatch(newProjectRequested(canSave)), | ||
| onClickSave: () => dispatch(saveRequested()), |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
webpack.config.js
Outdated
| }, | ||
| plugins: base.plugins.concat([ | ||
| new webpack.DefinePlugin({ | ||
| 'process.env.API_HOST': '"' + process.env.API_HOST + '"', |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Resolves
#2954
Proposed Changes
Introduces support for loading a new project, in both playground/standalone player and embedded/login-able modes.
Currently uses a state machine to manage where in the project loading and displaying lifecycle we currently are.
Reason for Changes
Users need to be able to create new projects from within the editor.
Test Coverage
None yet.
Browser Coverage
Mac
Windows
Chromebook
iPad
Android Tablet