Back to the AllSorted website

Changelog

What we shipped, when. Newest first.

Paid event bookings — recoverable by design, and a safer repair

22-07-2026

What's new

Fixes — a successful payment always completes its booking

  • A rotated booking link can no longer strand a paid booking. Reconciliation used to start

by looking the invitation up by its link token. If that link was regenerated between starting a payment and the payment settling, reconciliation gave up — and Stripe could report the payment as done while the booking never completed. Payments now carry the invitation's permanent identity, and every path (the browser confirmation and the background safety net) completes the booking by that identity, not the link. As a side benefit, the one-time booking link is no longer stored at the payment provider at all.

  • A transient database hiccup mid-settle is now retried, not treated as final. A momentary

database error while confirming a booking used to be collapsed into "invalid link" or "event not found" — reasons the payment processor treats as permanent, so it never tried again. Those transient faults are now clearly separated from genuinely-missing records: a real hiccup is retried automatically (the processor redelivers and it self-heals), while a genuinely invalid link or missing event is still handled once and not looped. No customer-facing detail, link or payment reference is ever exposed in logs.

  • Marking the invitation "used" can no longer silently fail. If the final step that marks an

invitation used doesn't confirm, that is now a retryable outcome that heals on the next attempt — the booking confirmation email still fires exactly once and is never lost or duplicated on the retry. In the rare case where the invitation record has genuinely been deleted after the payment, the system records an operator-visible reconciliation note (in the existing payments health surface) rather than retrying forever. Throughout, no money, booking, invoice line or email is ever duplicated by a retry.

Behind the scenes — a safer historical repair and a stricter check

  • The one-off repair for any historical bookings left in the old state was **rewritten to be

safer**: it targets exactly the affected invitations (by permanent identity, one row each even where old data is messy), runs entirely as a single self-checking transaction that rolls itself back on any integrity problem, uses a throwaway in-transaction working set instead of leaving a copy of member data behind, and only ever touches the "used" flag — never a price, booking, status or waitlist. A read-only diagnostic remains the required first step. Authored and rehearsed against a local copy of the platform only; nothing has been run against live data.

  • The Phase 2C database-permission postflight (the after-apply verification for the proposed

service-role-only tightening) is now signature-exact: it checks each of the six functions by its precise definition, so a missing function shows up as a visible failure and an unexpected duplicate can never be mistaken for the real one. No permission change; nothing applied to live.

Final closure — the same path, made retry-proof end to end

  • Starting a booking payment twice can no longer create two payment attempts. The booking's

payment is keyed on the invitation's permanent identity, so a double-tap, a refresh, or an automatic retry while starting checkout resolves to the *same* payment instead of opening a second one.

  • **If your booking link changes while you're answering its questions, you're asked to refresh

rather than paying against a stale link.** The answers you give to a booking's requirements are saved against the invitation's permanent identity; if that link is regenerated at the same moment, checkout now stops and asks you to reopen the up-to-date link instead of quietly losing your answers or taking a payment that can't be matched to your booking.

  • A failed invoice write during settlement is now retried, not reported as done. Completing a

paid booking writes an invoice; if that write doesn't confirm, the booking is no longer marked settled — the payment processor redelivers and it heals, and the retry never duplicates the invoice, the money or the booking.

  • The payments health page names each reconciliation note for what it is. Operator notes used

to all read as "a provider payment missing from the ledger". They're now labelled honestly by kind — a provider payment awaiting its ledger entry, an invoice still queued for automatic line-item repair, an invoice the automatic repair has given up on (flagged for a person to fix by hand), or a paid booking whose invitation record was removed — each with a plain recommended action. Notes that need a person are now visually distinct from the ones that will heal on their own, and any unrecognised note shows as "manual review required". No member personal details are shown.

  • A paid booking payment can only be started by the club the booking belongs to. As a

defence-in-depth tightening, starting a paid event-booking payment now confirms the booking invitation belongs to the club making the request before any card payment is set up, so a payment can never be taken into one club's account for a booking that belongs to another. Free open-to-group bookings are unaffected.

Faster, risk-based development checks

  • Reorganised the permanent developer instructions into a short always-on

contract plus focused frontend, server, money, database, testing and release guides. The underlying tenant, money, database-authority and delivery protections remain in place, while ordinary UI and copy work no longer carries the same process burden as a payment or database-authority change.

  • Added verify:quick, verify:server, verify:critical and verify:release

commands so checks scale with the risk of a change. The full test, lint and production-build battery remains mandatory at phase and release boundaries.

Paid event bookings — final correctness pass

A closing pass over the paid event-booking path to remove the last silent-failure and duplicate-payment gaps.

  • A free event can no longer be paid for by accident. Starting a card payment for an event

