You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Similar problem to sharing timetable. I wish to replicate the course planner configuration by downloading the configuration and uploading the configuration json file.
Describe the solution you'd like
A button that downloads the planner details on https://nusmods.com/planner
a. Create a temporary blob from the redux store after stringification
b. Create an object url for that blob
c. Create a temporary anchor element with the create url
d. Programmatically click on the anchor element
e. Revoke the object url
A button that imports the planner details on https://nusmods.com/planner
a. Drag or drop / file select for the planner config
b. Maybe some sort of zod schema parsing
c. Override the redux store with new state
Describe alternatives you've considered
URL sharing will be more convenient where URL contains the state of the course planner.
Additional context
I tested my personal planner config and it is 5000+ characters after base64 encoding. It seems that URL should be kept below 2000 characters. Nusmods cannot encode the config into the url without some sort of minification. Also, sharing a very long URL is pretty bad idea coz it might encounter character limits in texting applications
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Similar problem to sharing timetable. I wish to replicate the course planner configuration by downloading the configuration and uploading the configuration json file.
Describe the solution you'd like
a. Create a temporary blob from the redux store after stringification
b. Create an object url for that blob
c. Create a temporary anchor element with the create url
d. Programmatically click on the anchor element
e. Revoke the object url
a. Drag or drop / file select for the planner config
b. Maybe some sort of zod schema parsing
c. Override the redux store with new state
Describe alternatives you've considered
URL sharing will be more convenient where URL contains the state of the course planner.
Additional context
I tested my personal planner config and it is 5000+ characters after base64 encoding. It seems that URL should be kept below 2000 characters. Nusmods cannot encode the config into the url without some sort of minification. Also, sharing a very long URL is pretty bad idea coz it might encounter character limits in texting applications
The text was updated successfully, but these errors were encountered: