StandardsNow · Build Reference

App Function Index

Every screen, backend function, data entity and component. Tap a screen to open it.

298 / 298 shown

Pages & Screens

46
The app's screens, grouped by who uses them. Tap to open. 'no route' means an internal or legacy screen that is not in this app's nav.

Shared 19 screens

Home/Home ›

The orb 'venue brain' home screen with three live rings and quick-log actions.

Checklists/Checklists ›

The daily/weekly/monthly checklist screen staff use to run and complete task lists.

Issues/Issues ›

The issue inbox where staff log, search, filter, and track issues through their lifecycle.

DailyHuddle/DailyHuddle ›

A shift-block board where the team posts and reads the day's huddle notes.

LostAndFound/LostAndFound ›

Log, track, and claim lost-and-found items with photos, categories, and a 30-day rule.

Guide/Guide ›

A bilingual how-to FAQ explaining checklists, issues, and lost-and-found.

MyData/MyData ›

Privacy screen showing what data is stored about the user and letting them export or delete it.

Profile/Profile ›

User profile editor for name, photo, notification prefs, and emergency contact.

Settings/Settings ›

The settings menu linking to profile, property, language, notifications, and management tools.

LogoutScreen/LogoutScreen ›

A branded goodbye splash with a glowing logo shown on sign-out.

WhyStandardsNow/WhyStandardsNow ›

A mission/positioning page explaining the product's risk-detection difference and sales talking points.

Emergency/Emergency ›

The live emergency status board. Managers fire the six alert types, see the safety roll call and send all clear. Workers see the alert and acknowledge. 911 on both.

About/About ›

A bilingual scrolling walkthrough of the four-step loop, with sample screens and a button to replay the guided tour.

Accessibility/Accessibility ›

Lets a user set text size, high contrast, read-aloud, visual and haptic alerts, and sound cues, saved to their account.

EmergencyAlert/EmergencyAlert ›

An earlier alert sheet, superseded by the Emergency screen and not in active use.

Index/Index ›

The searchable build reference listing every screen, backend function, data entity, component folder and lib, with screens tappable to open.

OAuthConsentno route

The approve or deny screen for an AI client asking for access to app data. Not yet connected to a live consent flow.

Security/Security ›

The security issue board where staff read active and resolved security issues, group them, log new ones, and hit the panic button.

logono route

Not a screen. A three-line file in the pages folder exporting the logo image as base64, routed nowhere and imported by nothing.

Worker 3 screens

MyCraft/MyCraft ›

A worker's personal record: shifts logged, compliance, streak, milestones, and passport.

WorkPassport/WorkPassport ›

Shows a worker's portable, verified milestones and shift-streak progress.

WorkerIssueScreen/WorkerIssue ›

The worker-facing screen to view and act on issues assigned to them.

Manager 13 screens

HolidayAlerts/HolidayAlerts ›

Shows upcoming holidays and cultural events with staffing and demand impact notes.

ManagerDashboard/ManagerDashboard ›

Manager overview of team compliance, open issues, pending reviews, and staff on shift, plus the Venue Memory card with the nightly engine's three predictions.

ManagerIssueView/ManagerIssues ›

Manager-only issue workspace with inbox, assign, and verify sub-screens.

Team/Team ›

Manager team dashboard listing team members, tap to view a member.

VenueCombined/Venue ›

The current venue screen combining compliance, pulse alerts, history, and trends.

AIActivity/AIActivity ›

Shows a log of every AI suggestion the app made, filterable by the thumbs up/down feedback given elsewhere in the app.

ManagerHome/ManagerHome ›

An older manager home screen with the Fibonacci orb and rings.

Venueno route

An older venue hub menu linking to holiday alerts, lost and found, issues, and the manager dashboard.

VenueBrainno route

An older venue intelligence screen with pulse alerts, trends, and weather risk.

Budget/Budget ›

Shows this month's spend against the plan as a budget orb, with a spend log managers add entries to.

SlackSettings/SlackSettings ›

Lets leadership switch on Slack alerts, choose default and critical channels, set the digest cadence, and send test messages.

