Skip to content

feat(offline): add recitation pre-download for current reciter#462

Open
ravshansbox wants to merge 1 commit into
marwan:mainfrom
ravshansbox:feat/offline-recitation-predownload
Open

feat(offline): add recitation pre-download for current reciter#462
ravshansbox wants to merge 1 commit into
marwan:mainfrom
ravshansbox:feat/offline-recitation-predownload

Conversation

@ravshansbox

Copy link
Copy Markdown
Contributor

Closes #461

Summary

Adds a Recitation Data section to the Offline Mode screen that lets users predownload the entire Quran audio for their currently selected reciter, without needing to play it first.

Changes

  • Add cacheVerseAudioFile() helper in audioController.js to fetch + cache a verse mp3 into the shared quranwbw-audio-cache (skips if already cached)
  • New 'Recitation Data' section on the offline screen (download / redownload / delete)
  • Downloads all 6236 verses for the currently selected reciter in concurrent batches of 10, with progress reporting
  • Track the downloaded reciter and show a mismatch banner prompting a re-download when the selected reciter changes
  • Delete clears the audio cache and resets the tracked reciter
  • Size label is intentionally omitted for this section since audio size varies significantly by reciter bitrate

Testing

  • Verified locally via npm run dev: section renders, download progresses, mismatch banner appears after switching reciters, delete works.

Adds a 'Recitation Data' section to the offline download screen that lets
users predownload the entire Quran audio for their currently selected
reciter, without needing to play it first.

- Add cacheVerseAudioFile() helper to cache a verse mp3 into the shared
  audio cache (skips if already cached)
- Download all verses in concurrent batches with progress reporting
- Track downloaded reciter and show a mismatch banner prompting a
  re-download when the selected reciter changes
- Delete clears the audio cache and resets the tracked reciter
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@ravshansbox is attempting to deploy a commit to the Marwan Ansari Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
quranwbw Ready Ready Preview Jun 27, 2026 7:41pm

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.

Allow pre-downloading recitation audio from the Offline screen

1 participant