that doesn't require payment is now refused outright — no charge, no half-made booking. Free bookings continue to use the normal (no-payment) booking flow.

  • A booking link that isn't yours is rejected the same as an invalid one. A booking link is

checked against the club making the request before anything else, and a link belonging to another club is refused with the exact same message as a bad link — it never reveals whether the place is used, booked or paid.

  • **A momentary database error while starting a booking is treated as an error, not as "no

booking".** Every check made before a card payment is set up now stops safely on a real database fault instead of mistaking it for "link invalid" or "nothing booked" and letting a charge through.

  • A duplicate or mismatched payment is now surfaced for review, never silently accepted. If a

booking that's already paid receives a second, different payment — or its invoice was settled by a different payment, or is in a state that can't be settled, or has gone missing — the system records a clear note on the payments health page for an operator to review and refund by hand. It never auto-refunds and never quietly acknowledges a second charge, and a retry never creates duplicates.

  • An invoice that can't be settled is flagged, not reported as done. Completing a booking only

accepts an invoice actually settled under that payment; a voided, cancelled or wrong-payment invoice is recorded for review rather than treated as complete.

  • A booking's invoice is never left half-made by a database hiccup. If looking up who to bill

fails, the booking is retried later rather than an invoice being created without a billing household.

Paid event bookings — final edge-case closure

  • An incomplete event-payment request can no longer create an untraceable charge. Event

payments now require both the event and its booking-link credential before Stripe is contacted, including when a signed-in staff member makes the request. A malformed request is refused rather than creating a payment that the background confirmation path cannot match back to a booking.

  • A paid event must have a real server-side price. If an event is marked as requiring payment but

its stored price is zero or missing, checkout stops before Stripe and asks the member to contact the club. The browser can never choose an arbitrary amount for a misconfigured event.

  • Two confirmation requests racing each other preserve the winning booking's payment truth. The

losing request now rereads the booking's paid state, invoice and payment reference under the same club before doing anything else. The same payment remains an idempotent retry; a different payment becomes an operator-visible conflict; a cancelled row is never treated as a successful claim.

  • Members are no longer promised an automatic fix when a payment needs human review. Retryable

database interruptions still show "Payment received" and continue automatically. A terminal payment conflict instead shows a separate, calm review message with the payment reference and a clear instruction not to pay again. No provider, invoice or database migration is required for this pass.

Paid event bookings — payment identity closure

  • A cancelled booking with previous payment history can no longer be charged again automatically.

Cancelled rows deliberately retain their invoice, payment reference and paid amount for accounting. Checkout now recognises that history and asks the member to contact the club instead of creating a new charge that could overwrite the earlier payment trail. A clean cancelled attempt that never reached payment can still be retried normally.

  • A pending booking's payment reference can no longer be overwritten by a competing payment. The

final paid transition is conditional on both the booking state and PaymentIntent identity. If two confirmations race, the loser rereads the winner and succeeds only when it proves the same payment; a different payment or changed booking state is recorded for operator review.

  • **Legacy paid bookings without a stored payment identity are no longer silently matched to whichever

payment arrives next.** They are surfaced as a manual reconciliation item so the provider and invoice records can be compared safely. Transient read/write uncertainty remains retryable, and no automatic refund is attempted.

  • Cancelled-row reuse now has the same guard inside the database lock. A proposed, owner-apply

claim_event_slot corrective refuses to reactivate a cancelled row carrying an old invoice, payment reference, paid amount or unknown payment state. It preserves every accounting field, returns a stable refusal code, and has been applied/reapplied and rehearsed on local Docker only. No remote SQL was run.

Register coach selection

  • Selecting a coach or volunteer now responds immediately and survives a response retry. The core

register assignment is returned before the best-effort activity log runs, and an exact duplicate insert is reread as the already-saved assignment instead of being shown as a false error. Coach, volunteer and attendance-state controls now show their own busy state and keep a full mobile tap target, preventing uncertain double taps while the request is in flight.

  • A coach or volunteer can only be added if they really belong to this club and this register.

Adding someone to a class now checks the person against the club before anything is saved, and accepts exactly one person per assignment. A member who has left, or who isn't marked as a coach (or volunteer) for the register, is refused with a clear message instead of being written to the class. A person from another club is refused with exactly the same message as an unknown one, so nothing can be learned by guessing. If the check itself can't complete, the assignment is refused rather than saved on an unverified person, and the class date must be a real calendar date — "31 February", a date with a time stuck on the end, or anything else malformed is rejected. Removing or restatusing an existing entry is unchanged, so historical records stay editable.

Grading-day save feedback

  • Short connection blips no longer flash a worrying pending-save warning at examiners. Notes are

still stored safely and retried immediately, but the warning now waits ten seconds before appearing. If the retry succeeds during that grace period, no banner is shown; a genuinely unsent note remains visible with its existing retry control until the server confirms it.

