Skip to content

Add inline percentage sliders to ongoing giving allocation cards#73

Merged
kcdragon merged 1 commit into
mainfrom
allocation-card-slider-redesign
Jun 27, 2026
Merged

Add inline percentage sliders to ongoing giving allocation cards#73
kcdragon merged 1 commit into
mainfrom
allocation-card-slider-redesign

Conversation

@kcdragon

Copy link
Copy Markdown
Collaborator

Redesigns the on-going giving allocation cards on the scenario edit page so a donor can adjust an allocation's percentage with an inline slider that updates the %/$ and perpetuity figures live and auto-saves on release. Each card now also shows edit/delete icons, a "No additional preferences" subtitle, and a colored slider matching its summary color, with the allocations grid wrapped in a turbo frame so a save updates both the card and the summary in place. A single allocation-slider Stimulus controller drives both the card and modal sliders, and the custom slider styling (colored fill, light track, ringed thumb) lives in a dedicated allocation_slider.css stylesheet.

🤖 Generated with Claude Code

Redesign the on-going giving allocation cards on the scenario edit page so
a donor can adjust an allocation's percentage with an inline slider that
auto-saves on release, with live %/$ and perpetuity figures, edit/delete
icons, and a "No additional preferences" subtitle.

- New `allocation-slider` Stimulus controller drives the card and modal
  sliders: live updates while dragging, auto-save on release for the card.
- Custom slider styling (colored fill, light track, ringed thumb) lives in
  a dedicated allocation_slider.css stylesheet imported into application.css.
- Wrap the allocations grid in a turbo frame so a slider save updates both
  the card and the summary in place.
- Card and modal sliders share the allocation's summary color.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kcdragon kcdragon merged commit b46e649 into main Jun 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant