From ea8cbacc6e2d88f72250573b2527db7d2fad2903 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 3 Dec 2025 15:50:06 -0500 Subject: [PATCH] Fix stars page UX and reading plans progress display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove heading from stars page - Left arrow key now collapses expanded item instead of navigating back - Only navigate back with left key if nothing is selected - Fix reading plans progress: correct ID from 'your-plans' to 'your-reading-plans' - Change section to div for reading plans wrapper 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- kjvstudy_org/templates/reading_plans.html | 6 +++--- kjvstudy_org/templates/stars.html | 14 ++++++++------ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/kjvstudy_org/templates/reading_plans.html b/kjvstudy_org/templates/reading_plans.html index 9c34a90..05fd896 100644 --- a/kjvstudy_org/templates/reading_plans.html +++ b/kjvstudy_org/templates/reading_plans.html @@ -162,10 +162,10 @@

Whether pursuing canonical familiarity through complete Bible reading or concentrating on specific portions, these schedules provide daily guidance for disciplined Scripture intake. Select a plan suited to your current season and study objectives.

-
+

Your Reading Plans

    -
    +

    Available Reading Plans

    @@ -196,7 +196,7 @@ (function() { // Load and display progress for each plan const cards = Array.from(document.querySelectorAll('.plan-card')); - var yourPlansSection = document.getElementById('your-plans'); + var yourPlansSection = document.getElementById('your-reading-plans'); var yourPlansList = document.getElementById('your-plans-list'); var plansWithProgress = []; diff --git a/kjvstudy_org/templates/stars.html b/kjvstudy_org/templates/stars.html index 7aacb48..88b3087 100644 --- a/kjvstudy_org/templates/stars.html +++ b/kjvstudy_org/templates/stars.html @@ -619,11 +619,6 @@ kbd { {% block content %}
    -
    -

    Starred Passages & Pages

    -

    Your personal collection of Scripture and study resources

    -
    -
    @@ -1123,7 +1118,14 @@ kbd { selectItem(selectedIndex <= 0 ? 0 : selectedIndex - 1); } else if (e.key === 'ArrowLeft' || e.key === 'h') { e.preventDefault(); - history.back(); + // If selected item is expanded, collapse it + if (selectedIndex >= 0 && items[selectedIndex] && items[selectedIndex].classList.contains('expanded')) { + var url = items[selectedIndex].getAttribute('data-url'); + if (url) toggleItem(url); + } else if (selectedIndex < 0) { + // Nothing selected, go back + history.back(); + } } else if (e.key === 'ArrowRight' || e.key === 'l') { // Expand selected item if (selectedIndex >= 0 && items[selectedIndex]) {