ValueModel/ValueModel ›

The cost centre screen showing real money lost to downtime, response labour, turnover, and budget, with trends and an export.

ShiftReports/ShiftReports ›

The Opening and End of Night report board. Owner, GM and AGM read each venue's opening and closing checklist results, open issues and emergency events, and send a report to the daily huddle in one tap.

Admin 5 screens

ChecklistAdmin/ChecklistAdmin ›

Lets an admin create, edit, and delete checklist templates by category, industry, and venue.

TranslationReview/TranslationReview ›

Admin screen to review, edit, approve, or reject AI-generated Spanish translations before they go live.

DataRequests/DataRequests ›

Admin queue for handling user data-export and deletion requests.

IntegrationControls/IntegrationControls ›

Admin console to approve, suspend, or revoke outside integrations, manage their scopes and tokens, and read the access audit trail.

ReviewerInsights/ReviewerInsights ›

Admin view of how each flagged reviewer explored the app: time spent, sessions, revisits, top pages, and feature taps.

Public 6 screens

ForgotPassword/forgot-password ›

A spinner screen at the password-reset email link that hands the user straight to the platform's own sign-in flow.

LandingPage/LandingPage ›

The public marketing page explaining the product, with sign-in for existing accounts and a jump to Home when already signed in.

Login/login ›

The email and password sign-in form with a Google option, on a dark card since APPAUDIT-0902. Routed at /login; forgot-password and register links resolve.

Register/Register ›

The client sign-up wizard: language first, then tier, company and owner with email verification, vertical, first venue, team invites and a seeded bilingual checklist library.

AcceptInvite/AcceptInvite ›

The invite landing where a team member opens their emailed link, verifies their email, and joins their venue.

ResetPassword/reset-password ›

A placeholder spinner at the reset-password email link that the platform replaces with its own reset form.

Backend Functions

55
Serverless functions on Base44 that score venues, fire alerts, seed sample data, translate, and guard data. Reference (run server-side).

Venue Brain / Scoring 2 functions

calculateVenueBraincalled-by-UI

Calculates the home orb's three rings (today, 7-day, all-time compliance) for a venue from checklists and issues.

triggerVenueBrainRecalccalled-by-UI

Automation trigger that recomputes one venue's orb rings when a checklist or issue changes.

AI & Intelligence 5 functions

detectRepeatIssuecalled-by-UI

When a new issue is logged, checks the last 30 days for matching issues at the same location/asset and flags the chain as repeating.

aiTelemetrycalled-by-UI

Stores telemetry and thumbs up/down feedback from AI calls, and gives admins a 7-day failure report.

venueMemoryEnginescheduled/cron

Nightly job that reads each venue's last 30 days of checklists and issues through a field whitelist (never a named field), computes three predictions (a checklist likely to be missed today, an issue likely to breach its due window, next week's completion rate) with a statistical confidence, has Claude phrase them in English and Spanish, and parks the result on VenueBrainState.memory for the Manager Dashboard card.

invokeClaudecalled-by-UI

Server-side Claude proxy that keeps the API key out of the browser and routes every in-app AI call to a smart or fast model.

logAIRuncalled-by-UI (service role)

Writes every AI run, including failures with their error detail, to AILog as service role so logging cannot silently fail on the caller's permissions.

Alerts & Notifications 12 functions

certExpiryAlertsscheduled/cron

Emails and notifies staff (and their managers) when their certifications are expiring or expired.

escalateAgingIssuesscheduled/cron

Nightly job that stamps overdue issues and escalates them by tier (7/14/30 days), pinging managers once per tier.

pulseAlertEnginescheduled/cron

Daily scan that creates Pulse alerts for repeat equipment failures, location hotspots, and department compliance drops.

shiftEndSummaryscheduled/cron

Nightly job emailing each manager an end-of-day summary of their team's completed/incomplete checklists and pending actions.

highPriorityIssueAlertcalled-by-UI

When a high or urgent issue is created, emails and notifies all managers/admins.

notifyFixClaimedcalled-by-UI

When an issue moves to pending_verification, notifies venue managers that a fix needs their confirmation.

fireEmergencyAlertcalled-by-UI

Blasts an emergency (or all-clear) to all active staff by in-app notification and Twilio SMS, and logs it.

createPulseAlertcalled-by-UI (service role)

Internal helper that creates a PulseAlert record using service role to bypass RLS.

escalateIssueAlertcalled-by-UI (service role)

Raises an issue's escalation tier by one, capped at three, and notifies that venue's managers with a bilingual alert naming only task and location.

fireSecurityAlertcalled-by-UI (service role)

On an urgent security report, alerts venue leadership and security plus the reporter's direct manager with a bilingual message naming only the location.

resolveSecurityAlertcalled-by-UI (service role)

Closes the panic loop by resolving a venue's open panic issues and telling leadership and security it is over. Management and security roles only.

weatherAlertEnginecalled-by-UI (service role)

Checks every active venue against Open-Meteo forecasts and official NWS alerts, then creates a WeatherAlert and posts a playbook checklist to the daily huddle.

Compliance & Reporting 13 functions

mutationValidatorcalled-by-UI

Checks role permissions before a data change, logs it with a trace ID, and returns which dashboards to refresh.

sendDailyComplianceSummaryscheduled/cron

Emails managers/admins a daily digest of open, urgent, overdue, and resolved issues plus checklist compliance rate.

weeklyTrendReportscheduled/cron

Monday-morning job that builds a per-venue 30-day trend report (equipment, hotspots, shift, weather, department compliance) and emails owners.

acknowledgeMilestonecalled-by-UI (service role)

Lets a worker claim their own work passport milestone, checking the record's email matches the caller before flipping its acknowledged flag.

gatedWritecalled-by-UI

Server-side bouncer for Issue, ChecklistCompletion, ActionItem and HuddleItem writes, refusing Law 1 violations and off-network edits, then stamping audit fields.

setVenueMoneycalled-by-UI

Server-side money gate: verifies the caller is an owner, GM, AGM, or admin via TeamMember.role, then writes CostSettings rates and monthly Budget amounts with service privileges and records each rate change in CostSettingsChange.

syncAssignedLocationscalled-by-UI

Recomputes a person's User.assigned_locations as the union of the venue_id on every TeamMember row carrying their email, so the venue-scoped read rules on Venue, Location, Issue and Comment can see them. Skips admins, who rely on the admin exception, and reads every write back before reporting it done.

law1Gatemanual/admin

Standalone Law 1 validator and admin sweep that refuses named worker verdict fields. Nothing currently calls it; the live gate is inside gatedWrite.

responseLaborAggregatecalled-by-UI (service role)

Returns a venue's monthly response labour cost as whole-dollar aggregates only, never per-person figures, and only for managers, GMs and admins.

track-viewhttp webhook

Public no-auth beacon that records a single page view and skips bots by user agent. Nothing in the app currently calls it.

trackReviewerActivitycalled-by-UI (service role)

The only writer of ReviewerActivity, accepting one event or a capped batch from confirmed reviewer accounts and persisting them as service role.

verifyNetworkPresencecalled-by-UI

Checks the request's source IP against a venue's registered ranges and returns a verdict, still allowing writes when no network is registered or the caller is exempt.

buildShiftReportcalled-by-UI

Builds the bilingual Opening or End of Night report when a venue's opening or closing checklist set completes, notifies the venue's owner, GM and AGM, and mints the openings-and-closings passport milestone. A 3am backstop mode writes the End of Night with the incomplete list when closing never finished.

Sign-up & Accounts 3 functions

completeSignUpcalled-by-UI

Finishes client sign-up server-side: creates the Account, first Venue, the signer's owner TeamMember, the seeded bilingual checklist library and team Invites, cuts the signer's venue key, and sends invite emails; every write is read back before being reported.

acceptInvitecalled-by-UI

Validates an invite token (7-day expiry enforced), creates the invitee's TeamMember row at the invited venue, marks the invite accepted, and recomputes their venue access.

sendTeamInvitecalled-by-UI

