Commit graph

3 commits

Author SHA1 Message Date
c9e042fa98 Add Update/Article models, migration script, and complete LAD rebrand
Backend:
- New models: Update, Article (Deaf Focus)
- Expanded Event + Document models: directusId, photoUrl, new minute types
- New routes/controllers: /api/updates, /api/articles (full CRUD)
- Migration script: pulls all data from db.lad1908.org Directus API,
  downloads public PDFs into uploads/documents/, idempotent re-runs
- .env.example for production deployment reference
- Rename ocd_db → lad_db throughout

Frontend:
- Contact: LAD contact info, removed Olathe address and map
- Membership: LAD copy, membership fees replaced with contact-us prompt
- Donate: LAD name in metadata, hero, and FAQs

Infrastructure:
- mongo-init: simplified, uses MONGO_USER/MONGO_PASSWORD env vars, lad_db
- docker-compose: rename volumes ocd-* → lad-*, image names updated
- Upload directory structure committed via .gitkeep files
2026-05-24 15:29:30 -06:00
ddfe2723e1 Remove unnecessary files 2025-03-26 22:12:41 -05:00
ea521e92c6 This commit simplifies the document management system to improve usability and user experience:
- Model changes:
  - Remove 'category' field from Document model
  - Replace complex 'status' field with simple 'isPublic' boolean flag
  - Enhance document types to be more specific and user-friendly

- UI improvements:
  - Update DocumentForm component to use simplified model
  - Improve document listing page with clearer public/private status
  - Enhance document detail page with better PDF preview using <object> tag
  - Fix document edit page to work with new model

- API fixes:
  - Fix uploads API route to properly handle PDF files
  - Add proper content types for various document formats
  - Fix params.path handling to prevent errors

- UX enhancements:
  - Simplify form with clearer options
  - Make public/private toggle more intuitive
  - Improve document preview to avoid unwanted downloads
  - Enhance file type handling for better compatibility

- Documentation:
  - Update memory bank (activeContext.md and progress.md)

This change improves the overall user experience by making the document management
system more intuitive while maintaining all necessary functionality.
2025-03-26 18:45:32 -05:00