mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
docs: Add docstrings for ideation context settings
This commit is contained in:
@@ -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) => ({
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user