Skip to content

Conversation

ellahw
Copy link
Member

@ellahw ellahw commented Sep 9, 2026

Endringer

  • La til state for valgt album (selectedAlbum) og filtrerer songs (filteredSongs)
  • La til state for sortering (sortBy) og sorterer alfabetisk på tittel (sortedSongs)
  • FilterSortBar sender album- og sorteringsvalg opp via onAlbumChange og onSortByChange
  • sortedSongs brukes konsekvent i SongList, SongCard og Navigation
  • Nullstiller currentSongIndex ved albumbytte

Test

  • npm run lint fungerer uten feil
  • npm run build fungerer uten feil
  • Åpne appen med npm run dev og:
    • Test at valg av album filtrerer listen riktig
    • Test at listen vises alfabetisk sortert, også innenfor filtrert album
    • Test at forrige/neste fungerer innenfor filtrert/sortert utvalg
    • Test at "Alle album" viser alle sanger igjen

Closes #29 og #30

Løser konflikt fra stash pop av filtreringsendringer inn i
sorteringsbranchen.
@ellahw ellahw requested a review from a team as a code owner September 9, 2026 12:24
@ellahw ellahw linked an issue Sep 9, 2026 that may be closed by this pull request
1 task
Copy link
Member

@mariehd mariehd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testene kjører uten feil og funksjonene i appen funker! NAis!!

@ellahw ellahw merged commit 8a29e50 into main Sep 10, 2026
@ellahw ellahw deleted the 29-implementer-sorteringslogikk branch September 10, 2026 05:38
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementer sorteringslogikk
2 participants