Member portal Pulse

  • Class feedback now follows the member selected in the household switcher. Pulse prompts are

loaded only for that active member, so changing between siblings cannot show another member's sessions or leave the previous member's prompt on screen. When the selected member has more than one request waiting, a small count badge shows how many there are.

Register — the right people, and only this club's people

  • A class register can no longer show a name from another club. The links between a class and

the coach, volunteer or member assigned to it record only who they point at, not which club they belong to. Adding someone is now checked (see above), but an assignment written before that check existed could still name a person from a different club — and the register would have displayed their name and email. Both ways the register is read now prove every person against the club that owns the class before showing anything: a member must belong to that club, and a coach or volunteer must genuinely have access to it. Anything that cannot be proven is simply left off the register — the record itself is untouched — and a coach who legitimately works across two clubs still appears in both. If the check itself cannot complete, the register refuses to load rather than showing an unverified name.

  • Operator note. A read-only count of any affected historical rows is available at

scripts/check-lesson-staff-person-integrity.sql (counts only — it deliberately returns no names or email addresses), and two reviewed database files are prepared and locally rehearsed: one stops malformed assignments being written by anything at all, the other applies the same club check inside the register's own database routine. Neither is applied and neither changes live behaviour until the owner runs them; the register is already protected without them. Nothing existing is deleted or rewritten by either file.

Member portal Pulse

  • The "waiting" count on the feedback card now stays accurate after a refresh. The badge showing

how many class feedback requests are still outstanding could drop to zero — or hide itself — once the page quietly refreshed its data in the background, because the requests just answered were taken off the total twice. The count now falls as each card is answered and holds steady across the refresh, so it always matches what is genuinely still waiting for the next visit. The three-cards-per-visit limit is unchanged.

Behind the scenes — database access tightening independently re-verified

21-07-2026

What's new

Security — proposed database tightening passed an independent adversarial review

  • As part of the ongoing security hardening programme, a set of nine proposed database

permission changes (tightening which system roles can read or change invite tokens, grading correction records, invoices, portal sessions, sent communications, form responses, event bookings and member records directly) went through a full independent adversarial review before anything is applied.

  • The review re-checked every claimed usage against the current code — important

because recent work moved several event-booking writes behind properly guarded server routes, which actually strengthened the case for the tightening. Two documentation gaps and one subtle rehearsal defect were found and fixed; the changes themselves were confirmed safe.

  • Crucially, the things members and clubs rely on were each proven to keep working with

the tightening in place: public form submissions, logged-out event booking, the member portal login flow, staff calendars and registers, invoice processing, and communications history. These were exercised for real against a local copy of the platform, not assumed.

  • Nothing has changed on the live system yet. The changes remain proposals awaiting a

scheduled maintenance application, with step-by-step pre-checks and post-checks prepared.

  • A follow-up review round the same day closed one further gap the first pass had missed

(a rarely-used second layer of database permissions — per-column grants — is now explicitly cleared and checked, not assumed), and produced a single consolidated apply-day runbook so the whole change can be executed and verified from one document.

  • A second follow-up hardened the proposals further: every one of the nine changes now

refuses to apply at all — rolling back completely — if it finds the database in an unexpected protective state (row-level security switched off), rather than proceeding and quietly leaving club-to-club data separation weaker than intended. The reviews also demonstrated concretely what that refusal prevents, so it is protection with evidence, not caution for its own sake.

  • Now applied to the live system. All nine tightening changes were applied to

production and verified end-to-end (every check passed: the nine tables present, row-level security on across the board, no leftover public or per-column access, and the invite-token and grading-correction rules confirmed exactly as intended). Direct database access for the public and signed-in-browser roles is closed on these tables; the app itself is unaffected because it has always used the privileged server path.

  • The next phase (authored, not yet applied) tightens three internal database routines so

that only the trusted server can run them: the class-pack credit/invoice writer, the member rank/stage change, and three "current stage/programme" lookups. Today a signed-in browser (and, for the lookups, even a logged-out request) can call these directly; afterwards only the server can, closing a same-club staff bypass of the rank-change permission and a cross-club leak of a member's stage. No behaviour changes for anyone using the app normally — the class-pack maths and its no-double-charge protection are proven unchanged.

  • That same phase was closed out with three further safeguards (all authored, none

applied): those routines' internal name-resolution setting is pinned to the safe form; a reviewed "who may run each sensitive routine" record now covers them; and an automated check fails the build if anyone ever re-opens direct access to them, adds an unexpected role, or quietly drops one from the reviewed list. An independent review passed with no issues; the changes are ready for the owner to apply, and nothing has been applied yet.

  • A final hardening pass tightened those same three proposals further (authored, not

applied): each now refuses to apply — rolling back completely and naming the offender — if it finds ANY unreviewed system role already holding direct access, rather than quietly revoking only the roles it expected and leaving an unknown one in place. A real-database rehearsal proves the refusal, and the safety check itself now leaves the shared test database exactly as it found it (the previous version could reopen access it had just closed). The recorded fingerprints of each proposal are now automatically checked against the actual files so they can never silently drift. This latest pass has not yet had its own independent review, and nothing has been applied to the live system.

