Commit Graph

25 Commits

Author SHA1 Message Date
Ryderjj89
35e5a260da Make search engine initialization more robust - handle missing ESV data directory gracefully and provide better error logging for NKJV 2025-09-28 12:35:00 -04:00
Ryderjj89
e7b98e0107 Fix NKJV directory path in backend - was looking in ../ instead of ../../ 2025-09-28 12:31:30 -04:00
Ryderjj89
ceeb465c8d Add multi-version Bible support with ESV and NKJV translations
- Rename project from 'ESV Bible' to 'The Bible'
- Implement version selection dropdown in homepage header
- Add support for multiple Bible versions:
  * ESV (English Standard Version) - from mdbible
  * NKJV (New King James Version) - from local NKJV/ directory
- Update all API endpoints to accept version parameter (?version=esv|?version=nkjv)
- Add version-aware favorites system that stores and displays Bible version (e.g., 'Genesis 1:1 (ESV)')
- Update database schema to include version column in favorites table
- Maintain backward compatibility with existing data
- Update Docker configuration and documentation
2025-09-28 12:13:37 -04:00
Ryderjj89
b2096c67ae Fix chapter loading issue caused by double padding
- Backend now properly handles chapter names that already include 'Chapter_' prefix
- Prevents double padding that was causing file not found errors
- Maintains backward compatibility for legacy chapter number requests
- Chapter loading should now work correctly alongside search functionality
2025-09-15 17:48:10 -04:00
Ryderjj89
5f22fb5bdc Fix search functionality for markdown bible data
- Update search engine to parse numbered list format (1. verse text)
- Fix chapter file path construction to use Chapter_XX.md format
- Add zero-padding for chapter numbers in API routes
- Skip empty lines and headers in markdown parsing
- Ensure compatibility with external bible data source structure
2025-09-15 17:40:37 -04:00
Ryderjj89
f5639af27f Add comprehensive Bible search feature
- Implement backend search engine with indexing and relevance scoring
- Add search API endpoints (/api/search and /api/search/suggestions)
- Create SearchComponent with modal and page views
- Add search button to header navigation
- Support real-time search with debouncing
- Include context verses and search term highlighting
- Add book filtering and mobile-responsive design
- Integrate with existing routing and navigation system
2025-09-15 17:30:00 -04:00
Ryderjj89
2c78f7c437 Fix database schema: allow NULL chapters for book-only favorites 2025-09-13 19:17:51 -04:00
Ryderjj89
8423784d8d Fix backend API to allow book-only favorites (chapter is now optional) 2025-09-13 18:31:38 -04:00
Ryderjj89
a616cb08c7 Fix OIDC callback parameter mapping - profile parameter is actually the callback function 2025-09-13 18:00:08 -04:00
Ryderjj89
173952d70d Add comprehensive parameter debugging to find actual callback function in OIDC strategy 2025-09-13 17:55:42 -04:00
Ryderjj89
5e6af9f5ad Store done callback in variable to prevent scope loss and add debugging to track callback availability 2025-09-13 17:53:51 -04:00
Ryderjj89
4c4bfaaf1d Remove return statement before done callback to fix scope issue 2025-09-13 17:48:43 -04:00
Ryderjj89
5434fa6dc0 Fix callback scope issue in database user creation - rename nested callback parameter to avoid conflict 2025-09-13 17:43:41 -04:00
Ryderjj89
53245ca662 Fix profile extraction - sub parameter contains the profile object, extract ID from sub.id 2025-09-13 17:38:45 -04:00
Ryderjj89
df761b3626 Fix profile parsing to use sub parameter directly and improve user data extraction 2025-09-13 17:33:43 -04:00
Ryderjj89
c369b5160f Add OIDC configuration debugging to identify issuer mismatch 2025-09-13 17:26:58 -04:00
Ryderjj89
a5ae6ed208 Add comprehensive debugging to OIDC authentication flow and fix callback handling 2025-09-13 17:22:42 -04:00
Ryderjj89
dbdb455772 Fix session cookie configuration and add debugging for authentication issues 2025-09-13 17:16:22 -04:00
Ryderjj89
7bf2a8a879 Fix database directory creation and add login/logout UI when authentication is configured 2025-09-13 17:03:22 -04:00
Ryderjj89
a804430536 Add OpenID Connect authentication and SQLite database with user preferences and favorites system 2025-09-13 16:50:26 -04:00
Ryderjj89
9bebd76d7c Fix chapter listing API and restore font size controls 2025-09-13 15:59:07 -04:00
Ryderjj89
eb81bdc9e6 Disable helmet security headers and use relative API URLs to fix HTTP access 2025-09-13 15:36:27 -04:00
Ryderjj89
a26047493a Fix frontend static file paths to point to correct Docker container location 2025-09-13 12:33:37 -04:00
Ryderjj89
cb3dbe8d5b Add static file serving and SPA routing support for React frontend 2025-09-13 12:28:59 -04:00
Ryderjj89
13c93879c0 Reorganize project structure with backend/ and frontend/ directories 2025-09-13 12:14:01 -04:00