Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Internal: rename the new Podcast slug to 'podcast' in the Jetpack submenu reorder list; legacy 'podcasting' entry untouched.


Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function () {
'search',
'subscribers',
'newsletter',
'jetpack-podcast',
'podcast',
'podcasting',
'traffic',
'jetpack#/settings',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Slim down wp-build wiring to the Backup pattern: drop bridge_wp_build_enqueue and fix_boot_import_map_ordering, alias $screen->id via current_screen instead.
5 changes: 4 additions & 1 deletion projects/packages/podcast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,21 @@
"extends @wordpress/browserslist-config"
],
"dependencies": {
"@wordpress/components": "32.6.0",
"@automattic/jetpack-components": "workspace:*",
"@wordpress/element": "6.44.0",
"@wordpress/i18n": "6.17.0",
"@wordpress/ui": "0.11.0"
},
"devDependencies": {
"@automattic/jetpack-base-styles": "workspace:*",
"@automattic/jetpack-wp-build-polyfills": "workspace:*",
"@babel/core": "7.29.0",
"@babel/runtime": "7.29.2",
"@types/react": "18.3.28",
"@wordpress/base-styles": "6.20.0",
"@wordpress/browserslist-config": "6.44.0",
"@wordpress/build": "0.13.0",
"@wordpress/theme": "0.11.0",
"browserslist": "^4.24.0"
},
"optionalDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/podcast/routes/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"@automattic/jetpack-components": "workspace:*",
"@types/react": "18.3.28",
"@wordpress/components": "32.6.0",
"@wordpress/element": "6.44.0",
"@wordpress/i18n": "6.17.0",
"@wordpress/ui": "0.11.0"
Expand Down
6 changes: 6 additions & 0 deletions projects/packages/podcast/routes/dashboard/route.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@use "@automattic/jetpack-base-styles/admin-page-layout" as *;

body.jetpack_page_jetpack-podcast {

@include jetpack-admin-page-layout;
}
46 changes: 23 additions & 23 deletions projects/packages/podcast/routes/dashboard/stage.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/**
* Podcast dashboard stage: page chrome + tab navigation.
*
* Placeholder scaffolding only — each tab panel renders a stub. PR 4 in the
* untangle train wires the full AdminPage + jetpack-components integration
* along with the real tab contents.
*/

import AdminPage from '@automattic/jetpack-components/admin-page';
import { useState, useCallback } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import { Tabs } from '@wordpress/ui';
import './route.scss';

const TAB_VALUES = [ 'settings', 'episodes', 'distribution', 'stats' ] as const;
type TabName = ( typeof TAB_VALUES )[ number ];
Expand All @@ -26,19 +20,25 @@ const Stage = () => {
}, [] );

return (
<div className="wrap">
<h1>Podcast</h1>
<p>
{ __( 'Publish a podcast and reach your fans, anywhere they listen.', 'jetpack-podcast' ) }
</p>

<Tabs.Root value={ activeTab } onValueChange={ handleTabChange }>
<Tabs.List>
<Tabs.Tab value="settings">{ __( 'Settings', 'jetpack-podcast' ) }</Tabs.Tab>
<Tabs.Tab value="episodes">{ __( 'Episodes', 'jetpack-podcast' ) }</Tabs.Tab>
<Tabs.Tab value="distribution">{ __( 'Distribution', 'jetpack-podcast' ) }</Tabs.Tab>
<Tabs.Tab value="stats">{ __( 'Stats', 'jetpack-podcast' ) }</Tabs.Tab>
</Tabs.List>
<Tabs.Root value={ activeTab } onValueChange={ handleTabChange }>
<AdminPage
/* "Podcast" is a product name, do not translate. */
title="Podcast"
subTitle={ __(
'Publish a podcast and reach your fans, anywhere they listen.',
'jetpack-podcast'
) }
tabs={
<div className="jp-admin-page-tabs">
<Tabs.List>
<Tabs.Tab value="settings">{ __( 'Settings', 'jetpack-podcast' ) }</Tabs.Tab>
<Tabs.Tab value="episodes">{ __( 'Episodes', 'jetpack-podcast' ) }</Tabs.Tab>
<Tabs.Tab value="distribution">{ __( 'Distribution', 'jetpack-podcast' ) }</Tabs.Tab>
<Tabs.Tab value="stats">{ __( 'Stats', 'jetpack-podcast' ) }</Tabs.Tab>
</Tabs.List>
</div>
}
>
<Tabs.Panel value="settings">
<p>{ __( 'Settings — placeholder.', 'jetpack-podcast' ) }</p>
</Tabs.Panel>
Expand All @@ -51,8 +51,8 @@ const Stage = () => {
<Tabs.Panel value="stats">
<p>{ __( 'Stats — placeholder.', 'jetpack-podcast' ) }</p>
</Tabs.Panel>
</Tabs.Root>
</div>
</AdminPage>
</Tabs.Root>
);
};

Expand Down
Loading
Loading