Fixes — a paid event booking always shows as booked

  • Fixed an issue where a member who paid for an event on their second attempt (after a

first payment method failed) could still appear as "Invited" / "Pending" to staff, even though they held a confirmed, paid booking. Staff could have re-invited or chased someone who had already paid.

  • Booking truth now always wins over a stale invitation across the event manage page and the

calendar event panel: a member with a live booking shows their real state (e.g. Booked · Paid or Waitlisted), and the resend/revoke controls are withdrawn for anyone who already holds a booking. Members marked Late or No-show — and waitlisted members — no longer slip back into the invited list, and the cancel-notification count no longer double-counts them.

  • Behind the scenes, a successful payment now marks its invitation used by the invitation's

permanent identity rather than a link that can be regenerated, so a re-sent link can no longer leave the booking looking unpaid; and if it ever can't, it says so instead of pretending it worked. An operator diagnostic and a rehearsed, owner-run repair are provided to tidy any historical bookings from before this fix. No prices, invoices, refunds or waitlist positions are affected.

Update — 2026-07-20

20-07-2026

20 July 2026

Fixed — Resending an event invite now works

  • Resending an event invite was failing every time. From the event's invitee list,

"Resend" (and "Resend selected" for a batch) returned a server error and no email went out. This affected every club, on every event, for every invite — there was no combination where it worked, and no error the club could act on.

  • The cause was internal: when preparing the reminder, the app looked up whether your club

had set up its own custom "event invited" email, and it asked for that setting using names that no longer matched the database. The lookup failed, and because sending an invite is treated as something that must never half-happen, the whole resend correctly stopped rather than sending a wrong or half-built email. That safety behaviour was right; the lookup underneath it was wrong.

  • Both resend and bulk resend now work, and a club that has built its own custom invite

email will now actually get that template used.

  • The same faulty lookup was also present when invites are first sent. There it failed

quietly rather than loudly: the invite still went out, but always using the standard wording, so a club that had designed its own invite email never saw it used. That is now corrected too.

  • No data was affected and no invite links were changed by this fix. Invites that were sent

successfully before are unaffected, and existing booking links keep working.

Note for the owner

The subject line still comes from the app's standard wording ("Reminder: You're invited to …") even when a custom template is used, because the sender has always taken the subject from the app rather than from the template. Changing that would alter the wording members receive, so it has been left exactly as-is and flagged for your decision rather than bundled into a fix.

Improved — Event invitations now use the template you chose for that event

  • When you create or edit an event you can pick an invitation template for it. Until

now the invitation and resend emails ignored that choice and only ever looked for a club-wide "event invited" automation rule — so the template set on the event itself was quietly never used.

  • Invitations now follow a clear order: the event's own invitation template first, then

your club-wide "event invited" rule, and finally the standard built-in invitation. The same order is used for first invitations, single resends and bulk resends, so all three now send the same thing.

  • If the template chosen on an event has since been archived or deleted, the invitation

quietly falls back to your club-wide rule (or the standard email) instead of failing.

Fixed — Invitations can no longer be sent using an SMS or Telegram template

  • An event invitation is an email. If your club had an "event invited" automation set up

for SMS, Telegram or Push only, that template could previously be picked up and sent as an email — producing an email built from message content never written for email.

  • Only email-capable templates are now eligible. Templates set to Email, to the legacy

"Email + Telegram" option, or to any combination that includes email, all still work exactly as before. Older rules saved before the channel setting existed are still treated as email, so nothing that worked stops working.

  • If more than one club-wide invitation rule is eligible, the most recently updated one is

now chosen consistently, rather than whichever the database happened to return first. Previously the same event could use a different template from one send to the next.

Fixed — "Invites sent" now tells you what actually happened

  • Sending invitations always reported "N invites sent successfully", where N was simply

the number of invitations created. It said the same thing whether every email went out, every email failed, or no email was ever attempted.

  • Creating an invitation and delivering it are now reported separately, and the message

reflects the real outcome — for example "12 invites created — 10 sent, 2 failed", or "5 invites created" when you chose not to email anyone.

  • Emails that are queued for retry are reported as queued rather than sent, and emails

