rdmsm4x-changelog-20260826-1748-ak-default-gallery
AK default gallery and inline listing completion
Completed and verified the private AK default listing view: all 20 cards now render source-linked listing images, the full-detail experience expands inline, filtering and map chips match the requested prototype behavior, and D1 preserves provenance without caching third-party photo binaries.
Scope
- Host:
rdmsm4x - Canonical project:
/Users/richh/dev/sites/amagansett-app - Isolated writer worktree:
/Users/richh/dev/_handoff/codex-out/amagansett-ak-completion-20260826 - Branch:
codex/ak-completion-20260826 - Commit:
3930ab2e7744ef3b2457acb433612f72a1357a71 - Live site:
https://ak.amagansett.app/
Files changed
packages/platform/d1-repository.tspackages/platform/memory-repository.tspackages/platform/types.tssites/ak/index.htmlsites/ak/src/main.tssites/ak/src/site.cssworker/src/platform-api.tsworker/src/platform-fragments.tstests/e2e/ak-completion.spec.tstests/e2e/platform-fixtures.tstests/unit/ak-htmx-contract.test.tstests/unit/platform-api.test.tstests/unit/platform-fragments.test.tsmigrations/0005_admit_visible_zillow_media.sqlmigrations/0006_normalize_zillow_jpeg_media.sqlmigrations/0007_repair_broken_visible_media.sqlmigrations/0008_complete_default_view_media.sqlSESSION-STATE.mdISSUES.md
Live changes
- Deployed API Worker version
2da0ab23-26df-40c1-9509-b37b631b6132. - Deployed AK edge Worker version
4ef2dcbf-b59d-440f-b95a-fcc95561fbc9. - Deployed AK Pages build
https://e3ad5e34.amagansett-ak.pages.dev/. - Applied D1 migrations
0005through0008toamagansett-platform. - Added or repaired source-linked galleries for the 20 homes in the default view.
- Kept source URLs and attribution; no image binaries were copied into the project or D1.
Commands and checks
npm test— 25 files and 171 tests passed.npm run typecheck— passed.git diff --check— passed.npx wrangler d1 migrations apply amagansett-platform --remote— migrations0005through0008applied; an initialCREATE TEMP TABLEattempt was rejected by D1 and was replaced with a migration-scoped ordinary table before successful application.npx wrangler d1 migrations list amagansett-platform --remote— no pending migrations.- Queried D1 after the writes: 617 target-range properties, 20 photo-backed, 597 missing photo enrichment, and 114 property-media evidence rows.
- Validated all newly admitted URLs with HTTP 200 and image content types before applying them.
- Reloaded
https://ak.amagansett.app/, scrolled every default card into view, and verified all 20 images completed with natural widths from 960 to 2048 pixels; zero cards had a missing or zero-width image.
Rollback
- Frontend/API: deploy the prior known Worker and Pages versions
recorded in
SESSION-STATE.mdor redeploy the preceding branch commit. - D1 media: preserve the applied migration history. If a gallery must be withdrawn, add a forward-only migration that marks its media evidence unavailable and restores the prior projection; do not rewrite applied migrations.
- Source rollback: revert commit
3930ab2e7744ef3b2457acb433612f72a1357a71on the isolated branch. Do not force-push or overwrite the canonical checkout.
Outstanding work
- The default 20-card view is complete, but 597 of 617 target-range inventory records still require source-respectful photo enrichment.
- Continue in rate-limited batches, preferring broker/MLS pages for provenance and using Zillow as verification/fallback; validate both HTTP response and actual browser decode.