docs: Add docstrings for ideation context settings

This commit is contained in:
Monoquark
2026-01-24 13:13:11 +01:00
parent 1e87b73dfd
commit 1ecb97b71c
2 changed files with 11 additions and 0 deletions

View File

@@ -53,6 +53,10 @@ const IDEATION_CONTEXT_OPTIONS: Array<{
},
];
/**
* Renders a settings popover to toggle per-project ideation context sources.
* Merges defaults with stored overrides and persists changes via the ideation store.
*/
export function IdeationSettingsPopover({ projectPath }: IdeationSettingsPopoverProps) {
const { projectOverrides, setContextSource } = useIdeationStore(
useShallow((state) => ({

View File

@@ -116,7 +116,14 @@ interface IdeationActions {
setFilterStatus: (status: IdeaStatus | 'all') => void;
// Context sources
/**
* Returns the effective context-source settings for a project,
* merging defaults with any stored overrides.
*/
getContextSources: (projectPath: string) => IdeationContextSources;
/**
* Updates a single context-source flag for a project.
*/
setContextSource: (
projectPath: string,
key: keyof IdeationContextSources,