deliberately not delivered (currently a demo club — see the note below on why invitations aren't affected by unsubscribes) are shown as not delivered instead of being counted as successes.

  • Members with no email address, and invitations that have already been used, are now

listed as skipped with the reason, rather than silently disappearing from the count.

  • Invitation links are never thrown away because an email failed. The booking link is

still valid and you can simply resend it.

Fixed — Resending to a blocked address no longer breaks the member's existing link

  • When you resend an invitation and the system deliberately declines to send —

currently a demo club — it was treating that as a successful send.

  • For an invitation that had already been used, that had a real consequence: the member's

existing, working booking link was replaced with a new one, and the email carrying the new link never went anywhere. The member was left holding a link that no longer worked, with no way to be told.

  • The old link is now left completely untouched unless a replacement email was genuinely

sent or durably queued for delivery. The resend reports honestly that nothing was delivered, and bulk resend counts that member as skipped rather than resent.

Fixed — Results are no longer shown in green when the emails failed

  • Invitation results were always presented as a success, whatever happened. Even after the

wording was made accurate, "12 invites created — 12 failed" was still shown in a green success banner and a success notification.

  • Results are now styled to match the outcome: green only when every email was sent or

durably queued, amber when some were skipped, blocked or failed, and red when nothing was delivered at all. Anything that isn't a clean success now also stays on screen longer so it can be read.

Fixed — Two more places now report what actually happened

  • Re-inviting a member whose booking was cancelled previously said "Re-invited <name>"

purely because the invitation had been created — it said the same thing when no email went out. It now reports the real outcome, and only says "Re-invited" when an email was genuinely sent or queued.

  • Inviting members from the assessment screen ignored the delivery result entirely.

It now reports the same honest outcome as everywhere else.

Improved — You're now told when an invitation template needs attention

  • If the template chosen for an event (or your club-wide invitation automation) can't be

used — it's been archived, deleted, or isn't set up for email — the invitation still goes out using the standard wording, but you're now told, so a silent fallback doesn't go unnoticed for months.

  • You're also told when more than one club-wide invitation automation is switched on, since

only one can be used.

  • These notices explain what to check and never expose template contents or anything

belonging to another club.

Under the hood

  • A database error while loading members could previously be reported as "no email

address" for everyone in the batch — an outage disguised as a data problem. Read failures while loading the event, the club or the members now stop the request cleanly instead of producing a misleading result.

  • A missing event and an event belonging to another club remain indistinguishable, so

nothing can be learned by probing.

Fixed — "Request a new booking link" no longer breaks a member's existing link

  • The booking page lets a member request a fresh link if theirs has already been used.

Where the system deliberately doesn't send — currently a demo club — it correctly declined, but still replaced their existing link. The member was left holding a link that no longer worked, on the one screen where there's no staff member to ask.

  • The existing link is now left completely untouched unless the replacement email was

genuinely sent or durably queued. The member is told simply that we couldn't send a new link and to contact their club.

  • That message is deliberately identical for every reason a new link couldn't be sent, so

the page can't be used to work out anything about a member's email address or about what another request happened to be doing at the same moment.

Fixed — "Resent 0 invites" is no longer shown as a success

  • Bulk resend and bulk revoke reported through a green success notification whatever

happened, so "Resent 0 invites · 12 skipped" — where nothing at all was resent — still looked like a success.

  • Bulk results are now coloured by what actually happened: green only when every row

completed, amber when some were skipped, and red when none completed. The compact summary of skip reasons is unchanged.

Improved — Template problems now show wherever you resend

  • The invitation, resend and bulk-resend screens all report when a configured template

couldn't be used, so the notice reaches you wherever you happen to be working — the event page, the calendar panel, and the grading booking screen.

  • On the grading screen the notice now persists while the list refreshes, instead of

disappearing before it could be read, and repeated resends no longer stack the same notice over and over.

  • These notices sit apart from the delivery result: a template notice never turns a

failed send green, and a successful send is never reported as a problem.

Fixed — Two people regenerating the same invite can no longer break the link

  • If the same invitation was regenerated twice at nearly the same moment — a member

clicking "request a new link" while a staff member resends, or two quick clicks — both emails went out and only one of the two links could work. The member could easily be looking at the dead one, and nothing in the system knew.

  • Replacing an invitation link and creating its replacement email now happen as a single

all-or-nothing step. The first request wins and its link is the live one; the second is told the invitation was just regenerated elsewhere, and sends nothing.

  • If the system loses power at exactly the wrong moment, the replacement email is already

recorded and still goes out — the link that was promised is the link that works.

  • A request that is refused — because another one won, or the club is in demo mode

— leaves the existing link completely untouched, rather than quietly reporting success while changing nothing.

  • If a connection drops at the exact moment the change is being made, we can no longer be

certain either way. Staff are now told plainly that the result couldn't be confirmed and to check the member's invitation, instead of being reassured that nothing changed — which might not be true.

  • When two people regenerate at once, the one who loses is now told that **another

regeneration completed first** and not to rely on the previous link. It no longer says the member's existing link is unchanged, because when someone else has just replaced it, that was the opposite of the truth.

What "sent" does and doesn't mean

  • Invitation emails are transactional, not marketing. They are deliberately not governed

by the unsubscribe and bounce suppression list that applies to bulk club-wide messages — a member who has unsubscribed from newsletters still receives the invitation they need in order to book.

  • The one case where the system deliberately doesn't send is a demo club, and that is

decided before anything is changed, so nothing is altered and nothing is claimed.

  • "Sent" means the email was accepted by our provider, or safely queued to be delivered.

Neither is a guarantee it reaches an inbox — a mailbox can still bounce it or file it as spam. Where we can't confirm delivery, we now say so rather than implying success.

Fixed — Demo clubs no longer claim an email was sent

  • On a demo club, "request a new booking link" replied as though a new link had been

emailed. Demo clubs deliberately don't send email, so nothing had been.

  • Demo stays exactly as read-only as before, but now says honestly that a new link

couldn't be sent.

Improved — Warnings and partial results now have their own amber

  • Notifications previously had only green, blue and red. A result that was neither a clean

success nor an outright failure — "8 resent, 2 skipped" — had to borrow one of those, and both misrepresent it.

  • There's now a proper amber warning style, so a partial result looks like a partial

result.

Correction to an earlier note

  • Earlier notes said a template problem meant "the standard invitation was used". That was

inaccurate in two ways: when an event's template can't be used the system falls back to your club-wide template rather than the standard one, and a template being chosen says nothing about whether the email then arrived.

  • Template notices now describe only which template was selected, and never claim an

email was sent. Whether it was delivered is reported separately, by the delivery counts.

Fixed — A booking and a link-regeneration can no longer race each other

  • Until now, "does this member already have a booking?" was checked just *before* an

invitation link was regenerated or revoked — so a booking created in that same instant could slip through, leaving an invitation re-opened for a member who had just booked.

  • Regenerating and revoking now make that decision *while holding the same per-event lock

the booking system itself uses*, so the two can genuinely no longer interleave: whichever starts first finishes first, and the other sees the result.

  • Staff "add booking" and the register's walk-in bookings now take that same lock too. Staff

can still deliberately book over capacity — that behaviour is unchanged — it simply happens under the lock now.

  • Re-adding a member whose booking was cancelled is refused exactly as before; a cancelled

booking is never silently brought back by re-adding.

For the owner — new database steps

Three new proposed migrations accompany this (regeneration v2, atomic revoke, locked booking creation), plus one closing cancelled-booking resurrection in grading. Apply them before deploying the app build that uses them — the app fails safe (a clear error, no fallback to the old behaviour) if they are missing. Details in the release checklist.

Fixed — The attendance monitor no longer cries wolf

  • Since the 16 July attendance system upgrade, the behind-the-scenes monitor that

checks attendance bookkeeping reported failure on every run — not because anything was failing, but because it counted the club's pre-upgrade historical records (which are simply awaiting a one-off review) as if they were live errors. A permanently-red monitor is worse than none: a real problem would have been invisible inside the noise.

  • The monitor now tells those two stories apart. Historical records show as an

amber "historical review outstanding" note with the exact counts, while the red alert is reserved for things that are genuinely wrong right now — and it also now confirms on every run that the old writing path is still switched off.

  • Nothing about attendance itself changed: registers, entitlements and the pending

review of historical records are exactly as they were. This is the monitor telling the truth, plus a prepared, read-only review pack so the historical tidy-up can be done deliberately rather than under a false alarm.

Improved — Invoice & VAT settings now have their own home

  • The club's invoice details (supplier name and address, VAT registration, VAT

rate, and whether prices include or exclude VAT) used to live inside Settings → "Your Plan" — the page about your Allsorted subscription, where nobody thought to look. They now have their own tab: Settings → Payments → Invoices & VAT.

  • The page now says plainly whether the club is ready to issue invoices, and if