Sends one team invite from the Team page: verifies the caller is a manager or admin, creates the 7-day-expiry invite record or re-sends a pending one's same link, and emails the bilingual invitation.

Translation/Language 3 functions

transcribeAndTranslatecalled-by-UI

Takes recorded audio, transcribes it with Whisper, detects the language, and returns English/Spanish versions.

autoTranslateChecklistcalled-by-UI

Auto-translates one checklist template to Spanish via OpenAI and stages it for human review.

bulkTranslateChecklistsmanual/admin

Finds all English-only templates and translates them to Spanish in batches, auto-approving them.

Seeding/Sample Data 2 functions

refreshSeedDatascheduled/cron

Nightly seeder that writes one day's batch of seed records for the two showcase venues, stacks on prior days, and sweeps seed rows past 90 days.

seedKnowledgeBasescheduled/cron

Idempotently seeds the baseline bilingual knowledge article library, skipping any article whose title already exists and never touching staff-authored content.

Data Maintenance 3 functions

logVenueHistorycalled-by-UI

Creates a VenueHistory event record (with shift, weather, day-of-week) when things happen in the app.

enforceRetentionscheduled/cron

Deletes operational records older than retention windows, while never touching audit records.

releaseTemplatesmanual/admin

Marks all unreleased templates as released and deletes ones missing role/industry.

Integration/Feed 10 functions

getActiveVenuescalled-by-UI (service role)

Returns all active venues (works around a Venue read issue by using service role).

weatherFeedcalled-by-UI

Fetches current weather from Open-Meteo and returns it plus an operational alert (wet floors, secure furniture, etc.).

callIntegrationmanual/admin

The only outbound integration path, running the token, approval, scope and Law 1 field checks in strict order and auditing every call.

decideIntegrationApprovalcalled-by-UI (service role)

Records an admin's approve or reject decision as an immutable approval row with a snapshot of the scopes active at that moment.

issueIntegrationTokencalled-by-UI (service role)

Generates an integration token for an admin, returns the raw value exactly once, and stores only its salted hash, last four, scopes and expiry.

issueSlackTriggerhttp webhook

Handles Issue create and escalation events, assembles a name-free payload for postToSlack, posts once per issue, and never blocks the underlying write.

postToSlackcalled-by-UI (service role)

Governed Slack sender that reruns the integration gate, builds an alert or digest from contract fields only, and audits every attempt without throwing.

receiveIntegrationWebhookhttp webhook

Verifies an inbound webhook's HMAC signature against the integration secret, then applies the same contract, scope and Law 1 checks before accepting it.

rotateIntegrationTokencalled-by-UI (service role)

Marks an integration token rotated, issues a replacement linked back to it, returns the new raw token exactly once, and audits the rotation.

sendSlackDigestscheduled/cron

Hourly job that aggregates open counts, resolved counts and compliance percentage, then sends a daily or shift digest to Slack when the configured time matches.

Testing & Diagnostics 2 functions

healthmanual/admin

Health probe that runs the AI prioritizer on a sample issue and logs it.

purgeTestRecordsmanual/admin

Deletes every record flagged is_test_record across the sign-up entities after a test walk, service-role and owner-gated, then re-cuts the caller's venue access to the real venues only.

Data Entities

98
The record types the app reads and writes, grouped by domain. Reference.

Core Operations 11 entities

Issue

A reported problem at a venue, with priority, status, and assignment.

ChecklistTemplate

A reusable checklist definition with its list of items and assigned roles.

ChecklistCompletion

A filled-out checklist for a venue on a given day, with each item's result.

ActionItem

A task raised by staff that needs approval and follow-up across departments.

Comment

A comment left on an issue, with author and mentions.

ChatMessage

A message in a conversation attached to an issue or asset.

HuddleItem

A note or talking point posted for a venue's team huddle.

SNIssueLog

A lightweight StandardsNow issue record with severity and status.

AutomationRule

A rule that fires an automatic action when a trigger or inactivity condition is met.

FacilityLocation

A physical facility with its address, type, and timezone.

Location

A geofenced location with coordinates, wifi, and IP ranges for presence checks.

