Skip to content

Remove orphaned /admin/images page-images feature#29

Merged
loganlanou merged 1 commit into
mainfrom
chore/remove-page-images
May 27, 2026
Merged

Remove orphaned /admin/images page-images feature#29
loganlanou merged 1 commit into
mainfrom
chore/remove-page-images

Conversation

@loganlanou
Copy link
Copy Markdown
Collaborator

Summary

Follow-up to the admin audit. The page-images manager (/admin/images) was a complete, working feature (inline URL/alt editing, drag-sort, upload) but unreachable — the route redirected to /admin and there was no sidebar link. Removed it the same way the gallery was removed.

  • Dropped the /admin/images redirect and all /admin/api/images* + /admin/api/upload/page-image routes.
  • Removed handlers (AdminImages, APIUpdateImageURL/Alt/SortOrder, APIUploadPageImage), the admin_images template, the PageImage model, and the PageImages dashboard stat.
  • DB table + sqlc page_images queries left in place (no destructive migration), matching the gallery removal.

admin.js still has the now-unused inline-edit/sortable/upload helpers (harmless no-ops) — left as-is to match the gallery removal; can be cleaned up separately.

Test plan

  • go build ./... + go build -tags dev ./..., go test -race ./... (both tags), golangci-lint run → 0 issues
  • /admin/images, /admin/api/images/:id/url, /admin/api/upload/page-image/:id404
  • All remaining admin pages (/admin, /content, /contacts, /users, /settings) → 200

🤖 Generated with Claude Code

The page-images manager (inline URL/alt edit, drag-sort, upload) was complete
but unreachable — /admin/images redirected to /admin and there was no nav link.
Per decision, remove it the same way the gallery was removed.

- Drop routes: the /admin/images redirect and all /admin/api/images* +
  /admin/api/upload/page-image routes.
- Remove handlers (AdminImages, APIUpdateImageURL/Alt/SortOrder,
  APIUploadPageImage), the admin_images template, the PageImage model, and the
  PageImages dashboard stat.
- DB table + sqlc page_images queries are left in place (no destructive
  migration), matching the gallery removal.

Note: admin.js still contains the now-unused inline-edit/sortable/upload
helpers (harmless no-ops); left as-is to match the gallery removal and can be
cleaned up separately.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rowe-tech Building Building Preview, Comment May 27, 2026 1:38pm

@loganlanou loganlanou merged commit c65f7dd into main May 27, 2026
2 of 3 checks passed
@loganlanou loganlanou deleted the chore/remove-page-images branch May 27, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant