Commit graph

5 commits

Author SHA1 Message Date
Benjamin Slingo 1013ca0870 Remove admin event creation - force submission form workflow
Streamline admin panel to only handle pending event approvals:
- Remove create_admin_event functions from Rust core
- Remove createAdminEventJson from API bindings
- Update events admin page to focus on pending approvals only
- Maintain edit/delete for approved events via main collection

Enforces cleaner workflow: Submit → Approve → Auto-move to events collection
2025-08-28 22:14:17 -04:00
Benjamin Slingo f91f696334 Convert admin panel to Astro routes and remove thumbnail field
Major architecture cleanup following CLAUDE.md rules:

## Admin Panel Conversion (1843 lines → TypeScript routes)
- Remove public/admin/scripts/main.js (direct API calls violation)
- Add proper Astro admin routes with TypeScript API endpoints
- Add missing admin functions in church-core Rust crate
- Update bindings.js to expose new admin functions

## Thumbnail Field Removal
- Remove thumbnail upload section from event submission form
- Clean up thumbnail-related JavaScript code

## Architecture Compliance Achieved
 Frontend → bindings.js → Rust FFI → church-core → API
 Frontend → fetch() → External API (eliminated)

Files: +13 admin routes, -1843 line JS file, enhanced Rust core
2025-08-28 21:58:49 -04:00
Benjamin Slingo 756a755ba6 Fix PO BOX display and security vulnerability
- Add getChurchPhysicalAddress and getChurchPoBox functions to church-core
- Update UniFFI interface to expose new functions
- Add NAPI wrappers in astro-church-website for new functions
- Update Footer and contact page to use separate address fields
- Rebuild native bindings with new functions
- Display physical address and PO BOX on separate lines properly
- Fix Astro security vulnerability (GHSA-xf8x-j4p2-f749)

Resolves the missing PO BOX issue that was caused by newline character
handling problems between Rust and JavaScript in production environments.
2025-08-26 17:22:25 -04:00
Benjamin Slingo 16caf6c3c4 Add PWA support and fix PO BOX display in address
- Add comprehensive PWA configuration with manifest, service worker, and meta tags
- Replace Android APK download with cross-platform PWA installation
- Fix church address to include PO BOX information from API
- Update contact page and footer to properly display multi-line addresses
- Enable native app-like experience on all platforms without app store requirements
2025-08-26 16:49:47 -04:00
RTSDA 13993ecd25 Initial commit - source code only with SecondThirdSaturday recurring type fix 2025-08-16 18:28:35 -04:00