People & Teams 6 entities

TeamMember

A staff member with their role, venue, reporting line, and shift times.

User

An app user account with role, permissions, and assigned locations.

WorkPassportMilestone

A milestone in a worker's record, like shifts completed, in two languages.

Account

The client company account created at sign-up, holding tier, vertical, venue cap, primary language, the 30-day pilot clock, and the owner.

Invite

A pending team invitation with its token, venue, role, language, 7-day expiry, and accepted state.

StaffDeparture

A team member leaving a venue, recorded by date and role category with no names, by design.

Assets & Maintenance 4 entities

Asset

A piece of equipment being tracked, with its cost, warranty, and status.

AssetHistory

A dated event in an asset's life, like a repair, cost, or status change.

MaintenanceSchedule

A planned or AI-suggested maintenance job for an asset.

SensorData

A sensor reading from an asset, flagged if it looks anomalous.

Venue Brain & Scoring 8 entities

Venue

The master record for a venue, with brand, vertical, and address.

VenueBrainState

The live orb state for a venue holding the inner, middle, and outer ring numbers, plus the nightly Venue Memory predictions in its memory field.

VenueHistory

A logged event in a venue's history, with who logged it and when.

RecurrenceIndex

A score of how often problems keep recurring at a location.

ReworkCostAnalysis

An analysis of the cost of redoing work at a location.

ShiftStaffingImpact

Links a shift's staffing level to how well work was executed.

StaffingProfitabilityLink

Connects staffing choices at a location to margin and profit impact.

VerticalRiskProfile

Risk configuration for a location tuned to its industry vertical.

AI & Predictions 10 entities

FailurePrediction

An AI forecast of when and how an asset is likely to fail.

PredictionFeedback

Compares a past prediction to what actually happened to score accuracy.

TrendPrediction

A forecast of when a recurring trend or issue will happen next.

OperationalPattern

A detected recurring pattern across issues that may signal a systemic problem.

RecurrencePattern

A detected pattern of a specific problem recurring at a location.

PhotoAnalysisResult

AI vision results checking a submitted photo for compliance and cleanliness.

ChecklistItemSignalValue

AI analysis of how much a single checklist item is actually worth keeping.

WorkflowOptimizationSuggestion

An AI suggestion to change a workflow, with expected efficiency gain.

AIDecisionLog

Records each decision the AI made for a venue, why it made it, and how sure it was.

AILog

Stores every AI feature call with its prompt, model, response, and user feedback.

Compliance & Audit 5 entities

AuditEvent

A tamper record of who changed what data, with before and after values.

AuditLog

A readable log of user actions across the app with old and new values.

OperationLog

A system telemetry record of an operation's speed, errors, and severity.

ComplianceAudit

A compliance check of an asset against frameworks, with score and violations.

RemediationTask

A fix-it task created from a compliance violation.

Knowledge & Intel 9 entities

KnowledgeArticle

An in-app how-to or reference article, sometimes AI-generated.

IndexTutorial

One Index tutorial clip: the screen it tours, theme, language, and its video file in the app store.

ArticleRating

A user's rating and feedback on a knowledge article.

ExternalArticle

A knowledge article pulled in from a connected external source.

ExternalKnowledgeBase

A linked external knowledge source with its auth and sync settings.

IntelItem

A news or intel headline pulled in and screened for value.

IntelSource

A news source with its reliability score and vote counts.

FeedbackLog

A vote on an intel source's usefulness, with reason.

WeatherPlaybook

A set of before, during, and after actions for one weather condition and venue type.

Notifications & Alerts 11 entities

Notification

A single in-app notification sent to a user.

NotificationPreference

A user's settings for which alerts they get and when.

SNNotification

A bilingual StandardsNow notification for a recipient at a property.

AnomalyAlert

Flags when a tracked metric drifts far from its normal baseline.

OperationalAlert

An alert about a repeating operational problem at a venue.

PulseAlert

A venue pulse alert about a repeating condition needing attention.

VenuePulseAlert

A venue pulse alert about a recurring condition for a target audience.

