Blocks
A block is a screen, or part of one, for a pack or the base layer, in a web or a native skin. It is copied into a client app with cos add <block> and is the app’s from then on; cos diff <block> shows upstream changes. A block holds no rules: it calls operations through hooks.
| Block | Skin | Pack | What it shows |
|---|---|---|---|
| bookings-class-list | web | bookings | A class’s list, for its coach (stage 31a step 7): who is booked, ticked, not come and waiting, and a button to tick each name. |
| bookings-desk | web | bookings | The front desk, for staff (stage 31a): one day’s classes, and booking someone into one, a member on file or a walk-in. |
| bookings-drop-in | web | bookings | Paying for one class on a gym’s site (stage 31a step 8, a drop-in): the week’s classes for a visitor, each with “Pay for this class”. |
| bookings-native-class-list | native | bookings | The coach’s class list in the gym’s app (stage 31a step 9, decision 10): today’s classes, and for the one picked, who is booked, ticked, not come and waiting, with a button to tick each name, untick it, or mark them as not come. |
| bookings-native-timetable | native | bookings | The timetable in the gym’s app (stage 31a, decision 9): book and cancel with the membership or pass a member already holds. |
| bookings-timetable | web | bookings | The timetable for a gym’s site (stage 31a): the week’s classes, and for a signed-in member a Book or Cancel button on each. |
| content-native-post | native | content | One post, for the mobile app (stage 28): its title, date, cover and body as the public reads it (usePost: the published version only). |
| content-native-rich-text | native | content | Rich text for the mobile app (stage 28, ADR 0440): a post’s body drawn block by block with React Native’s own components, from the same structured data the web block draws. |
| content-post | web | content | One post, for a site’s /blog/<slug> page (stage 28): its title, date, cover and body, as the public reads it (usePost: the published version only, ADR 0442). |
| content-post-list | web | content | The published posts, newest first, for a site’s /blog page (stage 28): each with its cover, title, date and excerpt, and a link to it. |
| content-rich-text | web | content | Rich text for the web (stage 28, ADR 0440): a post’s body drawn block by block with React elements, never as HTML. |
| courses-builder | web | courses | The course builder (stage 42), a staff block in the company’s web app: sections and lessons in order (moved by buttons, so by keyboard too), each lesson’s kind, video from the media library, session from a published Programs program, text, preview flag and minutes; save, then publish. |
| courses-catalogue | web | courses | The course catalogue for a studio’s site (stage 42): courses by theme and level, and bundles, with their prices. |
| courses-course | web | courses | A course’s page on a studio’s site (stage 42): its description, trailer and outline with lesson titles and minutes, the free previews, and either “buy” or “open”. |
| courses-my-courses | web | courses | What a signed-in student holds (stage 42), with how far they are and where to carry on. |
| courses-native-catalogue | native | courses | The course catalogue in the studio’s app (stage 42). |
| courses-native-course | native | courses | A course in the studio’s app (stage 42): its summary and outline with lesson titles and minutes; “open” for a holder and for a free preview. |
| courses-native-my-courses | native | courses | The courses a signed-in student holds, in the studio’s app (stage 42), with how far they are. |
| courses-native-player | native | courses | One lesson in the studio’s app (stage 42). |
| courses-native-subscription | native | courses | A member’s course subscription in the studio’s app (stage 32a), read only: its state, the next charge date or when it ends, and that it gives every course; and a continuation offer they have not taken yet (moving from another platform), in words, to take on the web. |
| courses-player | web | courses | One lesson, for a holder (stage 42): a video with its captions that resumes where it was left, a page of text, a download, or a training session from Programs; mark done; the next lesson. |
| courses-subscribe | web | courses | Subscribing to every course on a studio’s site (stage 32a): the course plans with the host’s price per month and trial days, and a button that opens the payment provider’s page. |
| courses-subscription | web | courses | A member’s own course subscription on the studio’s site (stage 32a): its state in words, the next charge or when it ends, and what they can do: cancel at the period’s end, keep it going, confirm a payment that waits on them, or open the payment provider’s portal for their card and past invoices. |
| dailychecks-history | web | dailychecks | How each day went (ADR 0651), for those who manage checklists: every checklist done on its own, day by day, done (by whom, for whom, when, and whether after its due time) or missed (with the steps nobody ticked). |
| dailychecks-native-today | native | dailychecks | Today’s checklists in the app (ADR 0651): the same as the web’s, over the native base. |
| dailychecks-today | web | dailychecks | Today’s checklists (ADR 0651): the checklists done on their own (opening, closing, cleaning) that are due today and that the viewer may do, each with when it is due by and its steps. |
| memberships-mine | web | memberships | A member’s memberships and passes on the gym’s site (stage 32b): what each allows, when it stops or expires, and what is left this week, this month or in all, from the host’s count (x.memberships.mine, allowance.get); and their membership subscriptions, with what they can do: cancel at the period’s end, keep it going, change plan (the host decides: an upgrade now, its prorated charge on the card, or a downgrade from the next period), confirm a payment that waits on them, or open the payment provider’s portal for their card and invoices. |
| memberships-native-mine | native | memberships | A member’s memberships and passes in the gym’s app (stage 32b), read only: what each allows, what is left this week, this month or in all (the host’s count), when it stops or expires, and their membership’s billing state in words, with a plan change or a pause waiting. |
| memberships-passes | web | memberships | Buying a pass on a gym’s site (stage 32b): the pass types on sale (class packs, drop-ins, an intro offer) with the host’s price, what each gives and how long it is valid, and a button that starts the order and opens the payment provider’s page. |
| memberships-plans | web | memberships | Joining a gym on its site (stage 32b): the membership plans on sale with the host’s price per month, what each allows and its trial, and a button that opens the payment provider’s page. |
| memberships-staff-holdings | web | memberships | For staff (stage 32b): one person’s memberships and passes, with what each allows and what is left, as the host counts it; giving a pass by hand or voiding one given by hand, with a reason; and pausing their membership for a set time or ending a pause (stage 32b, decision 10: the host holds the plan’s shortest and longest pause and asks the provider; the membership shows paused once the provider confirms). |
| native-account | native | base layer | My account (stage 48), for the mobile app’s Account tab: the signed-in customer’s own area, a list of sections, each opening on its own screen. |
| native-account-details | native | base layer | Your details (stage 48), for the mobile app: the signed-in customer’s name and phone, to change, and the address they sign in with. |
| native-account-devices | native | base layer | Sign-in and devices (stage 48), for the mobile app: every place the signed-in customer is signed in, when each began and was last used, and signing one out. |
| native-account-family | native | base layer | Family (stage 48), for the mobile app: who the signed-in customer acts for and who acts for them. |
| native-account-orders | native | base layer | Orders (stage 48), for the mobile app: the signed-in customer’s orders, newest first, each with its state, its lines, tax, deposit, what was paid, what is still to pay and by when, and what was refunded. |
| native-account-payment | native | base layer | Payment method (stage 48), for the mobile app: the card is kept by the payment provider and changed on the website (ADR 0490, ADR 0714), so this says so and opens the business’s website account page in the browser (onManage). |
| native-account-subscriptions | native | base layer | The subscriptions part of My account (stage 48), for the mobile app, read only: the subscriptions the signed-in customer pays, each with its state in words (trial until, next charge on, ending on, a payment to confirm), and “Manage on the website”, which opens the business’s website account page in the browser (onManage). |
| native-agree | native | base layer | Agree to one document (stage 44 step 5), for the mobile app: the version the host gave, its words, a health form’s questions, the tick label and its box, the typed name and, for a document agreed to by drawing, the signature pad. |
| native-agreements-due | native | base layer | “Before you go on” (stage 44 step 5), for the mobile app: after sign-in, when the host says something is due (me.agreements.due), each due document in turn, the member’s own first, then each child’s; “Not now” goes on to the app. |
| native-base | native | base layer | The native base layer’s look, in one place: change these to the company’s brand. |
| native-my-agreements | native | base layer | My agreements (stage 44 step 5), for the mobile app: what the signed-in member and each child linked to them has agreed to (the document, the version, when, how and by whom), what is due (with a notice when a document changed), the signed PDF, and a health form’s answers to update. |
| native-sign-in | native | base layer | Sign-in with a code by email, for the mobile app. |
| programs-bank | web | programs | The exercise bank (stage 41): browse and search the gym’s exercises, add one, and edit one with its easier and harder versions. |
| programs-builder | web | programs | The coach’s program builder (stage 41): weeks, sessions, blocks and items, by drag and by keyboard; exercises picked from the bank; typed sets; levels; notes, for coaches or shown to members; copying a week or a session; the working copy saved as the coach goes, with the host’s faults shown where they are; versions, restoring one, publishing, and assigning. |
| programs-class-today | web | programs | A class type’s session for a day (stage 41): its plan with every level, for a member to choose the level they take and log their numbers, or for a coach running the class. |
| programs-coach-client | web | programs | The coach’s view of one client (stage 41): their sessions, newest first, each opened to see what was logged and to log on their behalf, and their progress. |
| programs-history | web | programs | A person’s past sessions (stage 41): newest first, each with its date, its name and how many of its sets were logged; one opened shows it set by set, read-only, with the target beside what was done, and a logged set can be corrected. |
| programs-native-class-today | native | programs | A class type’s sessions for a day, for the mobile app (stage 41): pick the class, open its session to choose the level taken and log (onOpen, the app’s navigation, to the session screen). |
| programs-native-coach-client | native | programs | The coach’s view of one client, for the staff app (stage 41): their sessions, newest first; pressing one opens it to log on their behalf (onOpen, to the session screen with personId). |
| programs-native-history | native | programs | A person’s past sessions, for the mobile app (stage 41): newest first, each with its date, its name and how many of its sets were logged; pressing one shows it set by set, read-only, and a logged set can be corrected. |
| programs-native-progress | native | programs | History and progress, for the mobile app (stage 41): sessions done per program, and per exercise the sets and bests the host worked out; pressing an exercise shows its sets. |
| programs-native-session | native | programs | One session to do, for the mobile app (stage 41): the workout logger. |
| programs-native-today | native | programs | A member’s day, for the mobile app (stage 41): their own sessions on a date; pressing one opens it (the app’s navigation, onOpen). |
| programs-progress | web | programs | History and progress (stage 41): per exercise, a person’s sets over time and their bests; per program, sessions done against planned. |
| programs-session | web | programs | One session to do (stage 41): the workout logger, built on the web base layer. |
| programs-today | web | programs | A member’s day (stage 41): their own sessions on a date, each opened to do it. |
| rostering-away | web | rostering | Everyone’s time off (stage 45 step 7), for someone who rosters: by week, who said they cannot work, with their notes, and adding or ending someone’s time off for them. |
| rostering-checklist | web | rostering | A shift’s checklist (stage 45 step 4b, ADR 0650), for the shiftExtra slot under a shift (my shifts; a rosterer’s week). |
| rostering-checklists | web | rostering | How checklists went (stage 45 step 4b, ADR 0650), for whoever rosters: every checklist run in a range of dates, by checklist and then by date, each with its shift, its person, whether it is open, done, missed or cancelled, how many steps were ticked, how many were ticked for the person by someone else, and the steps nobody ticked when it was missed. |
| rostering-my-availability | web | rostering | My availability (stage 45 step 7), for every rostered person: the times I said I cannot work (leave and other one-off times, and regular time off such as every Wednesday afternoon), to add and to end. |
| rostering-my-calendar | web | rostering | My calendar (stage 45 step 7, over step 5’s feed, ADR 0628), for every rostered person: whether I have a private calendar address for my own shifts, making one (or a new one, which stops the old), and switching it off. |
| rostering-my-shifts | web | rostering | My shifts (stage 45 step 7), for every rostered person: my shifts over the next weeks, day by day, each with its time in the business’s zone, its place, and a button to offer it to everyone who could take it, or to withdraw my open offer. |
| rostering-native-checklist | native | rostering | A shift’s checklist in the app (stage 45 step 4b, ADR 0650), for the native my-shifts’ shiftExtra slot: the same as the web’s, over the native base. |
| rostering-native-my-availability | native | rostering | My availability in the app (stage 45 step 7): the times I said I cannot work, adding leave or another one-off time, or a regular time off (every week on chosen days), and ending one. |
| rostering-native-my-calendar | native | rostering | My calendar in the app (stage 45 step 7, over step 5’s feed, ADR 0628): whether I have a private calendar address for my own shifts, making one (or a new one, which stops the old), and switching it off. |
| rostering-native-my-shifts | native | rostering | My shifts in the app (stage 45 step 7), for every rostered person: a cleaner with the rostering.team role (its role client), a coach whose role client was generated with the grant rostering:roster, or anyone else on the roster. |
| rostering-native-offers | native | rostering | Offered to me, in the app (stage 45 step 7): the shifts the host says I could take now, soonest first, and taking one. |
| rostering-native-roster | native | rostering | The roster in the app (stage 45 step 7), for every rostered person: the week as a day-by-day list on a phone, each day’s shifts in order of start with the kind of work, the place and who is on it, shifts with nobody on them marked and my own marked as mine. |
| rostering-offers | web | rostering | Offered to me (stage 45 step 7), for every rostered person: the shifts others offered that the host says I could take now (I am qualified for the kind of work, free then, and it is before the cut-off), soonest first, and a button to take each. |
| rostering-patterns | web | rostering | The regular week (stage 45 step 7), for someone who rosters: every class series’ coach and duty series’ regular person, day by day, and changing who works one from a date. |
| rostering-pay | web | rostering | Pay (stage 45 step 7), for someone who handles pay, a person only: the pay periods, who is counted and how, a period’s hours and shifts per person and kind of work with each shift’s evidence (its class list taken, by whom, flagged when not by its person), locking a period that has ended, reopening one with why, and its CSV for payroll. |
| rostering-qualifications | web | rostering | Qualifications (stage 45 step 7), for someone who rosters: people down, kinds of work across (each class type, each duty), a tick each. |
| rostering-week | web | rostering | The roster week (stage 45 step 7): a week grid, days across on a wide screen and one under another on a phone, each day’s shifts in order of start with the kind of work, the place and who is on it; shifts with nobody on them marked, my own highlighted, an open offer shown. |
| ticketing-checkout | web | ticketing | Choosing tickets and paying, for a site (stage 27): quantities per ticket type, pay in full or by deposit when every chosen type offers one, then the payment provider’s page. |
| ticketing-events | web | ticketing | The events on sale, and one event’s details, for a site’s events page (stage 27). |
| ticketing-my-tickets | web | ticketing | A signed-in customer’s tickets, for a site (stage 27). |
| ticketing-native-my-tickets | native | ticketing | A signed-in customer’s tickets, for the mobile app’s Tickets tab (stage 27). |
| ticketing-native-scanner | native | ticketing | The door scanner, for the staff app (stage 27): the camera reads a code, the host checks it in, and the screen says clearly let in or not and why, with a haptic, and counts who was let in on this device. |
| ticketing-native-ticket | native | ticketing | One ticket with its code, for the mobile app (stage 27): a QR carrying the code alone, large on a white card, with the screen at full brightness while it is shown and as it was afterwards. |
| ticketing-order | web | ticketing | The page the buyer comes back to from the payment provider (stage 27). |
| ui-button | web | base layer | |
| ui-card | web | base layer | |
| ui-input | web | base layer | |
| ui-label | web | base layer | |
| ui-utils | web | base layer | |
| web-account | web | base layer | My account (stage 48), for the web: the signed-in customer’s own area, one page of sections. |
| web-account-details | web | base layer | Your details (stage 48), for the web: the signed-in customer’s name and phone, to change, and the address they sign in with. |
| web-account-devices | web | base layer | Sign-in and devices (stage 48), for the web: every place the signed-in customer is signed in (browsers and the app on their devices), when each began and was last used, and signing one out. |
| web-account-family | web | base layer | Family (stage 48), for the web: who the signed-in customer acts for (a child linked to them) and who acts for them (a parent or guardian). |
| web-account-orders | web | base layer | Orders (stage 48), for the web: the one list of the signed-in customer’s orders, newest first, each with its state, its lines, tax, deposit, what was paid, what is still to pay and by when, and what was refunded. |
| web-account-payment | web | base layer | Payment method (stage 48), for the web: the card the signed-in customer pays their subscriptions with is kept by the payment provider, and changed on the provider’s page, with their past invoices (subscription.portal). |
| web-account-subscriptions | web | base layer | The subscriptions part of My account (stage 48), for the web: the subscriptions the signed-in customer pays, each with its state in words, the price per period and the next charge or when it ends, and what they can do: cancel at the period’s end, keep a cancelled one going, confirm a payment that waits for them. |
| web-agree | web | base layer | Agree to one document (stage 44 step 5), for the web: the version the host gave, its words, a health form’s questions, the tick label and its box, the typed name and, for a document agreed to by drawing, the signature pad. |
| web-agreements-due | web | base layer | “Before you go on” (stage 44 step 5), for the web: shown after sign-in when the host says something is due (me.agreements.due). |
| web-my-agreements | web | base layer | My agreements (stage 44 step 5), for the web: what the signed-in member, and each child linked to them, has agreed to (each document, the version, when, how and by whom), what is due (with a notice when a document changed and must be agreed to again), the signed PDF, and a health form’s answers to update. |
| web-sign-in | web | base layer | Sign-in with a code by email, for the web app, built on the web base layer. |