Commit graph

932 commits

Author SHA1 Message Date
Thiago Vinícius
8cf7010e7f 🐛 fix: library liked track card link (grid plays like list); my playlists grid layout 2026-03-27 18:32:13 -03:00
Thiago Vinícius
5be3d39b1b 🐛 fix: CodeRabbit review (library search, covers, likes, layout classes, clear-btn, styles) and lint workflow; keep scroll on list/grid toggle
Made-with: Cursor
2026-03-27 18:20:11 -03:00
Thiago Vinícius
2e92a34b00 🐛 fix: issues flagged by CodeRabbit
Made-with: Cursor
2026-03-27 18:11:12 -03:00
Thiago Vinícius
75a1465977 fix(ui): drop empty playlists placeholder and fix inline-like track grid on narrow viewports
Made-with: Cursor
2026-03-27 17:15:22 -03:00
Samidy
628b8ae017
Merge pull request #435 from vladbrox/main
HOTFIX: Fix track validation in loveTrack method
2026-03-27 22:32:05 +03:00
Thiago Vinícius
520c778f84 fix(ui): video library cards, fullscreen layout, and search UX
Made-with: Cursor
2026-03-27 16:26:51 -03:00
David Zeng
09bc49bd60
Merge branch 'monochrome-music:main' into fix-local-folder 2026-03-27 19:59:11 +01:00
David ZENG
d15a99dad8 fix(library) fixed undefined error, when importing local music folder 2026-03-27 19:55:09 +01:00
SamidyFR
4a38afe810 style: auto-fix linting issues 2026-03-27 18:52:20 +00:00
Mrigakshi Roy Choudhury
65d0eadb71 fix(library): share playlist with the correct url 2026-03-28 00:13:36 +05:30
.vlad
2b67fc2609
Fix condition in loveTrack method 2026-03-27 18:45:57 +03:00
SamidyFR
121aa44fd1 style: auto-fix linting issues 2026-03-27 15:42:30 +00:00
Samidy
b7be5a6556
Merge pull request #434 from vladbrox/main
Listebrainz improvments
2026-03-27 18:42:00 +03:00
.vlad
8177cc4789
Fix artist name check in loveTrack method
Add null check for artist name in loveTrack method.
2026-03-27 18:35:48 +03:00
.vlad
c3c3005428
fix issues. now use set for lovingTracks, lbid album check, const and let var fix 2026-03-27 18:21:22 +03:00
Samidy
68512c957a
Merge pull request #430 from vladbrox/main
Refactor MBID lookup and add love lock
2026-03-27 18:18:48 +03:00
.vlad
27c2a7b092
Refactor MBID lookup and add loving functionality 2026-03-27 17:26:35 +03:00
Samidy
4e75a734a2 remove qobuz 2026-03-27 14:30:39 +03:00
Eduard Prigoana
b962853b69 weights 2026-03-26 20:36:42 +02:00
Daniel
80cd8b2f9b refactor(downloads): cleanup downloads and add mp4 stik atom 2026-03-24 14:10:28 -05:00
edideaur
23c5baae5f style: auto-fix linting issues 2026-03-23 20:01:26 +00:00
Eduard Prigoana
1e8e62dbee remove unexistent instances from tracker.js and add new instance 2026-03-23 22:00:53 +02:00
edideaur
7f61e723da
Merge pull request #401 from DanTheMan827/hifi-update
Refactor HiFi.ts and add trackManifests route
2026-03-23 21:57:34 +02:00
Daniel
2440939f4b refactor(hifi): update HiFi.ts to add trackManifests route and refactor 2026-03-23 13:42:03 -05:00
Daniel
21cbfcdbf4 fix(hifi): throw errors instead of returning json with the error 2026-03-23 09:35:04 -05:00
edideaur
15e6e99269 d-d-d-d-drop that bitch 2026-03-23 16:30:51 +02:00
binimum
ef142f2ff0 style: auto-fix linting issues 2026-03-22 20:38:39 +00:00
binimum
44d92b46dc
feat: implement side panel resizer and responsive styles 2026-03-22 20:38:08 +00:00
binimum
d9878596e2 style: auto-fix linting issues 2026-03-22 20:13:27 +00:00
binimum
98cc3b9391
Merge branch 'main' of https://github.com/monochrome-music/monochrome 2026-03-22 20:11:37 +00:00
binimum
d783642401
feat: add Atmos support, use new API endpoint, streamline API caching 2026-03-22 20:08:30 +00:00
edidealt
6ed58333e7 style: auto-fix linting issues 2026-03-22 19:13:04 +00:00
Daniel
111ade245f
fix(metadata): lyrics are now fetched 2026-03-22 14:05:07 -05:00
edideaur
b6e8068652 capacitor app 2026-03-22 20:59:00 +02:00
edidealt
4d18704e2e sure this works i guess 2026-03-22 04:57:18 +00:00
edidealt
c2f8d3fca1 feat: podcasts 2026-03-22 04:32:20 +00:00
Samidy
3cd54a2b5f fix(reset password): change reset-password link to remove .html (causes issues) 2026-03-22 07:30:22 +03:00
edidealt
7e16dc23c2
Merge pull request #380 from DanTheMan827/singleton
Convert classes to singleton pattern
2026-03-22 03:36:13 +02:00
edidealt
6f8b479d0f infinite track playing for popular tracks 2026-03-21 23:25:16 +00:00
Daniel
e32fbc3813 refactor(UIRenderer): convert to singleton 2026-03-21 18:14:48 -05:00
Daniel
2fdd169ba0 refactor(Hifi): convert to singleton 2026-03-21 18:05:09 -05:00
Daniel
aa1c6944d2 feat: expose certain classes under the monochrome object when in dev mode 2026-03-21 17:41:19 -05:00
Daniel
c768f8d675 refactor(lyrics): convert to singleton 2026-03-21 17:36:23 -05:00
Daniel
fb4b72bc39 refactor(music-api): convert to singleton 2026-03-21 17:29:04 -05:00
Daniel
852baeaa17 refactor(player): convert to singleton 2026-03-21 17:21:09 -05:00
Daniel
6728b17efe fix: bun format 2026-03-21 16:56:05 -05:00
akane
7008de33b0 fix(ui): revert history dedup to preserve play frequency 2026-03-21 12:33:25 -07:00
akane
446b6fff55 fix(ui): deduplicate recommended songs on homepage 2026-03-21 12:30:38 -07:00
akane
da5ade79a7 perf(ui): cache settings Fuse instance in command palette 2026-03-21 12:04:25 -07:00
akane
7e56fc5030 fix(ui): command palette accessibility, theme handling, and edge cases 2026-03-21 11:56:34 -07:00
akane
d75f0e3196 refactor(ui): use icons.ts for command palette icons 2026-03-21 11:53:16 -07:00
akane
3415901bdb feat(ui): add cmdk-style command palette 2026-03-21 11:35:09 -07:00
Daniel
c74389d330
fix(metadata): write xid to mp4 files 2026-03-20 19:44:21 -05:00
edidealt
e22d2b96ad separate donate page 2026-03-21 00:03:19 +00:00
edidealt
d8709f447f
Merge pull request #369 from DanTheMan827/copilot/add-bulk-download-options
Add bulk download options and streamline settings API
2026-03-21 01:48:07 +02:00
DanTheMan827
5c5ea904c8 style: auto-fix linting issues 2026-03-20 23:00:41 +00:00
Daniel
397fc53a46 feat(downloads): add local media folder bulk download options and folder template paths
This also implements a ModernSettings class for a more streamlined settings API.
2026-03-20 18:00:14 -05:00
edidealt
086b190308 Merge pull request #366 from matioku/fix/share-url-construction
fix(events): fix share/open-in-new-tab URL construction
2026-03-20 22:57:53 +00:00
edidealt
f9a58b1cac
Merge pull request #368 from DanTheMan827/patch-1
refactor(hifi): update localStorage and token handling
2026-03-21 00:40:15 +02:00
edidealt
90f4930634 whoops forgot mobile selection 2026-03-20 22:36:38 +00:00
edidealt
ab11ff6a37 multi-track selection 2026-03-20 22:28:08 +00:00
Daniel
4f0d95bf42
refactor(hifi): update localStorage and token handling
Modified token encoding to use globalThis and added a setToken method.
2026-03-20 17:13:23 -05:00
edidealt
cc2f28a798 fix track right clicks 2026-03-20 20:54:05 +00:00
matioku
8f1994d9d3
fix(events): fix share/open-in-new-tab URL construction 2026-03-20 21:30:15 +01:00
Daniel
1bd895093b fix(HiFi): enhance token fetching 2026-03-20 14:32:30 -05:00
edidealt
9071670ad9
Merge pull request #363 from DanTheMan827/video-metadata
Add metadata support for video downloads
2026-03-20 20:25:07 +02:00
Daniel
5d697760d0 fix(HiFi.ts): cache token 2026-03-20 13:19:15 -05:00
Daniel
5ac4d23199 fix(HiFi.ts): ensure only one token is fetched
If multiple calls to the HiFi methods were called at once, you could potentially have ended up with multiple simultaneous token api calls
2026-03-20 13:12:40 -05:00
edidealt
7bcb9e1fb5 listenbrainz love on like 2026-03-20 18:07:06 +00:00
Daniel
a385cb558a fix(api): use an instance for /recommendations 2026-03-20 13:02:48 -05:00
Daniel
f2b8cdc812 feat(downloads): add metadata to videos 2026-03-20 12:52:07 -05:00
Daniel
8edca3678d fix(api): remove domain checks from searchVideos 2026-03-20 11:57:38 -05:00
Daniel
b48ee588aa fix(api): don't cache direct queries
This also adds a global `window.allTidal` flag to force all queries to go through the API, which is useful for testing.
2026-03-20 11:54:04 -05:00
Daniel
47b8c36594 fix(api): use direct queries when possible 2026-03-20 11:38:31 -05:00
binimum
f378552028 refactor: add formatTemplate import to downloads.js 2026-03-20 00:33:05 +00:00
binimum
5bb8713bbf
refactor: update MediaPlayer import and add platform detection 2026-03-19 21:01:29 +00:00
edidealt
0b2b91a8a4 fix builds 2026-03-19 20:49:16 +00:00
Daniel
c19dbcf52a refactor: adjust imports to allow for file splitting
- dynamically import router
- dynamically import visualizers
- update import syntax for am-lyrics to use dynamic import syntax
2026-03-19 15:34:51 -05:00
Daniel
4e2a595504 refactor(hls/dash): externalize hls.js and dashjs to reduce initial bundle size 2026-03-19 15:34:51 -05:00
Daniel
e2a09b9b32 refactor: externalize svg images and add new vite plugin
The plugin runs all imported SVG files through svgo.

