Move photo specific fields to photos table #5
Labels
No labels
agent
blocked
agent
new
agent
review
agent
working
complexity
high
complexity
low
priority
high
priority
low
priority
medium
risk
high
risk
low
risk
medium
type
bug
type
chore
type
feature
type
security
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tfks/trippin#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Now that we have the need for a dedicated photos table, move these fields out of the pois table:
/needs-spec
Brief — Developer
Phase: simple. Run
fjx dev prompt simplefor the cycle protocol.Ledger for: agent-pm
Status: closed @ 2026-05-22T16:06:25.895Z
Briefs:
Activity
(PM manages this ledger; agent section unused)
Ledger for: agent-dev
Status: review @ 2026-05-21T05:30:53.491Z
Tasks
0008_move_photo_fields.sql: adds photo columns tophotos, backfills frompois, drops frompois, recreates gallery index, addsidx_photos_took, createspois_fullviewsrc/lib/pois/db.ts: changed allSELECT * FROM poisread queries to usepois_fullview soPoitype remains unchangedsrc/lib/pois/upload.ts: removed photo fields fromINSERT INTO pois; addedINSERT INTO photoswith url_original, took, exif, width, heightsrc/lib/pois/tasks.ts(optimize-photo): changed SELECT and UPDATE frompoistophotossrc/lib/curation/db.ts: changedloadPhoto/loadPhotosForTripto select photo fields fromphotos(INNER JOIN instead of LEFT JOIN)src/lib/curation/handlers.ts(crop-photo): changed UPDATE frompoistophotossrc/routes/api/pois/[id]/update.ts: removedtookfrom pois UPDATE; added separateUPDATE photos SET tookfor when a took value is providedsrc/routes/globe.tsx: changedSELECT url_thumbnail FROM poistoSELECT url_thumbnail FROM photossrc/routes/api/trips/[id]/delete.ts: changed storage-path collection to JOIN photos on poissrc/routes/api/photos/[id]/analyze.ts: changedSELECT url_original FROM poistoSELECT url_original FROM photossrc/scripts/reencode-poi-variants.ts: changed query frompoistophotosValidation
deno fmt --check: ✅ passdeno lint: ✅ passdeno check src/: ✅ passjust test::audit,test::secrets,test::sast: ❌ pre-existing failures on main (confirmed)just test::coverage,test::fuzz: ❌ require running local Supabase + .env.test (not available in dev agent environment)Brief — QA
Phase: review. Run
fjx qa prompt defaultfor the cycle protocol.