Skip to content

Save Sketches on mobile #1544

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

Merged
merged 31 commits into from
Aug 28, 2020

Conversation

ghalestrilo
Copy link
Collaborator

@ghalestrilo ghalestrilo commented Aug 12, 2020

Requires #1528

Part of the Mobile UI project. This branch implements the ability to save sketches on the Mobile IDE, and to persist project state across mobile views. Roadmap:

  • Connect the <Editor /> component and refactor IDE Views
  • Persist sketch state
  • Add save and autosave functionality

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • is from a uniquely-named feature branch and has been rebased on top of the latest master. (If I was asked to make more changes, I have made sure to rebase onto master then too)
  • is descriptively named and links to an issue number, i.e. Fixes #123

@ghalestrilo ghalestrilo self-assigned this Aug 12, 2020
@ghalestrilo ghalestrilo marked this pull request as ready for review August 18, 2020 20:29
@ghalestrilo ghalestrilo requested a review from catarak August 18, 2020 20:29
@ghalestrilo
Copy link
Collaborator Author

This is done! I just updated it with develop, and it's working fine. Note that it does not have yet a way to rename the sketches from the MobileIDEView header.

Copy link
Member

@catarak catarak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good! I just have one small suggestion, and then I think it makes sense to open another PR with some feedback that the save is happening with the Toast component.

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="-4 -4 32 32" width="24">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need to add this icon, there's already an icon for this called unsaved-changes-dot.svg.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the little diskette icon that the user presses to save the project. I couldn't find an icon for this. is there one available?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my bad! I got confused and thought this was the unsaved dot icon. All good then :)

@ghalestrilo ghalestrilo requested a review from catarak August 28, 2020 18:16
Copy link
Member

@catarak catarak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working great for me!

@ghalestrilo ghalestrilo merged commit 6cb9968 into processing:develop Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants