import type { Metadata } from "next"; import { GuideCallout, GuideFields, GuideFigure, GuideSection, GuideShell, GuideStep, GuideSteps, } from "@/components/app/training/guide"; export const metadata: Metadata = { title: "Platform administration guide", }; const SECTIONS = [ { id: "before-you-start", title: "Before you start" }, { id: "admin-hub", title: "The admin hub" }, { id: "people", title: "People and access" }, { id: "skills", title: "Skill levels" }, { id: "positions", title: "Positions and requirements" }, { id: "services-schedule", title: "Services and the schedule" }, { id: "coverage", title: "Coverage and swaps" }, { id: "run-sheets", title: "Run sheets" }, { id: "messages", title: "Reminders and notifications" }, { id: "email-settings", title: "Email and deployment settings" }, { id: "backup", title: "Backup and restore" }, { id: "content", title: "Announcements and training" }, { id: "exports", title: "Print and CSV exports" }, { id: "troubleshooting", title: "Troubleshooting" }, ]; export default function AdminGuidePage() { return (

The hub has three working roles. Your role decides which tabs and buttons exist for you, so a missing control usually means a missing permission rather than a broken page.

Open the site and sign in at /login with your username (email by default) and password, or request a one-time sign-in link by email. After signing in you land on Schedule. Admins and coordinators also see Dashboard and{" "} Coverage in the navigation; admins see{" "} Admin at the end of the rail. Use the same account for desktop and phone. The layout adapts, and the mobile tab bar scrolls horizontally when there are more tabs than fit.

You cannot demote or delete the last active admin, and you cannot delete a person who has scheduling history — deactivate them instead. Both protections are deliberate; the app will explain the refusal rather than silently changing the record.

Admin is one long page of cards, in the order you normally use them: People, Skill levels, Positions & requirements, Services & schedule, Reminder rules, Email delivery, Backup & restore, and Notifications. Changes save immediately; there is no page-level Save button. Reload the page if another admin may have changed something while you were working.

New service instances start as drafts. Volunteers only see the week, and only receive assignment email, after you publish it. A draft is safe to edit; a published week should be changed carefully because people have already been told about it.

The People card is the church directory and the access control panel at the same time. The table lists everyone, including pending and deactivated accounts, with their role, status, phone, and actions.

Add someone

Enter first name, last name, email, and optionally a phone number in E.164 form (for example +15551234567). Choose the role: volunteer,{" "} trainee, coordinator, or{" "} admin. Default to volunteer unless the person genuinely needs scheduling or admin powers. Leave Needs approval before signing in ticked when you are not yet sure about the person. They will appear as pending until you approve them. Press Add user. The app shows a one-time sign-in link; copy it and send it to the person through a channel you trust. The link only works once the account is active.

Approve or deny sign-ups

People can request access with their email. Pending rows show{" "} Approve and Deny. Approving makes the account active and lets the person set a password; denying keeps them out but leaves the record for your notes.

Edit a person

Edit expands an inline panel. Save with{" "} Save changes at the bottom of the panel.

Deactivating blocks sign-in but keeps the person’s assignment, training, and audit history intact. Delete is reserved for accounts created by mistake; the server refuses to delete anyone with scheduling history and tells you to deactivate instead.

The Skill levels card answers “who is signed off on what?”. Each row is one person and one skill, with the volunteer’s own comfort rating, the verified level, and the last date they served that skill.

The ladder is none → observer → assisted → qualified → expert. Use the filter at the top to show only one level when you are auditing a position.

Find the person and skill, then open the verify control on that row. Choose the new level. The app preselects the next rung, which is the usual case. Choose the assessment kind (for example admin, mentor, or practical) and add a short note explaining the evidence. Save. The change writes an audited assessment and moves the verified level in one transaction.

The comfort percentage is the volunteer’s own signal from their profile. Verification changes only the verified level, so a coordinator cannot quietly rewrite how confident someone feels.

A position is a seat on a service — Audio, Livestream, Slides, and anything else you add. The table shows seats, call time, required skills, and whether the position is active.

Press Edit requirements on a row. Change an existing requirement, press Remove to drop one, or Add skill to append another. Leave Publishable ticked only when the requirement set is complete enough to schedule against. Press Save requirements. The whole set is saved together, so what you see is exactly what is stored.

A service is the repeating template (for example Sunday 9:00 AM). An instance is one dated occurrence of that template, and the schedule is built from instances.

Create a service template

Enter a clear name (“Sunday 9:00 AM”, “Sunday 5:00 PM”), start time, length in minutes, and location. Press Add service. New templates use the weekly Sunday recurrence by default. Press Generate upcoming Sundays to create the rolling window of instances. Generation is idempotent — running it twice does not duplicate weeks. Deactivate a template when it stops running. Existing instances are untouched; future generation skips it. Delete removes a template permanently — use it for one you added by mistake. It only works while the template has no published, past, or assigned instances; anything with history has to be deactivated instead, so the schedule record survives.

Build and publish a week

Open Schedule. The toggle switches between week, month, and year; the arrows move one week, month, or year at a time. In week view, each column is a position and each row is a service instance. Press an empty seat to assign someone, or use the row actions to clear a seat. Auto-fill proposes ranked volunteers for the open seats. Review every suggestion; the ranking respects skills, availability, and conflicts, but it does not know the relational context. Press Publish when the week is ready. Publishing queues assignment email and reminder rules for that instance. Unpublish only when you intend to withdraw the week; volunteers may already have received mail.

A hard conflict blocks an assignment (already serving elsewhere in the same service, a blackout, or a missing core skill). A soft conflict is a warning you may override, such as exceeding a monthly serving cap. The app shows which is which before you save.

The Coverage dashboard summarises the next five weeks: filled and open seats, unconfirmed assignments, pending people, and the queues that need a coordinator. Coverage is the working queue for swaps and outside requests.

Handle a swap request

Open Coverage. Each request names the volunteer, the seat, and the service, with the reason they gave. Review the ranked eligible replacements and their warnings. Pick someone whose skills and availability fit, not just the top score. Choose Approve with replacement. The original assignment is cancelled, the new person is placed as a proposed swap, and the seat stays covered. If the week is published, the new person is emailed. Choose Approve and release when nobody can take it. The seat becomes open and the original assignment is cancelled but kept in history. Choose Decline if the request should not be granted; the original volunteer stays on the seat.

A pending request does not remove the volunteer. They remain responsible until you approve something, so the service always has a named owner.

Requests from outside the team

Ministry leaders can submit the public form at{" "} /request-coverage without an account. Submissions are rate-limited and appear under Coverage as new requests. Read the brief, then either Create event (which opens an event with the requester and ministry attached) or Decline. The event is where you assign photographers and folders.

Every service instance has one run sheet: speaker, message title, stream and slides links, team notes, an ordered cue list, and a pre/post checklist. Open it from the Home page’s next-serve card or from the schedule/dashboard links.

Fill in speaker, message title, stream link, slides link, and notes for the team, then press Save details. Edit a cue’s time, title, or owner inline and press the save icon on that row. Use the trash icon to remove a cue, or the add row at the bottom to insert one. Tick checklist items as they are completed. The sheet records who ticked each item and when. Add checklist items for this service with{" "} Add pre-service item or{" "} Add post-service item. Delete custom items you no longer need. Press Print for a clean booth copy with the app chrome removed.

A new instance receives five standard cues and a seven-step pre-service / four-step post-service checklist the first time the sheet is opened. Deleting rows does not re-seed them, so the team can shape a sheet without it resetting.

Reminder rules decide when assignment email goes out relative to the service. They are data, not code: a change here affects the next publish with no deploy.

Give the rule a short key (for example friday). Set days from the service and the local send time. Use{" "} -2 for two days before, 0 for the day of. Choose the channels: email, SMS, or both. SMS depends on the deployment having an SMS transport configured. Press Add rule. Disable a rule instead of deleting it when you want to pause sends without losing the configuration.

The notification log

Every message the app queues lands in the Notifications card, newest first. Publishing and reminder rules write here; a background dispatcher drains the queue.

Send test email sends a message to the signed-in admin through the configured transport. Use it before publishing a large week and after changing Gmail settings.

Outbound mail is sent through the team’s Gmail account with an app password, so messages come from a real church address and land in recipients’ normal inboxes.

Turn on 2-Step Verification for the Google account. Create an app password in the Google Account security settings. Paste the Gmail address and the 16-character app password here and press Save. The password is encrypted at rest and never returned to the browser. Send a test email from the Notifications card to confirm delivery. Use Disconnect Gmail only when switching transports; mail then falls back to Postmark (if configured) or the console outbox.

On Settings, admins also see the From address, the admin notification inbox, church timezone, and the media archive destination with a readiness check. Change the From address only to a mailbox the Gmail account is allowed to send as.

The backup ZIP contains the Postgres database, training and event uploads, video derivatives, and the mounted NFS media archive, including original videos. It does not contain the environment file.

Press Download backup and wait for the ZIP to finish. Large libraries can take a while. Store the ZIP somewhere safe and keep the deployment’s{" "} NEXTAUTH_SECRET with it — that secret decrypts stored settings such as the Gmail app password. To restore, choose the ZIP, type RESTORE, and confirm. This replaces the database, uploads, and archive on this deployment.

Restoring replaces current data; it is not a merge. Database changes are transactional, so a failed SQL load leaves the database as it was, but files and the archive are replaced as part of the restore. Take a fresh backup first if the current state matters.

Announcements and training lessons are authored in the app, so the team does not need a deploy to publish news or a new how-to.

Announcements

Open Announcements. Admins and coordinators see the authoring form; volunteers see published posts only. Write a title and message. Bodies are plain text, never HTML, so pasted formatting will not run. Keep Published ticked to make it visible, or untick it to save a draft. Use the row actions to publish/unpublish or delete a post.

Training lessons

Open Training. Admins get the New lesson form above the published lessons. Add a title and one-line summary, then build the lesson in the content editor. Use headings for sections, numbered or bulleted lists for procedures, and links for related pages. Press the image button to upload a screenshot. Select the image to align it left, center, or right, choose a width, edit its description, or move it up and down. You can also drag the image to a new position in the lesson. Set a sort order to control the list position. Lower numbers appear first. Publish when ready. Drafts are visible only to admins. If you add an image before the first save, the app creates an unpublished draft so the file has a lesson to belong to; finish and save normally. Attach a PDF manual, Word document, Markdown file, or text file with the file control beneath the lesson, then press{" "} Attach. PDFs open in the browser and the other formats download. Volunteers see documents at the end of the lesson; admins can remove them.

The Platform administration guide and the Volunteer guide appear at the top of Training as web pages with screenshots and as downloadable PDFs. They are documentation for this deployment, not editable lessons, so they stay consistent for every admin.

Three exports cover the notice board, the booth, and a spreadsheet.

); }