Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
hrit2773 authored Feb 14, 2025
2 parents a373b66 + d3fc34d commit 49562a9
Show file tree
Hide file tree
Showing 35 changed files with 596 additions and 2,623 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ REACT_APP_COVER_IMAGE=https://cdn.ohc.network/care_logo.svg
REACT_APP_COVER_IMAGE_ALT=https://cdn.ohc.network/care_logo.svg
REACT_PUBLIC_URL=https://care.ohc.network
HEADERS="/*\n Strict-Transport-Security: max-age=63072000; includeSubDomains; preload\n X-XSS-Protection: 1; mode=block\n X-Frame-Options: SAMEORIGIN\n X-Content-Type-Options: nosniff\n Referrer-Policy: strict-origin-when-cross-origin\n Permissions-Policy: geolocation=(self), microphone=()"
REACT_RECAPTCHA_SITE_KEY=6LcedK8qAAAAAM2PpuqlqhZUxQpmIqHqluL74dDs

# Care API URL without the /api prefix
REACT_CARE_API_URL=https://careapi.ohc.network
Expand Down
3 changes: 1 addition & 2 deletions care.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ const careConfig = {
govDataApiKey:
env.REACT_GOV_DATA_API_KEY ||
"579b464db66ec23bdd000001cdd3946e44ce4aad7209ff7b23ac571b",
reCaptchaSiteKey:
env.REACT_RECAPTCHA_SITE_KEY || "6LdvxuQUAAAAADDWVflgBqyHGfq-xmvNJaToM0pN",
reCaptchaSiteKey: env.REACT_RECAPTCHA_SITE_KEY,

wartimeShifting: boolean("REACT_WARTIME_SHIFTING"),

Expand Down
5 changes: 4 additions & 1 deletion public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@
"care_backend": "Care Backend",
"care_frontend": "Care Frontend",
"category": "Category",
"category_description": "Choose the category that best describes the resource needed.",
"category_description": "Choose the category ",
"caution": "Caution",
"central_nursing_station": "Central Nursing Station",
"change_avatar": "Change Avatar",
Expand Down Expand Up @@ -1848,6 +1848,7 @@
"resource_status__transportation_to_be_arranged": "Transportation to be arranged",
"resource_title": "Resource Title",
"resource_type": "Request Type",
"resource_updated_successfully": "Resource updated successfully",
"respiratory_status": "Respiratory Status",
"result": "Result",
"result_date": "Result Date",
Expand Down Expand Up @@ -1944,6 +1945,7 @@
"search_tags": "Search tags...",
"search_user": "Search User",
"search_user_description": "Search for a user and assign a role to add them to the patient.",
"search_users": "Search users...",
"searching": "Searching...",
"see_attachments": "See Attachments",
"see_details": "See Details",
Expand Down Expand Up @@ -2248,6 +2250,7 @@
"update_record": "Update Record",
"update_record_for_asset": "Update record for asset",
"update_request": "Update Request",
"update_resource_request": "Update Resource Request",
"update_role": "Update Role",
"update_shift_request": "Update Shift Request",
"update_status": "Update Status",
Expand Down
17 changes: 0 additions & 17 deletions src/CAREUI/display/Card.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions src/Routers/routes/ConsultationRoutes.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import QuestionnaireResponseView from "@/components/Facility/ConsultationDetails/QuestionnaireResponseView";
import EncounterQuestionnaire from "@/components/Patient/EncounterQuestionnaire";
import FileUploadPage from "@/components/Patient/FileUploadPage";
import TreatmentSummary from "@/components/Patient/TreatmentSummary";

import { AppRoutes } from "@/Routers/AppRouter";
Expand Down Expand Up @@ -72,18 +71,6 @@ const consultationRoutes: AppRoutes = {
({ patientId, id }) => (
<QuestionnaireResponseView responseId={id} patientId={patientId} />
),
"/facility/:facilityId/patient/:patientId/encounterId/:id/files/": ({
facilityId,
patientId,
id,
}) => (
<FileUploadPage
facilityId={facilityId}
patientId={patientId}
encounterId={id}
type="encounter"
/>
),
};

export default consultationRoutes;
2 changes: 1 addition & 1 deletion src/Routers/routes/FacilityRoutes.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Redirect } from "raviger";

import FacilityUsers from "@/components/Facility/FacilityUsers";
import ResourceCreate from "@/components/Resource/ResourceCreate";
import ResourceCreate from "@/components/Resource/ResourceForm";

import { AppRoutes } from "@/Routers/AppRouter";
import { FacilityOverview } from "@/pages/Facility/overview";
Expand Down
11 changes: 0 additions & 11 deletions src/Routers/routes/PatientRoutes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import FileUploadPage from "@/components/Patient/FileUploadPage";
import {
facilityPatientTabs,
patientTabs,
Expand Down Expand Up @@ -45,16 +44,6 @@ const PatientRoutes: AppRoutes = {
"/facility/:facilityId/patient/:id/update": ({ facilityId, id }) => (
<PatientRegistration facilityId={facilityId} patientId={id} />
),
"/facility/:facilityId/patient/:patientId/files": ({
facilityId,
patientId,
}) => (
<FileUploadPage
facilityId={facilityId}
patientId={patientId}
type="patient"
/>
),
};

export default PatientRoutes;
4 changes: 2 additions & 2 deletions src/Routers/routes/ResourceRoutes.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PrintResourceLetter from "@/components/Resource/PrintResourceLetter";
import ResourceDetails from "@/components/Resource/ResourceDetails";
import { ResourceDetailsUpdate } from "@/components/Resource/ResourceDetailsUpdate";
import ResourceForm from "@/components/Resource/ResourceForm";
import ResourceList from "@/components/Resource/ResourceList";

import { AppRoutes } from "@/Routers/AppRouter";
Expand All @@ -13,7 +13,7 @@ const ResourceRoutes: AppRoutes = {
<ResourceDetails facilityId={facilityId} id={id} />
),
"/facility/:facilityId/resource/:id/update": ({ facilityId, id }) => (
<ResourceDetailsUpdate facilityId={facilityId} id={id} />
<ResourceForm facilityId={facilityId} id={id} />
),
"/facility/:facilityId/resource/:id/print": ({ id }) => (
<PrintResourceLetter id={id} />
Expand Down
6 changes: 0 additions & 6 deletions src/Utils/request/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,6 @@ const routes = {
TRes: Type<UserModel>(),
},

userList: {
path: "/api/v1/users/",
method: "GET",
TRes: Type<PaginatedResponse<UserModel>>(),
},

deleteProfilePicture: {
path: "/api/v1/users/{username}/profile_picture/",
method: "DELETE",
Expand Down
58 changes: 0 additions & 58 deletions src/Utils/request/useQuery.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ const Login = (props: LoginProps) => {
)}
</div>

{isCaptchaEnabled && (
{isCaptchaEnabled && reCaptchaSiteKey && (
<div className="py-4">
<ReCaptcha
sitekey={reCaptchaSiteKey}
Expand Down
14 changes: 13 additions & 1 deletion src/components/Common/FilePreviewDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
} from "@/components/ui/dialog";

import CircularProgress from "@/components/Common/CircularProgress";
import { StateInterface } from "@/components/Files/FileUpload";
import { FileUploadModel } from "@/components/Patient/models";

const PDFViewer = lazy(() => import("@/components/Common/PDFViewer"));
Expand All @@ -40,6 +39,19 @@ export const zoom_values = [
"scale-200",
];

export interface StateInterface {
open: boolean;
isImage: boolean;
name: string;
extension: string;
zoom: number;
isZoomInDisabled: boolean;
isZoomOutDisabled: boolean;
rotation: number;
id?: string;
associating_id?: string;
}

type FilePreviewProps = {
title?: ReactNode;
description?: ReactNode;
Expand Down
26 changes: 0 additions & 26 deletions src/components/Common/HelperComponents.tsx

This file was deleted.

73 changes: 0 additions & 73 deletions src/components/Common/Tabs.tsx

This file was deleted.

Loading

0 comments on commit 49562a9

Please sign in to comment.