Events: toggle switch to activate/deactivate (single-active)
- Replace the 'Set active' button / 'Active' pill in the Events table with a toggle switch. Activating an event deactivates all others (enforced by the existing DB trigger + partial unique index); deactivating just turns it off. - Add deactivateEvent() API helper. - Update docs (admin-app.md, next-steps.md). Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
1 parent
24909cf8ab
commit
a0bcf866dc
4 files changed
+21
-20
No files matched your search
@@ -19,7 +19,7 @@ It runs on **port 3001** (Vite dev) or as the `convivo-admin` Docker container
|
||||
| **Sponsors** | List (paid only visible to attendees; admin sees all). Add/edit (type, name, email, phone, paid, amount, **contact search-and-pick**). |
|
||||
| **Schedule** | Slots (with type) + sessions (with speakers 1:N via a **multi-select search dropdown**, material upload with a **submitted / not submitted** state, `average_feedback`, `ai_generated_feedback` + an **Evaluate** stub button). |
|
||||
| **Activity** | Tables of check-ins, connections, and feedback (per active event). |
|
||||
| **Events** | Create event, set active (only one), edit dates/location. |
|
||||
| **Events** | Create event, toggle active/inactive (a switch; only one can be active at a time — activating one deactivates the rest), edit dates/location. |
|
||||
|
||||
## Auth guard
|
||||
|
||||
|
||||
Reference in new issue
Block a user