Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Neutralize AI-branded tooltip on agent profile suggestions

rcourtmanbece20e7b4bd
diff --git a/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx b/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx
index 2bf192b32e..1c35b9a0f6 100644
--- a/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx
+++ b/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx
@@ -139,12 +139,11 @@ export const AgentProfilesPanel: Component = () => {
<span class="hidden sm:inline">New Profile</span>
<span class="sm:hidden">New</span>
</button>
- {/* Only show AI Ideas button if AI is enabled and configured */}
<Show when={aiAvailable()}>
<button
type="button"
onClick={handleSuggest}
- title="Get AI-powered profile suggestions"
+ title="Suggest profiles for your estate"
class="inline-flex min-h-10 sm:min-h-9 min-w-10 items-center gap-1.5 rounded-md border border-border bg-surface px-3 py-2 text-sm font-medium text-base-content transition-colors hover:bg-surface-hover sm:px-3 sm:py-2 sm:text-sm"
>
<Lightbulb class="w-3.5 h-3.5" />
diff --git a/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx
index 6a9cbd945e..02c640d3d3 100644
--- a/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx
@@ -1,6 +1,7 @@
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { render, screen, waitFor, fireEvent, cleanup, within } from '@solidjs/testing-library';
import agentProfilesPanelStateSource from '../useAgentProfilesPanelState.ts?raw';
+import agentProfilesPanelSource from '../AgentProfilesPanel.tsx?raw';
import { AgentProfilesPanel } from '../AgentProfilesPanel';
import { notificationStore } from '@/stores/notifications';
import type { ConnectedInfrastructureItem, State } from '@/types/api';
@@ -270,6 +271,11 @@ describe('AgentProfilesPanel V6 agent ID handling', () => {
expect(agentProfilesPanelStateSource).not.toContain('commercialPosture()?.trial_eligible');
});
+ it('keeps the Ideas button tooltip product-first instead of AI-branded', () => {
+ expect(agentProfilesPanelSource).toContain('title="Suggest profiles for your estate"');
+ expect(agentProfilesPanelSource).not.toContain('title="Get AI-powered profile suggestions"');
+ });
+
it('maps assignments using actionable V6 agent ID instead of resource hash ID', async () => {
listAssignmentsMock.mockResolvedValue([
{ agent_id: 'agent-123', profile_id: 'profile-a', updated_at: new Date().toISOString() },