Skip to content

feat(personalization): add persistent song personalization#146

Draft
JaniL wants to merge 3 commits into
mainfrom
feat/personalized-song-experience
Draft

feat(personalization): add persistent song personalization#146
JaniL wants to merge 3 commits into
mainfrom
feat/personalized-song-experience

Conversation

@JaniL

@JaniL JaniL commented Apr 18, 2026

Copy link
Copy Markdown
Collaborator

Closes issue #141


Implement a client-side personalization model so users can curate their own songbook view without touching shared content metadata. The home page now consumes slug-based song entries and derives favorites, hidden state, and visit-based sorting from localStorage, which enables stable behavior across reloads and future personalization extensions.

This also introduces a hidden-song warning and song-level actions (favorite/hide) on the song page, while making server boundaries explicit by renaming the filesystem song loader module to serverSongs.

Screenshot 2026-04-18 at 10 28 04 Screenshot 2026-04-18 at 10 28 09 Screenshot 2026-04-18 at 10 28 21 Screenshot 2026-04-18 at 10 28 41

…e and song pages

Implement a client-side personalization model so users can curate their own songbook view without touching shared content metadata. The home page now consumes slug-based song entries and derives favorites, hidden state, and visit-based sorting from localStorage, which enables stable behavior across reloads and future personalization extensions.

This also introduces a hidden-song warning and song-level actions (favorite/hide) on the song page, while making server boundaries explicit by renaming the filesystem song loader module to serverSongs. Together these changes align issues #141-#144 under one cohesive flow.
@JaniL

JaniL commented Apr 18, 2026

Copy link
Copy Markdown
Collaborator Author

Show hidden now also counts songs that have been set hidden in content-level. Should it do that or not?

Comment thread pages/songs/[slug].tsx Outdated
Comment thread pages/songs/[slug].tsx
Comment thread components/SongList.tsx
@ConcernedHobbit

Copy link
Copy Markdown
Collaborator

Also, maybe a stylized


between Favorites and the rest of the listing to make the distinction clearer (esp. with 3 favorites). Good contribution, thanks! A couple q's to go through and then good for merge :)

JaniL added 2 commits April 19, 2026 13:55
…zation lists

Ensure songs marked hidden in markdown frontmatter remain excluded from home views regardless of user personalization settings. This prevents Show hidden from surfacing content-hidden songs and keeps repository-level visibility rules authoritative.

The home hidden counter and favorites section now derive from non-content-hidden songs only, so counts and favorites reflect user personalization state without leaking permanently hidden content.
…gate

Remove the visibility-loading placeholder from the song page render path so static HTML always includes the song title and lyrics content on first load. This preserves crawlable content for SEO and avoids shipping a transient placeholder as the primary document body.

The hidden-song warning remains client-side and still redirects away when a user cancels, but initial rendering is no longer blocked behind post-hydration state.
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.

2 participants