A song's page can have a genre or ID line so long it pushes the top bar out of place

Open
#277 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
frontend

Research direction

Start with Track.razor around lines 77–79 to see how song genres and ProviderIds are rendered, then check how album and artist pages use ProviderIds. Reproduce the wrapping with a song that has many genres or ISRCs, such as Wonderwall. Done means long metadata no longer pushes the top bar out of shape, while the remaining genres and IDs are still accessible.

Written by the indexing model from the issue text.

Description

bug frontend
What happened

On some songs' pages, the line under the title runs very long, so the top bar is pushed out of shape. For example, Oasis's Wonderwall has 13 genres and six ISRCs. The line wraps onto several rows, and the cover sits off-centre beside it.

Why, from a look at the code
  • Genres: SongGenres.Of (GenresTask.cs) keeps 3 (SongGenres.Kept) of the catalogue's genres, but a file's own genres are used as they are. Some files are tagged with many, and the song page (Track.razor:77) shows them all.
  • IDs: ProviderIds (Track.razor:79) shows every ID the song has. A song released many times can have many ISRCs.
  • Both are in the same row as the artist, length and status, which wraps as far as it needs to.
What might fix it
  • Show at most 3 genres on the page, as the catalogue's are kept, with the rest in a tooltip or behind a "+10".
  • Show a few IDs, one of each kind, with "+5 more" opening the rest.
  • Keep the row to a line or two and cut off anything longer, so the top bar keeps its shape.
  • Check the album and artist pages' ID lines, which use the same ProviderIds.
How to make it happen
  1. Have a song whose file is tagged with many genres, or that has many ISRCs, such as Wonderwall.
  2. Open its page: the line under the title wraps over several rows.
Melodex version

2.0.1

Where you saw it

The web app, on a computer

Dominant language
C#
Stars
0
Forks
0
Avg merge
10h 45m
Merged PRs (30d)
135

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Dextrd/Melodex

All issues in Dextrd/Melodex

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.