Beads are now a property of prayer steps, not separate steps

Each prayer in the library has an optional default_bead_type (small/large/
crucifix). Standard prayers get sensible defaults: Our Father=large,
Hail Mary=small, Sign of Cross=crucifix, Divine Mercy beads accordingly.

In the sequence, each step card shows a bead selector (—/○/●/✝) so users
can override the default per step. Adding a prayer pre-fills its default.

Bead library icon hints (○●✝) appear on prayer cards in the library.
Modal now includes a Bead selector for creating/editing prayers.

Remove the separate Bead Markers library section — beads live on prayers.
build_slides: prayer steps with bead_type now get a real bead_index so
the ring advances correctly during presentation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-13 22:07:48 -07:00
parent 76a5061fba
commit 8c047f5b28
7 changed files with 228 additions and 159 deletions
+59 -93
View File
@@ -259,8 +259,15 @@
.step-preview.leader { color: #2563eb; }
.step-preview.response { color: #059669; }
.step-attribution-select {
.step-controls-row {
display: flex;
align-items: center;
gap: 6px;
margin-top: 6px;
flex-wrap: wrap;
}
.step-attribution-select {
padding: 3px 6px;
font-size: 11px;
border: 1px solid var(--border);
@@ -269,7 +276,57 @@
color: var(--text);
font-family: var(--font);
cursor: pointer;
width: 100%;
flex: 1;
min-width: 120px;
}
/* ── Bead selector buttons (on step cards and modal) ─────────── */
.step-bead-btns {
display: flex;
gap: 3px;
flex-shrink: 0;
}
.bead-sel-btn {
padding: 3px 7px;
border: 1px solid var(--border);
border-radius: 4px;
background: var(--bg);
font-size: 12px;
cursor: pointer;
font-family: var(--font);
color: var(--muted);
line-height: 1.4;
transition: all 0.12s;
}
.bead-sel-btn:hover { border-color: var(--primary); color: var(--primary); }
.bead-sel-btn.active {
background: var(--primary);
border-color: var(--primary);
color: #fff;
font-weight: 600;
}
/* Modal bead row */
.bead-btn-row {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-top: 4px;
}
.bead-btn-row .bead-sel-btn {
padding: 5px 14px;
font-size: 13px;
}
/* Bead hint icon on library cards */
.prayer-bead-hint {
font-size: 12px;
color: var(--muted);
margin-left: 2px;
}
.step-actions {
@@ -439,97 +496,6 @@
margin-top: 2px;
}
/* ── Bead markers section ────────────────────────────────────── */
.bead-markers-section {
padding: 10px 16px 8px;
border-bottom: 1px solid var(--border);
background: var(--bg-card);
flex-shrink: 0;
}
.bead-markers-label {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .06em;
color: var(--muted);
margin-bottom: 8px;
}
.bead-marker-cards {
display: flex;
gap: 8px;
}
.bead-marker-card {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg);
cursor: pointer;
font-family: var(--font);
font-size: 12px;
text-align: left;
transition: border-color .15s, background .15s;
}
.bead-marker-card:hover {
border-color: var(--primary);
background: #eff6ff;
}
.bead-icon-sm { font-size: 18px; color: #6b7280; flex-shrink: 0; line-height: 1; }
.bead-icon-lg { font-size: 20px; color: #374151; flex-shrink: 0; line-height: 1; }
.bead-icon-cx { font-size: 18px; color: var(--gold); flex-shrink: 0; line-height: 1; }
.bead-card-text {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
}
.bead-card-text strong { font-size: 12px; font-weight: 600; color: var(--text); }
.bead-card-text small { font-size: 10px; color: var(--muted); }
.bead-add-label {
font-size: 11px;
color: var(--primary);
font-weight: 600;
flex-shrink: 0;
}
/* ── Bead step card (in sequence list) ───────────────────────── */
.step-card.bead-step {
background: #fefce8;
border-color: #fde68a;
}
.step-card.bead-step:hover {
border-color: #f59e0b;
}
.bead-step-name {
font-size: 13px;
font-weight: 600;
color: #92400e;
display: flex;
align-items: center;
gap: 6px;
}
.bead-step-sub {
font-size: 11px;
color: #b45309;
margin-top: 2px;
}
/* ── Library footer ──────────────────────────────────────────── */
.library-footer {