AI Session Handoff — Premier Realty Portal
Read before making any changes. Same FUSE-safe rules apply as all SONAN portals.
Critical Rules
| Rule | Why |
|---|---|
Write to /tmp first — never FUSE path directly | FUSE silently truncates large writes |
Use /tmp/rp-git — never git -C <FUSE_path> | FUSE git config unreadable |
| Strip null bytes before hashing | Edit/Write tools append null bytes on FUSE |
| Remove ALL unused TypeScript vars | TS6133 = Pages build failure |
App.tsx at src/App.tsx | main.tsx imports ./App from src root |
| Parent = last PUSHED SHA | Intermediate commits cause push rejection |
Where Things Live
| Item | Path |
|---|---|
| Project root | E:\Claude_Projects\sonan-trackers\realtor-portal\ |
| Worker env | premierrealty in wrangler.toml |
| D1 ID | 788cf2ea-86f8-4b88-bf0a-06277168455e |
| Public showings route | POST /api/showings-public — no auth, creates showing record |
| Listing status flow | Active → Under Contract → Sold (or Withdrawn / Expired) |
Next Tasks
Portal is deployed and live at premierrealty.sonandigital.com. Most likely next feature: email notification to admin when a new showing request comes in from the public form. Add Resend call in Worker's POST /api/showings-public handler, set RESEND_API_KEY as Worker secret.