오늘의 주요 업데이트

BibleVibe 변경 로그

2026년 7월 16일부터, 프런트엔드의 가장 중요한 일일 업데이트를 여기 정리합니다. 빠르게 진행 상황을 훑어볼 수 있어요.

업데이트 주기

날짜별로 정리한 매일의 하이라이트

가장 최근 기록이 먼저 표시됩니다

2026년 10월 2일

체험 전환 시스템: 분석 이벤트, 7일 이메일 여정, Day 0 온보딩

최신

체험 전환은 활성화 × 습관 형성 × 알림 도달의 곱인데, 지금까지 세 가지 모두 데이터가 없었습니다. 이번 업데이트로 세 가지를 한 번에 채웠습니다. 서버 측 분석 이벤트(체험 시작, 첫 묵상 완료, 매일 활성, 체험 종료, 구독), 가입 직후 Day 0에서 "가장 읽고 싶은 책" 한 가지만 묻고 해당 묵상을 바로 열어 주는 온보딩, 그리고 7일 체험 동안 1·2·3·5·6·7일차에 발송되는 6통의 이메일(수신자가 고른 아침/저녁 시간, 각 메일 하단에 원클릭 해지). 5일차·6일차 메일의 읽은 편수와 연속 일수는 실제 이벤트에서 계산되며 절대 고정값이 아닙니다.

  • 【분석】서버 측 trial_events 테이블 신설: 체험 시작, 첫 묵상 완료, 매일 활성, 체험 종료, 구독과 함께 리더 열기·TTS 재생·영화 안내 열기 등 핵심 행동을 기록합니다. 리텐션은 사용자의 현지 자연일 기준으로 집계합니다.
  • 【Day 0】온보딩에서 "가장 읽고 싶은 책"과 "아침/저녁 묵상 시간"을 묻고, 완료하면 그 책의 묵상을 바로 열어 드립니다. 클릭 한 번으로 아하 모먼트에 도달합니다.
  • 【이메일】7일 체험 동안 6통: 1일차 묵상, 2일차 영화 안내, 3일차 책 안내, 5일차 진행 요약, 6일차 만료 전 전환, 7일차 마지막 날 유지. 4개 언어(EN/ZH/ES/KO), 공포가 아닌 가치 요약형 문구.
  • 【실제 수치】5일차·6일차 메일의 "묵상 X편 완료"와 "X일 연속"은 trial_events에서 계산되며 고정값이 아닙니다. 스케줄러가 멈춰 있었다면 가장 최근 메일 한 통만 보내 폭주를 막습니다.
  • 【원클릭 해지】모든 메일에 해지 링크가 있으며, 해지하면 남은 발송 일정이 즉시 무효화됩니다. 결제 관련 메일은 영향을 받지 않습니다.
  • 【앱 내】/me 상단에 체험 진행률과 남은 일수 배너를 추가해 이메일 알림을 보완합니다.

2026년 8월 18일

성경 연구 페이지 공개: 권 → 장 → 절, 그리고 그리스어·히브리어 단어 항목

보관

BibleVibe에 완성된 연구 페이지 체계가 생겼습니다. /bible을 중심으로 책 안내, 장별 연구 페이지, 절별 연구 페이지가 이어지고, 여기에 /greek·/hebrew 원어 단어 항목이 더해졌습니다. 각 페이지의 의미, 문맥, 원어 단어, 상호 참조, 자주 묻는 질문은 AI가 작성하며, 공개 전에 기계 검증(인용 폐쇄 집합, 본문 문자 단위 대조, 구조 검증)과 모델 심사를 통과해야 합니다. /bible과 /read는 서로를 대체하지 않는 두 갈래입니다. /read는 읽기, /bible은 연구에 집중하며 서로를 향한 출구를 제공합니다. 주 언어인 영어와 한국어는 한 번에 생성되고, 중국어와 스페인어는 비동기로 채워집니다. 준비되지 않은 언어는 사이트맵에도, hreflang에도 포함하지 않습니다.

  • 【핵심】/bible 연구 페이지 체계: 중심 페이지(책 목록 + 성경 구절 검색) → 책 안내 → 장별 연구 페이지 → 절별 연구 페이지. 현재 64개 페이지가 공개되어 있으며(장 35, 절 26, 단어 항목 3) 창세기, 시편, 이사야, 마태복음, 요한복음, 로마서, 고린도전서, 요한계시록을 아우릅니다.
  • 【핵심】/greek·/hebrew 원어 단어 항목: 스트롱 번호를 기준으로 원형, 표제어, 음역, 정의, 그리고 그 단어가 등장하는 본문을 함께 보여 주며 절별 페이지와 서로 연결됩니다. 원어 주석은 macula와 스트롱 사전에서 가져온 검증 가능한 공개 자료이며, 모델이 지어낸 내용이 아닙니다.
  • 【핵심】구절 검색: /bible에서 ‘요한복음’, ‘요한복음 3’, ‘요한복음 3:16’을 입력하면 바로 이동하며, 네 개 언어의 책 이름을 모두 인식합니다. 아직 연구 페이지가 없는 장은 읽기 화면으로 연결되어 끊긴 링크가 생기지 않습니다.
  • 【콘텐츠】품질 관리는 사람의 검수에 의존하지 않습니다. 상호 참조와 스트롱 번호는 시스템이 제공한 폐쇄 집합에서만 고를 수 있고, 인용된 본문은 문자 단위로 대조하며, 다른 모델이 독립적으로 점수를 매깁니다. 통과하지 못한 페이지는 공개되지 않으며 사이트맵에도 오르지 않습니다.
  • 【콘텐츠】유사도 검사: 새 페이지는 공개 전에 이미 공개된 페이지들과 벡터 유사도로 비교하여, 지나치게 비슷하면 다시 쓰도록 돌려보냅니다. 대량 생성에서 가장 큰 위험은 내용의 획일화인데, 페이지 하나씩 보는 심사로는 이를 알아챌 수 없습니다.
  • 【언어】영어와 한국어는 모델이 한 번에 생성합니다. 중국어는 기존 중국어 자료를 우선 사용하고, 없으면 스페인어와 함께 비동기로 채웁니다. 준비되지 않은 언어의 페이지는 영어 본문을 보여 주고 색인 대상에서 제외하며, 번역이 끝난 뒤에야 사이트맵과 hreflang에 포함됩니다.
  • 【언어】66권 전체의 책 안내(핵심 주제, 기록 목적, 단락 구조, 주요 본문, 주요 주제, 그리스도를 가리키는 방식)에 스페인어와 한국어를 채웠습니다. 총 79편, 약 5,500개의 문장입니다.
  • 【연계】/read와 /bible은 서로를 향한 출구가 됩니다. 읽기 화면의 각 장에는 ‘깊이 연구하기’ 입구가, 연구 페이지에는 ‘읽기 화면에서 보기’가 있습니다. 책 페이지에서는 어떤 장에 연구 페이지가 있는지 표시합니다. 두 갈래는 각각 색인되며, 실제로 다른 내용을 통해 공존합니다.
  • 【사용성】연구 페이지의 본문은 읽기 화면과 동일한 방식입니다. 영어권이 아닌 독자는 자신의 언어가 영어 본문 위에 나오고, 글자 크기와 굵기를 조절할 수 있으며, 장 전체를 속도 조절과 함께 들을 수 있고, 각 절 옆의 💡로 그 절의 묵상을 펼칠 수 있습니다. 읽기 화면과 같은 구성 요소, 같은 사용량 규칙을 씁니다.
  • 【기술】사이트 검색에 연구 페이지 색인이 추가되어 네 개 언어의 본문을 검색할 수 있습니다. 색인은 페이지가 공개되는 바로 그 시점에 기록되며, 다시 실행해도 중복되지 않고 덮어씁니다.

