Skip to content

fix(localtoolbox): send from the queue to the open tool, and say what the state file holds - #491

Open
botandbang wants to merge 1 commit into
mainfrom
bnb/toolbox-core-fixes
Open

botandbang wants to merge 1 commit into
mainfrom
bnb/toolbox-core-fixes

Conversation

@botandbang

Copy link
Copy Markdown
Contributor

Fixes LOC-219
Fixes LOC-223
Fixes LOC-228

Sending to the open tool. The sheet set its own copy of the preference, persisted() keeps separate state per call, and the same tool id remounts nothing.

Added: source in $lib/source.ts, the one object all three share, as downloader.svelte.ts does for its settings. An effect in the Downloader that collects again when the source changes, whoever changed it.

Removed: the source and onchange props of SourcePicker, and the SOURCES export.

State file text. Changed: the note after an import no longer says to reload the tab, since an open tab repaints marks at once. The sheet and the Manager's button title say "your marks, lists, queue and a few options" instead of everything, since the file carries three options.

Comments. Changed: content.ts (the press comes before the queue), prefs.svelte.ts (three keys are in the file), SettingsSheet.svelte, StateTransfer.svelte and state-transfer.ts (not everything), the playlist panel ("your likes"), and queue.svelte.ts (a queued button, not a pill).

… the state file holds

Sending from the queue sheet to the tool already open only closed the
sheet: the sheet and the panel each had their own copy of the source
preference, and the same tool remounts nothing. The source is now one
object, as the Downloader's settings are, and the Downloader's list follows
it whoever changes it.

The note after an import said to reload the tab, though an open tab repaints
marks at once, and the sheet said the file holds everything the extension
has saved, though it holds three options. Comments that drifted the same way
are fixed with them.

Fixes LOC-219
Fixes LOC-223
Fixes LOC-228
@botandbang
botandbang requested a review from bnb as a code owner November 7, 2026 03:15
@linear-code

linear-code Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

LOC-223

LOC-219

LOC-228

@github-actions github-actions Bot added localtoolbox The localtoolbox Chrome extension localtoolbox: core The menu, session queue, settings, saved state and shared code localtoolbox: content script What runs on SoundCloud's pages localtoolbox: playlist to text The SoundCloud playlist to text tool localtoolbox: manager The Manager tool localtoolbox: downloads The third-party downloads tool tests Tests, fixtures and test harnesses labels Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Coverage Report for apps/localtoolbox

Status Category Percentage Covered / Total
🟢 Lines 100% (🎯 100%)
🟰 ±0 pp
4428 / 4428
🟢 Statements 100% (🎯 100%)
🟰 ±0 pp
6005 / 6005
🟢 Functions 100% (🎯 100%)
🟰 ±0 pp
1759 / 1759
🟢 Branches 98.59% (🎯 50%)
🟰 ±0 pp
2875 / 2916
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/localtoolbox/content.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/state-transfer.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/lib/prefs.svelte.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/lib/queue.svelte.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/lib/source.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/lib/components/QueueSheet.svelte 100%
🟰 ±0 pp
94.11%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/lib/components/SettingsSheet.svelte 100%
🟰 ±0 pp
75%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/lib/components/SourcePicker.svelte 100%
🟰 ±0 pp
87.5%
⬇️ -2.50 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/lib/components/StateTransfer.svelte 100%
🟰 ±0 pp
98.73%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/tools/manager/Panel.svelte 100%
🟰 ±0 pp
95.57%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/tools/soundcloud-playlist-to-text/Panel.svelte 100%
🟰 ±0 pp
92.1%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/tools/third-party-downloads/Panel.svelte 100%
🟰 ±0 pp
98.73%
⬆️ +0.01 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
Generated in workflow #460 for commit bd0e699 by the Vitest Coverage Report Action

Size

Compared with main. KiB are 1,024 bytes.

This pull request main Change
Packaged (localtoolbox.zip) 358.9 KiB 359 KiB -85 B (-0%)
Unpacked (dist/) 806.3 KiB 806.4 KiB -170 B (-0%)

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

localtoolbox: content script What runs on SoundCloud's pages localtoolbox: core The menu, session queue, settings, saved state and shared code localtoolbox: downloads The third-party downloads tool localtoolbox: manager The Manager tool localtoolbox: playlist to text The SoundCloud playlist to text tool localtoolbox The localtoolbox Chrome extension tests Tests, fixtures and test harnesses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants