) {
router.push({ path: urls.prompt_template(row.id, PromptTabID.EDIT), newTab: event.ctrlKey || event.metaKey });
}
return (
);
diff --git a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-list-templates/index.tsx b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-list-templates/index.tsx
deleted file mode 100644
index 6b614e60..00000000
--- a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-list-templates/index.tsx
+++ /dev/null
@@ -1 +0,0 @@
-export { TabListTemplates } from './tab-list-templates';
diff --git a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-view-variables.tsx b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-view-variables.tsx
index 87dba601..896eff82 100644
--- a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-view-variables.tsx
+++ b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-view-variables.tsx
@@ -1,3 +1,3 @@
export function TabViewVariables() {
- return View all variables
;
+ return View all variables
;
}
diff --git a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/templates-tabs.tsx b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/templates-tabs.tsx
index f9d32a80..b7735936 100644
--- a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/templates-tabs.tsx
+++ b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/templates-tabs.tsx
@@ -22,6 +22,14 @@ interface TemplatesTabsProps {
tab: PromptTabID;
}
+function TabLoader() {
+ return (
+
+
+
+ );
+}
+
export function TemplatesTabs({ activeID, tab }: TemplatesTabsProps) {
const router = useConceptNavigation();
@@ -54,12 +62,15 @@ export function TemplatesTabs({ activeID, tab }: TemplatesTabsProps) {
-
+ }>
+
+
{activeID ? (
- }>
-
+ }>
+ {' '}
+ {' '}
) : null}
diff --git a/rsconcept/frontend/src/stores/dialogs.ts b/rsconcept/frontend/src/stores/dialogs.ts
index edee5811..cbd19802 100644
--- a/rsconcept/frontend/src/stores/dialogs.ts
+++ b/rsconcept/frontend/src/stores/dialogs.ts
@@ -1,6 +1,7 @@
import { create } from 'zustand';
import { type DlgAIPromptDialogProps } from '@/features/ai/dialogs/dlg-ai-prompt';
+import { type DlgCreatePromptTemplateProps } from '@/features/ai/dialogs/dlg-create-prompt-template';
import { type DlgChangeLocationProps } from '@/features/library/dialogs/dlg-change-location';
import { type DlgCloneLibraryItemProps } from '@/features/library/dialogs/dlg-clone-library-item';
import { type DlgCreateVersionProps } from '@/features/library/dialogs/dlg-create-version';
@@ -69,7 +70,9 @@ export const DialogType = {
SHOW_TERM_GRAPH: 28,
CREATE_SCHEMA: 29,
IMPORT_SCHEMA: 30,
- AI_PROMPT: 31
+
+ AI_PROMPT: 31,
+ CREATE_PROMPT_TEMPLATE: 32
} as const;
export type DialogType = (typeof DialogType)[keyof typeof DialogType];
@@ -113,6 +116,7 @@ interface DialogsStore {
showCreateSchema: (props: DlgCreateSchemaProps) => void;
showImportSchema: (props: DlgImportSchemaProps) => void;
showAIPrompt: (props: DlgAIPromptDialogProps) => void;
+ showCreatePromptTemplate: (props: DlgCreatePromptTemplateProps) => void;
}
export const useDialogsStore = create()(set => ({
@@ -155,5 +159,6 @@ export const useDialogsStore = create()(set => ({
showEditCst: props => set({ active: DialogType.EDIT_CONSTITUENTA, props: props }),
showCreateSchema: props => set({ active: DialogType.CREATE_SCHEMA, props: props }),
showImportSchema: props => set({ active: DialogType.IMPORT_SCHEMA, props: props }),
- showAIPrompt: (props: DlgAIPromptDialogProps) => set({ active: DialogType.AI_PROMPT, props: props })
+ showAIPrompt: (props: DlgAIPromptDialogProps) => set({ active: DialogType.AI_PROMPT, props: props }),
+ showCreatePromptTemplate: props => set({ active: DialogType.CREATE_PROMPT_TEMPLATE, props: props })
}));
diff --git a/rsconcept/frontend/src/styling/overrides.css b/rsconcept/frontend/src/styling/overrides.css
index 31d1ca7b..4f55e7fd 100644
--- a/rsconcept/frontend/src/styling/overrides.css
+++ b/rsconcept/frontend/src/styling/overrides.css
@@ -23,7 +23,6 @@
/* React Tooltip */
--rt-color-white: var(--color-input);
--rt-color-dark: var(--color-foreground);
-
}
/* Dark Theme */