2026년 8월 15일

한국어·스페인어 완전 지원 (사이트 전체 4개 언어 롤아웃)

보관

BibleVibe가 2개 언어에서 4개 언어 사이트로 확장되었습니다: 영어(기본) / 중국어 / 스페인어 / 한국어. 콘텐츠는 LLM이 en + ko로 직접 생성하고, es는 필요 시 en에서 번역해 저장합니다. UI 문구, 페이지 메타데이터, 내부 링크, 이메일 링크가 모두 locale에 따라 출력되며, hreflang, 스페인어/한국어 TTS 음성, DB es/ko 컬럼 백필까지 함께 제공됩니다.

  • 【주요】사이트 전체 4개 언어: read / study / home / me / reflections / characters / search / stream / topics / spacetime / today·archive / share 등 모든 페이지와 컴포넌트가 locale에 따라 출력하며, 없는 언어는 영어로 대체됩니다.
  • 【주요】콘텐츠 생성 전략: LLM이 en + ko를 직접 생성하고, es는 번역 체인(minimax/deepseek/together 구성 가능)으로 en에서 완성한 뒤 MySQL에 저장하고 ES 인덱스에 동기화합니다.
  • 【주요】DB es/ko 백필: 66권 + 제2경전 + 유대교 변형의 책 이름(source_books), bible_eras / bible_geolocations / topic_groups / topics / bible_era_relations 참조 테이블 615개 UPDATE, reflections/characters 상세의 온디맨드 백필.
  • TTS 4개 언어: es/ko는 edge 우선 음성 체인(TTS_MODEL_VOICE_ES / TTS_MODEL_VOICE_KO, 설계 문서 기준)을 사용하며, 장 오디오와 플레이어 바가 스페인어/한국어를 지원합니다.
  • 【SEO】사이트 전체 hreflang: 모든 페이지에 4개 언어 alternates + x-default, 264개 Link 컴포넌트와 모든 내부 앵커에 자동 hreflang, 이메일 템플릿 링크(가입/활성화/비밀번호 찾기/구독/해지)에도 en-US/zh-CN/es-ES/ko-KR 적용.
  • 【이메일】가입 활성화, 활성화 완료, 비밀번호 재설정, 매일 말씀 구독 확인/본문/해지 등 6개 템플릿이 4개 언어를 지원하며, 링크에 수신자 locale 접두사(/zh, /es, /ko)를 붙입니다.
  • 【공유】오늘의 픽 공유 문구와 링크가 locale을 따릅니다: 유형 라벨, 개수, via BibleVibe 문구, /share 및 묵상 공유 링크에 언어 접두사.
  • 【경험】검색 팝업, 날짜/월/요일 형식이 locale을 따르고, Toast가 4개 언어를 지원하며, 경로 접두사 + 쿠키로 언어 전환이 일관됩니다.

2026년 8월 13일

BibleVibe 공식 페이스북 페이지 오픈 및 운영

보관

BibleVibe 공식 페이스북 페이지가 공개되었습니다(facebook.com/biblevibeca). 사이트 하단 푸터에 입구를 추가했고, 매일 성경 말씀과 짧은 묵상 중심으로 안정적으로 발행하며 사이트의 오늘의 픽과 동일한 콘텐츠를 연동합니다. 댓글 소통으로 커뮤니티를 키우고, 이후 유료 광고와 페이지 분석의 기반을 마련합니다.

  • 【주요】BibleVibe 공식 페이스북 페이지 오픈: facebook.com/biblevibeca, 사이트 전체 푸터에 입구 추가.
  • 【운영】콘텐츠 주기: 매일 성경 말씀 + 짧은 묵상 이미지, 사이트의 오늘의 픽/매일 묵상과 동일한 소스로 브랜드 일관성 유지.
  • 【운영】커뮤니티: 댓글 질문 답변, 주제 유도, 팔로워 의견 수집으로 첫 활성 커뮤니티 형성.
  • 【성장】1단계는 유기적 콘텐츠와 소통에 집중하고, 이후 페이스북 광고와 페이지 분석을 도입해 팔로워 성장과 전환을 측정.
  • 【연계】사이트 공유 기능과 연결되어 사용자가 페이지로 바로 공유할 수 있어 사이트 → SNS 유입의 선순환을 만듭니다.

2026년 8월 2일

Characters system, homepage revamp & unified search quota

보관

Today shipped the full Bible character system (list/detail, LLM generation pipeline with human review, ES indexing, personalized recommendation), revamped the homepage (no more empty states, clearer value proposition, anonymous ask), swapped the daily term for a daily character across Today/Share/Email, added banner search on reflections & characters with the unified quota, and fixed courseware anonymous preview, homepage spacing, and server-action probe noise.

  • Homepage revamp: every section’s empty state replaced with actionable entries, new “Why BibleVibe” five-card strip (Characters / Stories / Three Traditions / Bilingual / Free), and an anonymous hero ask box that routes to /study with no login gate — the login prompt only appears once the chat limit is reached.
  • Fixed first-paint html lang (cookie/browser), chapter-aware /read titles, anonymous read-only courseware preview with interactive login gate (P0-4 option A), and uniform homepage section spacing.
  • Tradition landing pages launched: /protestant-bible-study, /catholic-bible-study, /jewish-bible-study, and /bible-traditions-compared with FAQPage JSON-LD and a three-column comparison table.
  • Bible characters system: /characters list & detail (strict single-locale), a 48-person candidate list (first batch of 10 covering all categories), and an admin “Characters” tab with LLM drafts + human review + multi-select force-regenerate / batch status + ES sync.
  • Character generation prompt unified grounding: key scripture text, Strong’s per-word originals, ES theology terms, TSK cross-references, and era context; also fixed the reflections pipeline’s theology-term lookup that never actually queried by text.
  • Characters now live in their own ES domain (auto-index on publish, delete on unpublish, one-click full sync with orphan cleanup), fixing the missing lowercase_normalizer and published_at date-format issues in shared index creation.
  • Daily picks: the term was replaced by a daily character (deterministic per date), My Space gained a “character for you” card tied to the user’s reading/saved reflections (rotating every 6 hours), and character is included in share text and the daily verse email.
  • Unified search quota: 10 anonymous / 50 signed-in per 3-hour window, decoupled from read/reflection browse limits; reflections and characters banner search both count toward it.
  • All character cards now carry a shared person icon badge in the top-left (matching reflection cards); the read page gained a “Characters in this book” section with a single horizontally-scrolling row on mobile.
  • Frontend hardening: /_next/server-action requests without a valid Next-Action header are 404’d at the edge, stopping scanner noise from spamming container logs.

2026년 8월 1일

Cache unification + daily-picks timezone + hot-search/trending rework + reflections pipeline hardening + TTS to mp3

보관

