feat: F030 Anfragencenter — Aktive & Latente Anfragen + Angebot-Wizard
Neuer Menüpunkt «Anfragencenter» (ehemals «Eingehende Bedarfe»): Aktive Anfragen: - Split-View: Anfrageliste (Liste/Grid-Toggle) + Chat-Detailansicht - Chat-Verlauf mit Sender-Styling (Mieter links, Supply rechts) - Antwortformular mit Betreff, Nachricht, Anhänge, Statuswechsel - Zugehörige Property Card neben dem Chat Latente Anfragen: - Drei-Spalten-Layout: Need-Liste | Need-Detail | Eigene Objekte - Need Cards mit AI-Zusammenfassung, Must-Haves, Präferenzen - Eigene Portfolio-Objekte sortiert nach deterministischem Match-Score - Checkbox-Selektion für Angebotsauswahl Angebot-Wizard (4 Schritte): - Schritt 1: Objekte auswählen (mit Score-Vorschau) - Schritt 2: PDF-Vorschau + editierbare Textfelder - Schritt 3: Angebot prüfen & bestätigen - Schritt 4: Nachricht an Suchenden mit KI-generierter Mail Architektur: - Domain: Inquiry, LatentNeed, OfferDraft Types - Provider: IInquiryProvider, ILatentNeedProvider, IOfferProvider + Mockups - Services: inquiryService, latentNeedService, offerService - Hooks: useInquiries, useLatentNeeds, useOffers (TanStack Query) - Store: offerWizardStore (Zustand, lokaler Wizard-State) - 27 neue Komponenten, alle Loading/Empty/Error States Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
export interface Attachment {
|
||||
id: string
|
||||
fileName: string
|
||||
fileType: string
|
||||
fileSize?: number
|
||||
url?: string
|
||||
generated?: boolean
|
||||
}
|
||||
|
||||
export interface InquiryMessage {
|
||||
id: string
|
||||
inquiryId: string
|
||||
senderType: 'tenant' | 'supply_user' | 'system' | 'ai'
|
||||
senderName: string
|
||||
subject?: string
|
||||
body: string
|
||||
attachments: Attachment[]
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
export type InquiryStatus = 'new' | 'in_progress' | 'answered' | 'archived'
|
||||
|
||||
export interface Inquiry {
|
||||
id: string
|
||||
organizationId: string
|
||||
propertyId: string
|
||||
needId?: string
|
||||
tenantName: string
|
||||
tenantCompany?: string
|
||||
tenantEmail?: string
|
||||
subject: string
|
||||
message: string
|
||||
status: InquiryStatus
|
||||
matchScore?: number
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
thread: InquiryMessage[]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import type { AssetType } from './enums'
|
||||
import type { WeightedPreference } from './need'
|
||||
|
||||
export interface LatentNeed {
|
||||
id: string
|
||||
title: string
|
||||
tenantCompany?: string
|
||||
assetType: AssetType
|
||||
desiredLocation: string
|
||||
sizeRange: { min: number; max: number }
|
||||
budgetRange?: { min?: number; max?: number }
|
||||
timing: string
|
||||
mustHaveCriteria: string[]
|
||||
weightedPreferences: WeightedPreference[]
|
||||
aiSummary?: string
|
||||
publicVisibility: boolean
|
||||
status: 'public' | 'paused' | 'expired'
|
||||
createdAt: string
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
export type OfferStatus = 'selecting_properties' | 'draft' | 'pdf_review' | 'checked' | 'sent'
|
||||
|
||||
export interface OfferEditableField {
|
||||
id: string
|
||||
label: string
|
||||
value: string
|
||||
fieldType: 'text' | 'textarea'
|
||||
}
|
||||
|
||||
export interface OfferDraft {
|
||||
id: string
|
||||
needId: string
|
||||
selectedPropertyIds: string[]
|
||||
subject: string
|
||||
message: string
|
||||
pdfUrl?: string
|
||||
status: OfferStatus
|
||||
editableFields: OfferEditableField[]
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
Reference in New Issue
Block a user