Skip to content

Conversation

@reosarevok
Copy link
Member

Implement MBS-12750

Description

This is mostly a straight conversion, but I'm using the chance to at least reuse CDTocReleaseListRow, and make the list a bit more consistent with others, such as reusing the bottom header and string from AttachCDTocToRelease and also listing the release artist here (which is useful since it's good to know when the AC includes other artists in addition to the selected one).

The "Show tracklist" link no longer show for releases to which the discID cannot be attached; this matches what we do elsewhere, and in any case we were not loading the tracklists for those releases so the toggle was useless.

On top of #3660

Testing

Manually, with /cdtoc/attach?toc=1+1+15104+150&filter-artist.query=nine+inch&artist=347&tport=8000 (and /cdtoc/attach?toc=1+1+15104+150&filter-artist.query=a&artist=1872008 to make sure it also shows fine when the release list is empty).

We'll need all of this in other files for converting cdtoc/list
so this extracts the code into reusable components.
Mostly a straight conversion; it reuses existing code for
showing the tracklist and for edit links.
The used tracklist code displays in a different (but IMO better)
way than the original, but contains the same data.
Follows the same kind of structure as the other CDToc
components. Ideally we should look into whether we can
redesign these a bit to share the table and row components
(with optional columns as needed).

This seems to be the last use of cdtoc/list.tt so I'm dropping it.
This is mostly a straight conversion, but I'm using the chance
to at least reuse CDTocReleaseListRow, and make
the list a bit more consistent with others, such as reusing
the bottom header and string from AttachCDTocToRelease
and also listing the release artist here (which is useful since
it's good to know when the AC includes *other artists* in
addition to the selected one).
The "Show tracklist" link no longer show for releases to
which the discID cannot be attached; this matches what we
do elsewhere, and in any case we were not loading the
tracklists for those releases so the toggle was useless.
@reosarevok reosarevok added the React PRs directly related with React conversion label Oct 31, 2025
AFAICT the last use of this we had was cdtoc/attach_list.tt
which is now gone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

React PRs directly related with React conversion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant