bible270 1.17.0 → 1.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf03bd35a5791eb9552354d35ab5a0ab21b4baa14d87f863793bb4aca3eac0cb
4
- data.tar.gz: d61c8537cc9afd1350eea66a91c5dcf8647478af48f51c114031c24e27a67ff3
3
+ metadata.gz: c99403f2988bb64614996cf4b447679f8ad56731d1c4f6d5f9f6f93cb23d1d4d
4
+ data.tar.gz: f87f1e3baf25aa620da73eb9ad2fc8e3ff40a082d4ffdfef10bbed98246e08d6
5
5
  SHA512:
6
- metadata.gz: b77e75977313bc581ad9ae62ca6901ae9c65430db7ae7195d6455a840ab4d34b19ec7d963603bf71451fe3219736b904184cfdd6daf97c2b8883206b7183fae5
7
- data.tar.gz: ad72c4e7080ed42a35424b8df9fbe377732972d671b0b602793717dc3122b6051b4ee3b8e2d50f29fef950819ecf41c1ef35c5dd6598c73d5978e68e3330340d
6
+ metadata.gz: 02fe754b4c1a32a3ae63c8353b145a034c98d9a5bb1c60e7a44675aebdc9aa6185ed9319482f1e21db9b72fecc32f32a7081aafb6a3b94dbf2b01f99aa0c2be1
7
+ data.tar.gz: e8fcff4ab48c0bd01f778ec10b25ebd5c252f243aebba7b0c57ce795c27bc93d587b58dcc5c204f476610a0aae13884d70e4eb253f071c207549828ce6c64e95
data/CHANGELOG.md CHANGED
@@ -6,39 +6,68 @@ Notable changes, following [Keep a Changelog](https://keepachangelog.com/en/1.1.
6
6
 
7
7
  ### Added
8
8
 
9
- - show full-photo previews after a 3-second avatar hover; fit photos to the screen and fade out when the pointer leaves. Touch behavior is unchanged
9
+ - add a session-remembered Show/Hide Scripture frames toggle in Admin
10
+ - expand the bundled Scripture frame collection
11
+
12
+ ## [1.17.1] - 2026-11-13
13
+
14
+ ### Added
15
+
16
+ - expand the bundled Scripture frame collection
17
+
18
+ ### Changed
19
+
20
+ - simplify documentation
21
+
22
+ ### Fixed
23
+
24
+ - fix iPhone completion rendering; grow and fade the dove without a final flash
25
+
26
+ ## [1.17.0] - 2026-11-12
27
+
28
+ ### Added
29
+
10
30
  - show random, theme-matched Scripture frames on a 3-second bread-icon hover or immediately by tap, click, or keyboard
11
- - add a compact Scripture frames panel near the bottom of Admin with reference/translation headings and passage tooltips; database additions supplement YAML defaults, with automatic translation credits
12
- - support non-Scripture custom texts with an **Other quotation** option and **Author / source** field; omit Bible translation credits and include enabled quotes in bread-icon and completion frames
13
- - add right-aligned Enable/Disable buttons for default Scripture texts in Admin; all start enabled, with choices saved across runs and applied to bread-icon and completion frames without changing YAML
14
- - add **Start a new run** in Admin: give Admins and Site-admins a fresh active membership with zero progress and no personal start date, move other readers to alumni, and open enrollment; preserve accounts, photos, past progress, and discussions
15
- - add confirmed **Revert to previous run**: restore saved statuses for everyone, including admins, plus calendars and enrollment settings; preserve both runs' progress and discussions. Available for restarts made after upgrading
16
- - add Active/Alumni controls, initially expanded **Show / Hide Active Readers** (remembered for the current tab's sign-in session) and collapsed **Show / Hide Alumni** disclosures with shared sorting and per-reader **Make Active** buttons, and read-only run history; returning to a new run starts fresh, while same-run reactivation preserves progress
17
- - let configured Site-admins grant or remove admin access; roles persist across runs, independently of Active/Alumni status. Site-admins can change their own status, but their role is controlled by configuration
31
+ - manage Scripture texts in Admin; custom texts supplement YAML defaults with automatic translation credits
32
+ - support custom quotations with **Author / source**, without Bible translation credits
33
+ - enable or disable default Scripture texts without changing YAML; choices persist across runs
34
+ - start new runs with fresh admin memberships, alumni status for other readers, and open enrollment; preserve accounts, history, and discussions
35
+ - revert post-upgrade restarts to saved memberships, calendars, and enrollment settings; preserve both runs' progress and discussions
36
+ - add collapsible Active/Alumni lists, quick **Make Active** buttons, and read-only run history; remember active-list visibility for the tab's sign-in session
37
+ - let configured Site-admins grant or revoke admin access; roles persist independently of run membership
18
38
 
19
39
  ### Changed
20
40
 
21
- - on a day's final check-off, fade in a random Scripture frame over 1.3 seconds, hold for 5.5 seconds, play a 1.4-second dove flight unless disabled, and fade the continuously moving dove and frame together over the flight's final 0.4 seconds without a final freeze or extra delay; retain a static frame for reduced-motion users
22
- - enlarge the bread icon, give it a theme-aware background, and center the app title beside it; shrink Papyrus curls sooner on narrower screens
23
- - simplify Scripture frames by removing the close control; retain bread-toggle, outside-click, and Escape dismissal, without a lingering pointer-focus outline
24
- - alumni can still sign in, visit Community, and join discussions; their reflections remain available to later groups, while past progress stays frozen
25
- - exclude alumni from current-group lists, reminders, broad reflection notices, and “everyone” broadcasts; retain opted-in personal notices and “all admins” broadcasts for alumni admins
41
+ - show a random frame on day completion, with an optional dove, synchronized fade, and reduced-motion support
42
+ - improve the bread icon, title alignment, and small-screen Papyrus layout
43
+ - simplify frame dismissal and remove lingering bread-icon focus outlines
44
+ - let alumni use Community and discussions; retain shared reflections and frozen progress
45
+ - exclude alumni from current-group notices and reminders; retain opted-in personal notices and admin broadcasts
26
46
  - keep separate progress and consistency history for each run
27
- - speed up the full test suite with CPU-aware workers, smaller feature-focused test files, and quieter logs; retain all tests and coverage
28
- - compact Status, Role, and Completion animation into single-row Admin controls; replace the completion checkbox and Save with one Enable/Disable button, and align Move and Set date forms on one row
29
- - place Scripture Reference and Translation first, side by side with inline labels; require pasted Text below, with API retrieval deferred
30
- - consolidate Scripture management on the main Admin page with custom passages first in biblical order, followed by custom quotations and defaults; retain Custom/Default on each row without group headings, place Add text beside Scripture frames, and keep inline Edit/Enable/Disable/Delete controls; remove redundant hints and redirect the old Manage texts page to this panel
31
- - place Admin and Profile name fields side by side with shorter inputs; order Admin settings as Theme, Email, Where they are, Role, Status, and Completion animation
47
+ - speed up tests with CPU-aware workers, focused suites, and quieter logs
48
+ - compact reader controls and replace the completion-animation checkbox with an Enable/Disable button
49
+ - simplify custom-text forms; require pasted text while API lookup is deferred
50
+ - consolidate Scripture management in Admin, with inline actions and custom passages first in biblical order
51
+ - compact name fields and reorder Admin/Profile controls
32
52
 
33
- **Upgrade:** Back up the database, then copy and run migrations `20260101000024`–`20260101000027` from the host app. Existing readers and check-offs become the initial run. The run-history migration is intentionally irreversible.
53
+ **Upgrade:** Back up the host database, then copy and run migrations `20260101000024`–`20260101000027`. Existing progress becomes the first run; the run-history migration is irreversible.
34
54
 
35
55
  ### Fixed
36
56
 
37
- - hide collapsed Scripture passages immediately in Admin, without a lingering hover or focus preview; restore previews on fresh pointer or keyboard focus
38
- - always confirm reader removal before deleting their check-offs and reflections, even when Turbo is unavailable
39
- - give Admin, Site-admin, and Alumni labels matching compact, theme-colored badges; center uppercase text without font-dependent offsets
57
+ - hide collapsed Scripture passages immediately; restore previews on fresh hover or focus
58
+ - align Admin, Site-admin, and Alumni badges with compact, theme-matched styling
40
59
  - shorten theme and upload hints on Admin and Profile; keep the System hint on one line
41
- - resolve the day grid’s calendar once per render instead of repeating hundreds of setting lookups
60
+ - avoid repeated calendar lookups when rendering the day grid
61
+
62
+ ## [1.16.0] - 2026-11-10
63
+
64
+ ### Added
65
+
66
+ - preview original avatar photos after a 3-second hover; keep touch behavior unchanged
67
+
68
+ ### Fixed
69
+
70
+ - always confirm reader removal before deleting progress and reflections
42
71
 
43
72
  ## [1.15.1] - 2026-11-06
44
73
 
@@ -851,7 +880,10 @@ This is the initial public release.
851
880
 
852
881
  - Email sign-in requires working Action Mailer delivery in the host application. Set `config.mailer_from`; delivery is inline by default, or set `email_sign_in_deliver_later` when a queue backend is available.
853
882
 
854
- [Unreleased]: https://github.com/avonderluft/bible270/compare/v1.15.1...main
883
+ [Unreleased]: https://github.com/avonderluft/bible270/compare/v1.17.1...main
884
+ [1.17.1]: https://github.com/avonderluft/bible270/compare/v1.17.0...v1.17.1
885
+ [1.17.0]: https://github.com/avonderluft/bible270/compare/v1.16.0...v1.17.0
886
+ [1.16.0]: https://github.com/avonderluft/bible270/compare/v1.15.1...v1.16.0
855
887
  [1.15.1]: https://github.com/avonderluft/bible270/compare/v1.15.0...v1.15.1
856
888
  [1.15.0]: https://github.com/avonderluft/bible270/compare/v1.14.0...v1.15.0
857
889
  [1.14.0]: https://github.com/avonderluft/bible270/compare/v1.13.5...v1.14.0
data/README.md CHANGED
@@ -256,7 +256,7 @@ config.admin_emails = %w[andrew@example.org]
256
256
  config.admin_resolver = ->(reader) { reader.email.to_s.end_with?('@example.org') }
257
257
  ```
258
258
 
259
- The generated initializer labels this section **Site-admins**; the option names remain `admin_emails` and `admin_resolver`. A callable resolver takes precedence over the email list.
259
+ The `admin_resolver` callback takes precedence over `admin_emails`.
260
260
 
261
261
  - **Site-admins** can grant or revoke admin access on any reader's Admin page, including alumni, and delete other admins. Configured Site-admins cannot be demoted or deleted in the UI.
262
262
  - **Admins** manage readers but cannot change roles or delete privileged readers.
@@ -267,13 +267,13 @@ Authorized readers get an **Admin** link. **View as non-admin** hides admin deta
267
267
  The panel supports:
268
268
 
269
269
  - Sort active readers by name, completed days, activity, or consistency; **Reader Stats** follows the same sort.
270
- - Edit profiles, themes, and notification preferences. Editing another reader's theme leaves yours unchanged. Enable or disable the completion dove with one button.
270
+ - Edit profiles, themes, notification preferences, and the completion-dove setting.
271
271
  - Adjust active readers' start dates; check-offs stay tied to day numbers.
272
272
  - Set progress through day N, **clearing completions after N**, or toggle individual days.
273
273
  - Mark readers as alumni, reactivate them, and view past-run history.
274
274
  - Delete unprotected readers **and all their check-offs and reflections across runs**.
275
275
  - Hide (reversibly) or delete reflections at `<mount>/admin/comments`. Posts are public immediately, without approval.
276
- - Manage [Scripture frame](#scripture-frame) texts near the bottom of the panel: add texts, edit or delete custom texts, and enable or disable any text.
276
+ - Manage [Scripture frame](#scripture-frame) texts.
277
277
  - Send individually addressed email: **Write to everyone** reaches active readers; **Write to all admins** includes alumni admins. Both require an email address.
278
278
 
279
279
  To print a progress report ordered by completed days:
@@ -293,13 +293,13 @@ At the bottom of Admin, enter a start date, choose **Start a new run**, and acce
293
293
  - Leaves other readers as alumni and opens enrollment, even if the installation started with `config.enrollment_open = false`.
294
294
  - Keeps reader accounts, photos, check-offs, reflections, replies, likes, and admin roles.
295
295
 
296
- **Revert to previous run** restores the reader statuses, personal dates, shared-date override, and enrollment settings saved before the restart. Everyone, including Admins and Site-admins, returns to their saved status; readers who joined only the newer run become alumni. Both runs' progress and discussions are kept, and admin roles do not change. Accept the confirmation prompt to proceed. Revert is available only for restarts made after migration `20260101000026`; earlier states cannot be reconstructed safely. Restored settings without an override follow the current site configuration.
296
+ **Revert to previous run** restores saved memberships (including admins), personal dates, the shared-date override, and enrollment settings. Newcomers become alumni; both runs' progress and discussions remain, and roles do not change. Confirm to proceed. Revert requires a restart made after migration `20260101000026`. Without a saved date override, the current site configuration applies.
297
297
 
298
298
  Alumni can sign in, view Community's **active-reader list**, and post, reply to, and like reflections. Earlier reflections remain visible under the same moderation rules. Archived check-offs are read-only and excluded from current statistics and daily completer lists.
299
299
 
300
- **Show / Hide Active Readers** starts expanded and remembers your choice in the current tab's sign-in session, including after sorting or revisiting Admin. Sorting and Reader Stats stay accessible when it is collapsed.
300
+ **Show / Hide Active Readers** starts expanded and remembers your choice for the current tab's sign-in session. Sorting and Reader Stats remain accessible when collapsed.
301
301
 
302
- **Show / Hide Alumni** at the bottom of Admin uses the browser's built-in expandable section, starting collapsed like **View all 270 days**. It needs no JavaScript or reload and changes no membership. It uses the selected sort and frozen reader statistics; the main list and Reader Stats show active readers only. Each alumni row has a confirmed **Make Active** button that returns to Admin with the same sort.
302
+ **Show / Hide Alumni** starts collapsed. Alumni use the selected sort and frozen statistics; each row has a confirmed **Make Active** button. Reader Stats includes active readers only.
303
303
 
304
304
  Only admins reactivate alumni; signing in or posting does not re-enroll them:
305
305
 
@@ -365,15 +365,21 @@ For a host Content Security Policy (CSP), add `https://www.youtube-nocookie.com`
365
365
 
366
366
  ## Scripture frame
367
367
 
368
- Hover over the header's bread icon for **3 seconds** to open a random passage in a theme-matched frame. Tap, click, or focus the icon and press Enter/Space to open immediately. Hover previews fade when you leave; Escape, selecting the bread again, or clicking outside dismisses the frame.
368
+ Hover over the bread icon for **3 seconds**, or open it immediately by tap, click, or Enter/Space. The random, theme-matched frame closes when you leave a hover preview, press Escape, click outside, or select the bread again.
369
369
 
370
- Completing a day's final check-off fades in a random frame over **1.3 seconds**, holds it for **5.5 seconds**, then plays a **1.4-second** dove flight. The dove keeps moving while it and the frame fade together over the flight's final **0.4 seconds**, with no final pause or extra delay. Disabling the dove keeps the frame, which fades out over **0.2 seconds** after the hold. Reduced-motion users see a static frame without the dove; Escape dismisses the sequence early.
370
+ Completing a day shows a random frame followed by the optional dove; both fade out together. Disabling the dove keeps the frame. Reduced-motion users see a static frame, and Escape dismisses the sequence.
371
371
 
372
- The [bundled YAML catalog](config/scripture_frames.yml) includes Deuteronomy 6:6-7 (NASB95), Deuteronomy 11:18 (NKJV), Deuteronomy 30:14 (ESV), Psalm 19:8 (NKJV), Psalm 107:20 (NKJV), Psalm 119:11 (NASB95), Psalm 119:47 (NKJV), Psalm 119:103 (NASB95), Psalm 119:105 (NKJV), Psalm 119:130 (NASB95), Proverbs 6:23 (NASB95), Isaiah 55:11 (ESV), Jeremiah 15:16 (NASB95), Jeremiah 23:29 (NKJV), John 6:63 (NKJV), John 17:17 (NASB95), 2 Corinthians 4:6 (NKJV), Colossians 3:16 (ESV), 2 Timothy 3:16-17 (ESV), Hebrews 4:12 (NKJV), and 1 Peter 2:2-3 (NASB95), in biblical order. Near the bottom of **Admin**, **Scripture frames** lists custom passages in biblical order before defaults, with Custom/Default marked on each row rather than separate group headings. Non-Scripture quotations follow custom passages. Hover or focus a row's heading to preview the text; select it to expand. **Add text** sits beside **Scripture frames**; Edit, Disable/Enable, and Delete sit beside each custom heading. All text management lives on this page. To add a passage, enter Reference and Translation on the top row, then paste the required Text (up to 4,000 characters). Bible translation credits are automatic; line breaks are preserved. For non-Scripture text, select **Other quotation**, enter **Author / source**, and paste the quote. These frames show the source without a Bible translation or its copyright credit and join the same random selection when enabled. Use texts you have permission to reproduce.
372
+ The [bundled YAML catalog](config/scripture_frames.yml) supplies the defaults in biblical order. Manage texts under **Admin → Scripture frames**:
373
373
 
374
- **Admin additions are stored in the database and supplement the defaults. They never change the YAML file.** Defaults start enabled. Use the **Enable/Disable** button to the right of each default in Admin; disabled texts remain previewable but are excluded from bread-icon and completion frames. These switches are saved across runs without changing YAML or requiring a new migration. Default text cannot be edited or deleted; custom texts can be edited, disabled, or deleted. Adding custom texts requires migration `20260101000027`.
374
+ - **Add text:** enter Reference, Translation, and the required Text (up to 4,000 characters). Line breaks are preserved; Bible translation credits are automatic.
375
+ - For non-Scripture text, select **Other quotation** under Translation and enter **Author / source** and the quote. No Bible credit is attached.
376
+ - Edit or delete custom texts; enable or disable any text. Disabled texts remain previewable but do not appear in random frames.
375
377
 
376
- **TODO:** Integrate the [YouVersion API](https://developers.youversion.com/) to retrieve Scripture text by reference and translation. Keep the app key server-side, confirm permission to store and display each translation, and preserve required attribution. For now, paste the text; no API setup is needed.
378
+ Custom passages come first in biblical order, then quotations and defaults. Hover or focus a heading to preview; select it to expand. Use text you have permission to reproduce.
379
+
380
+ **Custom texts are stored in the database and supplement, not change, the YAML catalog.** Texts and enable/disable choices persist across runs. Defaults start enabled and cannot be edited or deleted. Custom texts require migration `20260101000027`.
381
+
382
+ **TODO:** Add [YouVersion API](https://developers.youversion.com/) lookup by reference and translation, with server-side credentials and required licensing and attribution.
377
383
 
378
384
  Hosts can optionally replace the default catalog:
379
385
 
@@ -381,7 +387,7 @@ Hosts can optionally replace the default catalog:
381
387
  config.scripture_frames_path = Rails.root.join('config/bible270_scripture_frames.yml')
382
388
  ```
383
389
 
384
- Use the bundled YAML structure: a list of entries with a unique slug `id`, `reference`, `translation`, `text`, and optional `attribution`. Keep one consistent attribution per translation. Catalog translations become choices in Admin, alongside NKJV, NASB95, LSB, ESV, KJV, YLT, CSB, and NIV. Shared choices follow the reader-preference order; CSB and NIV follow them. Custom database texts still supplement the chosen catalog. Invalid or unreadable host catalogs fall back to the bundled defaults.
390
+ Use the bundled format: entries with a unique slug `id`, `reference`, `translation`, `text`, and optional `attribution`. Keep one consistent credit per translation. Catalog translations join the built-in Admin choices. Custom texts still supplement the catalog; invalid or unreadable catalogs fall back to the bundled defaults.
385
391
 
386
392
  Custom layouts that include the header must also render the shared styles and this partial once near the end of `<body>`:
387
393
 
@@ -710,11 +716,19 @@ node --test test/javascript/*.cjs
710
716
  bundle exec rubocop --cache false
711
717
  ```
712
718
 
713
- `rake test` uses one isolated worker per available CPU, up to eight. Coverage stays enabled at `coverage/index.html`; recorded runtimes in `tmp/parallel_runtime_test.log` balance the work. Large Admin and Profile tests are split by feature, with shared setup in `test/support`.
719
+ `rake test` uses up to eight CPU-aware workers and writes coverage to `coverage/index.html`. Tests share setup in `test/support`.
714
720
 
715
721
  Use `PARALLEL_WORKERS=4 bundle exec rake test` to choose the count, or `bundle exec rake test:serial` for serial coverage. Logs keep warnings and errors in `test/dummy/log/test-*.log`; set `TEST_LOG_LEVEL=debug` for request, template, and SQL details.
716
722
 
717
- Video UI tests require **Node.js 22+**, use the built-in runner with no npm dependencies, and do not contact YouTube. Check live playback and host CSP separately in a browser. Plan logic is unit-tested without a Rails dependency.
723
+ JavaScript tests require **Node.js 22+**. Chromium layout checks run when a browser is available (`CHROME_BIN` selects it). Video tests do not contact YouTube; check live playback and host CSP separately.
724
+
725
+ CI also checks completion rendering in mobile and desktop WebKit. To run that check locally:
726
+
727
+ ```bash
728
+ npm install --prefix tmp/browser-tests --no-save --no-package-lock playwright@1.65.0
729
+ tmp/browser-tests/node_modules/.bin/playwright install --with-deps webkit
730
+ NODE_PATH=./tmp/browser-tests/node_modules B270_WEBKIT_TESTS=1 node --test test/javascript/day_completion_webkit_test.cjs
731
+ ```
718
732
 
719
733
  ### Get an email link for local testing
720
734
 
@@ -1,10 +1,15 @@
1
1
  <section class="b270-panel" id="b270-scripture-frames" aria-labelledby="b270-scripture-frames-heading">
2
- <div class="b270-scripture-panel-header">
3
- <h2 class="b270-subhead" id="b270-scripture-frames-heading">Scripture frames</h2>
2
+ <details class="b270-index b270-scripture-frames" id="b270-scripture-frames-list"
3
+ data-b270-admin-disclosure-key="<%= "#{admin_path}:#{@active_readers_session_key}:scripture-frames" %>" open>
4
+ <summary class="b270-scripture-panel-header">
5
+ <span class="b270-subhead" id="b270-scripture-frames-heading">
6
+ <span class="b270-disclosure-show">Show Scripture frames</span>
7
+ <span class="b270-disclosure-hide">Hide Scripture frames</span>
8
+ </span>
4
9
  <% if @scripture_frame_storage %>
5
10
  <%= link_to 'Add text', new_admin_scripture_frame_path(sort: @reader_sort), class: 'b270-btn' %>
6
11
  <% end %>
7
- </div>
12
+ </summary>
8
13
  <% unless @scripture_frame_storage %>
9
14
  <p class="b270-hint">Run the pending database migration to add custom texts.</p>
10
15
  <% end %>
@@ -31,4 +36,5 @@
31
36
  <% end %>
32
37
  </div>
33
38
  <% end %>
39
+ </details>
34
40
  </section>
@@ -5,14 +5,18 @@
5
5
  return;
6
6
  }
7
7
 
8
- const selector = "details[data-b270-active-readers-key]";
8
+ const selector = "details[data-b270-active-readers-key], details[data-b270-admin-disclosure-key]";
9
9
  const initialized = new WeakSet();
10
10
  const states = new Map();
11
- const keyFor = (element) => `b270-active-readers:${element.dataset.b270ActiveReadersKey}`;
11
+ const keyFor = (element) => {
12
+ if (element.dataset.b270AdminDisclosureKey) return `b270-admin-disclosure:${element.dataset.b270AdminDisclosureKey}`;
13
+ if (element.dataset.b270ActiveReadersKey) return `b270-active-readers:${element.dataset.b270ActiveReadersKey}`;
14
+ return null;
15
+ };
12
16
 
13
17
  function remember(element) {
14
- if (!element.isConnected || !element.dataset.b270ActiveReadersKey) return;
15
18
  const key = keyFor(element);
19
+ if (!element.isConnected || !key) return;
16
20
  const value = element.open ? "open" : "closed";
17
21
  states.set(key, value);
18
22
  try { window.sessionStorage.setItem(key, value); } catch (_error) { /* Keep Turbo visits working without storage. */ }
@@ -20,8 +24,8 @@
20
24
 
21
25
  function restore(force = false) {
22
26
  document.querySelectorAll(selector).forEach((element) => {
23
- if (!element.dataset.b270ActiveReadersKey || (initialized.has(element) && !force)) return;
24
27
  const key = keyFor(element);
28
+ if (!key || (initialized.has(element) && !force)) return;
25
29
  let value = states.get(key);
26
30
  if (value === undefined) {
27
31
  try { value = window.sessionStorage.getItem(key); } catch (_error) { /* Native disclosure remains usable. */ }
@@ -1,7 +1,7 @@
1
1
  <%# locals: (day:, completion_event_id:) %>
2
- <svg class="b270-completion-dove" data-b270-completion-dove data-b270-day="<%= day %>"
3
- data-b270-completion-event="<%= completion_event_id %>" data-turbo-temporary
4
- viewBox="0 0 260 200" aria-hidden="true" focusable="false">
2
+ <div class="b270-completion-dove" data-b270-completion-dove data-b270-day="<%= day %>"
3
+ data-b270-completion-event="<%= completion_event_id %>" data-turbo-temporary aria-hidden="true">
4
+ <svg viewBox="0 0 260 200" width="260" height="200" aria-hidden="true" focusable="false">
5
5
  <defs>
6
6
  <radialGradient id="b270-dove-light" cx="50%" cy="43%" r="68%">
7
7
  <stop class="b270-dove-light-center" offset="0%" stop-color="#fff" />
@@ -17,3 +17,4 @@
17
17
  <path d="M108 116c5-10 9-17 14-17-1-11-2-23 4-29 5-4 12-3 15 1 2 3 2 6 1 9 1 1 1 3 0 4-1 5-3 10-5 15 6 3 11 9 15 17-1 15-6 28-16 39-3 4-7 7-10 9-4-2-8-5-11-9-9-11-14-25-11-37 1-1 2-2 4-2Z" />
18
18
  </g>
19
19
  </svg>
20
+ </div>
@@ -83,7 +83,7 @@
83
83
  state.dove.classList.add("b270-completion-dove-active");
84
84
  // animationend is authoritative; the fallback also cleans up when CSS
85
85
  // animations are blocked or a browser drops the event.
86
- later(state, () => endFlight(state), 1600);
86
+ later(state, () => endFlight(state), 1200);
87
87
  }
88
88
 
89
89
  function initialize(element) {
@@ -391,32 +391,38 @@
391
391
  .b270-day-complete strong{font-family:"Spectral",serif;font-size:16px}
392
392
  .b270-day-complete span{font-size:12px;color:var(--muted)}
393
393
  .b270 .b270-day-complete .b270-btn{flex:none;margin:0 0 0 auto}
394
- .b270-completion{position:fixed;inset:0;z-index:1050;display:grid;place-items:center;padding:12px;pointer-events:none}
394
+ .b270-completion{position:fixed;inset:0;z-index:1050;display:grid;place-items:center;padding:12px;overflow:hidden;pointer-events:none}
395
395
  .b270-completion[hidden]{display:none}
396
396
  .b270-completion-frame{width:min(32rem,100%);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);
397
397
  overflow:auto;overscroll-behavior:contain;opacity:0;transition:opacity .2s ease-in-out}
398
398
  .b270-completion.is-visible .b270-completion-frame{opacity:1;pointer-events:auto;transition-duration:1.3s}
399
399
  /* Fade both together while the dove is still moving, with no stationary hold. */
400
- .b270-completion.is-visible.is-flying{animation:b270-completion-exit .4s ease-in-out calc(var(--b270-dove-duration,1.4s) - .4s) both}
400
+ .b270-completion.is-visible.is-flying{animation:b270-completion-exit .2s ease-in-out calc(var(--b270-dove-duration,1s) - .2s) both}
401
401
  @keyframes b270-completion-exit{
402
402
  from{opacity:1}
403
403
  to{opacity:0;visibility:hidden}
404
404
  }
405
- .b270-completion-dove{position:fixed;z-index:1000;top:72vh;left:50vw;
406
- width:min(80vw,104vh);height:auto;overflow:visible;pointer-events:none;opacity:0;
407
- color-scheme:only light;forced-color-adjust:none;
408
- filter:drop-shadow(0 0 8px rgba(255,255,255,1)) drop-shadow(0 0 24px rgba(255,252,220,1)) drop-shadow(0 0 52px rgba(225,191,92,.82));
409
- will-change:top,left,transform,opacity}
410
- .b270-completion-dove-active{animation:b270-dove-flight var(--b270-dove-duration,1.4s) linear both}
405
+ /* Keep SVG filters out of the scaled layer to avoid WebKit compositing artifacts. */
406
+ .b270-completion-dove{position:absolute;z-index:1000;top:50%;left:50%;
407
+ width:min(94vw,112vh);width:min(94vw,112dvh);aspect-ratio:13/10;pointer-events:none;opacity:0;
408
+ --b270-dove-rise:22vh;
409
+ color-scheme:only light;forced-color-adjust:none}
410
+ @supports (height:1dvh){
411
+ .b270-completion-dove{--b270-dove-rise:22dvh}
412
+ }
413
+ .b270-completion-dove::before{content:"";position:absolute;inset:-8%;
414
+ background:radial-gradient(ellipse,rgba(255,249,226,.3),transparent 65%)}
415
+ .b270-completion-dove>svg{position:relative;display:block;width:100%;height:100%;overflow:visible}
416
+ .b270-completion-dove-active{animation:b270-dove-flight var(--b270-dove-duration,1s) linear both}
411
417
  .b270-dove-silhouette{fill:url(#b270-dove-light)!important;stroke:none}
412
418
  .b270-dove-light-center{stop-color:#fff!important}
413
419
  .b270-dove-light-middle{stop-color:#fffef8!important}
414
420
  .b270-dove-light-edge{stop-color:#fff9e2!important}
415
421
  @keyframes b270-dove-flight{
416
- 0%{top:72vh;left:50vw;opacity:.22;visibility:visible;transform:translate(-50%,-50%) scale(.02) rotate(-8deg)}
417
- 8%{top:calc(72vh - 10px);left:50vw;opacity:.78;transform:translate(-50%,-50%) scale(.08) rotate(-5deg)}
418
-
419
- 100%{top:50vh;left:50vw;opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1) rotate(4deg)}
422
+ 0%{opacity:.22;visibility:visible;transform:translate(-50%,calc(-50% + var(--b270-dove-rise))) scale(.02) rotate(-8deg)}
423
+ 8%{opacity:.78;transform:translate(-50%,calc(-50% + var(--b270-dove-rise) - 10px)) scale(.08) rotate(-5deg)}
424
+ 80%{opacity:1;transform:translate(-50%,calc(-50% + var(--b270-dove-rise) / 25)) scale(.96) rotate(3deg)}
425
+ 100%{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1.15) rotate(4deg)}
420
426
  }
421
427
 
422
428
  /* readings */
@@ -502,6 +508,11 @@
502
508
  .b270-scripture-fields label{white-space:nowrap}
503
509
  .b270-scripture-fields .b270-field>input,.b270-scripture-fields .b270-select-wrap{flex:1;min-width:0}
504
510
  .b270-scripture-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
511
+ details.b270-scripture-frames>summary.b270-scripture-panel-header{margin:0 0 8px}
512
+ .b270-scripture-frames:not([open])>:not(summary){display:none}
513
+ .b270-scripture-frames>.b270-scripture-panel-header .b270-disclosure-hide{display:none}
514
+ .b270-scripture-frames[open]>.b270-scripture-panel-header .b270-disclosure-show{display:none}
515
+ .b270-scripture-frames[open]>.b270-scripture-panel-header .b270-disclosure-hide{display:inline}
505
516
  .b270-scripture-panel-header>.b270-subhead,.b270 .b270-scripture-panel-header>.b270-btn{margin:0}
506
517
  .b270-scripture-panel-header>.b270-subhead{min-width:0;overflow-wrap:anywhere}
507
518
  .b270 .b270-scripture-panel-header>.b270-btn{flex-shrink:0;padding:6px 10px;font-size:12.5px;white-space:nowrap}
@@ -761,8 +772,8 @@
761
772
 
762
773
  .b270-footer{margin-top:20px;padding-top:11px;border-top:1px solid var(--line-soft);color:var(--faint);font-size:13px}
763
774
  .b270-footer p{margin:0;line-height:1.5}
764
- details.b270-index summary{cursor:pointer;font-family:"Spectral",serif;font-size:18px;font-weight:600;list-style:none;margin-top:30px}
765
- details.b270-index summary::-webkit-details-marker{display:none}
775
+ details.b270-index>summary{cursor:pointer;font-family:"Spectral",serif;font-size:18px;font-weight:600;list-style:none;margin-top:30px}
776
+ details.b270-index>summary::-webkit-details-marker{display:none}
766
777
  details.b270-active-readers{margin-bottom:24px}
767
778
  details.b270-active-readers>summary{margin:0 0 12px}
768
779
  details.b270-active-readers .b270-active-readers-hide{display:none}
@@ -27,6 +27,13 @@
27
27
  He sent His word and healed them,
28
28
  And delivered them from their destructions.
29
29
  attribution: NKJV © 1982 Thomas Nelson.
30
+ - id: psalm-119-9
31
+ reference: Psalm 119:9
32
+ translation: NASB95
33
+ text: |-
34
+ How can a young man keep his way pure?
35
+ By keeping it according to Your word.
36
+ attribution: NASB 1995 © The Lockman Foundation.
30
37
  - id: psalm-119-11
31
38
  reference: Psalm 119:11
32
39
  translation: NASB95
@@ -69,6 +76,13 @@
69
76
  For the commandment is a lamp and the teaching is light;
70
77
  And reproofs for discipline are the way of life
71
78
  attribution: NASB 1995 © The Lockman Foundation.
79
+ - id: proverbs-16-20
80
+ reference: Proverbs 16:20
81
+ translation: NASB95
82
+ text: |-
83
+ He who gives attention to the word will find good,
84
+ And blessed is he who trusts in the LORD.
85
+ attribution: NASB 1995 © The Lockman Foundation.
72
86
  - id: isaiah-55-11
73
87
  reference: Isaiah 55:11
74
88
  translation: ESV
@@ -100,18 +114,38 @@
100
114
  text: |-
101
115
  It is the Spirit who gives life; the flesh profits nothing. The words that I speak to you are spirit, and they are life.
102
116
  attribution: NKJV © 1982 Thomas Nelson.
117
+ - id: john-15-3-4
118
+ reference: John 15:3-4
119
+ translation: NKJV
120
+ text: You are already clean because of the word which I have spoken to you. Abide in Me, and I in you. As the branch cannot bear fruit of itself, unless it abides in the vine, neither can you, unless you abide in Me.
121
+ attribution: NKJV © 1982 Thomas Nelson.
103
122
  - id: john-17-17
104
123
  reference: John 17:17
105
124
  translation: NASB95
106
125
  text: |-
107
126
  “Sanctify them in the truth; Your word is truth.
108
127
  attribution: NASB 1995 © The Lockman Foundation.
128
+ - id: john-20-31
129
+ reference: John 20:31
130
+ translation: NKJV
131
+ text: these are written that you may believe that Jesus is the Christ, the Son of God, and that believing you may have life in His name.
132
+ attribution: NKJV © 1982 Thomas Nelson.
133
+ - id: romans-15-4
134
+ reference: Romans 15:4
135
+ translation: NASB95
136
+ text: For whatever was written in earlier times was written for our instruction, so that through perseverance and the encouragement of the Scriptures we might have hope.
137
+ attribution: NASB 1995 © The Lockman Foundation.
109
138
  - id: 2-corinthians-4-6
110
139
  reference: 2 Corinthians 4:6
111
140
  translation: NKJV
112
141
  text: |-
113
142
  For it is the God who commanded light to shine out of darkness, who has shone in our hearts to give the light of the knowledge of the glory of God in the face of Jesus Christ.
114
143
  attribution: NKJV © 1982 Thomas Nelson.
144
+ - id: ephesians-5-25-27
145
+ reference: Ephesians 5:25-27
146
+ translation: ESV
147
+ text: Christ loved the church and gave himself up for her, that he might sanctify her, having cleansed her by the washing of water with the word, so that he might present the church to himself in splendor, without spot or wrinkle or any such thing, that she might be holy and without blemish.
148
+ attribution: ESV © 2001 Crossway.
115
149
  - id: colossians-3-16
116
150
  reference: Colossians 3:16
117
151
  translation: ESV
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bible270
4
- VERSION = '1.17.0'
4
+ VERSION = '1.17.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bible270
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew vonderLuft