[CRITICAL] Admin JS-API binding: CRUD modals and delete operations #11

Open
opened 2026-04-19 11:21:08 +00:00 by NW · 0 comments
Owner

Problem

Admin panel HTML and backend API are fully implemented, but frontend JS is not connected to API endpoints.

Current state:

  • editProperty/Lead/Testimonial/FAQ/Service -> console.log()
  • deleteProperty/Lead etc -> updates local array only
  • All modal forms -> no submit handler
  • Settings save -> not bound to API

Required:

  1. Wire all CRUD modals to corresponding API endpoints
  2. Implement proper form submission with validation
  3. Add success/error notifications
  4. Refresh data after mutations
  5. Settings save to PUT /api/admin/settings

Files: public/js/admin.js, public/admin/*.html


Migrated from UniqueSoft/APAW#76

## Problem Admin panel HTML and backend API are fully implemented, but frontend JS is not connected to API endpoints. ### Current state: - editProperty/Lead/Testimonial/FAQ/Service -> console.log() - deleteProperty/Lead etc -> updates local array only - All modal forms -> no submit handler - Settings save -> not bound to API ### Required: 1. Wire all CRUD modals to corresponding API endpoints 2. Implement proper form submission with validation 3. Add success/error notifications 4. Refresh data after mutations 5. Settings save to PUT /api/admin/settings ### Files: public/js/admin.js, public/admin/*.html --- *Migrated from UniqueSoft/APAW#76*
NW added this to the Production Readiness - Phase 2 milestone 2026-04-19 11:21:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: UniqueSoft/TenerifeProp#11