DEMO DATA: all schedules, services and prices are fictional. They are not JHC prices or verified departures, and enquiries are not sent.

Local demo: no sign-in27 Nov 2026

← All help and SOPs

JHC-UG-03

Administrator Manual — JHC Logistics Portal

Users, customers, settings, schedule sources, AI, audit, backups, releases.

Draft for reviewVersion 0.1
ItemDetail
Document referenceJHC-UG-03
Version0.1
StatusDraft for review · Internal: restricted to JHC administrators
Prepared27 October 2026
Application version documentedPortal 0.3.0, commit 4d7b861 plus uncommitted working-tree changes of 27 Oct 2026 (JHC-REG-03)
AudiencePortal administrators (part A), and the person responsible for hosting and the database (part B)
Document ownerTo be assigned (JHC)
ApproverTo be assigned
Effective dateNot set: draft
Related documentsSETUP_SUPABASE.md, PILOT_DEPLOYMENT.md, RELEASE_CHECKLIST.md, READINESS_REVIEW.md, AI Feature Guide (JHC-UG-06)

Table 1: Revision history

VersionDateChangeBy
0.127 Oct 2026First administrator manual: users, customers, settings, schedule sources, AI settings, audit, retention, backup, incidents and release checksPrepared with Claude (AI assistant) for JHC review

1. Scope and separation of duties

This manual has two parts:

  • Part A: application administration. Tasks done in the portal's Administration and Settings pages by a user with the Administrator role.
  • Part B: hosting and database. Tasks done outside the portal: on the hosting service, the database service or the command line. They need separate accounts and should be done by the named technical owner (to be assigned).

Never write passwords, set-up links, API keys or database passwords into documents, tickets, chat or email. Where this manual shows a setting, it shows a placeholder such as <your-key>, never a real value.

Pictures come from the TEST set-up on 27 October 2026 (fictional data, practice assistant).

What the portal contains and what it connects to (FLOW-01)
Figure 1: What the portal contains and what it connects to (FLOW-01)

Part A — Application administration

2. Staff users and roles

Creating and maintaining access (FLOW-10)
Figure 2: Creating and maintaining access (FLOW-10)

ADM-01 Understand the roles

StatusA · Verified (roles and permissions read from the database; the Roles table is shown on Users & access)
Roles and their permissions (Users & access)
Figure 3: Roles and their permissions (Users & access)

The full matrix is in the Staff User Manual (JHC-UG-02 §1.1). Key rules:

  • Quotation approval is by a superior (Sales manager or Administrator) and never by the person who prepared or submitted the version. This cannot be switched off. There are no value thresholds.
  • Rate approval: Pricing manager or Administrator. The portal does not prevent the person who drafted a rate from approving it (gap G-05).
  • Supplier costs and margins: Administrator and Pricing manager only.
  • Give each person the fewest roles they need. JHC must have at least two Sales managers or Administrators so a second person can always approve.

ADM-02 Invite a staff member

PurposeCreate a staff account
WhoAdministrator ("Invite staff and change staff roles")
You needFull name, work email, the roles
ResultA one-time set-up link to give privately
RecordAudit history entry
StatusA · Verified
Add a staff member
Figure 4: Add a staff member

Table 2: ADM-02 steps

StepScreenActionExpected resultIf not
1Users & accessEnter Full name (1) and Work email (2)
2Tick the Roles (3)At least one role
3Select Create account and link (4)A notice with the One-time link"This email belongs to…": the email is already used
4Copy the link and give it to the person privately (in person or by private message)The portal sends no email. Never paste links into shared channels
5LaterAsk the person to sign in and confirm their menu matches their duties
The one-time link (fictional)
Figure 5: The one-time link (fictional)
Staff accounts: Edit roles, New set-up link, Deactivate
Figure 6: Staff accounts: Edit roles, New set-up link, Deactivate

Table 3: Staff account maintenance

NeedActionEffectStatus
Different dutiesEdit roles, tick or untick, saveTakes effect immediatelyA
Forgotten password / link expiredNew set-up link (1)A new one-time link to pass privatelyA
Leaves JHC / suspected misuseDeactivate (2)Loses every permission immediately; history keptA
ReturnsReactivateAccess restored with the same rolesB

There is no two-step sign-in (MFA) in the portal. Administrators should use long, unique passwords (gap G-09).

3. Customers and customer users

ADM-04 Add a customer company and its users

WhoAdministrator ("Create customers and manage their users")
ResultThe company, and users who see only that company's enquiries, quotations and agreed rates
StatusA · Verified
Customers: add a company
Figure 7: Customers: add a company

Table 4: ADM-04 steps

StepScreenActionExpected resultIf not
1CustomersEnter Company name (1) and Customer code (2), e.g. ACME-01 (capital letters, numbers, hyphens)"That customer code is already in use."
2Select Add customer (3)The company is listed
3Company pageEnter the user's Full name (1), Email (2) and Access (3)A staff email cannot be used for a customer
4Select Create account and link (4)One-time linkGive it privately
Add a customer user
Figure 8: Add a customer user