Frontend content caching was unified under one control layer and the daily-picks timezone/rotation mismatch was fixed; hot search switched from static community hotness to aggregated real queries (with noise filtering), and discover trending questions now use time-decayed ranking; the read page related-reflection matching was upgraded and now reuses the list-page card; the reflections pipeline was hardened (jsonrepair fallback, missing section_key inference, transactional writes); TTS audio is now stored as mp3 (~1/6 the size) with an ID3-header detection fix; study conversation sharing shipped and the spacetime 3D Cube entry was hidden.

  • [Cache] New unified frontend content-cache layer: lib/content-cache, client-content-cache, time-zone and CACHE_SCOPE metadata; serverFetchJson is now a thin shim, so every SSR/client content fetch shares one key/TTL/empty-value policy.
  • [Timezone] Daily picks "today" now follows the user browser timezone and flips at local midnight instead of UTC; cache keys carry local date + UTC 6h slot, fixing the A/B half-rotation being masked by stale cache entries; archive matches the home date semantics.
  • [Archive] Archive is limited to the most recent 30 days: older dates are unselectable and never trigger generation (calendar disabled + backend window guard).
  • [Search] Hot search rebuilt on real queries: aggregates search_rate_log over a 14-day window with smart filtering (SQLi probes, URLs, noise words, pure numbers, too-short/too-long), replacing static community hotness.
  • [Search] Discover Trending Question now uses time-decayed hotness (hot / (ageDays+1)^1.5), so new dialogs can surface while old leaders decay; frontend TTL dropped from 6h to 20min.
  • [Reflections] Read-page related-reflection matching upgraded to chapter -> book -> era fallback with most-read priority; reuses the /reflections list-page card with a dedicated sunrise icon; reflections stay out of general search.
  • [Reflections] Draft pipeline hardened: jsonrepair fallback for LLM JSON, missing section_key inference, transactional persistDraft (no more half-written rows), prompt hard-validation, plus an audit script (NEED_REDO / INCOMPLETE).
  • [TTS] Audio now stored as mp3 via ffmpeg (~1/6 size, big mobile bandwidth win): transcode happens before save and the filename follows the real format; fixed mp3 detection for ID3-tagged output (valid mp3 was previously rejected as output_not_mp3 and stored as WAV); existing 106/107 WAV files were transcoded offline and pointers updated.
  • [Share] Study conversation sharing: select-and-share on /study, full-conversation share on /me, reflection share button restored, with a new shared lib/share-conversation.ts.
  • [UI] Hidden the 3D Cube entry on the spacetime page (the /channel/spacetimecube page itself is unchanged).

2026년 7월 29일

/read refactor: chapter/verse AI reflection + whole-book study + reader controls + auth caps + SSR speedup

보관

