Commit Graph

1291 Commits

Author SHA1 Message Date
kennethreitz e659b0dadc Lower cross-ref expand threshold to 120 chars
More cross-refs will auto-expand now with the lower threshold.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:44:33 -05:00
kennethreitz c13456d0e4 Auto-expand cross-refs based on next verse length
If the next verse is 150+ characters, there's plenty of margin space
for the sidenote, so auto-expand cross-refs. If next verse is short,
keep collapsed to avoid overflow.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:40:51 -05:00
kennethreitz 5bd0f7556b Restore cross-reference grouping with collapse behavior
Keep group descriptions (Prophecy:, Related:, etc.) while still
showing first 3-4 refs collapsed with "+N" expand for more.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:39:31 -05:00
kennethreitz 31d5756240 Show all cross-refs if 4 or fewer, avoid "+1"
If there are 4 or fewer refs, show them all without expand.
Only use the collapsed "+N" pattern when there are 5+ refs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:38:20 -05:00
kennethreitz 97877b22d6 Show first 3 cross-refs collapsed, expand for more
Cross-references now show first 3 refs by default with "+N" indicator.
Clicking expands to show all references. Simplifies the template by
flattening grouped refs into a single list.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:37:17 -05:00
kennethreitz a65eb4a028 Expand word studies only on first occurrence, collapse repeats
First time a theological term appears in a chapter, show it expanded
so readers see the definition. Subsequent occurrences of the same word
are collapsed since the reader already knows the meaning.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:35:32 -05:00
kennethreitz ab160b4abd Filter word studies to important theological terms only
Limit word study sidenotes to ~40 key theological terms like god, lord,
salvation, grace, covenant, etc. Excludes common words like walk, call,
dwell, bread that don't warrant study annotations on every occurrence.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:34:13 -05:00
kennethreitz b1c558808a Simplify: expand cross-refs, collapse word studies
Removed complex adaptive logic. Simple rules:
- Cross-refs: always expanded
- Word studies: always collapsed (click to expand)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:31:29 -05:00
kennethreitz 047bbd9b8c Link verse refs to chapter view with anchor, not verse view
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:29:07 -05:00
kennethreitz 34c486af53 Prefer word studies over cross-refs for expansion
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:26:21 -05:00
kennethreitz b5ddc7c50d Smarter sidenote expand/collapse algorithm
- Track consecutive expansions, force collapse after 2 in a row
- If verse has both word study and xref, only expand xref
- Prefer cross-refs over word studies (more useful for study)
- Creates visual rhythm instead of wall of expanded content

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:24:57 -05:00
kennethreitz 2f9828b960 Always expand sidenotes on first verse of chapter
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:23:31 -05:00
kennethreitz 042ed26ccf Factor verse length into expand/collapse decisions
Long verses have more margin room, so expand more freely (buffer=1).
Short verses have less margin room, need more clearance (buffer=3).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:22:35 -05:00
kennethreitz 2bb5305bd3 Use lookahead for sidenote expand/collapse decisions
Two-pass approach: first collect all sidenotes, then decide expand
based on looking both ahead and behind. Expands when there's 2 verses
of space on both sides, collapses when crowded.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:21:24 -05:00
kennethreitz ea454723eb Auto-expand word studies when margin isn't crowded
Word studies now auto-expand when there's room (2+ verses since last
word study), matching cross-ref behavior.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:19:39 -05:00
kennethreitz 4802a48817 Set cross-ref cooldown to 2 verses
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:15:43 -05:00
kennethreitz 2eb3f71d76 Expand cross-refs most of the time, collapse only when back-to-back
Reduced cooldown from 3 verses to 1 - only collapse when consecutive
verses both have cross-refs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:15:03 -05:00
kennethreitz 29adf18818 Auto-expand cross-refs when not crowded, collapse when cramped
Cross-references now auto-expand when there's room (3+ verses since
last xref), but stay collapsed when verses are close together to
prevent margin overload.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:14:19 -05:00
kennethreitz db0fb31fb3 Add 3-verse cooldown for cross-references
When verses are close together (within 3 verses), show condensed
"+N refs" instead of full cross-reference groups to prevent
margin overload.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:13:25 -05:00
kennethreitz 29d2045c09 Disable verse tooltips on chapter pages
Sidenotes already provide cross-reference context on chapter pages,
making tooltips redundant. Tooltips still work on commentary, topic,
and other pages where verse previews are helpful.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:09:19 -05:00
kennethreitz 02f2628fb1 Remove Strong's tooltip from word studies
The sidenotes already provide context - tooltips on top were overkill.
Strong's links still work for click-through to the full page.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:07:27 -05:00
kennethreitz a9844e449f Match Strong's tooltip colors to verse tooltip
Same border, border-radius, box-shadow, and dark mode colors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:02:12 -05:00
kennethreitz 1828c1d79b Simplify Strong's tooltip to minimal design
- Left border accent instead of box
- Inline word + transliteration on first line
- Definition below
- Simple "KJV: ..." line at bottom
- Removed derivation and extra chrome

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:01:10 -05:00
kennethreitz d945cf93ac Redesign Strong's tooltip with Tufte-inspired card
New layout features:
- Horizontal header with word, transliteration, and Strong's number
- Serif typography (Crimson Text) matching sidenote style
- Meta section with small-caps labels for KJV usage and derivation
- Subtle border and shadow for elegant appearance
- Proper dark mode support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 07:57:37 -05:00
kennethreitz 5a7a275b2b Add Strong's tooltip on hover for word study links
Hovering over the Greek/Hebrew term in word study sidenotes now shows
a tooltip with the Strong's card: original word, transliteration,
Strong's number, and definition. Uses same positioning logic as verse
tooltips.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 07:54:29 -05:00
kennethreitz 990ef2e52d Increase verse tooltip font size
Bumped font-size from 0.9rem to 1rem and max-width from 400px to
450px for better readability.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 07:51:55 -05:00
kennethreitz 4c8ce4c15d Position verse tooltips relative to link, not cursor
Tooltips now appear centered below the link element (or above if
near bottom edge), similar to cross-reference tooltips. Removed
mouse movement tracking for simpler, more predictable behavior.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 07:50:05 -05:00
kennethreitz fe23aebf5d Fix tooltip right-edge overflow by measuring off-screen first
The tooltip now renders off-screen first to get accurate dimensions
before calculating the final position. This ensures the flip logic
works correctly when the tooltip would overflow the right edge.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 07:47:46 -05:00
kennethreitz a46524fef8 Fix verse tooltip viewport overflow
Tooltips now stay within viewport bounds on all edges (left, right,
top, bottom) with a 10px padding from the edge.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 07:46:22 -05:00
kennethreitz dac440527b Add 5-verse cooldown for word study repetition
Word studies can now appear multiple times per chapter, but with a
5-verse gap between repetitions of the same word. This reduces
clutter while still surfacing important theological terms.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 07:44:50 -05:00
kennethreitz 9585617ecd Remove every-other-verse restriction for word studies
Word studies now appear on any verse with matching words,
not just odd-numbered verses.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 07:39:29 -05:00
kennethreitz a57276104a Allow word studies to repeat across chapter
Remove the once-per-chapter restriction on word studies.
Same word can now appear multiple times if it occurs in
different verses.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 00:09:59 -05:00
kennethreitz 4f22d1ef02 Only collapse cross-refs when 3+ are hidden
Show +1 or +2 refs expanded inline. Only show the +N collapse
indicator when there are 3 or more hidden refs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 00:08:08 -05:00
kennethreitz 84b2316bb5 Add .coverage to gitignore 2025-12-04 23:26:54 -05:00
kennethreitz f8640eadbb Limit word studies to 1 per verse
Prevents sidenote collision when two word studies appear
on the same line, which causes horizontal displacement.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:26:36 -05:00
kennethreitz bd6ce112d9 Add margin-bottom to sidenotes for vertical spacing
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:25:24 -05:00
kennethreitz aa7929205e Fix sidenotes pushing each other horizontally
Add clear:right to ensure sidenotes stack vertically
instead of being pushed off to the side.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:23:45 -05:00
kennethreitz cb39aa5a8f Show 1 ref per theme, max 3 themes unexpanded
Cross-refs collapsed view now shows:
- First ref from up to 3 theme groups
- Click to expand and see all refs in all groups

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:21:04 -05:00
kennethreitz bcc96b8be5 Show up to 3 refs per theme before expanding
Cross-references now show first 3 verses per theme group in the
collapsed view. Additional refs beyond 3 per group are hidden
until expanded.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:20:20 -05:00
kennethreitz 27800962d7 Fix word study collapse with !important
Ensure word-study-details is properly hidden by adding !important
to override any conflicting Tufte CSS rules.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:18:02 -05:00
kennethreitz be82b91ac5 Add 31 more word studies (103 total)
New entries: messiah, lamb, shepherd, light, darkness, obey,
commandment, servant, promise, fulfill, transgression, iniquity,
abomination, blessed, curse, remnant, firstborn, cornerstone,
vine, bread, water, rock, door, crown, throne, king, bride,
dwell, abide, walk, call

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:16:29 -05:00
kennethreitz 4e98b5c083 Remove arrow from cross-ref count indicator
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:13:29 -05:00
kennethreitz da84f66fbc Add ▸ arrow indicator to cross-ref +N count
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:13:09 -05:00
kennethreitz 38c0ee8d2f Fix cross-ref layout shift by using inline expand
Extra refs now appear inline when expanded rather than
swapping between preview/details elements. This prevents
any layout shift when clicking to expand.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:12:20 -05:00
kennethreitz 803c3cbe39 Simplify cross-ref expand CSS to reduce layout shift
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:10:29 -05:00
kennethreitz 46e2c042b1 Show first ref from each group in collapsed cross-refs
Collapsed view now shows one ref per theme/description group
(e.g., "Prophecy: Isa 7:14; Fulfillment: Matt 1:23 +3")
so users see the variety of cross-reference types at a glance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:09:05 -05:00
kennethreitz 22de2194cd Collapse cross-refs by default, show first ref with expand for all
Cross-reference sidenotes now show just one verse reference by default
with a "+N more" indicator. Click to expand and see all grouped refs.
This reduces sidebar clutter while keeping all cross-refs accessible.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:08:13 -05:00
kennethreitz 5332c79c45 Collapse word studies by default, show only word + Greek term
Word study sidenotes now show just the word and Greek/Hebrew term by default.
Click to expand and reveal transliteration and full definition.
Adds a subtle ▸ indicator showing the sidenote can be expanded.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:06:29 -05:00
kennethreitz e9cd2dd8f8 Limit cross-references to 3 groups, 4 refs per group
Reduces sidebar clutter by capping cross-references displayed per verse.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:05:09 -05:00
kennethreitz c397e8a8a0 Fix red letter styling bleeding into sidenote links
Links inside sidenotes (like "Jesus" or Strong's references) were
inheriting the red color from .words-of-christ styling due to an
!important rule in base.html. Added more specific sidenote link rules
with !important to override.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 22:51:07 -05:00