Added functionality for hiding weather and news widgets

This commit is contained in:
PSYEONE
2025-11-28 11:59:53 +00:00
parent 9934c1dbe0
commit 3005b379cf
4 changed files with 77 additions and 7 deletions

View File

@@ -11,3 +11,9 @@ export const getAutoMediaSearch = () =>
export const getSystemInstructions = () =>
getClientConfig('systemInstructions', '');
export const getShowWeatherWidget = () =>
getClientConfig('showWeatherWidget', 'true') === 'true';
export const getShowNewsWidget = () =>
getClientConfig('showNewsWidget', 'true') === 'true';

View File

@@ -69,6 +69,24 @@ class ConfigManager {
default: true,
scope: 'client',
},
{
name: 'Show weather widget',
key: 'showWeatherWidget',
type: 'switch',
required: false,
description: 'Display the weather card on the home screen.',
default: true,
scope: 'client',
},
{
name: 'Show news widget',
key: 'showNewsWidget',
type: 'switch',
required: false,
description: 'Display the recent news card on the home screen.',
default: true,
scope: 'client',
},
],
personalization: [
{