For index.html, you can use the following syntax:
```html
<use svg="file.svg" size="24" />
```

For scripts, use the `?svg` import query
```javascript
import SVG_FILE from './file.svg?svg&size=24
```

Note: size is shorthand for specifying both width and height individually.  You can also set any property of the base SVG element.

You can also use the `?svg&icon` query to return a function that allows dynamically resizing the SVG string.
2026-03-19 15:28:33 -05:00
edidealt
affb6dd5de
Merge pull request #350 from DanTheMan827/replace-taglib-wasm
Replace taglib-wasm with taglib-ts
2026-03-19 22:22:38 +02:00
edidealt
6b986402ff
Merge pull request #351 from DanTheMan827/optimistic-local-scan
Render local files in UI as scanned
2026-03-19 22:22:14 +02:00
edidealt
fc4adfcd32
Merge pull request #352 from DanTheMan827/minor-fixes
A collection of fixes
2026-03-19 22:21:53 +02:00
Daniel
7c5424437e feat(ffmpeg): add WAV format support and detection for use in dev mode
- Added WAV format to customFormats with appropriate metadata.
- Implemented detection for RIFF/WAVE format in detectAudioFormat function.
2026-03-19 15:14:52 -05:00
Daniel
895d5dd20f feat(metadata): replace taglib-wasm with @dantheman827/taglib-ts
- feat(taglib): updated audio buffer handling in metadata.js to use Uint8Array.
- feat(taglib): refactored addMetadataToAudio to support return type as Blob or Uint8Array

