-
Notifications
You must be signed in to change notification settings - Fork 61
Fix #1974 #2004 #2033
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
base: dev
Are you sure you want to change the base?
Fix #1974 #2004 #2033
Conversation
…import scratch accept txt files
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #2033 +/- ##
==========================================
- Coverage 51.37% 51.21% -0.17%
==========================================
Files 212 212
Lines 21838 21841 +3
==========================================
- Hits 11220 11185 -35
- Misses 10618 10656 +38
🚀 New features to boost your workflow:
|
|
Noticed that Firefox doesn't add the .txt file extension by default when exporting. Not sure how to change that so I've removed the expectation that the imported scratch file has .txt extension. |
|
@cyrus- I can't repro the broken import. Could you try again and report back? |
|
@dm0n3y It's still happening to me, though the first time I loaded the file it did seem to work but not any subsequent times? |
Reset file input value after import completes to allow the same file to be selected and imported multiple times. Without this, the browser's file input won't fire the change event when selecting the same file again. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
@cyrus- fixed |
Scratch import button used to only take .json files, despite export button producing .txt files. Now scratch import takes .txt files. I considered exporting/importing .sexp but this isn't a standard MIME type and noticed that this broke file preview in my macOS finder and left it as .txt for now.
This PR also fixes a serialization/deserialization bug where scratch export would serialize all scratch slides while scratch import only deserialized a single slide. Now scratch export serializes only the current scratch slide.
Fixes #1947 and #2004