fix(FN-000): scope dashboard project flows

This commit is contained in:
gsxdsm
2026-04-02 17:51:04 -07:00
parent bf12c22efb
commit 05f2114743
63 changed files with 1332 additions and 904 deletions

View File

@@ -20,6 +20,7 @@ interface InlineCreateCardProps {
onSubmit: (input: TaskCreateInput) => Promise<Task>;
onCancel: () => void;
addToast: (msg: string, type?: ToastType) => void;
projectId?: string;
/**
* Optional model list from a parent surface. When omitted, InlineCreateCard
* fetches models itself so it can stay reusable in both list and board flows
@@ -61,6 +62,7 @@ export function InlineCreateCard({
onSubmit,
onCancel,
addToast,
projectId,
availableModels,
onPlanningMode,
onSubtaskBreakdown,
@@ -160,7 +162,7 @@ export function InlineCreateCard({
}
});
fetchSettings()
fetchSettings(projectId)
.then((nextSettings) => {
if (!cancelled) {
setSettings(nextSettings);
@@ -175,7 +177,7 @@ export function InlineCreateCard({
return () => {
cancelled = true;
};
}, [availableModels]);
}, [availableModels, projectId]);
const executorSelectionValue = getModelSelectionValue(executorProvider, executorModelId);
const validatorSelectionValue = getModelSelectionValue(validatorProvider, validatorModelId);
@@ -293,7 +295,7 @@ export function InlineCreateCard({
const failures: string[] = [];
for (const img of pendingImages) {
try {
await uploadAttachment(task.id, img.file);
await uploadAttachment(task.id, img.file, projectId);
} catch {
failures.push(img.file.name);
}