- feat(taglib): add timeout functionality to metadata functions
  - Introduced `withTimeout` utility function to handle operation timeouts.
  - Updated `addMetadataWithTagLib` to use `withTimeout` for promise resolution.
  - Updated `getMetadataWithTagLib` to use `withTimeout` for promise resolution.
  - Added default timeout parameter to both metadata functions.

- feat(taglib): improve metadata handling with ChunkedByteVectorStream
  - Enhanced metadata handling in taglib.ts and taglib.worker.ts to utilize ChunkedByteVectorStream.

- fix(taglib): handle metadata addition failure gracefully
  - Updated `addMetadataWithTagLib` to catch errors and return original audio data if metadata addition fails.

fix(downloads): return original blob if metadata addition fails
 - Wrap addMetadataToAudio call in try-catch to handle errors.

feat(taglib): add direct calling of taglib methods
  - Introduced `direct` parameter to `addMetadataWithTagLib` and `getMetadataWithTagLib` functions for direct processing in the current thread.
  - Exported taglib worker functions.
2026-03-19 15:14:52 -05:00
Daniel
98953b4572 feat(local-files): initialize localFilesCache and render local files in UI after each track is scanned 2026-03-19 15:13:13 -05:00
Daniel
cd64239ba1 refactor(downloads): add readableStreamIterator for easier stream handling
- Introduced `readableStreamIterator` to convert ReadableStream into async iterable.
- Updated `LosslessAPI` to utilize `readableStreamIterator` for handling response body.
- Modified `ZipNeutralinoWriter` to use `readableStreamIterator` for reading chunks.
2026-03-19 15:12:24 -05:00
Daniel
61aebf7994 refactor(metadata): move METADATA_STRINGS to separate file 2026-03-19 15:11:37 -05:00
Daniel
fd06160f7e refactor(doTimed): refactor error handling and skip timing when not in dev mode 2026-03-19 15:11:15 -05:00
Daniel
b7cac5724d fix(downloads): don't disable hi-res downloads on iOS or Safari
Just because the browser can't play them doesn't mean the user may not want to download them
2026-03-19 15:11:15 -05:00
Daniel
393491e2c8 refactor(platform-detection): add platform-detection.ts for browser and platform detection 2026-03-19 15:09:58 -05:00
Daniel
c315d2dfcd fix(downloads): update lossless quality labels 2026-03-19 15:09:58 -05:00
Daniel
2a4136a5f6 fix(downloads): progress index now shows correct track number in bulk download 2026-03-19 15:07:28 -05:00
edidealt
992974d790 fix image uploads 2026-03-19 18:58:15 +00:00
Nohan-V2
a18e865906 Fix settings persistence: ReplayGain Pre-Amp and Gapless Playback 2026-03-17 22:13:02 +01:00
edidealt
6b1619d2c3 more generas in the hot and new section 2026-03-17 20:40:55 +00:00
edideaur
e5b4cf6adf
Merge pull request #335 from Xenuel/feature/in-your-library
feat(ui): add "In Your Library" section to artist detail page
2026-03-17 11:00:11 +02:00
Samidy
971b5c94be Feat(Hot/New): Add R&B & Kids Genre Section 2026-03-17 06:04:27 +03:00
Samidy
07d78798cd feat(hot & new): metal genre 2026-03-17 04:36:49 +03:00
Xenuel
43f816ad25 refactor(ui): improve accessibility and security in "In Your Library" section
Replace h2 toggle with semantic button and aria-expanded attribute,
switch from style.display to hidden attribute for visibility control,
use DOM methods instead of innerHTML for source labels and modal
options to prevent XSS, improve artist matching with ID-based lookup,
and clean up event listeners before re-attaching to prevent leaks.
2026-03-16 23:46:25 +01:00