Table 5: Customer user access levels

AccessCan
RequesterSee the company's rates and enquiries; submit enquiries
ViewerSee the company's rates and enquiries
Company adminAs Requester. User management by the customer is not built yet (gap G-10)

Table 6: Customer maintenance

NeedActionStatus
A customer user forgot their passwordOn the company page, Create account and link again with the same email: a new link is issued for the existing accountB (built; not exercised for this manual)
A user leaves the customerRemove next to the userA
Company on holdSuspend customer; later Reactivate customerB

Agreed prices for a customer are set in Rate management on that customer's price list (JHC-SOP-02).

ADM-05 Business settings

WhoAdministrator ("Change business settings and legal entities")
StatusA · Verified (pages and saves); JHC's real values: not entered
Business settings (top of page)
Figure 9: Business settings (top of page)

Table 7: Sections of Business settings

SectionWhat to enterCurrent state (development)
Legal entitiesShort name, Registered legal name, Company registration number, Tax registration number, Registered address, Main currency, Can issue new quotationsJHC's real details not supplied (launch blocker 4). Quotations cannot be submitted without a legal entity
Payment termsCode and Approved wording"30 days from invoice issuance." (JHC answer Q1)
Tax codesCode, Name, Rate (%), First day, Last day, Rounding rule, whether tax is calculated On each line, then added up or Once, on the taxed totalNone entered. No tax is applied until JHC finance adds codes
Exchange ratesFrom (1 unit of), To, Rate, Rate date, SourceOnly for an optional reference total on quotations
Quotation approvalShows the fixed rule: every quotation is approved by a superiorNot changeable
Price types shown to the publicWhich display types visitors may seeFixed and "from" on; indicative off (JHC answer Q7)
Currencies, UnitsUnits have a Code, Short name and Shown after a price textSeeded list
Enquiries and personal dataPrivacy notice link (must start with https://)Blank until JHC legal supplies a notice (launch blocker 5)
Pricing rules JHC has not suppliedRead-only list: volumetric factor, weight/measure conversion, part-month storageNot supplied, so those stay "Request quotation"
Legal entities
Figure 10: Legal entities
Price types shown to the public
Figure 11: Price types shown to the public
Quotation approval rule
Figure 12: Quotation approval rule

Service categories, units and locations. Service categories and services are maintained in Service catalogue (JHC-SOP-02 PRC-01). Units are under Business settings. Ports and airports for schedule searches come from the portal's built-in location list; they are not editable in the portal (gap G-11).

5. Appearance

ADM-06 Change the portal's appearance

WhoAdministrator ("Change appearance settings")
ResultA new saved version applied to everyone; earlier versions kept
RecordAudit history; version number
StatusA · Verified
Appearance settings
Figure 13: Appearance settings

Table 8: ADM-06 steps

StepSectionActionExpected result
1OrganisationSet Display name, logo (with Logo description), Public welcome text, Public footer text, Support email, Support phone, Support hoursPreview updates
2ColoursChoose an Approved colour preset, or Custom brand and background coloursThe light and dark previews update; contrast is checked and unsafe combinations are blocked with a reason
3Defaults for everyoneChoose the default theme (Light, Dark or match device) and other defaultsUsers who chose "Organisation default" follow it
4Review the "n unsaved changes" line
5Select Save and apply…Apply to the whole portal?
6DialogSelect Apply changes, or Cancel to keep editing"Saved as version n and applied to the portal for everyone"
7To undo unsaved edits: Cancel changes. To return to the original look: Reset to default, then save
Colours: presets, custom colours and preview
Figure 14: Colours: presets, custom colours and preview
Confirmation before applying to everyone
Figure 15: Confirmation before applying to everyone

Note: Customers can still choose Light, Dark or Match device for themselves (JHC-UG-01 CUS-05).

6. Schedule sources

ADM-07 Monitor and configure schedule providers

WhoAdministrator ("Manage schedule data connections")
StatusPage and settings: A · Verified (TEST stand-in providers). Real provider connections: C · Needs external access: no keys registered and no customer-facing licence
Schedule sources
Figure 16: Schedule sources

For each provider (CMA CGM, Lufthansa, AeroDataBox, and Entered by JHC) the page shows: on or off; whether the key is present (never the key itself); calls used this hour and month against the allowances; the date after which no calls are made; any pause the provider requested; the last answer and last failure; and whether the licence is confirmed.

Table 9: ADM-07 steps

StepActionExpected result
1Open Change settings on a providerIts settings
2Tick Switched on: searches call this provider
3Set Who can see this data. Wider than staff needs the licence confirmation firstRefused without the confirmation
4Save settings"Saved. Searches use these settings from now on."
5Test connection"Connected. The provider answered with n records." or the error
6Check Recent provider calls daily during the pilotFailures and refusals listed

Keys are set by the hosting owner in the hosting secret store (Part B), never in the portal. See SETUP_SCHEDULES.md.

Refresh monitoring. Searches call providers when a user searches; there is no background refresh. Watch Schedule provider failures on the Overview and the call log here. JHC-entered sailings show "may be out of date" if not re-confirmed within 7 days.

7. AI assistance

ADM-08 AI settings and usage limits

WhoAdministrator ("Change AI assistance settings and see AI usage")
StatusB · Built; verified with the practice assistant only. A real AI model: C · Needs external access (no key; model not chosen; legal approval pending)
AI assistance settings (practice assistant)
Figure 17: AI assistance settings (practice assistant)

Table 10: AI settings

SettingMeaningDefault
Switch on the staff enquiry assistant (1)Shows Ask the assistant on staff enquiry pagesOff
Switch on the customer assistant (2)Shows "Describe your requirement" to signed-in customersOff
Stop all AI requests now (3)Emergency stop, immediate, for everyone; release on the same page—
AI model (4)Approved model; none means no real AI request is madeNone chosen
Monthly budget (US$) (5)Estimated spend limit; at the limit the assistants stop until next month10.00
Requests per person per hour / per day; requests at onceUsage limits20 / 100 / 3

Usage: "This month" and Latest requests show who used it, the outcome, time taken and estimated cost. These records contain no enquiry text. Full guide: JHC-UG-06.

8. Audit and retention

ADM-09 Review the audit history

WhoAdministrator ("See the audit history")
StatusA · Verified
Audit history
Figure 18: Audit history

The audit history records who changed rates, quotations, users, customers, settings and appearance, and staff downloads of customer files, with times. Filter by area. Entries cannot be edited or deleted. Review weekly during the pilot, and after any incident.

ADM-10 Retention

Table 11: What is kept, and for how long (as built)

DataRetention
Enquiries, quotations, history, filesNo period set; nothing is deleted automatically. JHC must decide (Q8, PDPA)
Files uploaded but never attached to a sent enquiryDeleted after 3 hours
AI drafts and reviews90 days
AI usage records (no text)12 months
Issued quotation versions and PDFsNever changed; no deletion function

9. Incident handling (application side)

Support and incident handling (FLOW-11)
Figure 19: Support and incident handling (FLOW-11)

Table 12: First actions by incident type

IncidentFirst action in the portalThen
Suspected wrong access or data exposureDeactivate the affected staff account, or Suspend customer / Remove the userPart B: pause the project if needed; keep the audit history as evidence
AI behaving wronglyStop all AI requests nowReview Latest requests; report
Schedule provider giving bad dataSwitch the provider off in Schedule sourcesReport to the provider
Wrong published priceWithdraw the rate (JHC-SOP-02)Publish a corrected version
Wrong issued quotationCreate revision; tell the customerThe issued version stays on record

Part B — Hosting and database (technical owner)

These tasks are outside the portal. Production hosting does not exist yet (launch blockers 1 to 3, 13). Commands are run on the administrator's computer from the project folder. They read settings from .env.local (development) or .env.pilot.local (production), which must never be shared or committed.

Table 13: Hosting and database tasks

TaskHowStatus
Check settingsnpm run setup:check (development) / npm run pilot:check (production). Never prints secret valuesA (development)
Apply database updatesnpm run db:migrate (development) / npm run pilot:migrate (production)A (development, 27 Oct 2026: Stage 11 applied)
Verify access rules on the real databasenpm run db:verify / npm run pilot:verify (all changes rolled back)A (development: 74/74 on 27 Oct 2026)
First administratornpm run admin:setup -- <email> "<name>"; later links npm run admin:link -- <email>A (development)
Database backupSupabase Pro daily backups, kept 7 days. The development project is on Free: no backupsConfigured capability: not available yet
File backupnpm run storage:backup (development) / npm run pilot:backup-files (production), weekly and before updates, to an encrypted driveA: file copy tested on development, 27 Oct 2026
Restore testPILOT_DEPLOYMENT.md §5: add a "RESTORE TEST" item, restore, confirm it is gone, pilot:verifyNever performed. Restore is not verified
Uptime monitoringMonitor https://<portal-address>/health for "database":"ok"Not set up (needs the live address)
Update the portalPILOT_DEPLOYMENT.md §7Procedure written, not exercised in production
RollbackHosting "Instant Rollback"; database: corrective update, or restore as a last resortProcedure written, not exercised
Keys (schedule providers, AI)Hosting secret store only, e.g. ANTHROPIC_API_KEY=<your-key>Not registered

ADM-11 Release checks before any release

Follow RELEASE_CHECKLIST.md. Minimum before inviting pilot users:

  1. All automated tests pass, including the signed-in browser tests consistently (blocker 15 still open).
  2. npm run pilot:check reports no blockers; npm run pilot:verify passes on production.
  3. Restore test done and recorded.
  4. JHC data entered: legal entity, services, rates, privacy notice, support contact.
  5. User acceptance test signed (UAT_CHECKLIST.md and JHC-UG-09).