fix(suche): KI-Suche sieht Scanner-Treffer
Der Scanner liegt in einer eigenen Datenbank (perinco_scanner); die KI-Suche las nur die crm_*-Tabellen und fand deshalb nichts zum Scanner. Treffer ab Anzeigeschwelle gehen jetzt als scanner_matches mit, Refs vom Typ "scanner" fuehren in die Scanner-Ansicht. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
090f745b0d
commit
e1b69fffbd
@@ -16,13 +16,15 @@ import { useNavigation } from '../lib/navigation';
|
||||
*/
|
||||
|
||||
/** Was ein Treffer öffnet - null heißt: nur anzeigen. */
|
||||
type Target = 'lead' | 'opportunity' | 'acquisition' | 'event' | null;
|
||||
type Target = 'lead' | 'opportunity' | 'acquisition' | 'event' | 'scanner' | null;
|
||||
|
||||
const OPENABLE: Record<string, Target> = {
|
||||
lead: 'lead',
|
||||
opportunity: 'opportunity',
|
||||
acquisition: 'acquisition',
|
||||
event: 'event',
|
||||
// Scanner-Treffer nennt nur die KI-Suche; sie führen in die Scanner-Ansicht.
|
||||
scanner: 'scanner',
|
||||
// Kontakte aus dem ICON CRM haben hier keine Karte - sie werden drüben
|
||||
// gepflegt. Der Treffer zeigt sie, öffnet aber nichts.
|
||||
icon: null,
|
||||
@@ -123,6 +125,7 @@ export const GlobalSearch: React.FC = () => {
|
||||
else if (target === 'opportunity') goTo('Opportunities', { opportunityId: Number(id) });
|
||||
else if (target === 'acquisition') goTo('Akquise');
|
||||
else if (target === 'event') goTo('Interviews');
|
||||
else if (target === 'scanner') goTo('Scanner');
|
||||
setFocused(false);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user