diff --git a/rsconcept/frontend/src/app/application-layout.tsx b/rsconcept/frontend/src/app/application-layout.tsx index 4d61f049..50b742ba 100644 --- a/rsconcept/frontend/src/app/application-layout.tsx +++ b/rsconcept/frontend/src/app/application-layout.tsx @@ -49,11 +49,7 @@ export function ApplicationLayout() { -
+
diff --git a/rsconcept/frontend/src/app/navigation/logo.tsx b/rsconcept/frontend/src/app/navigation/logo.tsx index 7cd6d23a..85cf2584 100644 --- a/rsconcept/frontend/src/app/navigation/logo.tsx +++ b/rsconcept/frontend/src/app/navigation/logo.tsx @@ -11,7 +11,7 @@ export function Logo() { ); diff --git a/rsconcept/frontend/src/app/navigation/navigation-button.tsx b/rsconcept/frontend/src/app/navigation/navigation-button.tsx index 03eb6cad..4ea5d22b 100644 --- a/rsconcept/frontend/src/app/navigation/navigation-button.tsx +++ b/rsconcept/frontend/src/app/navigation/navigation-button.tsx @@ -24,7 +24,7 @@ export function NavigationButton({ icon, title, hideTitle, className, style, onC style={style} > {icon ? icon : null} - {text ? {text} : null} + {text ? {text} : null} ); } diff --git a/rsconcept/frontend/src/app/navigation/navigation.tsx b/rsconcept/frontend/src/app/navigation/navigation.tsx index 6f3f00db..79a4f3ab 100644 --- a/rsconcept/frontend/src/app/navigation/navigation.tsx +++ b/rsconcept/frontend/src/app/navigation/navigation.tsx @@ -2,6 +2,8 @@ import clsx from 'clsx'; +import { useAIStore } from '@/features/ai/stores/ai-context'; + import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/icons'; import { useWindowSize } from '@/hooks/use-window-size'; import { useAppLayoutStore } from '@/stores/app-layout'; @@ -14,6 +16,7 @@ import { MenuAI } from './menu-ai'; import { MenuUser } from './menu-user'; import { NavigationButton } from './navigation-button'; import { useConceptNavigation } from './navigation-context'; +import { SchemaTitle } from './schema-title'; import { ToggleNavigation } from './toggle-navigation'; export function Navigation() { @@ -22,6 +25,10 @@ export function Navigation() { const noNavigationAnimation = useAppLayoutStore(state => state.noNavigationAnimation); const activeDialog = useDialogsStore(state => state.active); + const currentSchema = useAIStore(state => state.currentSchema); + const currentOSS = useAIStore(state => state.currentOSS); + const schemaTitle = currentSchema?.title || currentOSS?.title; + const navigateHome = (event: React.MouseEvent) => push({ path: urls.home, newTab: event.ctrlKey || event.metaKey }); const navigateLibrary = (event: React.MouseEvent) => @@ -36,15 +43,16 @@ export function Navigation() {
-
+
-
+ {schemaTitle ? : null} +
} onClick={navigateCreateNew} /> } onClick={navigateLibrary} /> } onClick={navigateHelp} /> diff --git a/rsconcept/frontend/src/app/navigation/schema-title.tsx b/rsconcept/frontend/src/app/navigation/schema-title.tsx new file mode 100644 index 00000000..1143f691 --- /dev/null +++ b/rsconcept/frontend/src/app/navigation/schema-title.tsx @@ -0,0 +1,28 @@ +import clsx from 'clsx'; + +import { IconOSS, IconRSForm } from '@/components/icons'; +import { globalIDs } from '@/utils/constants'; + +interface SchemaTitleProps { + isRSForm: boolean; + title: string; +} + +export function SchemaTitle({ isRSForm, title }: SchemaTitleProps) { + return ( +
+ {isRSForm ? : } + {title} +
+ ); +}