fix: Schattenmarkt bypass source filter + bump external/maison match scores for all tiers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Sutter
2026-05-19 23:10:41 +02:00
parent 3756675b6f
commit 0663757cde
2 changed files with 49 additions and 48 deletions
+6 -5
View File
@@ -71,11 +71,12 @@ export default function Results() {
const { data: results = [], isLoading } = useUnifiedResults(activeNeed?.id)
const filtered = results
// Exclude VERIFIED_PORTFOLIO by default; include only when toggled on by Property Manager
.filter(r => r.resultType !== 'VERIFIED_PORTFOLIO' || showOwnProperties)
.filter(r => filterSource === 'ALL' || r.resultType === filterSource)
.filter(r => showSchattenmarkt || r.resultType !== 'FUTURE_AVAILABILITY')
const filtered = results.filter(r => {
if (r.resultType === 'VERIFIED_PORTFOLIO') return showOwnProperties
// Schattenmarkt toggle is independent of the source filter
if (r.resultType === 'FUTURE_AVAILABILITY') return showSchattenmarkt
return filterSource === 'ALL' || r.resultType === filterSource
})
const sorted = sortResults(filtered, sortBy)