Module
Polls
Coaches ask their team or group, admins the whole club (all teams, no groups). Three kinds:
Switch on: Administration → Modules → Polls (off for a new club).
- Choice: a question with fixed answers, one or several.
- Find a date: yes, maybe or no per date, like a scheduling poll.
- Order: items with price, optional sizes and a product photo; everyone says how many. Payment by PayPal.me and/or bank transfer with a QR code (GiroCode, euros only), set by an admin under Administration → Polls for the whole club.
Who votes: players (group members), parents (teams with parents only), coaches (group leads), combinable. For children in teams with parents the parents vote too; for orders only the parents. One vote per family: everyone linked through parent links (parents, children, siblings, patchwork) shares one vote that any of them can change. Votes can be changed and withdrawn until the end. Results are visible right away or only after the end; creator, coaches of the team and admins always see them.
Orders for managers (creator, coaches of the team, admins): Quantities per item with the amount and below it per size, to order from the supplier; the list of orders with payment state; Download as Excel builds a workbook on the device with three sheets (quantities, orders with paid/reported/open amounts, one line per item for filtering). Managers read last names and the players' other teams ("Family Kaiser: Ben (U13 boys), Kim", or "Lea Lang (U11 girls)"; groups and the poll's own team left out); participants keep first names.
Where it shows: a card at the very top of the start page while a vote is missing (orders: "Order" or "Ignore"), a dot on the Events tab, the number on the app icon, a note with a link in the team chat when a poll starts, a push at the start and once 24 hours before the end to those who have not voted (notification topic polls). Lists under Profile → Polls and Administration → Polls.
- Stores: polls, their answers or items (
polls,poll_options), who may vote for which person or family (poll_voters, synced hourly while a poll runs), the votes (poll_ballots,poll_answers), for orders the order number, the confirmed and the reported amount with who reported it, product photos (poll_option_images, shrunk on the device to at most 800 px), who ignores an order (poll_ignores). The club's PayPal.me name, account holder, IBAN and currency inapp_meta(polls_payment). - Who sees it: answers with names (first and last name, the players' other teams): the creator, the team's coaches and admins, unless the poll is anonymous (then nobody, the vote is only kept so it can be changed and reminders go only to who is missing). Participants see the result without names, except in scheduling polls ("First name L.", a decision in
docs/dev/decisions.md). Orders: each family sees only its own order, never totals or counts; the creator, coaches and admins see all orders and can download them as an Excel file (names, teams, items, amounts, payment state). The file is built in the browser from the poll view they already get; nothing is sent to the server or anyone else, and what happens to the copy is up to the club. Product photos: everyone who sees the poll. Payment details: admins, coaches and everyone who ordered. - Deleted: with the poll (its creator, a coach of the team or an admin deletes it), at the latest at the season change. Someone who leaves the club is removed from running polls; their given votes stay with the unit. Not in the data export.
Read load: the dot on the Events tab and the start page card read only the person's open polls (GET /polls/open, index poll_voters_person). The list counts votes only for managers, the only ones who see the counts. Participants of an order load only their own units, not every voter, vote and answer of the poll (test/reads.test.ts checks the query plans). Team names for managers' labels come from the core's cache per Worker instance (cachedTeamInfo, cachedRoster). Not done: caching the voters of a poll; the hourly sync rewrites all rows, so per-row triggers would add a write per voter.
Payment: the app cannot know whether someone paid. The family taps "I have paid", the creator (admins as fallback) ticks "paid"; both store the order's amount at that moment, so after a top-up order the rest stays open and a shortened order shows "paid too much". A paid order cannot be withdrawn, only changed. The bank reference is the title and the order number, without names; the PayPal note adds the players' names because PayPal cannot be matched otherwise.
Source: modules/polls/README.md · Edit on GitHub
Try it
In the demo, in every role.
Player, parent, coach or admin: one tap and you are in the invented club “SV Musterstadt”. No sign-up, reset every night.