Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced the older components with ShadCN components in the ResourceCreate Page #10367

Conversation

NikhilA8606
Copy link
Contributor

@NikhilA8606 NikhilA8606 commented Feb 2, 2025

Migrated all older components in the ResourceCreate page using Shadcn component

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Improved the facility selection process on the resource creation form with a dynamic autocomplete search, making it easier for users to find and select a facility.
    • Added localized prompts for facility assignment requests and search initiation to guide users effectively.
  • Chores

    • Removed deprecated components and hooks to streamline the codebase, including the FacilitySelect and AutoCompleteAsync components, as well as the useDebounce hook.

@NikhilA8606 NikhilA8606 requested a review from a team as a code owner February 2, 2025 21:29
Copy link
Contributor

coderabbitai bot commented Feb 2, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The changes include adding two new localization entries in the English locale file, removing the FacilitySelect component (and its associated interfaces) from the common components, and updating the resource creation and details update forms to use a new Autocomplete component for facility selection. The modifications in ResourceCreate.tsx and ResourceDetailsUpdate.tsx involve new imports and logic to fetch facility options dynamically, enhancing the user experience for selecting facilities.

Changes

File(s) Change Summary
public/locale/en.json Added new localization entries: "facility_assign_request": "What facility would you like to assign the request to?" and "start_typing_to_search": "Start typing to search...".
src/components/Common/FacilitySelect.tsx
src/components/Resource/ResourceCreate.tsx
src/components/Resource/ResourceDetailsUpdate.tsx
Removed the FacilitySelect component and related interfaces; updated ResourceCreate.tsx and ResourceDetailsUpdate.tsx to integrate a new Autocomplete component that dynamically fetches facility options and updates the form state accordingly.
src/components/Form/AutoCompleteAsync.tsx Removed the AutoCompleteAsync component, which provided asynchronous autocomplete functionality.
src/hooks/useDebounce.ts Removed the useDebounce custom hook, which was used for debouncing function calls in React components.

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant R as ResourceCreate Form
    participant A as Autocomplete Component
    participant F as Facility API

    U->>R: Interact with facility field
    R->>A: Render Autocomplete with query parameters
    U->>A: Type search term
    A->>F: Query facilities using search term
    F-->>A: Return facility options
    A->>U: Display suggestions
    U->>A: Select a facility
    A->>R: Trigger onChange with selected facility
    R-->>U: Update form state
Loading

Possibly related PRs

Suggested labels

reviewed

Suggested reviewers

  • Jacobjeevan

Poem

I'm a rabbit with a codey beat,
Hopping through updates oh so neat.
A new search prompt to light the way,
And Autocomplete to save the day.
FacilitySelect is now out of sight—
My code garden feels just right!
🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3cc0275 and 5b9d6bb.

📒 Files selected for processing (2)
  • public/locale/en.json (2 hunks)
  • src/components/Resource/ResourceCreate.tsx (5 hunks)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

netlify bot commented Feb 2, 2025

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit 5b9d6bb
🔍 Latest deploy log https://app.netlify.com/sites/care-ohc/deploys/67a9d09c4cc5860008671336
😎 Deploy Preview https://deploy-preview-10367--care-ohc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/components/Resource/ResourceCreate.tsx (1)

112-115: Consider memoizing facilityOptions for better performance.

The options array is recreated on every render. Consider using useMemo to optimize performance:

- const facilityOptions = facilitiesResponse?.results.map((facility) => ({
+ const facilityOptions = useMemo(() => facilitiesResponse?.results.map((facility) => ({
    label: facility.name,
    value: facility.id,
- }));
+ })), [facilitiesResponse?.results]);
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6d880c7 and 3f843c1.

📒 Files selected for processing (3)
  • public/locale/en.json (1 hunks)
  • src/components/Common/FacilitySelect.tsx (0 hunks)
  • src/components/Resource/ResourceCreate.tsx (5 hunks)
💤 Files with no reviewable changes (1)
  • src/components/Common/FacilitySelect.tsx
✅ Files skipped from review due to trivial changes (1)
  • public/locale/en.json
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: CodeQL-Build
  • GitHub Check: OSSAR-Scan
🔇 Additional comments (3)
src/components/Resource/ResourceCreate.tsx (3)

14-14: LGTM! Clean import organization for new dependencies.

The new imports are well-organized and properly support the migration to ShadCN components.

Also applies to: 49-52


97-110: LGTM! Well-structured query with proper typing and debouncing.

The facility query implementation is clean and includes proper error handling through the query hook.


131-165: LGTM! Form submission logic is robust and well-typed.

The form submission logic maintains good error handling and type safety while integrating well with the new Autocomplete component.

