What's new
Action Centre checks stay honest when a source is unavailable
- The staff Action Inbox now loads through one authenticated, club-scoped
snapshot instead of coordinating many browser reads. If one source cannot be checked, the available actions remain useful and the affected source is named instead of being presented as an empty result.
- Unread inbound SMS replies now appear as action items and open the member
conversation directly. Read state remains separate for each staff member; message text and phone numbers are not included in the inbox snapshot.
- The dashboard no longer turns failed cancelled-Direct-Debit, contactability,
member-reply or accident-draft checks into reassuring zeroes. It identifies incomplete checks and reserves “All clear” for a fully available result.
No database migration or provider configuration is required for this change.
Smart Planning is safer to preview, revise and reuse
- Plans now keep an immutable revision history, so a regeneration, drill swap,
note change, template change or restore can be reviewed without losing the prior version.
- Coaches can preview a regeneration and compare it before saving. A class,
roster or setup change after preview is detected instead of saving content they did not see.
- Planning defaults to everyone expected at the class. Coaches may deliberately
plan for those marked Present/Late once the register has attendance, while a partly marked register can no longer silently shrink the plan.
- Planning configuration and generation now fail clearly when required data is
unavailable, rather than presenting an empty result as genuine advice.
- Effective custom permissions control every human Smart Planning change.
- Programme-specific starter drills stay with their programme; genuinely
generic club drills remain reusable across programmes.
- Planning responses retain aggregate roster counts and change fingerprints
without exposing member identities.
AllSorted owners can compare club adoption and report usage
- The existing platform-admin navigation now includes a dedicated Insights
workspace. It is isolated from every club-owner and member surface.
- Portfolio exceptions appear first, followed by adoption measures, a
filterable per-club health table and platform-only Club Insights usage.
- The view distinguishes staff accounts from member records, counts only
canonically finalised registers and explains why a club needs attention or is considered quiet.
- Platform owners can compare Club Insights report requests, durable provider
calls, input and output token counts, recorded provider cost and last use by club. These internal cost figures remain absent from the club-owner report workspace.
- Seven, 30 and 90-day views load through the super-admin-only server route.
Failed or malformed reads are shown as unavailable and are never converted to convincing zeroes.
Club Insights is easier to use and revisit
- Club owners now move between two clear views: New report and **Saved
reports**. Previously completed reports can be reopened without spending another report allowance.
- The monthly allowance increases from 6 to 30 reports. Existing clubs still
using the former default move to 30; deliberate per-club overrides remain unchanged.
- The report screen explains exactly why a report cannot run, and keeps the
customer workspace focused on club decisions rather than provider costs.
Registers close automatically after 24 hours
- An unlocked class register becomes eligible for automatic finalisation 24
elapsed hours after its scheduled session end and is picked up by a bounded ten-minute recovery job.
- Existing Present and Late marks are preserved. Missing expected members are
recorded as Absent before the register is sealed, while closures are ignored and both recurring and pinned ad-hoc sessions are supported.
- Automatic locks have explicit system provenance instead of being attributed
to a staff member. Retry and review work is visible in Platform Health.
- The register Health view now separates Here now from **Expected — not
here**, including health notes for trials and ad-hoc/catch-up attendees.
- If the complete medical summary cannot be confirmed, Health now says it is
unavailable and offers a retry instead of showing a false all-clear. A last complete list is retained only for the same roster and is clearly labelled.
Recipient lists fail safely before a message is sent
- Messages no longer converts a failed or malformed recipient read into a
zero-person audience. The last complete list stays visible where available, while current reachability totals and sending remain paused until Retry has confirmed a fresh complete snapshot.
Smart Planning supports calmer class delivery
- Coaches review a plan or start the lesson from the primary controls; context,
printing, history and detailed feedback sit in a compact More menu.
- Regeneration now opens a section-by-section preview. The current version and
coach notes stay untouched until the coach confirms, and an earlier version can be compared or restored without deleting history.
- The register explains whether a plan reflects the expected group or those
currently present, including trials and catch-up attendees. A roster change suggests a new preview but never silently replaces an in-use plan.
- Planning language and starter equipment follow the selected class programme.
Coaches can add their club's own equipment, and one programme never inherits another programme's terminology or kit assumptions.
- One-tap plan ratings make the learning loop quick, while section detail,
activity exclusions and notes remain available when useful.
- Planning Insights now reports recent use, activity coverage, feedback,
certified generation failures and invalid saved activity locks. Incomplete evidence is shown as unavailable rather than as reassuring zeroes.
Deployment note: apply the complete supabase/_proposed/smart-planning-trust-authority-01.sql unit before this application code, then require the matching read-only postflight to report 11/11 passed. No remote SQL was applied while preparing this change.
Smart Planning now starts with a guided setup
- Smart Planning opens on a programme-specific readiness view with one clear
next action, required and optional setup checks, and the state of upcoming classes.
- Neutral starter packs are available for football, dance, gymnastics,
swimming, taekwondo and general activities. They add only missing local content, preserve club-created activities and can be retried safely.
- Every starter pack now covers the complete six-part planning structure and
is explicitly available across the supported age bands, so a workspace that reports Ready also produces a usable first plan.
- Starter activities stay within the programme selected by the coach. Existing
legacy activities remain available as general club content.
- Generated objectives and coach notes use the selected programme's language
instead of martial-arts terminology leaking into other activities.
- The activity library now has a four-field Quick Add mode, clearer advanced
controls, mobile CSV import, accessible dialogs and protected unsaved work.
- Planning tags and coverage tools now use neutral language, support mobile
workflows and show honest unavailable or partial-save states with a retry.
Activity setup now leads with the work that needs attention
- The Activity Library opens on activities that need more planning detail and
names the missing purpose, instructions, duration, variations, age suitability, coach language or safety information directly. Plan-ready activities remain available under All activities.
- Quick Add stays the primary action. CSV import and archived activities remain
reachable on mobile and desktop through a compact More menu, while the full advanced editor is unchanged.
- Planning vocabulary is now grouped into terms already used in planning, terms
not used yet and archived terms. Customer-facing categories describe teaching outcomes, physical demand, teamwork and accessibility while preserving the existing stored values and archive safeguards.
No database migration, provider configuration or feature flag is required for this change.
Application errors are easier to recover and diagnose
- The current Next.js request-error and client-navigation hooks now report
through the existing privacy-scrubbed Sentry boundary.
- A root-level failure shows a consistent recovery screen instead of the
framework fallback, and raw exception messages are no longer rendered to staff or members.
- Error capture remains disabled outside production and still requires the
documented Sentry environment configuration before any event is sent.
Reports start with club questions
- Reports are grouped around growing membership, running classes, protecting
revenue and following up, while the complete report catalogue remains available.
- Club staff can search, favourite and quickly reopen recent reports without
changing report data or sharing preferences outside their browser.
- Archived programme filters now show an unavailable notice when their source
read fails instead of quietly appearing to contain no archived programmes.
Trials and enrolments lead with the next action
- Follow-ups due now open ahead of passive upcoming trials; when no follow-up
is waiting, the pipeline selects the next meaningful stage automatically.
- A concise action card explains what needs doing, while every funnel stage and
the full history remain one click away.
- Book a trial is now the clear primary action. New enrolment invitations
and website-form utilities remain available under More.
Grading work now has a clear operational journey
- Grading sessions and events show one shared **Prepare → Run → Review →
Publish → Complete** journey, including roster, outcome, promotion and certificate counts plus the next safe action.
- Archived work, missing linked events, incomplete outcomes and unconfirmed or
blocked promotions are called out before publication without changing the existing publish, unpublish or promotion authorities.
- Required session, event, booking, roster, programme and rank reads now fail
visibly with a scoped retry. A failed refresh keeps the last complete view instead of replacing it with a convincing “No sessions” or “No events” state.
Smart Planning can turn a rough idea into an editable activity draft
- The Coverage readiness frame now uses the established teal accent surface,
matching the selected Smart Planning navigation in light and dark themes.
- Coaches may ask for optional writing help when creating or editing an
activity. Luna returns either one fixed, safe clarification or a complete draft for the coach to review; it never creates or saves the activity.
- The outbound packet contains only programme, activity, age-band and logistics
fields. AllSorted adds no member, household, roster, attendance or health data. Obvious identifiers and text matching a known club person are blocked before an OpenAI call, and the same checks protect returned text.
- A database-enforced allowance limits each club to 300 AI drafting calls per
Europe/London calendar month. The audit ledger stores lifecycle metadata, token counts and hashes only—never prompts, responses or member details.
Deployment note: this feature is dark until the complete supabase/_proposed/smart-planning-ai-authority-01.sql unit and matching postflight are applied, SMART_PLANNING_OPENAI_API_KEY is configured, and both Smart Planning AI flags are deliberately enabled. store:false is used but is not Zero Data Retention; approve the OpenAI project retention posture before enabling it.