diff --git a/apps/admin-x-settings/package.json b/apps/admin-x-settings/package.json index a56558551f..f181236f26 100644 --- a/apps/admin-x-settings/package.json +++ b/apps/admin-x-settings/package.json @@ -39,7 +39,7 @@ "dependencies": { "@codemirror/lang-html": "6.4.9", "@tryghost/color-utils": "0.2.2", - "@tryghost/kg-unsplash-selector": "0.1.17", + "@tryghost/kg-unsplash-selector": "0.2.0", "@tryghost/limit-service": "1.2.14", "@tryghost/nql": "0.12.3", "@tryghost/timezone-data": "0.4.3", diff --git a/apps/admin-x-settings/src/components/settings/advanced/labs/AlphaFeatures.tsx b/apps/admin-x-settings/src/components/settings/advanced/labs/AlphaFeatures.tsx index 5c632a9e74..3d926d76c9 100644 --- a/apps/admin-x-settings/src/components/settings/advanced/labs/AlphaFeatures.tsx +++ b/apps/admin-x-settings/src/components/settings/advanced/labs/AlphaFeatures.tsx @@ -63,14 +63,22 @@ const features = [{ title: 'Internal Linking (private beta)', description: 'Adds internal URL search to editor link inputs', flag: 'internalLinking' +},{ + title: 'Internal Linking @-links (internal alpha)', + description: 'Adds internal URL search when typing @ in the editor', + flag: 'internalLinkingAtLinks' },{ title: 'ActivityPub', description: '(Highly) Experimental support for ActivityPub.', flag: 'ActivityPub' },{ - title: 'Subhead', - description: 'Using custom excerpts as subheads in editor and newsletter', - flag: 'subhead' + title: 'Subtitle in editor', + description: 'Using custom excerpt as subtitle in editor', + flag: 'editorSubtitle' +},{ + title: 'Subtitle in newsletter', + description: 'Showing subtitle in newsletter', + flag: 'newsletterSubtitle' }]; const AlphaFeatures: React.FC = () => { diff --git a/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterDetailModal.tsx b/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterDetailModal.tsx index ebb5bf11b4..a053d81346 100644 --- a/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterDetailModal.tsx +++ b/apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterDetailModal.tsx @@ -103,7 +103,7 @@ const Sidebar: React.FC<{ const {mutateAsync: uploadImage} = useUploadImage(); const [selectedTab, setSelectedTab] = useState('generalSettings'); const hasEmailCustomization = useFeatureFlag('emailCustomization'); - const hasSubhead = useFeatureFlag('subhead'); + const hasNewsletterSubtitle = useFeatureFlag('newsletterSubtitle'); const {localSettings} = useSettingGroup(); const [siteTitle] = getSettingValues(localSettings, ['title']) as string[]; const handleError = useHandleError(); @@ -417,6 +417,22 @@ const Sidebar: React.FC<{ value={newsletter.title_color} onChange={color => updateNewsletter({title_color: color})} />} + + {(hasNewsletterSubtitle && newsletter.show_post_title_section) && + updateNewsletter({show_subhead: e.target.checked})} + /> + } + updateNewsletter({show_feature_image: e.target.checked})} + /> +