Skip to content

Commit be25408

Browse files
committed
fix(Settings): hide AI Assistant from navigation until installed
1 parent 5d3c659 commit be25408

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

admin/docs/release-notes.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Release Notes
22

3+
## Unreleased
4+
5+
### Features
6+
- **AI Assistant**: Added improved user guidance for troubleshooting GPU pass-through issues
7+
- **Settings**: Nomad now automatically performs nightly checks for available app updates, and users can select and apply updates from the Apps page in Settings
8+
9+
### Bug Fixes
10+
- **Settings**: Fixed an issue where the AI Assistant settings page would be shown in navigation even if the AI Assistant was not installed, thus causing 404 errors when clicked
11+
- **Security**: Path traversal and SSRF mitigations
12+
13+
### Improvements
14+
315
## Version 1.28.0 - March 5, 2026
416

517
### Features

admin/inertia/layouts/SettingsLayout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ import {
1313
import { usePage } from '@inertiajs/react'
1414
import StyledSidebar from '~/components/StyledSidebar'
1515
import { getServiceLink } from '~/lib/navigation'
16+
import useServiceInstalledStatus from '~/hooks/useServiceInstalledStatus'
17+
import { SERVICE_NAMES } from '../../constants/service_names'
1618

1719
export default function SettingsLayout({ children }: { children: React.ReactNode }) {
1820
const { aiAssistantName } = usePage<{ aiAssistantName: string }>().props
21+
const aiAssistantInstallStatus = useServiceInstalledStatus(SERVICE_NAMES.OLLAMA)
1922

2023
const navigation = [
21-
{ name: aiAssistantName, href: '/settings/models', icon: IconWand, current: false },
24+
...(aiAssistantInstallStatus.isInstalled ? [{ name: aiAssistantName, href: '/settings/models', icon: IconWand, current: false }] : []),
2225
{ name: 'Apps', href: '/settings/apps', icon: IconTerminal2, current: false },
2326
{ name: 'Benchmark', href: '/settings/benchmark', icon: IconChartBar, current: false },
2427
{ name: 'Content Explorer', href: '/settings/zim/remote-explorer', icon: IconZoom, current: false },

0 commit comments

Comments
 (0)