Scheduled Downloads#2
Open
skapoor68 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This adds the ability for users to schedule recurring downloads of their Canvas courses. This is helpful for students who want their course materials automatically kept up to date locally, and for protecting against unplanned Canvas outages.
AI summary attached:
What's new
A Scheduled Downloads section in Settings lets users:
A small nudge link in the popup ("or schedule a recurring download") links directly to Settings for discoverability.
Expected behavior
chrome.alarmssurvive browser restarts — if Chrome was closed when an alarm fired, it fires shortly after relaunch.conflictAction,zipMode,contentTypes,folderPrefix,incrementalMode, throttle). No overrides.downloadCourse) and counted as failed without aborting the run.New storage keys
scheduleConfigsynccanvasDomainlocalpendingRunlocallastScheduledRunlocalNew permissions
alarms— fires the recurring scheduletabs— lets the background service worker find an open Canvas tab to deliver the download to; required for non-instructure.comCanvas domains where host permissions don't cover tab URL accessFiles changed
manifest.jsonalarms,tabspermissionsbackground.jshandleScheduleAlarm,findOpenCanvasTab, new message handlerscontent.jspersistCanvasDomain,checkPendingDownload,runScheduledDownload,TRIGGER_SCHEDULED_DOWNLOADmessage handleroptions.jsloadScheduleConfig,saveScheduleConfig,renderCoursePickerForSchedule,onScheduleToggleoptions.htmlpopup.html/popup.jsREADME.md/PRIVACY.md