[READ-ONLY] Mirror of https://github.com/ewanc26/pkgs. my pkgs monorepo docs.ewancroft.uk/projects/pkgs
monorepo nix

refactor(tourmaline): extract profile loading into a shared client module master

Pull the fetch-scrobbles → compute → enrich orchestration out of profile/[did]/+page.svelte's onMount (previously ~150 lines inline) into $lib/client/load-profile.ts. Pure extraction, no behavior change — verified via svelte-check (0 errors) and a production build. This is prep for the compare route, which needs to run the exact same loading pipeline for two DIDs without duplicating it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>


+366 -292
2 changed files