not, exactly which details are missing — in plain words, not database names.

  • Turning VAT on now asks for everything invoices legally need (VAT number and an

explicit inclusive/exclusive choice, with a worked £10 example showing the difference). Turning VAT off requires none of it. These checks are also enforced server-side, so no route into the settings can save a half-configured VAT state.

  • VAT invoicing currently supports GBP only, and the settings now say so rather

than finding out at enrolment time: a club billing in another currency sees a clear note, can't switch VAT on, and the readiness summary lists the currency requirement alongside everything else. Previously the page could say "Ready to issue invoices" for a setup that every enrolment payment would then refuse.

Fixed — Enrolment no longer hangs at the payment step

  • When a club's invoice details were incomplete, a parent completing an enrolment

invite reached the payment step and the page sat on "Preparing payment..." forever, with no message and no way forward. No payment was being taken, but the page never said so.

  • The page now stops, explains calmly that the club's payment setup isn't finished,

confirms no payment has been taken, and offers a Try Again button. Every kind of failure at that step now exits the spinner — including network drops.

  • Staff now find out before a parent does: the Trials & Enrolments page shows

a warning when the club isn't ready to issue invoices, linking straight to the new Invoices & VAT tab to finish setup.

Update — 2026-07-19

19-07-2026

19 July 2026