Today's work is a major refactor + feature wave on the /read page (BibleVibe's main scripture-reading surface, v1.2 read submodule). Five pieces: (1) Backend new ReflectionService at modules/reflection/ - one service consolidates four LLM-driven reflection kinds (chapter part1/part2, verse reflection at single-verse and chunk granularities, whole-book study guide with 8 sections, and study chat reply). All four share callLlmForJson + inflightDedupe + theo-vocabulary guard (a curated list of approved theology terms is appended to every system prompt so the LLM can't drift into unsanctioned theological territory). Each kind uses a two-stage lazy pipeline: ES lookup first, fall through to LLM generation + ES upsert + DB write on miss, then a 60s reuse window. chapter_reflection stores whole-chapter content (intro / themes_questions / key_insight), verse_reflection stores per-verse or per-chunk content (body_zh / body_en / key_phrase_zh / key_phrase_en, granularity ENUM 'verse'|'chunk'). (2) Backend new ChatUsageService at modules/chat-usage/ - STUDY_DAILY_CHAT_LIMIT (50 per 24h) gates study and reflection together, checkUserCanProceed returns {ok, remaining}, recordReflectionRound writes a chat_messages row after every successful LLM call (session_id is synthesized as 'reflection:{userId}:{kind}:{scopeKey}', context JSON carries source='reflection' + kind / scope_key / extra for analytics). The three book-reflection endpoints (chapter part1 / part2 / verse) and the books controller getStudyGuide endpoint all got the cap check + recordRound call; getStudyGuide moved from fully-anonymous to AuthGuard + AuthOptional + returns ok=false on cap. study.service.ts chat() now delegates the LLM call to ReflectionService.generateChatReply so all four kinds share one LLM call stack. (3) SSR speedup + endpoint consolidation - new GET /api/v1/books/list-by-traditions?traditions=protestant,catholic,judaism (returns book lists for multiple traditions in one call, page.tsx now fires 3 concurrent fetches instead of 3 sequential ones), new GET /:bookId/landing-data?chapter=N&tradition=X (one endpoint that delivers verses + meta + reflection cache-hit state + study-guide cache-hit state + chapter count, enough to fully SSR the /read first paint), getVerses wrapped in a 60s LRU cache (128 entries, per-process), getBookStudyGuideCached wrapped in a 60s LRU cache (256 entries, per-process), getBooksByTraditions now reads source_books.chapters_count directly instead of COUNT(source_verses). (4) Frontend /read UI - new BookBrowser (A-Z picker that also surfaces "my reading", driven by landing-data), ChapterReflectionCard (accepts fontSize / fontBold, three cards in the order Interpretation -> Key Insight -> Themes & Questions, themes_questions cut from 3-4 to exactly 2, shows a "today's conversation limit reached" toast when the cap fires), VerseReflectionToggle (per-verse toggle, blocks further clicks on cap), WholeBookStudyPanel (8 sections, mobile single-row horizontal scroll, desktop vertical stack), Toast system hoisted to layout, new EraStageList component, assessment merged into reading; bilingual verse rendering is automatic top-zh / bottom-en for non-en locales (no toggle button, uiLocale is never touched); per-chapter chapterReaderPrefs = Record<number, {fontSize: 'small'|'standard'|'big', fontBold: boolean, rate: 0.75|1|1.25}>, three icon buttons (A cycles font size, B toggles CJK 黑体 bold, clock cycles playback rate) sit below the chapter card's existing three action buttons, fontSize+fontBold propagate to every reflection card + VersePanel + TheologyMiniCard in that chapter, rate is set on the audio element's playbackRate only and NEVER triggers backend TTS regeneration (pre-rendered MP3 constraint); ReadPageClient fixes a "my-reading chip click triggers a re-fetch loop" bug - the main useEffect now uses a lastBookIdRef guard so only a real bookId change does the full reload, a targetChapter-only change just expands the target chapter; page.tsx now SSRs the landing-data prefetch whenever there's an accessToken, regardless of hasBookId (previously the !hasBookId guard meant the book-detail page still hit the client-side fetch on mount). (5) Mobile header cleanup + copy tweaks - the chapter card header's three action buttons (Enter Study / Add / Listen) move from mobile absolute top-3 right-3 to a wrap-row below the title on mobile (pr-[12rem] -> lg:pr-[12rem]) so they no longer crush the title; "Study this chapter ->" is shortened to "Study ->". The purge script scripts/purge-recent-zh-chapter-tts.ts lands alongside, cleaning zh-CN chapter TTS files + DB rows + now-unreferenced ai_audio_cache cache_hashes from the last 20 days in a reference-safe way (dry-run shows 5 chapter_audio candidates, 5 unique cache_hashes, all 5 safe to drop); same safety guards as the study purge.

  • Backend - new ReflectionService at backend/app/app/modules/reflection/: callLlmForJson unifies LLM call + JSON parse + retry; inflightDedupe prevents concurrent same-request duplicate LLM calls; loadTheologyGuard pulls the approved term list from theology_terms and appends it to every system prompt; loadChapterVerses hard-truncates at 9k characters; loadScriptureGrounding pulls TSK / xrefs / commentary from ES; four public methods (generateWholeBookGuidePart / generateChapterReflectionPart / generateVerseReflection / generateChatReply) all use the same pipe.
  • Backend - new ChatUsageService at backend/app/app/modules/chat-usage/: countUserRoundsLast24h uses `JSON_EXTRACT(context, '$.source') IN ('study','reflection')` + 24h WHERE; checkUserCanProceed returns {ok, remaining}; recordReflectionRound writes a chat_messages row (role='user', synthesized session_id 'reflection:{userId}:{kind}:{scopeKey}', context JSON carries source='reflection'/kind/scope_key/extra). Wired into all three book-reflection endpoints and the books/study-guide endpoint.
  • Backend - new endpoints: GET /api/v1/books/list-by-traditions?traditions=protestant,catholic,judaism (parallel book-list fetch for multiple traditions, page.tsx now uses Promise.all instead of 3 sequential calls); GET /api/v1/books/:bookId/landing-data?chapter=N&tradition=X (single endpoint returns verses + meta + reflection cache-hit state + study-guide cache-hit state + chapter count, page.tsx SSRs the whole /read first paint in one prefetch).
  • Backend - LRU caches: getVerses wrapped in 60s LRU (128 entries, per-process), getBookStudyGuideCached wrapped in 60s LRU (256 entries, per-process), cache hits take the ES-only path without DB or LLM round-trips.
  • Backend - books.service.ts: getBooksByTraditions reads SELECT chapters_count FROM source_books directly, no more COUNT(source_verses); getBookLandingData combines the five pieces above into one response.
  • Backend - study.service.ts chat(): the direct LLM call is delegated to ReflectionService.generateChatReply, so study chat shares the same LLM call stack as the four reflection kinds (callLlmForJson / theo-vocabulary guard / inflightDedupe / retry-parse all inherited).
  • Backend - ES indices: SearchIndexDomain adds bible_chapter_reflections + bible_verse_reflections, ELASTICSEARCH_INDEX_ALIASES + DOMAIN_CONFIGS are updated, search-index.service.ts accepts the two new domain upsert paths.
  • Backend - auth + cap integration: book-reflection controller (chapter part1 / part2 / verse reflection endpoints) gets @UseGuards(AuthGuard) + chatUsage.checkUserCanProceed + chatUsage.recordReflectionRound; books.controller getStudyGuide moves from fully-anonymous to AuthGuard + AuthOptional + returns {ok:false} on cap; study.service.ts chat() path is counted too (reflection and study share the same 50/24h pool).
  • Backend - migrations: docs/mysql/migration_chapter_verse_reflection.sql (chapter_reflection + verse_reflection tables, 4-field unique key, IF NOT EXISTS idempotent); docs/mysql/migration_chat_messages_optional_session.sql (session_id + anon_visitor_id + courseware_id nullable + two helper indexes, IF NOT EXISTS idempotent).
  • Backend - purge script scripts/purge-recent-zh-chapter-tts.ts: reference-safe zh-CN chapter TTS cleanup (dry-run by default, --execute for real deletes), cleans files (local + R2) + chapter_audio rows + ai_audio_cache cache_hashes that are now unreferenced (must confirm no other chapter_audio row in any language and no immersive_tts row still points to it before dropping the cache), path-traversal guard + transaction rollback + idempotent.
  • Frontend - new components: BookBrowser (A-Z picker + my-reading merged), ChapterReflectionCard (three cards in the order Interpretation -> Key Insight -> Themes & Questions, themes_questions cut to 2, cap-hit toast), VerseReflectionToggle (per-verse toggle, cap blocks further clicks), WholeBookStudyPanel (8 sections, mobile single-row horizontal scroll, desktop vertical stack), EraStageList, Toast system hoisted to layout, browse-helpers utility module.
  • Frontend - bilingual verse: non-en locale automatically renders top-zh / bottom-en, never touches uiLocale (hard constraint), no toggle button.
  • Frontend - per-chapter reader controls: chapterReaderPrefs = Record<number, {fontSize, fontBold, rate}>, three icon buttons (A font size / B 黑体 bold / clock rate) sit below the chapter card's existing three action buttons, fontSize + fontBold propagate to every reflection card + VersePanel + TheologyMiniCard in that chapter, rate is set on the audio element's playbackRate only and NEVER triggers backend TTS regeneration.
  • Frontend - "my reading" loop fix: ReadPageClient main useEffect uses a lastBookIdRef guard so only a real bookId change does the full reload, a targetChapter-only change just expands the target chapter; page.tsx SSRs the landing-data prefetch whenever an accessToken exists, regardless of hasBookId (previously the !hasBookId guard meant the book-detail page still hit a client-side fetch on mount).
  • Frontend - mobile chapter card header: three action buttons move from absolute top-3 right-3 to a wrap-row below the title on mobile (pr-[12rem] -> lg:pr-[12rem]) so they no longer crush the title; "Study this chapter ->" is shortened to "Study ->".
  • Changelog bookkeeping: today's commit 030d5adb on master, 37 files +6649 / -695; backend gains three new modules (book-reflection / chat-usage / reflection), four existing modules touched (books / study / search-index), two new-table DDLs, one purge script; frontend gains five new components, ReadPageClient / WholeBookStudyPanel / page.tsx / layout.tsx / content-item.ts are modified. tsc --noEmit is green on both ends; frontend dev verifies the reflection pipeline end-to-end with a real DEEPSEEK_API_KEY.

2026년 7월 28일

Reflections devotional subsystem: 10 tables + 7-step LLM pipeline + 21 APIs + admin UI

보관

Today BibleVibe gains its first long-form devotional subsystem, Reflections (v1.2), modeled on the "Bible in One Year" pattern but rebuilt on top of every existing pipeline (books / spacetime / architecture / courseware / study / search / TTS / LLM / ES) - zero new services invented. Five pieces: (1) Data layer - 10 new tables (themes, reflections, reflection_sections, reflection_verses, reflection_links, reflection_faqs, reflection_pipeline_status, reflection_auto_queue, reflection_redirect_log, reflection_seeds). Theme (主旨) is a first-class classification living in its own table, parallel to the existing topic (主题) table, hosting 10 devotional axes: prayer / faith / character / purpose / suffering / love / worship (the reference site's original 7) + hope / wisdom / kingdom (3 new in v1.2; covenant and identity were cut to avoid overlap with purpose and character). (2) Public read API - 9 endpoints under /api/v1/reflections: list, detail (sections+verses+faqs+related+prev/next in one shot), theme facet, by-theme, most-read, related, smart match (hit/redirect/none), view +1, TTS 302. (3) Admin API - 12 endpoints under /api/v1/admin/reflections: CRUD, four-state status switch (draft / private / unlist / public), auto-queue review (approve auto-creates a draft reflection, reject requires a >=3-char reason). (4) 7-step LLM pipeline (each step has its own SSE endpoint, idempotent timestamp, ?force=1 to re-run, verbose debug log): Step 1 collect-candidates gathers from priority_chapters (p<=2) + reflection_seeds; Step 2 fetch-verses pulls source text via BooksService.getChapterText (zh + en); Step 3 draft LLM produces the initial long-form, with three-source RAG grounding (loadBibleToolboxGrounding for Strong's+Macula+xrefs+commentary, ES theology_terms, MySQL TSK cross_references), small blocks (title/dek/FAQ/note) go bilingual in one pass, large blocks (context/meaning/apply/reflection body) English-only, and the context section is hard-validated to contain era_key / geo_keys / refs - schema failure blocks the write; Step 4 enrich LLM writes reflection_links to same-theme reflections and same-era architectures; Step 5 translate TogetherTranslateService only translates the large-block body_en->body_zh; Step 6 sync-es upserts the translation to ES immediately (no waiting on TTS); Step 7 tts TtsFactoryService.synthesize falls through edge_tts -> deepinfra and saves via LocalStorageDriver. (5) Admin UI at /admin/reflections, one page, three tabs: Pipeline (9 status cards + 7-step mini progress + force toggle + 7 step rows with per-row play/abort + inserted/updated/skipped/failed/duration counters + run-all); Auto-queue (pending list with value_score color-coded + Approve/Reject via modal); Reflections list (admin grid with status filter, one-click state switch, deep-link to /reflections/[slug]). SSE log streams every start / item / translate / tts_chunk / es_sync / step_done / error event. 6 commits already on master (d4f398f8 + f15e32da); the user-facing frontend (NavBar / Footer / home / /reflections list / /reflections/[slug] / /read CTA) is held for v1.3 as M4.

  • Data layer - 10 new tables (docs/sql/init-reflections-tables.sql): themes (theme dictionary, 10 seeded), reflections (main table, four-state status: draft / private / unlist / public), reflection_sections (split by section_key, context.meta_json MUST contain era_key / geo_keys[] / era_label_zh|en / geo_labels_zh|en[] / refs[]>=2), reflection_verses (primary + related), reflection_links (6 link_types: reflection / architecture / courseware / topic / era / geo), reflection_faqs, reflection_pipeline_status (7-step idempotent timestamps + last_step + error_log), reflection_auto_queue (5 trigger_types + value_score), reflection_redirect_log (5-min debounce + reverse-enqueue signal), reflection_seeds (manual seeds).
  • Data layer - naming rule: theme (主旨) is a brand-new first-class classification axis, parallel to the system's existing topic (主题) table. The DB field stays as theme_key (snake_case), the Chinese UI surface is always rendered as "主旨", the English UI surface is always "Theme" - to keep the two axes visually distinct everywhere and to avoid colliding with the existing topic (主题) table. The only FK that crosses into topic is reflection_links.link_type='topic'.
  • Data layer - 10 seeded themes (docs/sql/seed_reflections_themes.sql): prayer Prayer and nearness to God, faith Faith and trust, character Heart words and character, purpose Purpose and calling, suffering Suffering and comfort, love God's love and goodness, worship Worship and the God who acts (the reference site's original 7) plus hope Hope and waiting, wisdom Wisdom and understanding, kingdom Kingdom and righteousness (3 new in v1.2). covenant Covenant and promise was cut (overlapped with purpose) and identity Identity in Christ was cut (sister to character); they can come back in v1.3 once the content volume justifies the extra axes.
  • Public read API - 9 endpoints under /api/v1/reflections: GET / list (theme/status/limit/cursor/is_most_read filters), GET /most-read (homepage picks, top 6), GET /themes (theme facet with count + sample), GET /by-theme/:themeKey (everything in a theme), GET /:slug detail in one shot (primary_verse + related_verses + sections + faqs + related_reflections + related_architecture + prev + next), GET /:slug/related (related block only), GET /:slug/match (smart-match hit/redirect/none three-state), POST /:slug/view (view +1), GET /:slug/tts (302 to storage audio).
  • Admin API - 12 endpoints under /api/v1/admin/reflections: GET /status status card, GET /reflections admin list, GET /reflections/:id admin detail, POST /reflections create, PUT /reflections/:id update, POST /reflections/:id/status state switch (auto-writes published_at on transition to public), DELETE /reflections/:id soft-delete (to draft); GET /auto-queue list pending, POST /auto-queue/:id/approve approve and auto-create a draft reflection (slug + theme_key inferred from context_json), POST /auto-queue/:id/reject reject requires >=3-char reason, POST /auto-queue/auto-archive 7-day stale auto-archive.
  • Smart matching - ReflectionMatcherService: book_id+chapter exact match against reflection_verses.role='primary' (score=0.95), theme_key direct lookup (score=0.75), architecture_id reverse-lookup to book_ids/era/geo (ctx expansion then re-match), query LIKE fallback (score=0.40). Threshold split: score>=0.55 hit, 0.25-0.55 redirect, <0.25 none. 5-minute debounce on the same source->target via reflection_redirect_log; reverse-enqueue shouldAutoEnqueue (value_score<2 auto-rejected, frequency_7d<3 not enqueued).
  • 7-step pipeline - each step has its own SSE endpoint (/api/v1/admin/reflections/pipeline/step/{step}) + idempotent timestamp + ?force=1 to redo + verbose debug log: Step 1 collect-candidates gathers from priority_chapters (p<=2) + reflection_seeds, infers theme_key from the note text / era_key, writes context_collected_at; Step 2 fetch-verses pulls source text via BooksService.getChapterText into reflection_verses.quote_zh|en, writes verse_pulled_at; Step 3 draft calls ModelFactoryService.compileWithPrompt with three-source RAG grounding, small blocks go bilingual in one pass, large blocks English-only, context section is hard-validated to contain era_key/geo_keys/refs (schema failure blocks the write), writes draft_generated_at; Step 4 enrich LLM writes reflection_links to same-theme reflections and same-era architectures and fills the spacetime summary, writes enrich_generated_at.
  • 7-step pipeline (continued): Step 5 translate calls TogetherTranslateService.translateText only for section_key in {context, spacetime, meaning, apply, reflection} and where body_zh is empty, body_en->body_zh, plus context.meta_json era_label_zh / geo_labels_zh / refs[].note_zh, after completion reflections.lang_origin='both' is set, writes translated_at; Step 6 sync-es upserts to ES immediately after translation (no waiting for TTS) via ElasticsearchService.upsertDocuments("reflections", docs), body is the sections-joined long text for full-text search, writes es_synced_at; Step 7 tts calls TtsFactoryService.synthesize (role="head_ta", lang="en-US"/"zh-CN", edge_tts->deepinfra chain fallback) to produce mp3, LocalStorageDriver.save stores to /media/audio/reflection-.../tts-...-...mp3, fills tts_zh_url / tts_en_url / tts_*_provider / tts_*_duration_sec, writes tts_generated_at.
  • RAG grounding - Step 3 LLM prompt gets three sources injected: (1) loadBibleToolboxGrounding({kind:"scripture", bookId, chapter}, elasticsearch) pulls Strong's lexicon + Macula word-level tags + TSK cross-references + Matthew Henry / JFB commentary (same loader the study service uses); (2) ElasticsearchService.searchDocuments("theology_terms") pulls top-5 theology terms (term_en + short_definition); (3) MySQL cross_references table pulls top-8 by votes (same source SQL as study.getCrossReferences). All three blocks fall back to empty string on failure - best-effort, never blocks the LLM call.
  • Reuse existing services - zero new service invented: ModelFactoryService.compileWithPrompt({timeoutMs}, systemPrompt, userInput) for LLM (3-arg signature matches study); TogetherTranslateService.translateText({text, targetLang, sourceLang}) for translation; ElasticsearchService.upsertDocuments("reflections", docs) for ES ("reflections" already added to SearchIndexDomain union + ELASTICSEARCH_INDEX_ALIASES + DOMAIN_CONFIGS with textFields title^5 + dek^3 + body^2); TtsFactoryService.synthesize({text, role, lang}) for TTS (edge_tts -> deepinfra chain fallback); LocalStorageDriver.save(lectureId, lang, filename, buffer) for storage; BooksService.getChapterText(bookId, chapter) for scripture.
  • Admin UI - /admin/reflections single-page three-tab (backend/app/app/admin/reflections/page.tsx, commit d4f398f8): (1) Pipeline tab - 9 status cards (total / 4 states / 2 TTS gaps / pipeline incomplete / queue pending) + 7-step mini progress (s1~s7 completed counts) + force toggle + 7 step rows (each with its own play/abort + per-step inserted/updated/skipped/failed/duration counters) + run-all button; (2) Auto-queue tab - pending candidates list with value_score color-coded (green/orange/red) + Approve (backend auto-creates a draft reflection) / Reject via modal with >=3-char reason; (3) Reflections list tab - all admin reflections + status filter + one-click four-state switch + deep-link to /reflections/[slug]. SSE log streams every start / item / translate / tts_chunk / es_sync / step_done / done / error event in color.
  • Admin sidebar - backend/app/app/admin/layout.tsx sidebar menu adds "🪞 Reflections 灵修 -> /admin/reflections" right after "🏛️ 建筑索引", matching the existing admin page style. AuthGuard is wrapped at the layout level so all admin routes share the existing auth path.
  • Debug / idempotency guarantees - per-step log format is uniform: [Step X: name] start force=true/false / [Step X] candidates rows=N / [Step X] reflection_id=N loading Bible Toolbox grounding book_id=X ch=Y / [Step X] reflection_id=N LLM prompt_chars=NNNN / [Step X] reflection_id=N LLM response_chars=NNNN / [Step X] markStepDone reflection_id=N xxx_at=NOW() / [Step X] done processed=N failed=N skipped=N. Idempotency mechanisms: SELECT candidates WHERE step_at IS NULL OR ?=TRUE; INSERT IGNORE / ON DUPLICATE KEY; write sections/verses/faqs via "DELETE then INSERT" (force replaces wholesale); last_step field supports resume from any point.
  • Known deferred (M4 / M7+): user-facing frontend (NavBar / Footer / home hero CTA / Most-read block / theme grid / today's reflection / /reflections list / /reflections/[slug] 11-section page with TTS player + JSON-LD / /read "Read the reflection on this chapter" CTA calling /:slug/match), ES reflections index mapping (domain already added, mapping pending), /search join, sitemap addition, bilingual hreflang, cross-linking with read / study / spacetime / architecture / topic. reflection_seeds table is built but not seeded - held for v1.3.
  • Changelog bookkeeping: today's 10-table DDL + 10-row theme seed + 21 APIs + 7-step pipeline + admin UI live in 2 SQL files in docs/sql/ and 11 backend module files plus 1 admin page. The system_change_logs entry follows the same docs/mysql/migration_system_change_logs_YYYY-MM-DD-*.sql naming convention as the other changelog migrations but does NOT bundle DDL into the migration - schema and changelog live in separate files of the same dated migration. This entry sits alongside the spacetime entries when listed with ORDER BY log_date DESC. Two commits pushed to master: f15e32da feat(reflections): M1+M2+M3 (10 tables DDL / seed / 21 APIs / 7-step pipeline / RAG grounding), d4f398f8 feat(admin): M5 (admin UI complete three tabs / sidebar / SSE log); tsc --noEmit is green and BOM has been stripped from every new file.

2026년 7월 24일

Bible-related buildings now in the search index and the spacetime matrix

보관

Today we added a new wave of Bible-related buildings and architecture (Solomon's Temple, the Second Temple, the Tower of Babel, Bethlehem, the synagogues, Herod's palace, Ur / Akkad, etc.) as first-class content nodes. They are now indexed by global search and visible on the spacetime matrix pages (the /spacetime gallery and the /channel/spacetimecube) under a new type="building" category. Each building carries scripture references, canonical book(s), and associated topics (sacrifice & ritual, Reformation, Promised Land...) with full Chinese / English localization. Searches like "圣殿 / Temple", "巴别塔 / Tower of Babel", or "伯利恒 / Bethlehem" now return direct hits that open a building detail card. The work reuses the existing era / place / topic dimensional model — no new tables, no new columns.

  • Building nodes added: the most prominent Bible buildings / locations (Solomon's Temple, the Second Temple, the Tower of Babel, Bethlehem, the synagogues, Herod's palace, Ur, Akkad, the Capernaum synagogue, ...) are now persisted as type="building" content nodes in the source registry and content tables, fully reusing the existing era / place / topic dimensions.
  • Searchable from the top bar: global search (/search) now returns building-class cards alongside courses / passages / topics — queries like "圣殿 / Temple", "巴别塔 / Tower of Babel", "伯利恒 / Bethlehem", or "会堂 / Synagogue" hit the corresponding building node with an icon, the canonical book(s), and a one-line summary.
  • Visible on the spacetime matrix: every building is auto-placed at the matching era × place × topic coordinates. The /spacetime gallery now exposes a new "Buildings" tab under the type filter, and the /channel/spacetimecube 3D view highlights building nodes with a distinct icon and color while keeping the same hero / dust rendering pipeline as the existing era / topic / geo nodes.
  • Detail card: clicking a building node opens a card with scripture references (book + chapter range, e.g. 1 Kings 5–8), the canonical book, the associated topics (Sacrifice & Ritual, Reformation, Promised Land, ...), and two jump links — "View in scripture" (→ /read) and "View on the map" (→ the map view under /spacetime).
  • Bilingual: building names, summaries, scripture references, and topics all switch between Chinese and English through the same i18n pipeline (t() + locale-aware data fetch) as the rest of the app.
  • Zero schema cost: implemented on top of the existing era / place / topic dimensional model and the source-registry ingestion path. No new tables, no new columns — the type="building" marker is enough to distinguish the category, and the search index plus the spacetime matrix both consume the same content query API, so there is no risk of double-write drift.

2026년 7월 23일

Elasticsearch takes over search indexing and content retrieval

보관

Today BibleVibe moved the core search stack from Qdrant to Elasticsearch while keeping MySQL as the source of truth. New and expanded ES domains now cover books, chapters/scripture, theology terms, commentary, courseware, dialogs, chats, images/media, and public-study content. The backend now exposes Elasticsearch through SearchIndexService instead of binding business code directly to an ES SDK, while the admin index-management page supports per-domain Sync and Rebuild all flows with idempotent batching, persisted progress, visible logs, and fail-fast error handling. The frontend search, study, stream, topics, today, and spacetime surfaces were also adjusted so scriptures, terms, books, chapters, questions, and related cards resolve through unified data helpers and respect the current locale.

  • Elasticsearch infrastructure: added Elasticsearch service, SearchIndexService abstraction, index constants, and typed search-index contracts so business modules use a unified search layer instead of talking directly to an SDK.
  • MySQL remains the source of truth: Elasticsearch is used as the search and retrieval accelerator, with books, chapters/scripture, terms, commentary, courseware, dialogs, chats, resource images, and public-study content built from MySQL or generated source content.
  • Admin index management upgrade: /admin/index-management now includes ES domain coverage, per-domain Sync, implemented-domain Sync, Rebuild all, live progress, built / changed / unchanged / deleted counts, and visible error reporting.
  • Idempotent incremental sync: Sync is no longer treated as a blind full rebuild. It uses source fingerprints, document hashes, and persisted progress so unfinished or changed content can continue safely; Rebuild all remains the explicit force-refresh path.
  • Batched ES and DB persistence: long-running domains such as Chapter / Scripture, Terms, Commentary, and Book now update progress while running instead of waiting for the entire embedding job to finish before recording state.
  • Stricter error handling: if any ES domain sync fails, backend debug/error logs and the admin UI both surface the error and the current queue stops immediately rather than silently continuing in a bad state.
  • Embedding service abstraction: embedding calls were centralized in EmbeddingService, with EMBEDDING_PROVIDER provider chains such as minimax,together and shared truncation, retry, fallback, and debug logging behavior.
  • QdrantService removal: direct Nest dependencies on QdrantService were removed or rewritten, moving search and indexing paths toward Elasticsearch.
  • Search UX upgrade: /search now includes a Relevant Scriptures section, scripture hits link into the matching /study?type=scripture page, and book-level hits are merged into Relevant Books and Chapters.
  • Scripture study mode fixes: /study?type=scripture supports a full left-side verse list for the selected chapter, URL-selected verses, stable left-panel selection without unwanted scrolling, and Thinking / 思考中 loading when switching verses.
  • Locale consistency: stream, topics, living stream, today, eras, geo, search, and cards for terms/scripture/book/chapter/question/thread/compare now use shared localization helpers to avoid mixed Chinese and English display.
  • Book summary indexing: whole-book study guide content is flattened from book_study_guide.guide_json into bible_books.study_guide_text_zh and bible_books.study_guide_text_en so searches can hit a book by its generated summary or study-guide text.
  • Images / Media and Public Study domains: resource_images and public_study_content are covered by admin-triggered sync and status reporting, preparing image, media, and public-study content for ES-backed retrieval.
  • Commit record: the ES migration and related frontend/backend changes were committed as 4f1a1525 with the message Migrate search indexing to Elasticsearch.

2026년 7월 23일

Search Media Merge · /me Growth Path Media · Mobile Landscape Polish

보관

Merged film cards into the search page multi-media section, sorted by ES score alongside courseware; added dynamic media recommendations per growth-path stage on /me with cross-stage deduplication and independent expand; mobile dock hides in landscape mode.

  • Search multi-media: films + courseware mixed by ES score, 6 per page, scroll-to-load-more
  • Film cards removed from Home, Stream, Topic, Spacetime, Read — search page only
  • /me growth path: each stage fetches dynamic media recommendations (film + courseware) via /api/v1/search/bible, merged into a single Watch & Explore strip
  • Cross-stage deduplication: a film or courseware only appears in the earliest stage that claims it
  • Stages are now independently expandable — opening one no longer collapses others
  • Mobile dock hidden in landscape via @media (orientation:landscape)
  • Spacetime custom landscape toggle: adds body.spacetime-landscape class → CSS hides dock; class cleaned up on unmount

2026년 7월 20일

Spacetime gallery + admin-era/geo management: every era and every place now has its own cover, its own page

보관

On top of the 7-19 spacetime-cube launch and the 7-20 v1.1 polish, today the bible_eras / bible_geolocations master data is promoted from 3D nodes + backend master rows into a fully browsable, viewable, AI-illustrated spacetime gallery experience. Three pieces: (1) on the admin side, two new management lists - Eras and Geolocations - show every record with its metadata (era range / verse count / linked books / modern-place coordinates etc.) and a one-click AI image generator; the result is written back to the same row as the era or geolocation cover image. (2) A new frontend route /spacetime renders a gallery where every era card and every geolocation card are interleaved on a time-axis x place-axis two-column layout; each card shows the name, era range or modern place, AI cover image, and key books - making the spacetime interleave of the Bible narrative visually obvious. (3) Clicking any card deep-links into /spacetime/[type]/[slug] where [type] is era or geo and [slug] is era_key or geo_key, and the same mixed content stream (books, passages, courseware, immersive narratives, visual stories) is rendered below and can be cross-filtered by the other dimension: pick an era, filter by geolocation; pick a geolocation, filter by era. This new surface runs alongside the existing /channel/spacetimecube 3D view and the Read / Study paths, acting as the flat counterpart of the same dimensional data.

  • Admin - Eras list: a new /admin/eras page renders every bible_eras row with its era_key, name, time range, book_era_map count, content_eras count. Each row has a view-details action that opens the full metadata and the linked content preview for that era.
  • Admin - Geolocations list: a sibling /admin/geolocations page renders every bible_geolocations row with its geo_key, ancient and modern names, lat-lng, bible_geolocation_relations count, content_geolocations count, again with a view-details action.
  • Admin - One-click AI cover image: every era and every geolocation row gets an AI generate image button. Clicking it calls the backend image-generation pipeline with a prompt built from the era description and its key books (e.g., Patriarchal Era - Genesis 12-50) or from the geolocation ancient/modern names and its linked passages. The generated image URL is written back to the row image_url column and becomes the cover used on /spacetime.
  • /spacetime gallery page: a brand-new frontend route /spacetime renders a two-column interlocked layout. The left column scrolls vertically through every era from creation to consummation; the right column scrolls through every geolocation in sync; matched-era-and-geolocation cards light up with crossfades and connecting lines, producing the spacetime interleave feel.
  • Card content: every era card shows name, time range, AI cover image, 2-4 key books, and a one-paragraph summary; every geolocation card shows the ancient + modern name, AI cover image, linked-verse count, and modern coordinates when available. The tradition toggle (Protestant / Catholic / Judaism) filters both columns live.
  • Click-through to detail: clicking any card deep-links to /spacetime/[type]/[slug] where [type] is era or geo. The detail page header shows the full info for that era or geolocation: AI cover image, summary, time range or modern name, key books or key passages.
  • Filterable content stream below: below the header, the detail page uses the same mixed-content list component shared with Read / Study. It sequentially renders the linked books, priority (p0/p1) passages, related courseware, related immersive narratives, and related visual stories - each item has a type badge and a jump link.
  • Cross-dimension filtering: at the top of the detail page, a filter bar exposes the opposite dimension (era or geolocation) as dropdowns and quick-tag chips. From any entry point the user can swap to a precise combination - e.g., from the Patriarchal Era page, switch the geolocation filter to Canaan to land directly on Patriarchal Era + Canaan content.
  • Data reuse with the existing dimensional layer: eras and geolocations still come from bible_eras / bible_geolocations; the linked content still comes from bible_era_relations / bible_geolocation_relations / content_eras / content_geolocations / book_era_map / book_geo_map - all of which were already delivered in the 7-18 / 7-19 series of migrations, so todays work requires no new DDL.
  • Composes with the rest of the spacetime surface: /channel/spacetimecube remains the global 3D node cloud view, the new /spacetime is the browseable / clickable / filterable catalog view; the two are bidirectionally linked from every era and geolocation card and share the same dimensional data.
  • Changelog bookkeeping: the new admin pages, the /spacetime gallery, the /spacetime/[type]/[slug] detail page, and the AI-image backfill are all recorded as a single standalone INSERT in system_change_logs dated 2026-07-20, sitting alongside todays earlier spacetimecube v1.1 entry when listed by ORDER BY log_date DESC.

2026년 7월 19일

Spacetime cube + whole-book study: every Bible entry now has era × theme × place, and every book now has a cover-to-cover study path

보관

Today's two main pieces of work move BibleVibe from "a passage-search tool" toward "a three-dimensional Bible system organized by book." First, the Spacetime Cube (channel/spacetimecube) shipped: the era × theme × geolocation axes are now first-class in both the database (bible_eras, bible_geolocations, content_eras, content_geolocations) and the front-end, so books, passages, theology terms, and courseware items all carry an era_key / topic_key / geo_key and live as dots in a rotatable, zoomable 3D cube. Second, whole-book study: every book now has a populated overview, writing purpose, classic passages, and key themes, and the Spacetime Cube acts as the natural entry point into a continuous Read / Study flow that lets users move seamlessly between book, chapter, and book-level study.

  • Added bible_geolocations and bible_geolocation_relations as first-class data: modern place names and per-(book, chapter-range) place mappings live in their own tables, so every passage, book, and theology term can be resolved to a specific place on the map.
  • Added bible_eras / bible_era_relations (the era axis), linked courseware to topic_groups, and introduced content_eras / content_geolocations so multimedia content also has dimension tags. book_era_map and book_geo_map provide the book-level fallback so any passage can resolve to era + topic + place.
  • Shipped the front-end route /channel/spacetimecube: an interactive 3D cube where X = era (creation to consummation), Y = theme (origins, patriarchs, exodus, ..., apocalypse), Z = place (Eden, Babel, Jerusalem, ...). Each dot is a passage / term / courseware item; users can rotate, zoom, and click for details.
  • Backfilled the cube from existing data: every courseware, immersive_narrative, and visual_story got era / topic / geo tags derived from bible_geolocation_relations and book_geo_map, so the cube is populated on day one without any new content.
  • Added a per-book "Whole-book study" entry on the Read / Study pages: every book now shows an Overview panel (summary, writing purpose, classic passages, key themes) before the chapter list, giving users a "see the whole book first, then drill in" path.
  • Added a dedicated book-level Study mode: pick a book and walk through it chapter by chapter in canonical order, with per-chapter summary / key verses / reflection questions / cross-chapter links, so a reader can finish an entire book in one focused session.
  • Connected the Spacetime Cube and book study: clicking a book entry inside the cube opens the book study page directly, and the book study page also offers a "view this book in the Spacetime Cube" jump — both views share the same era / topic / geo data.
  • All changes are recorded as a single standalone INSERT in system_change_logs dated 2026-07-19; the backend listing just needs `ORDER BY log_date DESC` to surface today's entry alongside the rest of the changelog timeline.

2026년 7월 18일

Read and Study refreshed around classic entry points

보관

This update refreshes the Read and Study experience around the Bible's most classic books, chapters, passages, and terms. Study now supports immediate entry, default recommendation cards, and friendlier loading feedback; Read now supports a no-parameter browse hub, banner-integrated search, tradition filtering, and My Reading for signed-in users. The overall goal is to reduce the friction of “where should I start?” and make it easier for users to begin with classic content, then continue into sustained reading and deeper study.

  • Clicking Study now enters the page immediately instead of waiting for content preparation first; once inside, both panes show friendlier loading states and the AI panel gives clearer “thinking” feedback.
  • Study now supports a default entry mode: when no specific passage, term, or question is provided, the system surfaces classic recommendation cards drawn from p0 / p1 scripture, term, and question content so users can start studying right away.
  • Classic entry points are now more prominent: scripture cards can lead into either Study or Read, so users can begin with deeper study or first step back into direct reading from classic books and chapters.
  • Read now supports a no-parameter entry state and presents classic p0 / p1 books and priority chapters grouped by book, making it easier to begin from the most foundational content.
  • The Read page search area is now integrated into the banner, with book-name input, chapter autocomplete, and tradition filtering; selecting a suggestion opens Read directly, while the search button routes to Search.
  • Signed-in users now see My Reading on the default Read page, combining personal reading history with learner-assessment recommendations; this entry is SSR-rendered and cached for 10 minutes to improve first-load stability.
  • In dialog-based Study pages, source references such as Genesis 1:26 can now deep-link directly into Read with the correct book, chapter, verse-range, and tradition parameters, making the transition between reading and study feel more natural.

2026년 7월 18일

Era system connected across data and major surfaces

보관

This update establishes a full era-based layer across both data and major user-facing surfaces. On the backend, it introduces core relationships such as bible_eras, bible_era_relations, and content_eras, and adds approx_year so a shared era dataset can classify books, chapters, passages, courseware, immersive narratives, and visual stories. On the frontend, eras are now wired into major surfaces including Read, Search, Stream, Topics, Interactive, and Study, enabling era filters, era badges on cards, and locale-aware era labels so biblical eras become a consistent site-wide organizing dimension rather than an isolated tag.

  • Introduced bible_eras as the canonical era dataset with fields such as era_key, slug, sort_order, title_zh, title_en, and approx_year.
  • Introduced bible_era_relations to persist representative_book and key_passage mappings from eras to books, chapters, and verses, enabling precise routing through system book and passage ids.
  • Introduced content_eras as a dedicated relation table for courseware, immersive narratives, and visual stories, instead of overloading topic mappings with era semantics.
  • Wired era filters into Read under the tradition filter; the no-parameter Read entry is now organized by eras, and both key passages and supplemental books align to internal book / chapter / verse identifiers.
  • Wired era filtering and era badges into Stream, Topics, Search, and Interactive; when a topic or channel has no content for certain eras, those empty era filters are hidden automatically.
  • Added era badges across major content cards and standardized them to the darker tradition-like style; badge text is locale-aware so cards no longer mix languages or show duplicate era labels.
  • Added era / year context to the Study left panel and related-content areas, while also removing multiple hardcoded stage-name paths in favor of sourcing titles and ordering from bible_eras.

2026년 7월 17일

Study page adds follow-up prompt chips

보관

The Study page now shows follow-up prompt chips under every AI reply — What/Why/When/Where/How/What-if — so a click lets the AI dig deeper into what it just said. Making the follow-ups actually build on prior context surfaced and fixed two gaps: the chat never sent conversation history to the model at all, and the anonymous chat limit was effectively unenforced.

  • Added follow-up prompt chips under Study page AI replies — What/Why/When/Where/How/What-if — so a click lets the AI dig deeper into what it just said.
  • Fixed a gap where the study chat never sent conversation history to the model at all — follow-ups now genuinely build on the AI's prior answer instead of starting from scratch every time.
  • Anonymous users' chat limit is now enforced server-side against a persisted per-visitor id, instead of a browser session counter that a page refresh could reset.
  • Once a follow-up button is clicked it stays gone for the rest of that conversation; its label and the question it sends both follow whatever page language is active at the moment of the click, not whichever language was active when the reply first loaded.

2026년 7월 16일

Changelog page launched + Bible Toolbox data integration

보관

This day launched the changelog page, integrated four real public-domain data sources.

  • Added a dedicated changelog page that presents key daily updates in a timeline format.
  • Added a changelog link in the footer so it is reachable from anywhere on the site.
  • Moved updates into database-backed records so future daily entries can be maintained with a single insert or update.
  • Added a Strong's lexicon (Greek G0001-G5624, Hebrew H0001-H8674) and word-level original-language tagging (macula), sourced from mybibletoolbox-data (MIT/CC-BY-SA).
  • Added Treasury of Scripture Knowledge cross-references (~340k entries), sourced from the scrollmapper/bible_databases public-domain mirror (MIT).
  • Added Matthew Henry and Jamieson-Fausset-Brown public-domain commentary via the HelloAO API, tiered P0/P1/P2/P3/P4/P5 with safe incremental re-fetching.
  • Theological term extraction now grounds its output in this real data and records a source_citation, cutting down on the LLM inventing original-language words or definitions from nothing.
  • The study page's scripture view now shows real cross-references; a new bible_commentary semantic index lets free-form questions surface real commentary excerpts, not just exact chapter lookups.
  • Added a "Bible Toolbox" admin page to trigger and monitor these data sources; QD index backfill/rebuild for them was consolidated into the existing Index Management page.
홈둘러보기성경AI 질문마이