Skip to main content

Admin Portal — Introduction

The Admin Portal (internally called Pegasus One Admin) is the internal management interface for ChartChat. It is used by administrators to manage hospitals, SSO integrations, support tickets, reports, patients, users, bots, and system configuration.

Patients never access this portal — it is for internal staff only.

What it is built with

TechnologyPurpose
React + TypeScriptUI framework
ViteBuild tool and dev server
Mantine UIComponent library
Medplum React SDKAppShell, FHIR data, auth
React RouterClient-side navigation
Chart.jsBar charts in the Reports section
Tabler IconsIcon set

Where the code lives

packages/chartchat-admin/
src/
App.tsx ← root component, navbar menu, layout
AppRoutes.tsx ← all route definitions
config.ts ← environment configuration
admin/ ← project admin pages (users, bots, clients, etc.)
hospitals/ ← hospital integration management
sso/ ← SSO integration management
support/ ← support ticket management
reports/ ← analytics and reporting pages
lab/ ← lab assays and panels
audit/ ← audit log
resource/ ← generic FHIR resource browser pages
components/ ← shared UI components

How to run it locally

cd packages/chartchat-admin
npm install
npm run dev

Opens at http://localhost:3000 (or the next available port).

Make sure the server is running first at http://localhost:8103.