Security — Database permissions for two sensitive operations (now applied)

Status: Applied to production on 19 July 2026 and verified. Both findings are closed.

  • Two database functions — the one that edits manual invoice lines, and the one

that permanently erases a member record — were reachable more broadly than intended. Both are only ever meant to be called by the server, through the normal app routes that already check your role and your club. The app itself was never the problem: every route in the product does the right checks. The gap was that the database was also willing to accept those two calls from outside those routes.

  • The corrective changes remove permission from every

general caller and leave only the server able to run these two operations. The functions themselves are untouched — the wording, retention and safeguarding behaviour of a member purge, and the penny-exact totals of a manual invoice edit, all stay exactly as they are today.

  • These changes are now live. They were applied on 19 July 2026 and the follow-up

check confirmed the intended result for both functions: no general caller can run them, and only the server can. Each change verified its own result before committing, so a change that quietly did nothing could not have been mistaken for a fix.

  • Applying them needed no downtime and no app deploy, and normal use was unaffected.
  • One operational note for the future: re-running an older database bundle can restore

the very permission that was removed from the member-erase function. The release checklist requires the corrective to be re-applied, and the permissions re-checked, after any such run.

Internal — Release safeguards for the permission fixes

  • The two correctives are now registered in the release system as independent,

apply-on-their-own units, so they can be shipped in an emergency without waiting for any other work.

  • They are also placed last in the generated deployment bundles. This matters: a

later database change can re-grant a permission that an earlier one removed, and re-running an older bundle would otherwise silently undo the fix. The release checklist now records exactly which older bundles have that effect and requires the corrective to be re-applied afterwards.

  • The two bundle formats (command-line and SQL-editor) now share one definition of the

permission contract, so they cannot drift apart, and every deployment mode ends by re-checking the permissions and stopping loudly if they have been re-opened.

  • A new automated guard pins the exact set of places in the codebase that grant these

permissions. The previous guard only counted them, so swapping one grant for a brand-new one went unnoticed; the replacement compares the full list and fails on any new file, signature, grant style or widened recipient. Its documented blind spots are written down alongside it rather than left implied.

Internal — Hardening the safeguards around the permission fixes

  • The automated guard that watches for anything re-granting these permissions now

reads SQL properly rather than pattern-matching it. It previously missed several perfectly legal ways to write the same grant — leaving the argument list off, naming the function part-way through a comma-separated list, quoting the schema or function name, or omitting the final semicolon — and it did not notice a function being dropped and recreated, which quietly restores the very permissions we removed. All of those are now caught.

  • Malformed SQL used to be treated as clean. An unterminated comment made the guard

ignore everything after it and report the file as fine; it now stops and names the file and line instead. It also now reads every tracked SQL file in the database folder, including ones sitting at the top level that were previously outside its sweep, and checks that the generated deployment files are up to date with their generator.

  • The guard's genuine blind spots — SQL that is assembled at run time rather than

written out — are listed explicitly and are deliberately not what we rely on. The real check remains reading the live database permissions after applying.

  • The owner's pre-apply check and the security test suites all touch the same two

database permissions. They now take turns via a single lock that records who holds it, so one can no longer capture or undo another's half-finished state. The lock is released even if a run fails or crashes part-way, and it cannot be removed by a process that no longer owns it.

  • On the production position: the two permission fixes described above were applied

on 19 July 2026 and verified. The safeguards in this section are about preventing a future regression — they are not themselves database changes, and none of them has been applied anywhere.

Update — 2026-07-18

18-07-2026

18 July 2026

Fixed: event invitations appear immediately

  • New invitations now appear as soon as they are sent. The event panel updates its

invite count and rows immediately, and the full event-management page now does the same. Both quietly check the server copy without flashing or requiring a browser refresh. If that follow-up check fails or briefly returns stale information, the confirmed rows stay visible instead of incorrectly saying that no invitations have been sent.

Improved: clearer Communications navigation

  • Communications is easier to move around. Messages, Comms Map, Automations,