Comment on lines 226 to 237
<Autocomplete
options={facilityOptions ?? []}
value={field.value?.id ?? ""}
placeholder={t("start_typing_to_search")}
onChange={(value) => {
const facility =
facilitiesResponse?.results.find(
(f) => f.id === value,
) ?? null;
form.setValue("assigned_facility", facility);
}}
/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add error handling for facility selection.

The facility lookup in onChange could be optimized and should include error handling:

  <Autocomplete
    options={facilityOptions ?? []}
    value={field.value?.id ?? ""}
    placeholder={t("start_typing_to_search")}
    onChange={(value) => {
+     if (!value) {
+       form.setValue("assigned_facility", null);
+       return;
+     }
      const facility =
        facilitiesResponse?.results.find(
          (f) => f.id === value,
        ) ?? null;
+     if (!facility) {
+       console.error("Selected facility not found in results");
+       return;
+     }
      form.setValue("assigned_facility", facility);
    }}
  />
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<Autocomplete
options={facilityOptions ?? []}
value={field.value?.id ?? ""}
placeholder={t("start_typing_to_search")}
onChange={(value) => {
const facility =
facilitiesResponse?.results.find(
(f) => f.id === value,
) ?? null;
form.setValue("assigned_facility", facility);
}}
/>
<Autocomplete
options={facilityOptions ?? []}
value={field.value?.id ?? ""}
placeholder={t("start_typing_to_search")}
onChange={(value) => {
if (!value) {
form.setValue("assigned_facility", null);
return;
}
const facility =
facilitiesResponse?.results.find(
(f) => f.id === value,
) ?? null;
if (!facility) {
console.error("Selected facility not found in results");
return;
}
form.setValue("assigned_facility", facility);
}}
/>

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3f843c1 and 4ec98bb.