WeatherAlert

A weather warning and its likely impact on operations.

TeamAlertLog

A record of a broadcast alert sent to a team.

EmergencyEvent

A live emergency fired at a venue, with type, active or cleared status, and expected headcount. Can never be deleted.

TeamAlertAck

One person acknowledging one emergency event, used as a safety roll call, never as a metric. Write-once.

Inventory 2 entities

InventoryItem

A stocked part with its quantity, reorder point, and supplier.

InventoryTransaction

A single stock movement in or out, with the new stock level.

Onboarding 4 entities

OnboardingProtocol

A new hire's full onboarding plan with dates and progress.

OnboardingTask

A single required task in a new hire's onboarding, with due window.

OnboardingAlert

A time-sensitive alert about a new hire's onboarding task.

VerticalTemplate

A pre-built template for a given industry vertical and rollout phase.

Trials & Investor 4 entities

WalkthroughActivityLog

Logs what a trial user did and how far they got in the walkthrough.

WalkthroughSession

One invited prospect's guided product walkthrough: who was invited, which steps they completed, and when. 0 records live.

DemoSession

An older prospect walkthrough session record: invite, recipient, steps completed and timing. Superseded by WalkthroughSession, 0 records live, kept for schema history.

DemoActivityLog

An older per-event log of a prospect's walkthrough: sign-up, verification, login, stage reached and checklist events. Superseded by WalkthroughActivityLog.

Consent & Privacy 5 entities

DataConsent

A record that a user agreed to a specific data consent version.

DataRequest

A user request to access or delete their data, with its status.

VoiceConsentAck

A record that a user agreed to voice recording consent.

VoiceRecordingSession

A logged voice recording session with duration and transcript link.

WorkerRecordExport

An export of a worker's records with a download link and expiry.

Integrations 8 entities

ExternalIntegration

A connection to an outside system with its keys, sync status, and record count.

IntegrationDataMapping

Rules mapping outside fields to app fields for an integration.

Integration

A connected outside vendor system, with status, data in and out contracts, and rate limit.

IntegrationApproval

A request to enable an integration, with the decision, approver, and a snapshot of scopes. Write-once.

IntegrationAuditEvent

A logged integration call, with direction, operation, actor, and outcome such as denied or rate limited. Write-once.

IntegrationScope

One permission granted to an integration, with its direction, who granted it, and active flag.

IntegrationToken

A credential issued to an integration, holding its hash, last four, scopes, expiry, and status.

SlackConfig

The app-wide Slack alert settings, covering channels, digest cadence, and whether outbound alerts are enabled.

Budget & Cost 4 entities

Budget

A venue's spending target for one calendar month, with the budgeted amount and optional owner notes.

BudgetEntry

A single logged spend at a venue, with date, amount, category, and who logged it.

CostSettings

A venue's owner-set cost rates and priority weights used to price downtime and staff replacement.

CostSettingsChange

One rate change on a venue's CostSettings: the field, old and new value, when, and the role that changed it. Never a person identifier.

Reporting 7 entities

CustomDashboard

A user-built dashboard layout of chosen widgets.

ExecutiveBrief

A rolled-up leadership summary of top risks, repeat issues, and open items.

TrendReport

A periodic report of trends in equipment, staff, weather, and compliance for a venue.

ReportSchedule

A saved schedule for automatically running and sending a report.

PageView

A single anonymous page view, with path, referrer, device, and an in-memory visitor hash.

ReviewerActivity

One tracked reviewer action, such as a page enter, exit, or feature tap, with duration. Only a backend function can write it.

ShiftReport

One Opening or End of Night report per venue per date, what and where only, with whether it was sent to the huddle.

Component Modules

60
The UI is built from these component folders. Each row is one folder and what it does. Reference.
components/ui51 files

The shared shadcn-style design-system primitives (buttons, dialogs, inputs, etc.).

components/ai40 files

AI engines and panels for predictions, root-cause analysis, drill-downs, and resolution suggestions.

components/root-level22 files

Top-level shared components: nav, guards, error handling, the orb, and passport widget.

