diff --git a/AGENTS.md b/AGENTS.md index 4a3c97ddb..cd932c273 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -71,7 +71,7 @@ This codebase (Rails 8.1) | Directory | Purpose | |---|---| | `app/frontend/entrypoints/` | Vite entry points (application.js, application.css) | -| `app/frontend/javascript/controllers/` | Stimulus controllers (75) | +| `app/frontend/javascript/controllers/` | Stimulus controllers (76) | | `app/frontend/javascript/rhino/` | Rich text editor customizations (mentions, grid) | | `app/frontend/stylesheets/` | Tailwind CSS and component styles | @@ -294,6 +294,7 @@ end - `dropdown` — Dropdown menus with keyboard/click-outside handling - `edit_toggle` — Inline view/edit toggle for the comments and communications boxes (configurable view/edit CSS classes) - `event_staff_bio` — Loads a selected person's read-only profile bio (with edit link) alongside the editable event-specific bio on the staff form +- `fab` — Toggles the floating help menu (FAQs / contact / videos) in the footer open and closed - `file_preview` — File upload preview - `grant_details` — Swaps a grant's eligibility criteria + tasks when the grant picker changes - `grant_select` — Tom Select grant picker showing each grant's remaining-of-total funds diff --git a/app/frontend/javascript/controllers/fab_controller.js b/app/frontend/javascript/controllers/fab_controller.js new file mode 100644 index 000000000..e0a8ee4d2 --- /dev/null +++ b/app/frontend/javascript/controllers/fab_controller.js @@ -0,0 +1,15 @@ +import { Controller } from "@hotwired/stimulus" + +// Connects to data-controller="fab" +// +// Toggles the floating help menu (FAQs / contact / videos) open and closed and +// spins the round button. Replaces an inline diff --git a/app/views/shared/_svg_symbols.html.erb b/app/views/shared/_svg_symbols.html.erb index 99f9cb55f..7c0318192 100644 --- a/app/views/shared/_svg_symbols.html.erb +++ b/app/views/shared/_svg_symbols.html.erb @@ -1,4 +1,4 @@ - +