feat: all tasks page plus search (#140)

This commit is contained in:
Carlos Florêncio
2026-02-01 19:07:52 +00:00
committed by GitHub
parent dbe5d20771
commit c163b61b7d
28 changed files with 1356 additions and 32 deletions
+5 -2
View File
@@ -75,6 +75,8 @@ interface TaskCreateDialogProps {
};
submitLabel?: string;
taskId?: string | null;
/** Whether to navigate to the new session after task creation. Defaults to true. */
navigateOnSessionCreate?: boolean;
}
type RepositoryOption = {
@@ -319,6 +321,7 @@ export function TaskCreateDialog({
initialValues,
submitLabel = 'Create',
taskId = null,
navigateOnSessionCreate = true,
}: TaskCreateDialogProps) {
const router = useRouter();
const isSessionMode = mode === 'session';
@@ -855,8 +858,8 @@ export function TaskCreateDialog({
setEnvironmentId('');
setExecutorId('');
// Navigate to the new session if one was created (this will unmount the dialog)
if (newSessionId) {
// Navigate to the new session if one was created and navigation is enabled
if (newSessionId && navigateOnSessionCreate) {
router.push(linkToSession(newSessionId));
} else {
onOpenChange(false);