MBS-12750: Convert attach_artist_releases to React #3664
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 fromAttachCDTocToReleaseand 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=1872008to make sure it also shows fine when the release list is empty).