Skip to content

Conversation

@justintadlock
Copy link
Collaborator

@justintadlock justintadlock commented Jan 26, 2026

Adds Artist, Song, and Album CPTs along with the Genre taxonomy.

@justintadlock justintadlock self-assigned this Jan 26, 2026
@justintadlock justintadlock added the enhancement New feature or request label Jan 26, 2026
@justintadlock justintadlock marked this pull request as ready for review January 27, 2026 19:09
return null;
}

if (isResolving) {
Copy link
Collaborator

@ryanwelcher ryanwelcher Jan 27, 2026

Choose a reason for hiding this comment

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

Not a blocker, but this and the other return statement can be defined by adding a ternary. Something like this ( you'll need to test it as I just wrote it up offhand)

<PluginDocumentSettingPanel
			name="album-parent-artist"
			title={__('Artist', 'bifrost-music')}
		>
    { isResolving ? ( <Spinner /> ) : (
			<SelectControl
				__next40pxDefaultSize
				__nextHasNoMarginBottom
				value={currentParent || 0}
				options={options}
				onChange={(value) => editPost({ parent: parseInt(value, 10) })}>
    )}
</PluginDocumentSettingPanel>

Copy link
Collaborator

@ryanwelcher ryanwelcher left a comment

Choose a reason for hiding this comment

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

I left some comments with some recommendations. None are blockers (maybe the -1 issue) so we can merge BUT we're going to need to figure out the PHPCS standards as per our discussion and that may require some changes to the code here.... ahem... whitespace :)


return {
albums: select(coreStore).getEntityRecords('postType', 'music_album', {
per_page: -1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We'll never have enough to use -1 and it's a bad practice to promote. Can we set a high limit like 100?

return null;
}

if (isResolving) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same note as above on the combined return statement.

@@ -0,0 +1,8 @@
const defaultConfig = require('@wordpress/scripts/config/webpack.config');
Copy link
Collaborator

Choose a reason for hiding this comment

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

This may not be required. You can just pass the name of the file to build to the script:

"build": "wp-scripts build ./src/editor.js",
"start": "wp-scripts start ./src/editor.js",

I can't remember if the output file is still named editor.js, so that might need be updated for the enqueue.

@justintadlock justintadlock merged commit a8e0211 into trunk Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants