Commit 78fc0f8
Group manage registrants header actions into dropdowns (#1568)
* Group manage registrants header actions into dropdowns
The action bar had grown to 7 flat, undifferentiated links with no
hierarchy. Collapse them into two scoped dropdowns plus one link so the
header stays usable as more form entry points get added:
- Forms: Add registrant, Public registration, Scholarship version
- Bulk actions: Send reminder, Download CSV
- Edit event sits apart on the right since it acts on the event, not
the registrants
Also drops the redundant "View" link (duplicated the back link) and
relabels for clarity ("Edit" -> "Edit event", "New registration" ->
"Add registrant").
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Surface Add registrant as primary button outside Forms dropdown
Adding a registrant is the primary action on this page, so burying it in
a dropdown hurt discoverability. Pull it out as a primary-outline button
(matching the New event registration button on the registrations index).
The Forms dropdown now holds only the two public-form links, which makes
its label accurate; it renders only when a registration form exists
(otherwise both items would be gated away, leaving an empty menu).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Match index convention: primary action far right, design-system buttons
Reorder the header so emphasis increases left to right and ends on the
primary action, matching the new/add button placement on the index pages
(event_registrations, organizations, events all put the primary button
far right):
Edit event Forms ▾ Bulk actions ▾ Add registrant
Also swap the two dropdown triggers from ad-hoc classes to the btn
design-system variant (btn-utility-outline) so their height, radius,
padding, and shadow match the primary button instead of sitting shorter,
and drop the now-unneeded Edit event divider.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Add rel=noopener noreferrer to target=_blank form links
Prevent reverse-tabnabbing on the public-form links opened in a new
tab, matching the existing convention in _videoconference_link.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Carry as_visitor and scholarship_form gating into forms menu
Main added as_visitor: true to the public-registration links and gated
the scholarship link on event.scholarship_form. Those lived on the
inline links this branch replaced with the Forms dropdown, so the
rebase dropped them — reapply them inside _forms_menu.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Hide Forms dropdown when no registration or scholarship form exists
Gate each form link on its own form's presence and the whole dropdown
on either being present, so admins do not see an empty Forms menu (or
a broken public-registration link) when neither form is configured.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Always show Forms dropdown; offer Select a form when none configured
When neither a registration nor scholarship form is configured, the
Forms menu now links to the event edit forms section instead of
hiding, so admins always have a path to set one up.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Add base-form management link to Forms dropdown
Give admins a way to reach the form configuration from the Forms menu:
Change base form when one is set, Enable forms when none is.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Rename Forms menu to Form actions; expand form section on anchor
Rename the _forms_menu partial to _form_actions_menu and relabel the
trigger 'Form actions' to better describe what it does (open public
forms, change/enable the base form).
Add a reveal-section Stimulus controller so the Change base form /
Enable forms links land on the event edit page with the Registration
Form section expanded and scrolled into view, rather than collapsed or
off-screen.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent 1e05e35 commit 78fc0f8
7 files changed
Lines changed: 88 additions & 15 deletions
File tree
- app
- frontend/javascript/controllers
- views/events
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
322 | 324 | | |
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| 329 | + | |
327 | 330 | | |
328 | 331 | | |
329 | 332 | | |
330 | 333 | | |
331 | 334 | | |
332 | | - | |
| 335 | + | |
333 | 336 | | |
334 | 337 | | |
335 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
17 | 14 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 15 | + | |
| 16 | + | |
26 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
27 | 22 | | |
28 | 23 | | |
29 | 24 | | |
| |||
0 commit comments