ui: Clean up contexts, remove prop drilling from Chat Form Actions (#26951)

* refactor: Remove dead context for Chat Settings and create a new one for Chat Messages Actions

* refactor: Contexts & types
This commit is contained in:
Aleksander Grygier
2026-08-13 08:21:15 +02:00
committed by GitHub
parent f2efd64141
commit d86c7d62df
32 changed files with 378 additions and 577 deletions
@@ -17,7 +17,6 @@
SETTINGS_CHAT_SECTIONS,
SETTINGS_SECTION_TITLES
} from '$lib/constants';
import { setChatSettingsConfigContext } from '$lib/contexts';
import { ColorMode } from '$lib/enums/ui.enums';
import { RouterService } from '$lib/services/router.service';
import { modelsStore, serverStore, settingsReferrer, settingsStore } from '$lib/stores';
@@ -122,14 +121,6 @@
export function reset() {
localConfig = { ...settingsStore.config };
}
setChatSettingsConfigContext({
handleConfigChange,
handleThemeChange,
get localConfig() {
return localConfig;
}
});
</script>
<div class="mx-auto flex h-full w-full flex-col md:pl-8" in:fade={{ duration: 150 }}>