[object Object]

← back to Commercialrealestate

fix(index): surface Condos + Unwarrantable as the FIRST chips inside the Asset type facet (were separate links below, easy to miss); nav-chips deep-link to the condos page

58cbcede14b3fc2b91660c8ca1a763e78cdf9e88 · 2026-07-02 10:12:43 -0700 · Steve Abrams

Files touched

Diff

commit 58cbcede14b3fc2b91660c8ca1a763e78cdf9e88
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Jul 2 10:12:43 2026 -0700

    fix(index): surface Condos + Unwarrantable as the FIRST chips inside the Asset type facet (were separate links below, easy to miss); nav-chips deep-link to the condos page
---
 public/index.html | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/public/index.html b/public/index.html
index 17b0c60..3bdbb36 100644
--- a/public/index.html
+++ b/public/index.html
@@ -200,11 +200,7 @@
 <aside id="drawer">
   <div class="dhead"><b>Filters</b><button class="x" id="dclose" aria-label="Close">✕</button></div>
 
-  <div class="fsec"><h4>Asset type</h4><div class="chips" id="fType"></div>
-    <div style="display:flex;flex-wrap:wrap;gap:6px;margin-top:9px">
-      <a href="/condos" style="display:inline-flex;align-items:center;gap:5px;background:rgba(210,153,34,.10);border:1px solid rgba(210,153,34,.4);color:var(--warn);border-radius:18px;padding:5px 11px;font-size:12px;text-decoration:none;font-weight:600">🏢 Condos →</a>
-      <a href="/condos?status=unwarrantable" style="display:inline-flex;align-items:center;gap:5px;background:rgba(248,81,73,.10);border:1px solid rgba(248,81,73,.4);color:var(--bad);border-radius:18px;padding:5px 11px;font-size:12px;text-decoration:none;font-weight:600" title="Non-FHA-approved condos — Arcstone non-QM target">⚑ Unwarrantable →</a>
-    </div></div>
+  <div class="fsec"><h4>Asset type</h4><div class="chips" id="fType"></div></div>
   <div class="fsec"><h4>Listing firm</h4><div class="chips" id="fFirm"></div></div>
   <div class="fsec"><h4>Submarket / city</h4>
     <input type="text" id="fCity" placeholder="search city or street… e.g. Encino, Ventura Blvd">
@@ -801,7 +797,10 @@ function buildFacets(){
   DATA.ranked.forEach(p=>{ tCount[p.type]=(tCount[p.type]||0)+1; const fl=firmLabel(p); fCount[fl]=(fCount[fl]||0)+1; if(p.city) cCount[p.city]=(cCount[p.city]||0)+1; });
   const chipHTML=(obj,key)=>Object.entries(obj).sort((a,b)=>b[1]-a[1])
     .map(([k,c])=>`<span class="chip" data-${key}="${k.replace(/"/g,'&quot;')}">${k}<span class="ct">${c}</span></span>`).join('');
-  $('#fType').innerHTML=chipHTML(tCount,'t');
+  // Condos live on their own page (separate schema) — surface them as asset-class chips that navigate.
+  const condoChips='<span class="chip" data-nav="/condos" style="border-color:rgba(210,153,34,.55);color:var(--warn)" title="LA condos — FHA warrantability">🏢 Condos →</span>'
+    +'<span class="chip" data-nav="/condos?status=unwarrantable" style="border-color:rgba(248,81,73,.55);color:var(--bad)" title="Non-FHA-approved condos — Arcstone non-QM target">⚑ Unwarrantable →</span>';
+  $('#fType').innerHTML=condoChips+chipHTML(tCount,'t');
   $('#fFirm').innerHTML=chipHTML(fCount,'fm');
   // top 14 cities as quick chips; the search box covers the rest
   const topCities=Object.entries(cCount).sort((a,b)=>b[1]-a[1]).slice(0,14);
@@ -970,7 +969,7 @@ fetch('data/ranked.json').then(r=>r.json()).then(d=>{
   $('#burger').onclick=openDrawer; $('#dclose').onclick=closeDrawer; $('#scrim').onclick=closeDrawer;
   $('#reset').onclick=resetAll;
   // facet chip handlers (multi-select toggles)
-  $('#fType').onclick=e=>{ const c=e.target.closest('.chip'); if(!c) return; F.types.has(c.dataset.t)?F.types.delete(c.dataset.t):F.types.add(c.dataset.t); syncChips(); render(); };
+  $('#fType').onclick=e=>{ const c=e.target.closest('.chip'); if(!c) return; if(c.dataset.nav){ location.href=c.dataset.nav; return; } F.types.has(c.dataset.t)?F.types.delete(c.dataset.t):F.types.add(c.dataset.t); syncChips(); render(); };
   $('#fFirm').onclick=e=>{ const c=e.target.closest('.chip'); if(!c) return; F.firms.has(c.dataset.fm)?F.firms.delete(c.dataset.fm):F.firms.add(c.dataset.fm); syncChips(); render(); };
   $('#fCityChips').onclick=e=>{ const c=e.target.closest('.chip'); if(!c) return; const cy=c.dataset.cy.toLowerCase(); F.cityQuery=(F.cityQuery===cy)?'':cy; $('#fCity').value=(F.cityQuery?c.dataset.cy:''); syncChips(); render(); };
   $('#fStatus').onclick=e=>{ const c=e.target.closest('.chip'); if(!c) return; F.status=c.dataset.st; syncChips(); render(); };

← a33bd46 feat(condos): full Amazon left-rail drill-down — warrantabil  ·  back to Commercialrealestate  ·  auto-save: 2026-07-02T10:17:10 (1 files) — public/index.html ad43c25 →