brand: implement MediAsset AI identity and XYZ Hospital palette
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# Poona Hospital Asset Management System
|
||||
# XYZ Hospital Asset Management System (MediAsset AI)
|
||||
|
||||

|
||||

|
||||
|
||||
A centralized Hospital Asset Management and Maintenance System for Poona Hospital and Research Centre.
|
||||
A centralized Hospital Asset Management and Maintenance System for XYZ Hospital, powered by MediAsset AI.
|
||||
|
||||
> **Brand Clearance Notice**: *The name, tagline, logo concept, and palette are proposed brand assets and remain subject to clearance.* See [BRAND_GUIDELINES.md](file:///c:/Users/abhil/Desktop/Medasset_ai/docs/BRAND_GUIDELINES.md).
|
||||
|
||||
## Quick Start
|
||||
|
||||
|
||||
@@ -65,3 +65,15 @@ Items marked "to be confirmed" or left flexible in the proposal are recorded her
|
||||
- *Cache Key*: `ai_summaries` caches narratives keyed by `(section, filters_hash, data_hash)` where `filters_hash` incorporates the active AI mode/provider/model so toggling `ai_enabled` or switching local models automatically refreshes narratives without stale cross-mode hits. Every write creates an `AuditLog` entry (`entity_type="ai_summary"`).
|
||||
36. **AI Reporting API & 3-Sheet Excel Exports (AI Task 6)**: All `/api/ai/*` endpoints enforce role access via `require_roles(system_admin, biomedical, management, coordinator)` so `department_user` receives HTTP 403 across all AI routes (including status and exports), while `POST /api/ai/narrative/regenerate` is restricted strictly to `system_admin`. Both hyphenated (`breakdown-frequency`) and underscored (`breakdown_frequency`) section keys are accepted on regenerate and export endpoints. Excel exports reuse `services/exports.py` styling and `_sanitize_sheet_title` to produce 3 sheets: the main report sheet, `"Evidence"`, and `"How calculated"`.
|
||||
37. **AI Report UI Navigation, Asset Links & Settings Grouping (AI Task 7)**: Sidebar retains a single `Reports` navigation entry; switching between Simple reports and AI report is handled via a segmented toggle on `ReportsPage` and `AIReportPage` (hidden for `department_user`, with `/reports/ai` guarded by `RoleGuard capability="view_ai_reports"`). Suggestion asset code badges link directly to `/assets/:id` when the asset is present in loaded section rows, falling back to `/assets?search=<code>`. On `SettingsPage`, the 9 cost/AI settings are grouped under `"AI and cost analysis"` alongside a read-only runtime status banner fetched from `/api/ai/status`.
|
||||
38. **Brand Identity, Design Tokens & Hospital Name (MediAsset AI / XYZ Hospital)**:
|
||||
- *Hospital Rebranding*: Hospital tenant name is designated as **XYZ Hospital** across application branding, titles, and authentication views.
|
||||
- *Brand Palette*: The enterprise color system consists of:
|
||||
- **Clinical Navy** (`#102C52`): Foundational authority, enterprise permanence, primary navigation backgrounds, executive typography.
|
||||
- **Intelligence Blue** (`#2E5C9A`): Digital intelligence, AI India Innovations proposal alignment, interactive buttons, active tab states.
|
||||
- **Medical Teal** (`#008E95`): MediAsset AI signature accent, telemetry indicator, precision highlights, status badges.
|
||||
- **Pale Blue** (`#E8EFF7`): Soft ergonomic UI surfaces, card borders, subtle backgrounds.
|
||||
- **Cloud White** (`#F8FAFC`): Crisp clinical workspace background.
|
||||
- *Logo Direction*: Vector emblem combines a restrained medical-equipment pulse (ECG wave) with a connected asset/data-network node mesh (`/logo.svg`, `/logo-mark.svg`, fallback `/logo.jpg`). Avoids generic medical crosses, excessive circuitry, and complex gradients.
|
||||
- *Typography*: Clean sans-serif family `Inter` for digital product and web; Calibri-compatible styling for corporate proposals and executive documentation.
|
||||
- *Visual Personality*: Precise, reliable, modern, clinical, and enterprise-grade. Product presentations utilize authentic dashboard interfaces, equipment telemetry, and clear data visualizations rather than generic AI robot imagery.
|
||||
- *Clearance Disclaimer*: "The name, tagline, logo concept, and palette are proposed brand assets and remain subject to clearance."
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
# Brand Guidelines — MediAsset AI (XYZ Hospital)
|
||||
|
||||
> **Legal Disclaimer / Clearance Notice**
|
||||
> *The name, tagline, logo concept, and palette are proposed brand assets and remain subject to clearance.*
|
||||
|
||||
---
|
||||
|
||||
## 1. Brand Mission & Audience Credibility
|
||||
|
||||
The MediAsset AI brand identity is engineered to project clinical credibility, operational precision, and enterprise-grade reliability across three demanding stakeholder groups:
|
||||
|
||||
1. **Hospital Management & Executive Leadership (MDs, CEOs, COOs, Medical Directors)**: Demands fiscal accountability, regulatory compliance (NABH, ISO), audit defensibility, uptime reliability, and total cost of ownership visibility.
|
||||
2. **Biomedical Engineering Teams**: Relies on operational accuracy, rapid breakdown resolution, scheduled maintenance adherence, calibration certification rigor, and straightforward workflows without superficial gimmicks.
|
||||
3. **Enterprise IT & Security Decision-Makers**: Requires rock-solid role-based access control, local-first data governance, fast page loads, clean sans-serif typography, and integration-ready design standards.
|
||||
|
||||
---
|
||||
|
||||
## 2. Brand Palette & Color Architecture
|
||||
|
||||
The color system maintains dual alignment: foundational authority anchored to AI India Innovations' parent-company identity, distinguished by a modern, high-precision MediAsset AI product accent.
|
||||
|
||||
| Swatch | Color Name | Hex Code | RGB | Role & Usage Hierarchy |
|
||||
| :--- | :--- | :--- | :--- | :--- |
|
||||
| <div style="background:#102C52;width:32px;height:32px;border-radius:6px;border:1px solid #0002"></div> | **Clinical Navy** | `#102C52` | `rgb(16, 44, 82)` | **Primary Authority & Foundation**: Sidebar navigation background, primary headers, data table header borders, high-contrast dark typography. |
|
||||
| <div style="background:#2E5C9A;width:32px;height:32px;border-radius:6px;border:1px solid #0002"></div> | **Intelligence Blue** | `#2E5C9A` | `rgb(46, 92, 154)` | **Parent Identity & Interaction**: Aligned with AI India Innovations' proposal palette. Primary action buttons, active navigation selections, focus rings. |
|
||||
| <div style="background:#008E95;width:32px;height:32px;border-radius:6px;border:1px solid #0002"></div> | **Medical Teal** | `#008E95` | `rgb(0, 142, 149)` | **MediAsset AI Accent**: Signature product accent. Telemetry indicators, active status highlights, pulse accents, key metric callouts. *(Accent only — does not replace parent palette)* |
|
||||
| <div style="background:#E8EFF7;width:32px;height:32px;border-radius:6px;border:1px solid #0002"></div> | **Pale Blue** | `#E8EFF7` | `rgb(232, 239, 247)` | **Ergonomic Surface Tint**: Soft card borders, hover states, secondary containers, modal headers, preventing eye strain in high-density clinical views. |
|
||||
| <div style="background:#F8FAFC;width:32px;height:32px;border-radius:6px;border:1px solid #0002"></div> | **Cloud White** | `#F8FAFC` | `rgb(248, 250, 252)` | **Canvas Neutral**: Main application body background, crisp neutral canvas allowing operational data and urgency badges to stand out. |
|
||||
|
||||
---
|
||||
|
||||
## 3. Logo Concept & Direction
|
||||
|
||||
```
|
||||
Restrained Pulse Wave Connected Asset / Data Mesh
|
||||
---/\_/\----------------/\-------[ Node A ]
|
||||
\ /\ / \
|
||||
\ / \ / [ Node B ]---[ Node C ]
|
||||
\__/ \__/
|
||||
```
|
||||
|
||||
### Visual Direction:
|
||||
- **Concept**: Synthesizes a **restrained medical-equipment pulse motif** (clean ECG equipment rhythm) with a **connected asset or data-network symbol** (interconnected telemetry nodes).
|
||||
- **Emblem Construction**:
|
||||
- Crisp horizontal trace: starts with an equipment baseline, transitions into a distinct, confident pulse deflection.
|
||||
- Resolves cleanly into an interconnected asset network cluster (3 connected nodes linked by precision vector paths).
|
||||
- Executed in Clinical Navy (`#102C52`), Intelligence Blue (`#2E5C9A`), and Medical Teal (`#008E95`).
|
||||
- **Strict Exclusions**:
|
||||
- ❌ **No generic red or green medical crosses**.
|
||||
- ❌ **No excessive or chaotic circuit-board tracks**.
|
||||
- ❌ **No multi-color rainbow gradients or muddy shadows**.
|
||||
- **Asset Files**:
|
||||
- `frontend/public/logo.svg`: Full horizontal brand lockup (`XYZ HOSPITAL` + `MediAsset AI • Asset Management & Maintenance`).
|
||||
- `frontend/public/logo-mark.svg`: Compact icon mark for favicon, avatar, and mobile viewports.
|
||||
- `frontend/public/logo.jpg`: High-resolution raster fallback.
|
||||
|
||||
---
|
||||
|
||||
## 4. Typography System
|
||||
|
||||
### Digital Product & Web Applications
|
||||
- **Primary Typeface**: `Inter` (sans-serif)
|
||||
- `font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Calibri', sans-serif;`
|
||||
- **Weights**:
|
||||
- `400` (Regular): Body prose, table cells, description text.
|
||||
- `500` (Medium): Form labels, navigation links, secondary headers.
|
||||
- `600` (SemiBold): Metric KPI numbers, table headers, button labels.
|
||||
- `700` / `800` (Bold / ExtraBold): Page titles, brand headers, critical SLA countdowns.
|
||||
- **Numerals**: Inter's tabular numbers (`tnum`) ensure currency figures, asset serial codes (`XYZ-ICU-0001`), and timestamps align vertically in data tables.
|
||||
|
||||
### Corporate Proposals & Document Exports
|
||||
- **Styling**: **Calibri-compatible** typography:
|
||||
- Proposal body: `Calibri`, 11pt, 1.15–1.25 line spacing, color `#102C52` or `#1E293B`.
|
||||
- Proposal headings: `Calibri` (or `Calibri Light`), Bold, colors `#102C52` (Heading 1) and `#2E5C9A` (Heading 2).
|
||||
- Table headers in proposal exports: fill `#102C52` with bold white text.
|
||||
|
||||
---
|
||||
|
||||
## 5. Visual Personality & Product Marketing
|
||||
|
||||
### Brand Attributes
|
||||
- **Precise**: High data density, unambiguous status badges, verified calculations.
|
||||
- **Reliable**: Clear SLA indicators, audit trails, guaranteed uptime metrics.
|
||||
- **Modern**: Clean borders, subtle shadows, ergonomic whitespace.
|
||||
- **Clinical**: Subdued, distraction-free surfaces that prioritize patient safety and equipment availability.
|
||||
- **Enterprise-Grade**: Role-based views, export-ready reporting, auditability.
|
||||
|
||||
### Presentation & Marketing Guidelines
|
||||
- **Mandatory**: Product marketing and customer decks must showcase **actual dashboard interfaces**, real equipment workflows (breakdown registration → technician assignment → restoration → closure), and clear data visualizations (uptime % trends, MTBF/MTTR, PM compliance).
|
||||
- **Prohibited**: Never use generic "AI robot", "glowing blue cyborg", or sci-fi brain graphics. The AI in MediAsset AI represents deterministic operational intelligence, equipment cost forecasting, and proactive maintenance optimization.
|
||||
|
||||
---
|
||||
|
||||
## 6. Hospital Deployment: XYZ Hospital
|
||||
|
||||
- **Tenant Name**: `XYZ Hospital` (formerly Poona Hospital & Research Centre).
|
||||
- **System Header**: `XYZ Hospital AMS — MediAsset AI`.
|
||||
- **Demo Scenarios**: Configured under `XYZ Hospital` administrative umbrella, supporting multisite departmental hierarchies (ICU, Radiology, OT, OPD, Biomedical Workshop).
|
||||
- **Asset Code Standards**: `XYZ-<DEPT>-<0001>` (e.g. `XYZ-ICU-0001`).
|
||||
+6
-2
@@ -2,9 +2,13 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/logo.jpg" />
|
||||
<link rel="icon" type="image/svg+xml" href="/logo-mark.svg" />
|
||||
<link rel="alternate icon" href="/logo.jpg" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Poona Hospital AMS</title>
|
||||
<title>XYZ Hospital AMS — MediAsset AI</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100%" height="100%" fill="none">
|
||||
<!-- MediAsset AI Emblem: Restrained Medical Pulse + Connected Asset Network Motif -->
|
||||
<rect x="2" y="2" width="96" height="96" rx="22" fill="#E8EFF7" fill-opacity="0.85" stroke="#102C52" stroke-width="3"/>
|
||||
|
||||
<!-- Medical Equipment Pulse Wave (Clinical Navy & Intelligence Blue) -->
|
||||
<path d="M 12 50 L 30 50 L 36 40 L 42 62 L 50 18 L 58 78 L 64 50 L 72 50"
|
||||
stroke="#102C52"
|
||||
stroke-width="3.5"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"/>
|
||||
|
||||
<!-- Precision High-Deflection Spike in Medical Teal -->
|
||||
<path d="M 42 62 L 50 18 L 58 78 L 64 50 L 74 50"
|
||||
stroke="#008E95"
|
||||
stroke-width="3"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"/>
|
||||
|
||||
<!-- Connected Asset / Telemetry Network Mesh -->
|
||||
<line x1="72" y1="50" x2="84" y2="34" stroke="#2E5C9A" stroke-width="2" stroke-linecap="round" stroke-dasharray="0.5 1"/>
|
||||
<line x1="72" y1="50" x2="86" y2="64" stroke="#008E95" stroke-width="2" stroke-linecap="round"/>
|
||||
<line x1="84" y1="34" x2="86" y2="64" stroke="#102C52" stroke-width="1.8" stroke-linecap="round"/>
|
||||
|
||||
<!-- Connected Nodes -->
|
||||
<circle cx="12" cy="50" r="3" fill="#2E5C9A"/>
|
||||
<circle cx="72" cy="50" r="4.5" fill="#102C52" stroke="#FFFFFF" stroke-width="2"/>
|
||||
<circle cx="84" cy="34" r="4" fill="#2E5C9A" stroke="#FFFFFF" stroke-width="2"/>
|
||||
<circle cx="86" cy="64" r="5" fill="#008E95" stroke="#FFFFFF" stroke-width="2"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 23 KiB |
@@ -0,0 +1,70 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 120" width="100%" height="100%" fill="none">
|
||||
<!-- MediAsset AI + XYZ Hospital Brand Logo Lockup -->
|
||||
<!-- Background transparent -->
|
||||
|
||||
<g transform="translate(10, 10)">
|
||||
<!-- Symbol Container / Shield Framing (Subtle Pale Blue tint with Clinical Navy border) -->
|
||||
<rect x="0" y="0" width="100" height="100" rx="20" fill="#E8EFF7" fill-opacity="0.6" stroke="#2E5C9A" stroke-width="2" stroke-opacity="0.3"/>
|
||||
|
||||
<!-- Restrained Medical Equipment Pulse Wave + Connected Asset Network Motif -->
|
||||
<!-- Pulse Line: Clinical Navy & Intelligence Blue to Medical Teal -->
|
||||
<path d="M 12 50 L 30 50 L 36 40 L 42 62 L 50 18 L 58 78 L 64 50 L 72 50"
|
||||
stroke="#102C52"
|
||||
stroke-width="3.5"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"/>
|
||||
|
||||
<!-- Secondary Precision Flow in Medical Teal -->
|
||||
<path d="M 42 62 L 50 18 L 58 78 L 64 50 L 76 50"
|
||||
stroke="#008E95"
|
||||
stroke-width="3"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-opacity="0.9"/>
|
||||
|
||||
<!-- Connected Asset / Data Network Nodes (Asset Mesh) -->
|
||||
<!-- Connecting Vector Mesh Lines -->
|
||||
<line x1="72" y1="50" x2="84" y2="34" stroke="#2E5C9A" stroke-width="2" stroke-linecap="round" stroke-dasharray="0.5 1"/>
|
||||
<line x1="72" y1="50" x2="86" y2="64" stroke="#008E95" stroke-width="2" stroke-linecap="round"/>
|
||||
<line x1="84" y1="34" x2="86" y2="64" stroke="#102C52" stroke-width="1.8" stroke-linecap="round"/>
|
||||
|
||||
<!-- Network / Asset Nodes (Solid, Crisp, No Complex Gradients) -->
|
||||
<!-- Node 1: Primary Asset Vertex -->
|
||||
<circle cx="72" cy="50" r="4.5" fill="#102C52" stroke="#FFFFFF" stroke-width="2"/>
|
||||
<!-- Node 2: Telemetry Node (Intelligence Blue) -->
|
||||
<circle cx="84" cy="34" r="4" fill="#2E5C9A" stroke="#FFFFFF" stroke-width="2"/>
|
||||
<!-- Node 3: Medical Sensor Node (Medical Teal) -->
|
||||
<circle cx="86" cy="64" r="5" fill="#008E95" stroke="#FFFFFF" stroke-width="2"/>
|
||||
<!-- Subtle pulse origin dot -->
|
||||
<circle cx="12" cy="50" r="3" fill="#2E5C9A"/>
|
||||
</g>
|
||||
|
||||
<!-- Typography Lockup -->
|
||||
<!-- Hospital Name: XYZ Hospital -->
|
||||
<text x="128" y="48" font-family="'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="28" font-weight="800" fill="#102C52" letter-spacing="-0.5">
|
||||
XYZ HOSPITAL
|
||||
</text>
|
||||
|
||||
<!-- Product & System Subtitle: MediAsset AI • AMS -->
|
||||
<g transform="translate(130, 62)">
|
||||
<!-- MediAsset AI Product Mark -->
|
||||
<text x="0" y="18" font-family="'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="14" font-weight="700" fill="#2E5C9A" letter-spacing="0.5">
|
||||
MediAsset
|
||||
</text>
|
||||
<text x="76" y="18" font-family="'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="14" font-weight="800" fill="#008E95" letter-spacing="1">
|
||||
AI
|
||||
</text>
|
||||
|
||||
<!-- Separation Dot -->
|
||||
<circle cx="102" cy="14" r="2.5" fill="#008E95"/>
|
||||
|
||||
<!-- Operational Description -->
|
||||
<text x="114" y="18" font-family="'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" font-size="12" font-weight="500" fill="#64748B" letter-spacing="0.2">
|
||||
Asset Management & Maintenance
|
||||
</text>
|
||||
</g>
|
||||
|
||||
<!-- Enterprise Status Indicator Strip in Medical Teal -->
|
||||
<rect x="128" y="90" width="330" height="2.5" rx="1.25" fill="#E8EFF7"/>
|
||||
<rect x="128" y="90" width="85" height="2.5" rx="1.25" fill="#008E95"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.5 KiB |
@@ -95,29 +95,33 @@ export function Sidebar({ mobileOpen, onClose }: SidebarProps = {}) {
|
||||
const asideContent = (
|
||||
<aside
|
||||
aria-label="Primary Navigation"
|
||||
className="w-56 lg:w-64 shrink-0 min-h-screen bg-[#1e3a8a] text-white flex flex-col"
|
||||
className="w-56 lg:w-64 shrink-0 min-h-screen bg-[#102C52] text-white flex flex-col"
|
||||
>
|
||||
{/* Logo */}
|
||||
<div className="px-4 py-4 border-b border-blue-700 space-y-2 relative">
|
||||
<div className="px-4 py-4 border-b border-[#2E5C9A]/40 space-y-2 relative">
|
||||
{onClose && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={onClose}
|
||||
aria-label="Close navigation menu"
|
||||
className="lg:hidden absolute right-2 top-2 p-1 rounded text-blue-200 hover:text-white hover:bg-blue-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white"
|
||||
className="lg:hidden absolute right-2 top-2 p-1 rounded text-blue-200 hover:text-white hover:bg-[#2E5C9A] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white"
|
||||
>
|
||||
<X className="h-4 w-4" />
|
||||
</button>
|
||||
)}
|
||||
<div className="bg-white rounded-lg p-2">
|
||||
<div className="bg-white rounded-lg p-2 shadow-sm border border-[#E8EFF7]">
|
||||
<img
|
||||
src="/logo.jpg"
|
||||
alt="Poona Hospital and Research Centre"
|
||||
src="/logo.svg"
|
||||
alt="XYZ Hospital"
|
||||
onError={(e) => {
|
||||
(e.target as HTMLImageElement).src = "/logo.jpg";
|
||||
}}
|
||||
className="w-full h-16 object-contain"
|
||||
/>
|
||||
</div>
|
||||
<div className="text-xs text-blue-200 text-center">
|
||||
Asset Management & Maintenance
|
||||
<div className="flex items-center justify-center gap-1.5 text-xs text-[#E8EFF7] text-center font-medium">
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-[#008E95]"></span>
|
||||
<span>Asset Management & Maintenance</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -133,8 +137,8 @@ export function Sidebar({ mobileOpen, onClose }: SidebarProps = {}) {
|
||||
cn(
|
||||
"flex items-center gap-3 px-3 py-2.5 rounded-md text-sm transition-colors group focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white",
|
||||
isActive
|
||||
? "bg-blue-700 text-white"
|
||||
: "text-blue-100 hover:bg-blue-700/50 hover:text-white"
|
||||
? "bg-[#2E5C9A] text-white font-medium shadow-sm border-l-4 border-[#008E95]"
|
||||
: "text-slate-200 hover:bg-[#2E5C9A]/50 hover:text-white"
|
||||
)
|
||||
}
|
||||
>
|
||||
@@ -146,8 +150,9 @@ export function Sidebar({ mobileOpen, onClose }: SidebarProps = {}) {
|
||||
</nav>
|
||||
|
||||
{/* Footer */}
|
||||
<div className="px-4 py-3 border-t border-blue-700 text-xs text-blue-300">
|
||||
Poona Hospital AMS • v1.0
|
||||
<div className="px-4 py-3 border-t border-[#2E5C9A]/40 text-xs text-[#E8EFF7]/90 flex items-center justify-between">
|
||||
<span>XYZ Hospital AMS • v1.0</span>
|
||||
<span className="px-1.5 py-0.5 rounded text-[10px] font-semibold bg-[#008E95]/20 text-[#008E95]">MediAsset AI</span>
|
||||
</div>
|
||||
</aside>
|
||||
);
|
||||
|
||||
@@ -4,10 +4,16 @@
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--brand: #1e3a8a;
|
||||
--brand: #102C52;
|
||||
--brand-navy: #102C52;
|
||||
--brand-blue: #2E5C9A;
|
||||
--brand-teal: #008E95;
|
||||
--brand-pale: #E8EFF7;
|
||||
--brand-cloud: #F8FAFC;
|
||||
}
|
||||
body {
|
||||
@apply bg-gray-50 text-gray-900 antialiased;
|
||||
@apply bg-[#F8FAFC] text-[#102C52] antialiased;
|
||||
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Calibri", sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,20 +75,27 @@ export function LoginPage() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gradient-to-br from-blue-50 via-gray-50 to-indigo-50 flex items-center justify-center p-4">
|
||||
<div className="min-h-screen bg-gradient-to-br from-[#E8EFF7] via-[#F8FAFC] to-[#E8EFF7]/60 flex items-center justify-center p-4">
|
||||
<div className="w-full max-w-md space-y-5">
|
||||
<div className="bg-white rounded-xl shadow-md border border-gray-200 p-6 sm:p-8">
|
||||
<div className="bg-white rounded-xl shadow-md border border-[#E8EFF7] p-6 sm:p-8">
|
||||
{/* Hospital Branding */}
|
||||
<div className="text-center mb-6">
|
||||
<img
|
||||
src="/logo.jpg"
|
||||
alt="Poona Hospital and Research Centre"
|
||||
src="/logo.svg"
|
||||
alt="XYZ Hospital"
|
||||
onError={(e) => {
|
||||
(e.target as HTMLImageElement).src = "/logo.jpg";
|
||||
}}
|
||||
className="h-20 mx-auto object-contain mb-3"
|
||||
/>
|
||||
<h1 className="text-xl font-bold text-[#1e3a8a]">
|
||||
Poona Hospital & Research Centre
|
||||
<h1 className="text-xl font-bold text-[#102C52]">
|
||||
XYZ Hospital
|
||||
</h1>
|
||||
<p className="text-sm text-gray-500 mt-0.5">
|
||||
<div className="inline-flex items-center gap-1.5 mt-1 px-2.5 py-0.5 rounded-full bg-[#E8EFF7] text-xs font-semibold text-[#008E95]">
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-[#008E95]"></span>
|
||||
<span>MediAsset AI</span>
|
||||
</div>
|
||||
<p className="text-xs text-gray-500 mt-1">
|
||||
Asset Management & Maintenance System
|
||||
</p>
|
||||
</div>
|
||||
@@ -105,7 +112,7 @@ export function LoginPage() {
|
||||
|
||||
<form onSubmit={handleSubmit(onSubmit)} className="space-y-4" noValidate>
|
||||
<div>
|
||||
<label htmlFor="email" className="block text-sm font-medium text-gray-700 mb-1">
|
||||
<label htmlFor="email" className="block text-sm font-medium text-[#102C52] mb-1">
|
||||
Email Address
|
||||
</label>
|
||||
<input
|
||||
@@ -114,7 +121,7 @@ export function LoginPage() {
|
||||
autoComplete="email"
|
||||
placeholder="you@poona.demo"
|
||||
{...register("email")}
|
||||
className="w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
className="w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[#2E5C9A]"
|
||||
/>
|
||||
{errors.email && (
|
||||
<p className="text-xs text-red-600 mt-1">{errors.email.message}</p>
|
||||
@@ -122,7 +129,7 @@ export function LoginPage() {
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label htmlFor="password" className="block text-sm font-medium text-gray-700 mb-1">
|
||||
<label htmlFor="password" className="block text-sm font-medium text-[#102C52] mb-1">
|
||||
Password
|
||||
</label>
|
||||
<input
|
||||
@@ -131,14 +138,14 @@ export function LoginPage() {
|
||||
autoComplete="current-password"
|
||||
placeholder="Enter your password"
|
||||
{...register("password")}
|
||||
className="w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
className="w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[#2E5C9A]"
|
||||
/>
|
||||
{errors.password && (
|
||||
<p className="text-xs text-red-600 mt-1">{errors.password.message}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<Button type="submit" className="w-full" loading={isSubmitting}>
|
||||
<Button type="submit" className="w-full bg-[#2E5C9A] hover:bg-[#102C52] text-white transition-colors" loading={isSubmitting}>
|
||||
<LogIn className="h-4 w-4 mr-2" />
|
||||
Sign In
|
||||
</Button>
|
||||
@@ -146,9 +153,9 @@ export function LoginPage() {
|
||||
</div>
|
||||
|
||||
{/* Quick Demo Login Panel */}
|
||||
<div className="bg-white rounded-xl shadow-sm border border-gray-200 p-4">
|
||||
<div className="flex items-center gap-1.5 text-xs font-semibold text-gray-600 uppercase tracking-wide mb-2.5">
|
||||
<ShieldCheck className="h-4 w-4 text-[#1e3a8a]" />
|
||||
<div className="bg-white rounded-xl shadow-sm border border-[#E8EFF7] p-4">
|
||||
<div className="flex items-center gap-1.5 text-xs font-semibold text-[#102C52] uppercase tracking-wide mb-2.5">
|
||||
<ShieldCheck className="h-4 w-4 text-[#008E95]" />
|
||||
Quick Demo Login (Password: Demo@123)
|
||||
</div>
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-2">
|
||||
@@ -158,12 +165,12 @@ export function LoginPage() {
|
||||
type="button"
|
||||
disabled={isSubmitting || quickLoadingEmail !== null}
|
||||
onClick={() => handleQuickLogin(acct.email)}
|
||||
className="text-left px-3 py-2 rounded-md border border-gray-200 hover:border-[#1e3a8a] hover:bg-blue-50/50 transition-colors disabled:opacity-50"
|
||||
className="text-left px-3 py-2 rounded-md border border-gray-200 hover:border-[#2E5C9A] hover:bg-[#E8EFF7]/50 transition-colors disabled:opacity-50"
|
||||
>
|
||||
<div className="text-xs font-semibold text-gray-800 flex items-center justify-between">
|
||||
<span>{acct.label}</span>
|
||||
{quickLoadingEmail === acct.email && (
|
||||
<span className="text-[10px] text-blue-600">Signing in…</span>
|
||||
<span className="text-[10px] text-[#2E5C9A] font-medium">Signing in…</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="text-[11px] text-gray-500 truncate">{acct.email}</div>
|
||||
@@ -171,6 +178,11 @@ export function LoginPage() {
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Brand & Clearance Disclaimer */}
|
||||
<div className="text-center text-[11px] text-gray-400">
|
||||
The name, tagline, logo concept, and palette are proposed brand assets and remain subject to clearance.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -20,7 +20,7 @@ describe("LoginPage", () => {
|
||||
</MemoryRouter>
|
||||
);
|
||||
|
||||
expect(screen.getByAltText("Poona Hospital and Research Centre")).toBeInTheDocument();
|
||||
expect(screen.getByAltText("XYZ Hospital")).toBeInTheDocument();
|
||||
expect(screen.getByLabelText("Email Address")).toBeInTheDocument();
|
||||
expect(screen.getByLabelText("Password")).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: /Sign In/i })).toBeInTheDocument();
|
||||
|
||||
@@ -24,16 +24,16 @@ describe("Phase 1 Frontend Smoke Tests", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("renders Sidebar with Poona Hospital logo, subtitle, and all admin navigation links", () => {
|
||||
it("renders Sidebar with XYZ Hospital logo, subtitle, and all admin navigation links", () => {
|
||||
render(
|
||||
<MemoryRouter>
|
||||
<Sidebar />
|
||||
</MemoryRouter>
|
||||
);
|
||||
|
||||
const logo = screen.getByAltText("Poona Hospital and Research Centre") as HTMLImageElement;
|
||||
const logo = screen.getByAltText("XYZ Hospital") as HTMLImageElement;
|
||||
expect(logo).toBeInTheDocument();
|
||||
expect(logo.getAttribute("src")).toBe("/logo.jpg");
|
||||
expect(logo.getAttribute("src")).toBe("/logo.svg");
|
||||
expect(screen.getByText("Asset Management & Maintenance")).toBeInTheDocument();
|
||||
|
||||
const labels = [
|
||||
@@ -55,7 +55,7 @@ describe("Phase 1 Frontend Smoke Tests", () => {
|
||||
for (const label of labels) {
|
||||
expect(screen.getByText(label)).toBeInTheDocument();
|
||||
}
|
||||
expect(screen.getByText("Poona Hospital AMS • v1.0")).toBeInTheDocument();
|
||||
expect(screen.getByText("XYZ Hospital AMS • v1.0")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("hides Masters, Settings, and Department Visits for department_user and coordinator", () => {
|
||||
|
||||
@@ -4,15 +4,42 @@ export default {
|
||||
content: ["./index.html", "./src/**/*.{ts,tsx}"],
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
sans: [
|
||||
"Inter",
|
||||
"-apple-system",
|
||||
"BlinkMacSystemFont",
|
||||
"Segoe UI",
|
||||
"Roboto",
|
||||
"Calibri",
|
||||
"sans-serif",
|
||||
],
|
||||
proposal: ["Calibri", "Inter", "sans-serif"],
|
||||
},
|
||||
colors: {
|
||||
// Brand colours — Poona Hospital deep blue
|
||||
// Core Brand Palette — MediAsset AI & AI India Innovations
|
||||
brand: {
|
||||
50: "#eef2ff",
|
||||
100: "#e0e7ff",
|
||||
500: "#1e3a8a",
|
||||
600: "#1e3a8a",
|
||||
700: "#1e3480",
|
||||
900: "#1a2f6b",
|
||||
navy: "#102C52", // Clinical Navy: Core clinical authority & enterprise permanence
|
||||
blue: "#2E5C9A", // Intelligence Blue: AI India Innovations parent identity
|
||||
teal: "#008E95", // Medical Teal: MediAsset AI product accent
|
||||
pale: "#E8EFF7", // Pale Blue: Soft UI surfaces & card backgrounds
|
||||
cloud: "#F8FAFC", // Cloud White: Crisp clinical workspace background
|
||||
50: "#F8FAFC",
|
||||
100: "#E8EFF7",
|
||||
200: "#D3E2F2",
|
||||
300: "#9FBFE0",
|
||||
400: "#5D8EC5",
|
||||
500: "#2E5C9A", // Intelligence Blue
|
||||
600: "#244A7C",
|
||||
700: "#1A365B",
|
||||
800: "#102C52", // Clinical Navy
|
||||
900: "#0A1D36",
|
||||
},
|
||||
// Accent shorthand
|
||||
accent: {
|
||||
teal: "#008E95",
|
||||
"teal-light": "#E0F5F6",
|
||||
"teal-dark": "#006C72",
|
||||
},
|
||||
// Status colours
|
||||
status: {
|
||||
@@ -20,7 +47,8 @@ export default {
|
||||
"in-progress": "#f59e0b", // amber
|
||||
closed: "#22c55e", // green
|
||||
ok: "#6b7280", // grey
|
||||
info: "#3b82f6", // blue
|
||||
info: "#2E5C9A", // Intelligence blue
|
||||
teal: "#008E95", // Medical teal
|
||||
yellow: "#eab308",
|
||||
red: "#ef4444",
|
||||
green: "#22c55e",
|
||||
|
||||
Reference in New Issue
Block a user