feat: F014 compare view — side-by-side decision table with AI summary
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3,27 +3,14 @@ import { UnifiedResultCard } from './UnifiedResultCard'
|
||||
|
||||
interface Props {
|
||||
results: UnifiedMatchResult[]
|
||||
isInCompare: (id: string) => boolean
|
||||
onCompare: (propertyId: string) => void
|
||||
}
|
||||
|
||||
export function UnifiedResultFeed({ results, isInCompare, onCompare }: Props) {
|
||||
export function UnifiedResultFeed({ results }: Props) {
|
||||
return (
|
||||
<>
|
||||
{results.map(result => {
|
||||
const compareId =
|
||||
result.resultType !== 'FUTURE_AVAILABILITY'
|
||||
? (result as { property: { id: string } }).property.id
|
||||
: ''
|
||||
return (
|
||||
<UnifiedResultCard
|
||||
key={result.matchId}
|
||||
result={result}
|
||||
isInCompare={compareId ? isInCompare(compareId) : false}
|
||||
onCompare={onCompare}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
{results.map(result => (
|
||||
<UnifiedResultCard key={result.matchId} result={result} />
|
||||
))}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user