Commit graph

16 commits

Author SHA1 Message Date
db8bc58691 Fix backend: remove type:module, conflicts with CommonJS tsc output 2026-05-25 08:39:52 -06:00
8d82ec46d3 Fix duplicate Mongoose index warnings in Document and Member models 2026-05-24 22:54:33 -06:00
5f94462afd Wire updates, events, minutes, deaf-focus pages to backend API
Replace static arrays with Next.js Server Component fetch() calls.
Add express.static for /uploads. Revalidate every hour.
2026-05-24 22:44:49 -06:00
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
dd9c48f6cd Upgrade all packages to latest major versions; fix two pre-existing bugs
Frontend:
- next 15 → 16.2.6, react 19.0 → 19.2.6, eslint-config-next updated to match
- Add missing axios dependency (was implicit, broke build)
- Fix VideoPlayer.tsx broken absolute import path (pre-existing bug)
- Fix uploads route handler params to async (Next.js 16 breaking change)
- Remove deprecated images.domains → remotePatterns in next.config.js
- Remove experimental.serverActions (promoted to stable, then removed in v16)
- Update lint script: next lint removed in v16, now uses eslint directly

Backend:
- express 4 → 5.2.1, mongoose 8 → 9.6.2
- bcrypt 5 → 6, helmet 7 → 8, zod 3 → 4
2026-05-24 13:05:38 -06:00
e2e33764d3 Rebrand from OCD to LAD with full structural changes
- Update all OCD/Olathe/1975 references to LAD/Louisiana/1908
- Add Updates, Minutes, and Deaf Focus pages to nav, footer, and filesystem
- Rename package names from ocd-website-* to lad-website-*
- Reduce nav font size to accommodate 9 nav items
- Update metadata, OpenGraph, and Twitter card for lad1908.org
2026-05-24 13:00:09 -06:00
338f81f7ad Phase 7: Fix theme selector positioning and implement dynamic theme-aware styling
- Fixed theme selector dropdown positioning issues with proper Tailwind classes
- Replaced custom CSS classes with standard Tailwind utilities for v4 compatibility
- Implemented dynamic theme-aware styling system for dropdown appearance
- Added theme-specific styling for Light, Dark, High Contrast Light, High Contrast Dark
- Enhanced UX with professional dropdown interface and visual consistency
- Maintained 100% theme compliance and accessibility standards
- Updated memory bank documentation with Phase 7 completion

Key improvements:
- Professional dropdown with proper shadows, borders, and backgrounds
- Dynamic styling that adapts to current website theme
- Enhanced accessibility with ARIA support and keyboard navigation
- Seamless visual integration across all theme modes
- Production-ready theme selector with polished UI
2025-06-03 17:42:14 -06:00
2e429b0af3 Update npm packages to latest compatible versions - June 2025 2025-06-01 07:06:36 -07:00
6fc18aabac Add Docker development environment with hot reloading 2025-06-01 06:55:36 -07: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
4221cbfcb3 Add in with video management and improve member and events management. 2025-03-26 17:45:44 -05:00
8e986796e0 feat(admin): Implement comprehensive admin dashboard system
Create central dashboard with statistics and quick actions
Build events management with filtering and CRUD UI
Implement members management with bulk actions
Develop video management with accessibility indicators
Add document repository with visibility controls
Create content management with WYSIWYG editor
Add settings interface for site configuration
Additional improvements:

Implement full Events Management System with CRUD
Enhance frontend architecture with TypeScript
Improve accessibility in navigation menu
Add comprehensive test suite for Events API
2025-03-26 10:13:53 -05:00
92a1744030 Admin dashboard updates. 2025-03-25 11:13:52 -05:00
ae01874c0a feat(website): complete Phase 1 with public pages and Tailwind styling
- Add Events, Membership, and Donate pages with responsive layouts
- Fix Tailwind CSS 4.0 configuration with proper PostCSS setup
- Update Memory Bank documentation (product, system, tech context)
- Configure CSS variables for consistent theming and accessibility
- Fix client-side components with 'use client' directives
- Update progress tracking in Memory Bank
- Implement WCAG 2.2 AA accessibility features

This commit completes Phase 1 of the OCD website implementation plan,
establishing all core public-facing pages with proper styling and accessibility.
2025-03-25 10:35:05 -05:00
edb6faa351 feat: create project structure and update implementation files
- Created complete project directory structure:
  - Frontend with Next.js 15.2.3 app router structure
  - Backend with Express API endpoints
  - Docker configurations with security best practices
  - MongoDB initialization with schema validation
  - Nginx configuration with security headers

- Implemented core file templates:
  - Custom video player with transcript display options
  - MongoDB schemas with validation for Videos and Members
  - JWT authentication middleware with role-based access control
  - Docker Compose with resource limits and security
  - Frontend/backend package.json with dependencies

- Updated documentation:
  - Enhanced TECH_STACK with latest version details
  - Updated TO_DO.txt with WCAG 2.2 AA requirements
  - Updated planned_implementation.txt with current best practices
  - Refreshed all Memory Bank files with current state

- Security and accessibility improvements:
  - Added MongoDB 7.0 schema validation with
  - Enhanced video requirements with mandatory transcripts and thumbnails
  - Updated accessibility to WCAG 2.2 AA standards
  - Added security best practices for Docker deployments
2025-03-25 09:28:10 -05:00