feat(agenten): Runde 4 — «Meine Agenten» mit fünf digitalen Mitarbeitenden
Setzt das Umsetzungsbriefing Runde 4 im bestehenden Frontend um. Informationsarchitektur - «Teamübersicht» heisst «Meine Agenten»; ihr bisheriger Inhalt (Kreisgrafik, Auswertung, Verbindungszusammenfassung) ist entfallen. - Personalverwaltung, Bearbeitungsverlauf und Kanäle & Systeme sind jetzt Reiter derselben Seite (?section=), gestaltet wie die Auswahl im Bearbeitungsverlauf. Es wird nur der gewählte Bereich gerendert. - Die alten Unterseitenpfade leiten um, damit Lesezeichen nicht brechen. Agentenbestand - Reto und Lea vollständig entfernt — aus Navigation, Dossiers, Protokoll, Verbindungen, Vorgängen und Porträtbestand. - Retos Aufgaben liegen bei Bruno: Nachbereitung, WhatsApp-Anruf, Protokoll und Kundennotiz, Ablage im CRM. - Livia ist «Exposé Master»: Lageberichte, Inserate, Angebotsbroschüren. - Sidebar führt Ferdi, Bruno, Livia, Nora, Sina mit Porträt und Funktion. Agentenseiten - Ein gemeinsamer AgentWorkspaceHero auf allen fünf Seiten. - Ferdi: Auswertungskarten, Priorität und Typfarben entfallen; Fälligkeit nur bei fünf Tagen oder weniger rot; Objektlinks nach «Meine Objekte»; neu die Terminplanung im verbundenen Kalender mit typgerechtem PDF-Ausschnitt. - Sina: reduzierte, filter- und sortierbare Objektübersicht; Detailansicht direkt editierbar, leere Pflichtfelder rot umrandet. - Nora: Signale ohne Prozentsätze und Konfidenzstufen, nur belegbare Angaben; Mehrfachauswahl leitet Objekte an Livia weiter. - Livia: aktive und archivierte Leads, Arbeitsbereich gleitet an den oberen Rand; dreistufiger Exposé-Prozess Hochladen → Exposé → Export. - Bruno: neue Seite mit Auftragsliste und Vor-/Nachbereitungs-Drawer; Glocke warnt bei Besichtigung unter 24 Stunden ohne Bericht. Datenschicht - Neu: Kalender, Exposé-Leads, Exposé-Entwürfe, Besichtigungsaufträge — je Domain, Provider, Service und Hook. - IAIService um generateExposeText erweitert; der Entwurf nutzt ausschliesslich erfasste Objektdaten und meldet Lücken, statt sie zu füllen. - Alle Objektverweise zeigen auf reale Einträge aus «Meine Objekte»; neue Detailroute /supply/properties/:propertyId. Offen: Chat, Kalender, CRM und DMS sind Frontend-Simulation ohne Anbindung. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
cc5582b7fd
commit
d200d4e930
352 files changed
+8069
-8512
No files matched your search
@@ -18,7 +18,7 @@ describe('scoreMustHaves — empty criteria', () => {
|
||||
|
||||
describe('scoreMustHaves — Erdgeschoss (ground floor)', () => {
|
||||
it('PASSES when property is floor 0 and criterion contains "erdgeschoss"', () => {
|
||||
const prop = makeProperty({ hardFacts: { floor: 0 } } as any)
|
||||
const prop = makeProperty({ hardFacts: { floor: 0 } })
|
||||
const out = scoreMustHaves(['Erdgeschoss erforderlich'], prop)
|
||||
expect(out.results[0].passed).toBe(true)
|
||||
expect(out.results[0].confidence).toBe('CERTAIN')
|
||||
@@ -26,7 +26,7 @@ describe('scoreMustHaves — Erdgeschoss (ground floor)', () => {
|
||||
})
|
||||
|
||||
it('FAILS when property is floor 1 and criterion contains "erdgeschoss"', () => {
|
||||
const prop = makeProperty({ hardFacts: { floor: 1 } } as any)
|
||||
const prop = makeProperty({ hardFacts: { floor: 1 } })
|
||||
const out = scoreMustHaves(['Erdgeschoss ist Pflicht'], prop)
|
||||
expect(out.results[0].passed).toBe(false)
|
||||
expect(out.results[0].confidence).toBe('CERTAIN')
|
||||
@@ -45,14 +45,14 @@ describe('scoreMustHaves — Erdgeschoss (ground floor)', () => {
|
||||
|
||||
describe('scoreMustHaves — Klimaanlage (air conditioning)', () => {
|
||||
it('PASSES when hasAirConditioning is true', () => {
|
||||
const prop = makeProperty({ hardFacts: { hasAirConditioning: true } } as any)
|
||||
const prop = makeProperty({ hardFacts: { hasAirConditioning: true } })
|
||||
const out = scoreMustHaves(['Klimaanlage vorhanden'], prop)
|
||||
expect(out.results[0].passed).toBe(true)
|
||||
expect(out.results[0].confidence).toBe('CERTAIN')
|
||||
})
|
||||
|
||||
it('FAILS when hasAirConditioning is false', () => {
|
||||
const prop = makeProperty({ hardFacts: { hasAirConditioning: false } } as any)
|
||||
const prop = makeProperty({ hardFacts: { hasAirConditioning: false } })
|
||||
const out = scoreMustHaves(['Air conditioning benötigt'], prop)
|
||||
expect(out.results[0].passed).toBe(false)
|
||||
expect(out.results[0].confidence).toBe('CERTAIN')
|
||||
@@ -70,13 +70,13 @@ describe('scoreMustHaves — Klimaanlage (air conditioning)', () => {
|
||||
|
||||
describe('scoreMustHaves — Laderampe (loading dock)', () => {
|
||||
it('PASSES when loadingDocksCount >= 1', () => {
|
||||
const prop = makeProperty({ hardFacts: { loadingDocksCount: 2 } } as any)
|
||||
const prop = makeProperty({ hardFacts: { loadingDocksCount: 2 } })
|
||||
const out = scoreMustHaves(['Laderampe erforderlich'], prop)
|
||||
expect(out.results[0].passed).toBe(true)
|
||||
})
|
||||
|
||||
it('FAILS when loadingDocksCount is 0', () => {
|
||||
const prop = makeProperty({ hardFacts: { loadingDocksCount: 0 } } as any)
|
||||
const prop = makeProperty({ hardFacts: { loadingDocksCount: 0 } })
|
||||
const out = scoreMustHaves(['Verladerampe oder Tor'], prop)
|
||||
expect(out.results[0].passed).toBe(false)
|
||||
expect(out.scoreImpact).toBe(-MUST_HAVE_PENALTY_PER_MISS)
|
||||
@@ -87,7 +87,7 @@ describe('scoreMustHaves — Laderampe (loading dock)', () => {
|
||||
|
||||
describe('scoreMustHaves — Parkplatz with minimum count', () => {
|
||||
it('PASSES when available parking >= required count', () => {
|
||||
const prop = makeProperty({ softFactors: { ...makeProperty().softFactors, parkingSpots: 6 } as any })
|
||||
const prop = makeProperty({ softFactors: { ...makeProperty().softFactors, parkingSpots: 6 } })
|
||||
const out = scoreMustHaves(['mind. 5 Parkplätze'], prop)
|
||||
expect(out.results[0].passed).toBe(true)
|
||||
expect(out.results[0].confidence).toBe('CERTAIN')
|
||||
@@ -95,7 +95,7 @@ describe('scoreMustHaves — Parkplatz with minimum count', () => {
|
||||
})
|
||||
|
||||
it('FAILS when available parking < required count', () => {
|
||||
const prop = makeProperty({ softFactors: { ...makeProperty().softFactors, parkingSpots: 3 } as any })
|
||||
const prop = makeProperty({ softFactors: { ...makeProperty().softFactors, parkingSpots: 3 } })
|
||||
const out = scoreMustHaves(['mind. 10 Parkplätze'], prop)
|
||||
expect(out.results[0].passed).toBe(false)
|
||||
expect(out.results[0].confidence).toBe('CERTAIN')
|
||||
@@ -103,7 +103,7 @@ describe('scoreMustHaves — Parkplatz with minimum count', () => {
|
||||
})
|
||||
|
||||
it('detects parking keyword without numeric count', () => {
|
||||
const prop = makeProperty({ softFactors: { ...makeProperty().softFactors, parkingSpots: 2 } as any })
|
||||
const prop = makeProperty({ softFactors: { ...makeProperty().softFactors, parkingSpots: 2 } })
|
||||
const out = scoreMustHaves(['Parkplatz vorhanden'], prop)
|
||||
expect(out.results[0].passed).toBe(true)
|
||||
})
|
||||
@@ -115,7 +115,7 @@ describe('scoreMustHaves — penalty accumulation and cap', () => {
|
||||
it(`applies -${MUST_HAVE_PENALTY_PER_MISS} per failed CERTAIN criterion`, () => {
|
||||
const prop = makeProperty({
|
||||
hardFacts: { hasAirConditioning: false, loadingDocksCount: 0 },
|
||||
} as any)
|
||||
})
|
||||
const out = scoreMustHaves(['Klimaanlage', 'Laderampe'], prop)
|
||||
expect(out.scoreImpact).toBe(-2 * MUST_HAVE_PENALTY_PER_MISS)
|
||||
})
|
||||
@@ -128,7 +128,7 @@ describe('scoreMustHaves — penalty accumulation and cap', () => {
|
||||
floor: 2,
|
||||
isBarrierFree: false,
|
||||
},
|
||||
} as any)
|
||||
})
|
||||
const out = scoreMustHaves([
|
||||
'Klimaanlage',
|
||||
'Laderampe',
|
||||
|
||||
Reference in new issue
Block a user