Rename 'active themes' to 'profile themes' in feed settings and labels
This commit is contained in:
+2
-2
@@ -73,8 +73,8 @@ const hardcodedConfig: AppConfig = {
|
||||
feedIncludeProfileThemes: true,
|
||||
showThemeDefinitions: true,
|
||||
feedIncludeThemeDefinitions: true,
|
||||
showActiveThemes: true,
|
||||
feedIncludeActiveThemes: true,
|
||||
showProfileThemeUpdates: true,
|
||||
feedIncludeProfileThemeUpdates: true,
|
||||
showCustomProfileThemes: true,
|
||||
},
|
||||
sidebarOrder: [],
|
||||
|
||||
@@ -949,7 +949,7 @@ function ThemePreferencesSection() {
|
||||
const { user } = useCurrentUser();
|
||||
|
||||
const showOnProfiles = feedSettings.showCustomProfileThemes !== false;
|
||||
const showInFeed = feedSettings.feedIncludeThemeDefinitions !== false || feedSettings.feedIncludeActiveThemes !== false;
|
||||
const showInFeed = feedSettings.feedIncludeThemeDefinitions !== false || feedSettings.feedIncludeProfileThemeUpdates !== false;
|
||||
|
||||
const handleProfileThemeToggle = async (value: boolean) => {
|
||||
updateFeedSettings({ showCustomProfileThemes: value });
|
||||
@@ -963,7 +963,7 @@ function ThemePreferencesSection() {
|
||||
const patch = {
|
||||
feedIncludeProfileThemes: value,
|
||||
feedIncludeThemeDefinitions: value,
|
||||
feedIncludeActiveThemes: value,
|
||||
feedIncludeProfileThemeUpdates: value,
|
||||
};
|
||||
updateFeedSettings(patch);
|
||||
if (user) {
|
||||
|
||||
@@ -409,8 +409,8 @@ function SetupQuestionnaire({ onComplete, onPreload, isSignup = false }: {
|
||||
feedIncludeProfileThemes: true,
|
||||
showThemeDefinitions: true,
|
||||
feedIncludeThemeDefinitions: true,
|
||||
showActiveThemes: true,
|
||||
feedIncludeActiveThemes: true,
|
||||
showProfileThemeUpdates: true,
|
||||
feedIncludeProfileThemeUpdates: true,
|
||||
showCustomProfileThemes: true,
|
||||
};
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ export function ThemeContent({ event }: ThemeContentProps) {
|
||||
const title = event.tags.find(([n]) => n === 'title')?.[1];
|
||||
return {
|
||||
colors: active.colors,
|
||||
title: title ?? 'Active Theme',
|
||||
title: title ?? 'Profile Theme',
|
||||
description: undefined as string | undefined,
|
||||
identifier: undefined as string | undefined,
|
||||
sourceRef: active.sourceRef,
|
||||
|
||||
@@ -76,16 +76,16 @@ export interface FeedSettings {
|
||||
feedIncludeWebxdc: boolean;
|
||||
/** Show Themes link in sidebar */
|
||||
showProfileThemes: boolean;
|
||||
/** Include Profile Theme updates in the follows/global feed (legacy key, maps to feedIncludeThemeDefinitions + feedIncludeActiveThemes) */
|
||||
/** Include Profile Theme updates in the follows/global feed (legacy key, maps to feedIncludeThemeDefinitions + feedIncludeProfileThemeUpdates) */
|
||||
feedIncludeProfileThemes: boolean;
|
||||
/** Show theme definitions (kind 36767) on Themes page */
|
||||
showThemeDefinitions: boolean;
|
||||
/** Include theme definitions in the follows/global feed */
|
||||
feedIncludeThemeDefinitions: boolean;
|
||||
/** Show active theme updates (kind 16767) on Themes page */
|
||||
showActiveThemes: boolean;
|
||||
/** Include active theme updates in the follows/global feed */
|
||||
feedIncludeActiveThemes: boolean;
|
||||
/** Show profile theme updates (kind 16767) on Themes page */
|
||||
showProfileThemeUpdates: boolean;
|
||||
/** Include profile theme updates in the follows/global feed */
|
||||
feedIncludeProfileThemeUpdates: boolean;
|
||||
/** Show custom profile themes when visiting other users' profiles */
|
||||
showCustomProfileThemes: boolean;
|
||||
}
|
||||
|
||||
@@ -174,10 +174,10 @@ export const EXTRA_KINDS: ExtraKindDef[] = [
|
||||
},
|
||||
{
|
||||
kind: 16767,
|
||||
showKey: 'showActiveThemes',
|
||||
feedKey: 'feedIncludeActiveThemes',
|
||||
label: 'Theme Updates',
|
||||
description: 'Active profile theme updates',
|
||||
showKey: 'showProfileThemeUpdates',
|
||||
feedKey: 'feedIncludeProfileThemeUpdates',
|
||||
label: 'Profile Themes',
|
||||
description: 'Profile theme updates',
|
||||
addressable: false,
|
||||
},
|
||||
],
|
||||
|
||||
+2
-2
@@ -155,8 +155,8 @@ export const FeedSettingsSchema = z.looseObject({
|
||||
feedIncludeProfileThemes: z.boolean().optional(),
|
||||
showThemeDefinitions: z.boolean().optional(),
|
||||
feedIncludeThemeDefinitions: z.boolean().optional(),
|
||||
showActiveThemes: z.boolean().optional(),
|
||||
feedIncludeActiveThemes: z.boolean().optional(),
|
||||
showProfileThemeUpdates: z.boolean().optional(),
|
||||
feedIncludeProfileThemeUpdates: z.boolean().optional(),
|
||||
showCustomProfileThemes: z.boolean().optional(),
|
||||
});
|
||||
|
||||
|
||||
@@ -59,8 +59,8 @@ export function TestApp({ children }: TestAppProps) {
|
||||
feedIncludeProfileThemes: true,
|
||||
showThemeDefinitions: true,
|
||||
feedIncludeThemeDefinitions: true,
|
||||
showActiveThemes: true,
|
||||
feedIncludeActiveThemes: true,
|
||||
showProfileThemeUpdates: true,
|
||||
feedIncludeProfileThemeUpdates: true,
|
||||
showCustomProfileThemes: true,
|
||||
},
|
||||
sidebarOrder: [],
|
||||
|
||||
Reference in New Issue
Block a user