components/assets17 files

Equipment/asset tracking: detail views, health charts, lifecycle, and maintenance history.

components/home16 files

Home-screen building blocks: the orb ring, next task, weather bar, quick log, and view-as switcher.

components/production16 files

App infrastructure: caching, logging, metrics, rate limiting, and query management.

components/reports13 files

Report builders and dashboards for issues, assets, KPIs, and predictions.

components/issues11 files

Issue cards, detail, comment thread, and the manager assign/verify/inbox screens.

components/knowledge11 files

AI-built knowledge base: article generation, ratings, suggestions, and search.

components/costcenter10 files

Cost Centre cards showing money kept and at risk, the records behind each figure, rates, and exports.

components/dashboards10 files

Configurable dashboards and drill-down modals for managers and technicians.

components/maintenance10 files

Predictive maintenance: failure forecasts, schedulers, and calendars.

components/team9 files

Team tools: skills mapping, certifications, capacity, emergency contacts, and the email invite sheet.

components/weather7 files

Weather widget, alert banner, and shared weather context.

components/analytics6 files

Charts, KPI cards, and report tools for looking at trends and fleet health.

components/checklists6 files

The pieces that run checklists: the runner, photo capture, sign-off, and review queue.

components/capture5 files

Quick input tools for logging via photo, voice, type picker, and due-date presets.

components/notifications5 files

The notification bell, event handling, preferences, proactive maintenance alerts, and push setup.

components/a11y4 files

Screen-reader announcements, read-aloud buttons, visual and haptic alert cues, and accommodation profile sync.

components/compliance4 files

Audit engine, release gate, and remediation planning/tracking for compliance.

components/intel4 files

Venue-intelligence feed cards, reliability badges, and thumbs-down feedback.

components/valuemodel4 files

The ROI projection calculator: sliders, system-set rows, and the live verdict panel.

components/automation3 files

Background rules that auto-run tasks like inactivity checks and maintenance scheduling.

components/field3 files

Field-technician views for assets and task maps.

components/fleet3 files

Fleet-wide status rows, alerts, and summary bar.

components/integrations3 files

Cards and config for connecting outside systems and mapping their data.

components/inventory3 files

AI predictors for parts and stock, plus inventory insights.

components/location3 files

Manages the offline action queue tied to location.

components/permissions3 files

Role-permission config, guard, and a permissions hook.

components/sensors3 files

Live sensor monitoring, alerting, and data widgets.

components/voice3 files

Voice-note recording with a consent gate and recording banner.

components/webtraffic3 files

KPI cards, a daily views bar chart, and ranked top pages and referrers. Built but not wired to any screen.

components/branding2 files

Configurable branding and a hero banner for white-label setup.

components/budget2 files

The monthly spend log with add, edit and delete, plus the recalculation pulse after a save.

components/fieldlog2 files

Field logging forms and a required-checklist gate.

components/mobile2 files

Mobile touches like page transitions and pull-to-refresh.

components/offline2 files

Stores and syncs data when the device is offline.

components/pwa2 files

Install prompt and service-worker management for the web app.

components/reviewer2 files

The reviewer-mode banner saying nothing is saved, plus page-visit and time-on-page tracking.

components/security2 files

The hold-to-fire panic alert button and a grouping of security issues by area or type.

components/audit1 file

Logs important actions for the audit trail.

components/auth1 file

Guards routes so only signed-in users can see them.

components/brand1 file

The locked wordmark v2 component, Wordmark.jsx (BRANDFIX-0827). The ST shield image itself is served from public/brand via constants.js LOGO_URL and LOGO_TRANSPARENT.

components/communication1 file

In-app team chat.

components/consent1 file

The data-consent pop-up.

components/craft1 file

A worker's own issue activity grouped by status, with plain counts and no scores.

components/huddle1 file

The form for posting a daily huddle note.

components/memory1 file

A search bar for venue memory.

components/nav1 file

The top-nav avatar.

components/navigation1 file

Manages tab navigation state.

components/operations1 file

Tracks operational actions.

components/profile1 file

User notification preferences panel.

