Skip to content

Add public/songs to My Documents and create Desktop shortcut - #803

Open
azayrahmad wants to merge 2 commits into
mainfrom
feat/add-songs-to-my-documents-9565416692402781181
Open

azayrahmad wants to merge 2 commits into
mainfrom
feat/add-songs-to-my-documents-9565416692402781181

Conversation

@azayrahmad

Copy link
Copy Markdown
Owner

This change adds the contents of the public/songs directory to C:\My Documents\songs and creates a "songs" shortcut on the Desktop.

Key changes:

  1. Configuration: Added src/config/songs.js containing the manifest of song files to be synchronized.
  2. Filesystem Initialization: Updated src/utils/zenfs-init.js to:
    • Create the /C:/My Documents/songs directory.
    • Add a songs.lnk.json shortcut to the Desktop pointing to the new directory.
  3. Boot Synchronization: Enhanced src/main.js with a new boot step ("Loading songs...") that fetches each song from the server and writes it to the virtual filesystem if it is missing. This ensures the files are always available every boot.

The changes were verified visually via Playwright screenshots, confirming both the Desktop shortcut and the folder contents in Explorer.


PR created automatically by Jules for task 9565416692402781181 started by @azayrahmad

…hortcut

- Created `src/config/songs.js` to list all song files.
- Modified `src/utils/zenfs-init.js` to ensure the target directory exists and create the desktop shortcut.
- Updated `src/main.js` to synchronize the song files from the server to ZenFS during the boot process.
- Verified changes with E2E tests and screenshots.

Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Added `public/songs` folder and its contents to `C:\My Documents\songs` in ZenFS.
- Created a "songs" shortcut on the Desktop pointing to `C:\My Documents\songs`.
- Implemented a boot-time synchronization step in `src/main.js` to ensure song files are fetched from the server.
- Fixed a bug in `WebampApp.js` where M3U playlist parsing failed due to trailing whitespace/newlines in track filenames.
- Verified changes with Playwright E2E tests and screenshots.

Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant