mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-08 06:42:39 +02:00
move data-source ops to a modal inside build view (#186)
* added data source modal to build view * fixed scrape url and upload files showing up in the data modal in the build view * autoupdate data source status * keep focus in build view on deleting a data source * removed the rag tab and allow multiple file uploads * show scrapred urls and uploaded files * show text in the text data source * fixed status refreshes when using the detail view of data source * fix status refresh in the data panel * cleanup * fixed review comments on backend changes * moved the input text field in text data source to the new ui element * Fix PR review: Replace router.push with data sources modal in agent config - Add onOpenDataSourcesModal prop to AgentConfig component - Update 'Go to Data Sources' button to open modal instead of navigating - Change button text to 'Add Data Source' for clarity - Use forwardRef and useImperativeHandle to expose modal control - Remove router dependency from agent_config.tsx Addresses reviewer comment about using modal instead of route change. * fixed build issue * fixed nit comments * fixed line break
This commit is contained in:
parent
6fd897e569
commit
aa95b590e2
16 changed files with 1387 additions and 71 deletions
|
|
@ -1,5 +1,4 @@
|
|||
'use server';
|
||||
import { redirect } from "next/navigation";
|
||||
import { ObjectId, WithId } from "mongodb";
|
||||
import { dataSourcesCollection, dataSourceDocsCollection } from "../lib/mongodb";
|
||||
import { z } from 'zod';
|
||||
|
|
@ -132,8 +131,6 @@ export async function deleteDataSource(projectId: string, sourceId: string) {
|
|||
version: 1,
|
||||
},
|
||||
});
|
||||
|
||||
redirect(`/projects/${projectId}/sources`);
|
||||
}
|
||||
|
||||
export async function toggleDataSource(projectId: string, sourceId: string, active: boolean) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue