brand: remove all poona references and standardize on XYZ Hospital
This commit is contained in:
@@ -26,4 +26,4 @@
|
||||
<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>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -67,4 +67,4 @@
|
||||
<!-- 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>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
@@ -39,7 +39,7 @@ function ProtectedRoute({ children }: { children: React.ReactNode }) {
|
||||
<div className="min-h-screen flex items-center justify-center bg-gray-50">
|
||||
<div className="text-center space-y-2">
|
||||
<div className="h-8 w-8 border-4 border-[#1e3a8a] border-t-transparent rounded-full animate-spin mx-auto" />
|
||||
<p className="text-sm text-gray-500">Loading Poona Hospital AMS...</p>
|
||||
<p className="text-sm text-gray-500">Loading XYZ Hospital AMS...</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -76,7 +76,7 @@ async function exportToExcel<TData>(table: TanStackTable<TData>, filename: strin
|
||||
const headerAddr = XLSX.utils.encode_cell({ r: 0, c });
|
||||
if (ws[headerAddr]) {
|
||||
ws[headerAddr].s = {
|
||||
fill: { fgColor: { rgb: "1E3A8A" } }, // Poona Hospital Deep Navy
|
||||
fill: { fgColor: { rgb: "1E3A8A" } }, // XYZ Hospital Deep Navy
|
||||
font: { name: "Calibri", sz: 11, bold: true, color: { rgb: "FFFFFF" } },
|
||||
alignment: { horizontal: "center", vertical: "center", wrapText: true },
|
||||
border: {
|
||||
|
||||
@@ -288,7 +288,7 @@ export function AssetsPage() {
|
||||
columns={columns}
|
||||
loading={assetsQuery.isLoading}
|
||||
globalFilterPlaceholder="Search by asset code, equipment, department, serial..."
|
||||
exportFilename="poona-hospital-assets"
|
||||
exportFilename="xyz-hospital-assets"
|
||||
emptyMessage="No assets match the current filters."
|
||||
onRowClick={(row) => navigate(`/assets/${row.id}`)}
|
||||
/>
|
||||
|
||||
@@ -368,7 +368,7 @@ export function ComplaintsPage() {
|
||||
columns={columns}
|
||||
loading={complaintsQuery.isLoading}
|
||||
globalFilterPlaceholder="Quick filter loaded table..."
|
||||
exportFilename="poona-hospital-complaints"
|
||||
exportFilename="xyz-hospital-complaints"
|
||||
emptyMessage="No complaints match the current filters."
|
||||
onRowClick={(row) => navigate(`/complaints/${row.id}`)}
|
||||
getRowClassName={(row) =>
|
||||
|
||||
@@ -17,11 +17,11 @@ const loginSchema = z.object({
|
||||
type LoginFormValues = z.infer<typeof loginSchema>;
|
||||
|
||||
const DEMO_ACCOUNTS = [
|
||||
{ label: "System Admin", email: "admin@poona.demo", hint: "Full system control" },
|
||||
{ label: "Biomedical", email: "bio@poona.demo", hint: "Assets, PM, repairs" },
|
||||
{ label: "Department User (ICU)", email: "dept@poona.demo", hint: "ICU complaints & assets" },
|
||||
{ label: "Management", email: "mgmt@poona.demo", hint: "Reports & oversight" },
|
||||
{ label: "Coordinator", email: "coord@poona.demo", hint: "Contracts, demo, calibration" },
|
||||
{ label: "System Admin", email: "admin@xyz.demo", hint: "Full system control" },
|
||||
{ label: "Biomedical", email: "bio@xyz.demo", hint: "Assets, PM, repairs" },
|
||||
{ label: "Department User (ICU)", email: "dept@xyz.demo", hint: "ICU complaints & assets" },
|
||||
{ label: "Management", email: "mgmt@xyz.demo", hint: "Reports & oversight" },
|
||||
{ label: "Coordinator", email: "coord@xyz.demo", hint: "Contracts, demo, calibration" },
|
||||
];
|
||||
|
||||
export function LoginPage() {
|
||||
@@ -119,7 +119,7 @@ export function LoginPage() {
|
||||
id="email"
|
||||
type="email"
|
||||
autoComplete="email"
|
||||
placeholder="you@poona.demo"
|
||||
placeholder="you@xyz.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-[#2E5C9A]"
|
||||
/>
|
||||
|
||||
@@ -403,12 +403,12 @@ export function ReportDetailPage() {
|
||||
<div className="flex items-center gap-3.5">
|
||||
<img
|
||||
src="/logo.jpg"
|
||||
alt="Poona Hospital and Research Centre"
|
||||
alt="XYZ Hospital"
|
||||
className="h-14 w-14 object-contain"
|
||||
/>
|
||||
<div>
|
||||
<div className="text-base font-extrabold text-[#1e3a8a] tracking-tight">
|
||||
POONA HOSPITAL & RESEARCH CENTRE
|
||||
XYZ HOSPITAL
|
||||
</div>
|
||||
<div className="text-[11px] font-semibold text-gray-800">
|
||||
NABH Accredited Tertiary Care Hospital • Department of Clinical Engineering
|
||||
@@ -1035,7 +1035,7 @@ export function ReportDetailPage() {
|
||||
<div className="hidden print:block mt-8 pt-4 border-t-2 border-gray-300 print-break-inside-avoid">
|
||||
<div className="flex items-center justify-between text-[10px] font-bold uppercase tracking-wider text-gray-700 mb-4">
|
||||
<span>Hospital Engineering Audit & Verification Sign-off (NABH Chapter FMS)</span>
|
||||
<span>Poona Hospital & Research Centre</span>
|
||||
<span>XYZ Hospital</span>
|
||||
</div>
|
||||
<div className="grid grid-cols-3 gap-5 text-[10px]">
|
||||
<div className="border border-gray-300 rounded p-3 space-y-4 bg-gray-50/50">
|
||||
@@ -1067,7 +1067,7 @@ export function ReportDetailPage() {
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-4 pt-2 border-t border-gray-200 text-[9px] text-gray-500 flex items-center justify-between">
|
||||
<span>Official Hospital Record • Poona Hospital & Research Centre • Confidential • Retain for 7 Years</span>
|
||||
<span>Official Hospital Record • XYZ Hospital • Confidential • Retain for 7 Years</span>
|
||||
<span>AMS Portal Generated • NABH Compliant</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@ import { ApiError } from "@/api/client";
|
||||
const mockUser: MasterUser = {
|
||||
id: 42,
|
||||
name: "Dr. Jane Doe",
|
||||
email: "jane@poona.demo",
|
||||
email: "jane@xyz.demo",
|
||||
role: "department_user",
|
||||
department_id: 2,
|
||||
department_name: "Cardiology",
|
||||
|
||||
@@ -342,7 +342,7 @@ describe("AI Report & Settings (Task 7)", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 3,
|
||||
email: "dept@poona.demo",
|
||||
email: "dept@xyz.demo",
|
||||
name: "ICU Nurse",
|
||||
role: "department_user",
|
||||
department_id: 1,
|
||||
@@ -358,7 +358,7 @@ describe("AI Report & Settings (Task 7)", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 4,
|
||||
email: "mgmt@poona.demo",
|
||||
email: "mgmt@xyz.demo",
|
||||
name: "Director",
|
||||
role: "management",
|
||||
department_id: null,
|
||||
@@ -387,7 +387,7 @@ describe("AI Report & Settings (Task 7)", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 4,
|
||||
email: "mgmt@poona.demo",
|
||||
email: "mgmt@xyz.demo",
|
||||
name: "Director",
|
||||
role: "management",
|
||||
department_id: null,
|
||||
@@ -417,7 +417,7 @@ describe("AI Report & Settings (Task 7)", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 1,
|
||||
email: "admin@poona.demo",
|
||||
email: "admin@xyz.demo",
|
||||
name: "System Admin",
|
||||
role: "system_admin",
|
||||
department_id: null,
|
||||
@@ -439,7 +439,7 @@ describe("AI Report & Settings (Task 7)", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 1,
|
||||
email: "admin@poona.demo",
|
||||
email: "admin@xyz.demo",
|
||||
name: "System Admin",
|
||||
role: "system_admin",
|
||||
department_id: null,
|
||||
|
||||
@@ -65,7 +65,7 @@ describe("CalibrationPage", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 5,
|
||||
email: "mgmt@poona.org",
|
||||
email: "mgmt@xyz.org",
|
||||
name: "Hospital Director",
|
||||
role: "management",
|
||||
department_id: null,
|
||||
@@ -92,7 +92,7 @@ describe("CalibrationPage", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 2,
|
||||
email: "bio@poona.org",
|
||||
email: "bio@xyz.org",
|
||||
name: "Biomed Engineer",
|
||||
role: "biomedical",
|
||||
department_id: null,
|
||||
|
||||
@@ -89,7 +89,7 @@ describe("ComplaintDetailPage", () => {
|
||||
user: {
|
||||
id: 3,
|
||||
name: "ICU Nurse",
|
||||
email: "dept@poona.demo",
|
||||
email: "dept@xyz.demo",
|
||||
role: "department_user",
|
||||
department_id: 1,
|
||||
department_name: "ICU",
|
||||
@@ -122,7 +122,7 @@ describe("ComplaintDetailPage", () => {
|
||||
user: {
|
||||
id: 2,
|
||||
name: "Bio Eng",
|
||||
email: "bio@poona.demo",
|
||||
email: "bio@xyz.demo",
|
||||
role: "biomedical",
|
||||
department_id: null,
|
||||
department_name: null,
|
||||
|
||||
@@ -25,11 +25,11 @@ describe("LoginPage", () => {
|
||||
expect(screen.getByLabelText("Password")).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: /Sign In/i })).toBeInTheDocument();
|
||||
|
||||
expect(screen.getByText("admin@poona.demo")).toBeInTheDocument();
|
||||
expect(screen.getByText("bio@poona.demo")).toBeInTheDocument();
|
||||
expect(screen.getByText("dept@poona.demo")).toBeInTheDocument();
|
||||
expect(screen.getByText("mgmt@poona.demo")).toBeInTheDocument();
|
||||
expect(screen.getByText("coord@poona.demo")).toBeInTheDocument();
|
||||
expect(screen.getByText("admin@xyz.demo")).toBeInTheDocument();
|
||||
expect(screen.getByText("bio@xyz.demo")).toBeInTheDocument();
|
||||
expect(screen.getByText("dept@xyz.demo")).toBeInTheDocument();
|
||||
expect(screen.getByText("mgmt@xyz.demo")).toBeInTheDocument();
|
||||
expect(screen.getByText("coord@xyz.demo")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("shows validation errors when submitting empty credentials", async () => {
|
||||
@@ -56,7 +56,7 @@ describe("LoginPage", () => {
|
||||
</MemoryRouter>
|
||||
);
|
||||
|
||||
fireEvent.change(screen.getByLabelText("Email Address"), { target: { value: "admin@poona.demo" } });
|
||||
fireEvent.change(screen.getByLabelText("Email Address"), { target: { value: "admin@xyz.demo" } });
|
||||
fireEvent.change(screen.getByLabelText("Password"), { target: { value: "wrong" } });
|
||||
fireEvent.click(screen.getByRole("button", { name: /Sign In/i }));
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ describe("Phase 5 Modules", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 2,
|
||||
email: "bio@poona.org",
|
||||
email: "bio@xyz.org",
|
||||
name: "Biomed Engineer",
|
||||
role: "biomedical",
|
||||
department_id: null,
|
||||
|
||||
@@ -118,7 +118,7 @@ describe("Phase 6 Modules", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 2,
|
||||
email: "bio@poona.org",
|
||||
email: "bio@xyz.org",
|
||||
name: "Biomed Engineer",
|
||||
role: "biomedical",
|
||||
department_id: null,
|
||||
|
||||
@@ -37,7 +37,7 @@ describe("Phase 8 Frontend Polish", () => {
|
||||
user: {
|
||||
id: 1,
|
||||
name: "System Admin",
|
||||
email: "admin@poona.demo",
|
||||
email: "admin@xyz.demo",
|
||||
role: "system_admin",
|
||||
department_id: null,
|
||||
department_name: null,
|
||||
@@ -124,7 +124,7 @@ describe("Phase 8 Frontend Polish", () => {
|
||||
{
|
||||
id: 1,
|
||||
name: "System Admin",
|
||||
email: "admin@poona.demo",
|
||||
email: "admin@xyz.demo",
|
||||
role: "system_admin",
|
||||
department_id: null,
|
||||
department_name: null,
|
||||
|
||||
@@ -56,7 +56,7 @@ describe("PMPage", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 2,
|
||||
email: "bio@poona.org",
|
||||
email: "bio@xyz.org",
|
||||
name: "Biomed Engineer",
|
||||
role: "biomedical",
|
||||
department_id: null,
|
||||
|
||||
@@ -40,7 +40,7 @@ describe("Phase 7 Reports", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 5,
|
||||
email: "mgmt@poona.org",
|
||||
email: "mgmt@xyz.org",
|
||||
name: "Director",
|
||||
role: "management",
|
||||
department_id: null,
|
||||
@@ -58,7 +58,7 @@ describe("Phase 7 Reports", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 3,
|
||||
email: "icu@poona.org",
|
||||
email: "icu@xyz.org",
|
||||
name: "ICU Nurse",
|
||||
role: "department_user",
|
||||
department_id: 1,
|
||||
@@ -87,7 +87,7 @@ describe("Phase 7 Reports", () => {
|
||||
useAuthStore.setState({
|
||||
user: {
|
||||
id: 5,
|
||||
email: "mgmt@poona.org",
|
||||
email: "mgmt@xyz.org",
|
||||
name: "Director",
|
||||
role: "management",
|
||||
department_id: null,
|
||||
|
||||
@@ -12,7 +12,7 @@ describe("Phase 1 Frontend Smoke Tests", () => {
|
||||
user: {
|
||||
id: 1,
|
||||
name: "Admin",
|
||||
email: "admin@poona.demo",
|
||||
email: "admin@xyz.demo",
|
||||
role: "system_admin",
|
||||
department_id: null,
|
||||
department_name: null,
|
||||
@@ -63,7 +63,7 @@ describe("Phase 1 Frontend Smoke Tests", () => {
|
||||
user: {
|
||||
id: 3,
|
||||
name: "Dept User",
|
||||
email: "dept@poona.demo",
|
||||
email: "dept@xyz.demo",
|
||||
role: "department_user",
|
||||
department_id: 1,
|
||||
department_name: "ICU",
|
||||
@@ -85,7 +85,7 @@ describe("Phase 1 Frontend Smoke Tests", () => {
|
||||
user: {
|
||||
id: 5,
|
||||
name: "Coordinator",
|
||||
email: "coord@poona.demo",
|
||||
email: "coord@xyz.demo",
|
||||
role: "coordinator",
|
||||
department_id: null,
|
||||
department_name: null,
|
||||
|
||||
Reference in New Issue
Block a user