components/recurrence1 file

A modal for marking recurring disease/hazard markers.

components/scanner1 file

The QR-code scanner.

components/settings1 file

The delete-account section.

components/setup1 file

Docs for vertical-specific risk profiles.

components/shift1 file

The end-of-shift prompt.

components/standards1 file

Analytics dashboard for checklist templates.

components/theme1 file

The floating sun and moon button that switches between Day and Night.

components/workorders1 file

Bulk actions for work orders.

Lib, Hooks & Utils

39
Shared plumbing: auth, language, offline queue and the helpers every screen leans on.
lib/AccessibilityContext.jsx

Holds the low-vision prefs: text scale, high contrast, read aloud, alert cues, and sound.

lib/AuthContext.jsx

Provides sign-in state, the current user, and public app settings to the whole app.

lib/LanguageContext.jsx

Holds the English/Spanish language choice and the translation strings.

lib/NavigationTracker.jsx

Logs which page the user visits for activity tracking.

lib/PageNotFound.jsx

The fallback screen for an unknown route.

lib/RecordingContext.jsx

Tracks whether a voice recording is active and its stop handler.

lib/ThemeContext.jsx

Holds the Day or Night theme choice and applies it to every screen.

lib/VenueContext.jsx

Holds the active venue and its switcher, and pins floor staff to their own venue.

lib/ViewAsContext.jsx

Lets GM/AGM preview the app as another role (display only, never real permissions).

lib/accessProfile.js

Stores accessibility settings on the person's record so they follow them across shared devices.

lib/app-params.js

Reads app parameters from the URL or local storage.

lib/authReturnTo.js

Resolves the returnTo link after sign-in to a safe same-origin path.

lib/costcenter/

The Cost Centre engine: the money math, its bilingual strings, and the defensibility pack builder.

lib/emergency.js

The six emergency alert types with their English and Spanish labels and worker instructions.

lib/greetingGate.js

Decides whether to show the greeting, once per session/day.

lib/home/

The Home screen's own stylesheet, its logo image data, and the page-curl transition.

lib/integrationLabels.js

English and Spanish labels for the Integration Controls screen, including every refusal reason.

lib/isManager.js

Single source of truth for whether a role counts as a manager.

lib/outroBridge.js

Lets sign-out trigger the orb shrink-out animation without a shared React context.

lib/query-client.js

Configures the React Query client (caching and retry rules).

lib/resolveRole.js

Single source of truth for a person's effective role, falling back to their job title.

lib/reviewer/

Reviewer mode: detection, the nothing-is-saved write guard, and activity and tour-step tracking.

lib/roleDisplay.js

Maps raw role codes to friendly display names.

lib/sensory.js

The visual sensory layer: the amber shift-halfway checklist nudge and the page-sweep timing.

lib/sensoryAudio.js

The sound layer: built-in audio cues for resolved work, emergencies, and page thresholds.

lib/ttl.js

Stamps transient signal records with the standing 72 hour expiry before they are written.

lib/useGoBack.js

Goes back a page, or to Home when there is no history to return to.

lib/useSpeak.jsx

Reads text aloud in English or Spanish, one utterance at a time.

lib/utils.js

Small helpers like the cn() classname merger and an iframe check.

lib/valuemodel/

Seeds two Value Model inputs from the venue's live issue data.

hooks/use-mobile.jsx

Tells components whether the screen is mobile-sized.

hooks/useOfflineQueue.js

Queues actions in IndexedDB when offline and syncs them later.

hooks/usePanicAlert.js

Fires and resolves the one-tap panic alert, refusing when no venue can be resolved.

hooks/useTranslatedIssues.js

Translates issue titles/locations to Spanish with an in-memory cache.

utils/NOTIFICATION_COPY.js

The canonical notification message templates.

utils/aiLogger.js

Logs each AI call to the AILog entity and returns its ID for feedback.

utils/formatTime.js

Converts 24-hour times to 12-hour AM/PM.

utils/index.ts

Turns a page name into its route URL.

utils/passportMilestones.js

Defines work-passport milestone thresholds and their messages.