Templates and Deliverability now sit in one centered icon menu using the same glass styling and responsive motion as member profiles. The menu remains swipeable on smaller screens, while existing routes and permissions are unchanged. The menu now stays above the page title throughout the Communications area, so switching sections no longer makes the header jump above and below it.

Fixed: invoice PDFs show their line items again

  • Invoice PDFs now always show the real line items. A fault in how the lines were

fetched meant every invoice PDF rendered a “line item details are temporarily unavailable” placeholder instead of its contents. The lines now load reliably in a stable order, and if they genuinely can’t be read the PDF is held back with a clear error rather than producing an incomplete financial document. Previously-generated placeholder PDFs regenerate automatically. Totals are unchanged.

New: VAT support for VAT-registered clubs

  • Clubs registered for VAT can now invoice with VAT end to end. With VAT enabled in

Settings → Billing, every invoice your club raises — memberships, joining fees, events, class packs, manual invoices and more — now carries the right VAT per line (inclusive or exclusive, at your default or a per-line rate), totals stay exact to the penny, and issued invoices are never altered afterwards — corrections flow through credit notes at the original rates. Clubs without VAT see no change at all.

  • A new VAT summary report. Reports gains a VAT tab for VAT-enabled clubs: net, VAT

and gross by period, code and rate, with credit notes netted at their original rates and a CSV export. It’s a bookkeeping aid — clearly labelled as not a VAT return.

  • Draft invoices can be recalculated. If you change VAT settings, existing drafts

keep their saved treatment unless you explicitly recalculate them (a logged action); issued history is never touched.

Improved: course and pathway reliability

  • Course building, pathway assignment and reordering are now crash-proof. Reordering

sections, lessons, stages, tasks and portal messages applies as a single change (no more half-reordered lists if two people edit at once — the later editor is asked to refresh); assigning a pathway creates the member’s full task list atomically; and lesson watch-time is recorded exactly once even from two devices. Where information can’t be read, screens now say so instead of appearing empty.

Improved: card-payment invoices and invoice line ordering

  • Card payments always produce a correct invoice for VAT clubs. When a card payment

settles an event booking, the resulting invoice now carries the club’s VAT treatment exactly like every other invoice — and if the VAT settings can’t be read at that moment, the payment is retried automatically rather than quietly recording an invoice without VAT. Clubs without VAT see no change.

  • Invoice lines keep the order you arranged them in. New invoices remember the order

their lines were created or edited in — on screen and on the PDF — instead of falling back to insertion order. Existing invoices keep their familiar order, and issued invoices remain locked exactly as issued.

Improved: every remaining report fails safe, and event invoices self-repair

  • The last six reports now say “couldn’t load” instead of zeros.

Financial, Insurance, Data Quality, Events, Trial Funnel and Class Pulse join the rest of Reports: a failed load shows a clear notice (never £0.00 revenue, an empty funnel or “no feedback” as if true), and a network failure can no longer leave the Financial report stuck on its loading screen.

  • An event invoice can no longer end up empty. In the rare case where an invoice was

created but its line items failed to save, the payment flow now repairs the invoice automatically on retry — and if it can’t, the problem is flagged on Platform Health rather than leaving an invoice that looks settled but has no contents. The daily reconciliation now actively re-repairs any such flagged invoice, and the card payment retry always reconnects to the exact invoice it needs to fix rather than creating a duplicate.

  • One reliable path for event-payment invoices. Whether the confirmation comes back

through the browser or the payment provider’s webhook, a paid booking’s invoice is now created, repaired and settled by a single authority — so two arriving at once can never produce a duplicate invoice or one without its line items, and the booking screen no longer raises the invoice separately. Paid bookings for another club’s event (a cross-club event that charges a different club) are declined at payment time rather than recorded under the wrong club’s VAT; free cross-club bookings are unaffected.

  • Rapidly changing a report’s dates or programme no longer shows stale numbers.

On the Insurance, Data Quality, Events and Trial Funnel reports, switching filters quickly could briefly let an older, slower result overwrite the newer one; the report now always shows the result for the filter you actually chose.

Behind the scenes

  • **The next database release now fails safely and runs in clearly separated

windows.** Blocking preflight checks return a real failure to the deployment runner, the card-payment invoice identity index is verified as usable rather than trusted by name alone, lock-taking audit maintenance runs only in its declared quiet window, and the post-code status-notification outbox no longer repeats unrelated database work. This is release hardening only; it does not enable a feature, send a communication or change live data.

Fixed: register saves for existing classes

  • **Attendance saves work again for classes created before Programmes were

introduced.** Those classes already had a valid programme through their original target-programme setting, but the new attendance authority compared only the newer programme field and rejected the mark. Existing classes are safely reconciled to the canonical programme, new timetable saves keep that relationship populated, and the server now takes the attendance programme from the class rather than the browser’s current filter.