From 2dfe9484d63b6f762d1781195b0a415bb90541d3 Mon Sep 17 00:00:00 2001 From: Rob Mitchell Date: Fri, 6 Dec 2024 10:15:08 -0500 Subject: [PATCH] adding docs --- .../app/queryBuilding/dataState/UserQueriesDisplay.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/query-connector/src/app/queryBuilding/dataState/UserQueriesDisplay.tsx b/query-connector/src/app/queryBuilding/dataState/UserQueriesDisplay.tsx index 8e26ff0c..51924f9f 100644 --- a/query-connector/src/app/queryBuilding/dataState/UserQueriesDisplay.tsx +++ b/query-connector/src/app/queryBuilding/dataState/UserQueriesDisplay.tsx @@ -37,6 +37,7 @@ export const UserQueriesDisplay: React.FC = ({ queryId: string; } | null>(null); + // Delete existing query workflow const handleDelete = async (queryName: string, queryId: string) => { const result = await deleteQueryById(queryId); if (result.success) { @@ -61,6 +62,7 @@ export const UserQueriesDisplay: React.FC = ({ modalRef.current?.toggleModal(); }; + // Copy ID workflow const handleCopy = (queryName: string, queryId: string) => { navigator.clipboard .writeText(queryId) @@ -75,6 +77,7 @@ export const UserQueriesDisplay: React.FC = ({ }); }; + // Create new query workflow const handleClick = async () => { setLoading(true); @@ -82,6 +85,13 @@ export const UserQueriesDisplay: React.FC = ({ router.push("/queryBuilding/buildFromTemplates"); }; + // TODO: Need to create workflow for Edit button + // It will need to direct directly to the buildFromTemplates workflow with a specified ID + // It would then render `query_data` from query_table on that page + // const handleEdit = (queryId: string) => { + + // } + return (