← back to Commercialrealestate
agent.html: render labeled 'Firm listings' section (firm-site inventory, honestly not claimed as the agent's own book)
c45525e786d0d565c815dae8c50b9cb7962c57b2 · 2026-08-19 09:40:09 -0700 · Steve Abrams
Files touched
Diff
commit c45525e786d0d565c815dae8c50b9cb7962c57b2
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed Aug 19 09:40:09 2026 -0700
agent.html: render labeled 'Firm listings' section (firm-site inventory, honestly not claimed as the agent's own book)
---
public/agent.html | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/public/agent.html b/public/agent.html
index 57716ec..800d082 100644
--- a/public/agent.html
+++ b/public/agent.html
@@ -58,6 +58,10 @@ select{background:var(--card);border:1px solid var(--line);color:var(--ink);bord
<div class="toolbar"><h3>Past · closed (sold) <span class="count" id="pastcount"></span></h3></div>
<div id="pastgrid" class="grid"></div>
</div>
+ <div id="firmwrap" hidden>
+ <div class="toolbar"><h3>Firm listings <span class="count" id="firmcount"></span> <span style="font-weight:400;font-size:11px;color:var(--mut)">— from <span id="firmname"></span>'s own site (firm inventory, not this agent's individual book)</span></h3></div>
+ <div id="firmgrid" class="grid"></div>
+ </div>
<div class="note" id="prov"></div>
</div>
<script>
@@ -126,7 +130,14 @@ else fetch('/api/agent-profile?name='+encodeURIComponent(NAME)).then(r=>r.json()
$('#pastcount').textContent=`(${closed.length})`;
$('#pastwrap').hidden=false;
}
- $('#prov').innerHTML=`Profile built from Designer/CRCP's own broker graph — agent resolved by name; current + past (closed/sold) listings from our records. No aggregator (Crexi/LoopNet/etc.) data is used or shown.`;
+ const firm=a.firm_listings||[];
+ if(firm.length){
+ $('#firmgrid').innerHTML=firm.map(cardHtml).join('');
+ $('#firmcount').textContent=`(${firm.length})`;
+ $('#firmname').textContent=a.firm||'the firm';
+ $('#firmwrap').hidden=false;
+ }
+ $('#prov').innerHTML=`Profile built from Designer/CRCP's own broker graph — agent resolved by name; current + past (closed/sold) listings from our records; <b>Firm listings</b> scraped directly from the firm's own website (openclaw + local model), attributed at the firm level. No aggregator (Crexi/LoopNet/etc.) data is used or shown.`;
}).catch(()=>{ $('#hero').innerHTML=`<div class="who"><h2>${esc(NAME)}</h2><div class="meta">Could not load this agent.</div></div>`; });
</script>
<script src="/corner-nav.js" defer></script>
← c395270 agent-profile: add firm_listings (direct-from-firm-site inve
·
back to Commercialrealestate
·
broker-grid: 'View full profile ->' link in the broker modal b0d8b1d →