📒 Files selected for processing (2)
  • public/locale/en.json (2 hunks)
  • src/components/Resource/ResourceDetailsUpdate.tsx (4 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • public/locale/en.json
🧰 Additional context used
📓 Learnings (1)
src/components/Resource/ResourceDetailsUpdate.tsx (1)
Learnt from: AdityaJ2305
PR: ohcnetwork/care_fe#10345
File: src/components/Resource/ResourceDetailsUpdate.tsx:132-145
Timestamp: 2025-01-31T22:13:06.153Z
Learning: The migration from useTanStackQueryInstead to useQuery in React components requires:
1. Updating types to use UseQueryResult instead of custom hook return type
2. Replacing loading with isLoading property
3. Using queryKey array for cache management
4. Using queryFn with query utility function
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: cypress-run (1)
🔇 Additional comments (1)
src/components/Resource/ResourceDetailsUpdate.tsx (1)

152-170: LGTM! Well-implemented facility data fetching.

The implementation follows React Query best practices with:

  • Proper cache key management including query params
  • Debounced query for performance
  • Type-safe response handling
  • Clean mapping to Autocomplete options format

Comment on lines 253 to 265
<div>
<FieldLabel>
What facility would you like to assign the request to
</FieldLabel>
<FacilitySelect
multiple={false}
name="assigned_facility"
selected={state.form.assigned_facility}
setSelected={(obj) => setFacility(obj, "assigned_facility")}
errors={state.errors.assigned_facility}
<Label className="text-gray-700 -mt-3 mb-3">
{t("facility_assign_request")}
</Label>
<Autocomplete
options={facilityOptions ?? []}
placeholder={t("start_typing_to_search")}
value={state.form.assigned_facility}
onChange={(selected) =>
setFacility(selected, "assigned_facility")
}
/>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add error handling for facility selection.

The previous FacilitySelect component likely included error display functionality that needs to be maintained for form validation.

Add error handling to match the pattern used in other form fields:

 <div>
   <Label className="text-gray-700 -mt-3 mb-3">
     {t("facility_assign_request")}
   </Label>
   <Autocomplete
     options={facilityOptions ?? []}
     placeholder={t("start_typing_to_search")}
     value={state.form.assigned_facility}
     onChange={(selected) =>
       setFacility(selected, "assigned_facility")
     }
+    error={state.errors.assigned_facility}
   />
+  {state.errors.assigned_facility && (
+    <p className="text-red-500 text-sm mt-2">
+      {state.errors.assigned_facility}
+    </p>
+  )}
 </div>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<div>
<FieldLabel>
What facility would you like to assign the request to
</FieldLabel>
<FacilitySelect
multiple={false}
name="assigned_facility"
selected={state.form.assigned_facility}
setSelected={(obj) => setFacility(obj, "assigned_facility")}
errors={state.errors.assigned_facility}
<Label className="text-gray-700 -mt-3 mb-3">
{t("facility_assign_request")}
</Label>
<Autocomplete
options={facilityOptions ?? []}
placeholder={t("start_typing_to_search")}
value={state.form.assigned_facility}
onChange={(selected) =>
setFacility(selected, "assigned_facility")
}
/>
</div>
<div>
<Label className="text-gray-700 -mt-3 mb-3">
{t("facility_assign_request")}
</Label>
<Autocomplete
options={facilityOptions ?? []}
placeholder={t("start_typing_to_search")}
value={state.form.assigned_facility}
onChange={(selected) =>
setFacility(selected, "assigned_facility")
}
error={state.errors.assigned_facility}
/>
{state.errors.assigned_facility && (
<p className="text-red-500 text-sm mt-2">
{state.errors.assigned_facility}
</p>
)}
</div>

@@ -1,20 +1,20 @@
import { useQuery } from "@tanstack/react-query";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Migrate Query Hooks for Uniformity

The ResourceDetailsUpdate.tsx file still calls the legacy useTanStackQueryInstead (see line 32), even though it now imports useQuery from "@tanstack/react-query". Based on our repository-wide migration efforts (see PR #10345), all data-fetching logic should consistently use useQuery.

  • Replace all useTanStackQueryInstead usages with useQuery in ResourceDetailsUpdate.tsx.
  • Ensure that legacy wrappers are eventually removed or fully migrated for consistency.
🔗 Analysis chain

Consider migrating all queries to useQuery for consistency.

The file uses both useTanStackQueryInstead and useQuery hooks. Based on the retrieved learnings from PR #10345, we should consistently use useQuery across the codebase.

Let's verify other query usages in the codebase:

Also applies to: 32-32

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for usages of both hooks to assess migration status
echo "Searching for useTanStackQueryInstead usage..."
rg "useTanStackQueryInstead"

echo -e "\nSearching for @tanstack/react-query useQuery usage..."
rg "useQuery.*from.*@tanstack/react-query"

Length of output: 14985

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Feb 3, 2025
Copy link

github-actions bot commented Feb 3, 2025

Conflicts have been detected against the base branch. Please rebase your branch against the base branch.
cc: @NikhilA8606

See: https://docs.ohc.network/docs/contributing#how-to-resolve-merge-conflicts

@NikhilA8606 NikhilA8606 changed the title Replaced the older components with ShadCN components in the ResourceC… Replaced the older components with ShadCN components in the ResourceCreate Page Feb 3, 2025
@NikhilA8606 NikhilA8606 marked this pull request as draft February 4, 2025 11:18
@NikhilA8606 NikhilA8606 marked this pull request as ready for review February 7, 2025 18:01
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/components/Resource/ResourceCreate.tsx (1)

133-147: Add error handling and loading state for facilities query.

While the implementation is good, it could benefit from error handling and loading states.

   const { data: facilities } = useQuery({
     queryKey: ["facilities", qParams],
     queryFn: query.debounced(facilityApi.getAllFacilities, {
       queryParams: {
         name: qParams.name,
         facility_type: qParams.facility_type,
         organization: qParams.organization,
       },
     }),
+    onError: (error) => {
+      toast.error(t("error_loading_facilities"));
+      console.error("Error loading facilities:", error);
+    }
   });

   const facilityOptions = facilities?.results.map((facility) => ({
     label: facility.name,
     value: facility.id,
   }));
+
+  const isLoadingFacilities = !facilities && qParams.name;
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4ec98bb and 597e462.

📒 Files selected for processing (5)
  • public/locale/en.json (2 hunks)
  • src/components/Form/AutoCompleteAsync.tsx (0 hunks)
  • src/components/Resource/ResourceCreate.tsx (6 hunks)
  • src/components/Resource/ResourceDetailsUpdate.tsx (4 hunks)
  • src/hooks/useDebounce.ts (0 hunks)
💤 Files with no reviewable changes (2)
  • src/hooks/useDebounce.ts
  • src/components/Form/AutoCompleteAsync.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • public/locale/en.json
🧰 Additional context used
📓 Learnings (1)
src/components/Resource/ResourceDetailsUpdate.tsx (1)
Learnt from: AdityaJ2305
PR: ohcnetwork/care_fe#10345
File: src/components/Resource/ResourceDetailsUpdate.tsx:132-145
Timestamp: 2025-01-31T22:13:06.153Z
Learning: The migration from useTanStackQueryInstead to useQuery in React components requires:
1. Updating types to use UseQueryResult instead of custom hook return type
2. Replacing loading with isLoading property
3. Using queryKey array for cache management
4. Using queryFn with query utility function
🔇 Additional comments (4)
src/components/Resource/ResourceCreate.tsx (2)

13-13: LGTM! Clean imports for ShadCN components.

The new imports align with the PR objectives of migrating to ShadCN components.

Also applies to: 25-25, 50-50


204-219: Add error handling for facility selection.

The facility lookup in onChange could be optimized and should include error handling.

src/components/Resource/ResourceDetailsUpdate.tsx (2)

1-1: Migrate all query hooks to useQuery for consistency.

Based on the retrieved learnings from PR #10345, we should consistently use useQuery across the codebase.

Also applies to: 32-32


244-256: Add error handling for facility selection.

The Autocomplete component should display validation errors to maintain consistency with other form fields.

Comment on lines 162 to 176
const { data: facilitiesResponse } = useQuery({
queryKey: ["facilities", qParams],
queryFn: query.debounced(facilityApi.getAllFacilities, {
queryParams: {
name: qParams.name,
facility_type: qParams.facility_type,
organization: qParams.organization,
},
}),
});

const facilityOptions = facilitiesResponse?.results.map((facility) => ({
label: facility.name,
value: facility.id,
}));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add error handling for facility data fetching.

The facility query should handle error cases to prevent undefined behavior when the API call fails.

-  const { data: facilitiesResponse } = useQuery({
+  const { data: facilitiesResponse, error: facilitiesError } = useQuery({
     queryKey: ["facilities", qParams],
     queryFn: query.debounced(facilityApi.getAllFacilities, {
       queryParams: {
         name: qParams.name,
         facility_type: qParams.facility_type,
         organization: qParams.organization,
       },
     }),
   });

+  const facilityOptions = facilitiesError
+    ? []
+    : facilitiesResponse?.results.map((facility) => ({
         label: facility.name,
         value: facility.id,
       }));
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const { data: facilitiesResponse } = useQuery({
queryKey: ["facilities", qParams],
queryFn: query.debounced(facilityApi.getAllFacilities, {
queryParams: {
name: qParams.name,
facility_type: qParams.facility_type,
organization: qParams.organization,
},
}),
});
const facilityOptions = facilitiesResponse?.results.map((facility) => ({
label: facility.name,
value: facility.id,
}));
const { data: facilitiesResponse, error: facilitiesError } = useQuery({
queryKey: ["facilities", qParams],
queryFn: query.debounced(facilityApi.getAllFacilities, {
queryParams: {
name: qParams.name,
facility_type: qParams.facility_type,
organization: qParams.organization,
},
}),
});
const facilityOptions = facilitiesError
? []
: facilitiesResponse?.results.map((facility) => ({
label: facility.name,
value: facility.id,
}));

Comment on lines 185 to 206
<FormLabel required>
{t("facility_for_care_support")}
</FormLabel>
<Label className="text-gray-700 -mt-3 mb-3">
{t("facility_assign_request")}
</Label>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As usual i converted label to shadcn Label

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FormLabel is the one's that's to be used when using useForm

@@ -58,6 +60,7 @@ export default function ResourceCreate(props: ResourceProps) {
const { t } = useTranslation();
const [{ related_patient }] = useQueryParams();
const authUser = useAuthUser();
const [qParams, _] = useQueryParams();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why use query params here?

Comment on lines 136 to 140
queryParams: {
name: qParams.name,
facility_type: qParams.facility_type,
organization: qParams.organization,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's these doing?

@rithviknishad rithviknishad added invalid This doesn't seem right and removed merge conflict pull requests with merge conflict labels Feb 7, 2025
@rithviknishad rithviknishad added needs testing needs review and removed invalid This doesn't seem right labels Feb 8, 2025
@rithviknishad rithviknishad requested review from AdityaJ2305 and Jacobjeevan and removed request for AdityaJ2305 February 8, 2025 07:11
Copy link
Contributor

@Jacobjeevan Jacobjeevan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor thing, lgtm otherwise.

@@ -183,14 +201,21 @@ export default function ResourceCreate(props: ResourceProps) {
render={({ field }) => (
<FormItem>
<FormLabel required>
{t("facility_for_care_support")}
{t("facility_assign_request")}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{t("facility_assign_request")}
{t("facility_for_care_support")}

Let's switch this back as it was a product request.

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Feb 10, 2025
Copy link

Conflicts have been detected against the base branch. Please merge the base branch into your branch.
cc: @NikhilA8606

See: https://docs.ohc.network/docs/contributing#how-to-resolve-merge-conflicts

…k#10048/Upgrading-old-UI-components-in-ResourceCreate-with-Shadcn-component
@rithviknishad rithviknishad added tested and removed needs testing merge conflict pull requests with merge conflict needs review labels Feb 10, 2025
@rithviknishad rithviknishad merged commit d0c3406 into ohcnetwork:develop Feb 10, 2025
8 of 11 checks passed
Copy link

@NikhilA8606 Your efforts have helped advance digital healthcare and TeleICU systems. 🚀 Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants