feat: Automatic print start dialog on upload #2223
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a couple ways to have the start print dialog automatically open.
localStorage
). I would expect people would want it enabled in their slicer, but probably not anywhere else. By default if the browser user agent contains "slicer", then I am enabling this setting (but can be overwritten by toggling the setting). Note: I only verified Orca Slicer, but it presents a user agent that starts with "BBL-Slicer".Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Note
The recordings show the application with the new Happy Hare functionality, but none of my changes are dependent on that functionality. I've just simply cherry-picked my commits from my HH fork onto a new branch from the mainline
develop
branch.PWA "Open With"
This demonstrates opening a gcode file with the "installed" Mainsail application (side note: I believe a user would need to re-install the application for it to set up that file type association).
Screen.Recording.2025-05-21.at.10.53.26.PM.mp4
Show Print on Upload
This demonstrates slicing a file and then using the "upload" along with the option to show the device page after uploading, which then automatically takes you to Mainsail after uploading and the start print dialog is displayed and the user may then start the print, perform tool mapping and then start the print, etc.
Screen.Recording.2025-05-21.at.10.55.23.PM.mp4
[optional] Are there any post-deployment tasks we need to perform?