Skip to content

fix(localtoolbox): keep an artist's profile when a lookup fails - #490

Open
botandbang wants to merge 1 commit into
mainfrom
bnb/toolbox-failed-lookup
Open

botandbang wants to merge 1 commit into
mainfrom
bnb/toolbox-failed-lookup

Conversation

@botandbang

Copy link
Copy Markdown
Contributor

Fixes LOC-220

Pressing look up again while /resolve failed (offline, a 5xx, a 429 past its retries) landed in failed, the panel turned that into unavailable: true, and learn overwrote the profile.

Added

  • missing in ProfilesAnswer and ProfilesProgress: paths SoundCloud answered for, with a 404 or something that isn't a user.
  • A lookup failed line on the row, kept in the panel for that lookup. Nothing about it is saved, so the next lookup asks again.

Changed

  • failed now means the lookup couldn't ask. Those answers don't reach the store, so a profile stays, and a new row stays not looked up and is offered for the next lookup.
  • The README and docs/artists.md.

Every lookup that wasn't a 401 landed in `failed`, the panel turned that
into `unavailable`, and the store overwrote the profile. A row with a bio
and links then said "no public profile" until someone pressed look up
again, and a new row read as a private account.

The page now answers `missing` when SoundCloud says nobody is there and
`failed` when it couldn't ask. Only `missing` reaches the store. A failed
row keeps what it had and says "lookup failed", which isn't stored.

Fixes LOC-220
@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-220

@github-actions github-actions Bot added documentation Improvements or additions to documentation 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: artists The artists tool tests Tests, fixtures and test harnesses labels Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Size

Compared with main. KiB are 1,024 bytes.

This pull request main Change
Client JavaScript 772.6 KiB 772.6 KiB 0 B (0%)
Client JavaScript, brotli 259.7 KiB 259.7 KiB 0 B (0%)
Client CSS 94.5 KiB 94.5 KiB 0 B (0%)
Client CSS, brotli 13.6 KiB 13.6 KiB 0 B (0%)

@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
4442 / 4442
🟢 Statements 100% (🎯 100%)
🟰 ±0 pp
6023 / 6023
🟢 Functions 100% (🎯 100%)
🟰 ±0 pp
1760 / 1760
🟢 Branches 98.59% (🎯 50%)
🟰 ±0 pp
2884 / 2925
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/src/tools/artists/Panel.svelte 100%
🟰 ±0 pp
94.89%
⬆️ +0.24 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/tools/artists/artists.svelte.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/localtoolbox/src/tools/artists/profiles.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
Generated in workflow #459 for commit 45ed68e by the Vitest Coverage Report Action

Size

Compared with main. KiB are 1,024 bytes.

This pull request main Change
Packaged (localtoolbox.zip) 359.1 KiB 359 KiB +122 B (+0%)
Unpacked (dist/) 807 KiB 806.4 KiB +543 B (+0.1%)

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

documentation Improvements or additions to documentation localtoolbox: artists The artists tool localtoolbox: content script What runs on SoundCloud's pages localtoolbox: core The menu, session queue, settings, saved state and shared code 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