-
Notifications
You must be signed in to change notification settings - Fork 20
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
FEATURE/HCMPRE-1704 : Removing current validation from assumptions an… #2122
Conversation
…d making sure the flow works as expected( for mixed strat, regis and dist can be same)
📝 WalkthroughWalkthroughThe pull request introduces changes to three files in the microplan module of a health application. The modifications focus on the removal of a filtering mechanism for dropdown options in the Changes
Possibly related PRs
Suggested reviewers
Poem
Finishing Touches
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 5
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (3)
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/AssumptionsForm.js
(2 hunks)health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js
(3 hunks)health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/utils/utilities.js
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js (1)
Pattern **/*.js
: check
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/utils/utilities.js (1)
Pattern **/*.js
: check
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/AssumptionsForm.js (1)
Pattern **/*.js
: check
🔇 Additional comments (2)
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js (1)
21-21
: LGTM! Well-named state variable for loading management.The new state variable follows React conventions and clearly indicates its purpose.
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/AssumptionsForm.js (1)
102-105
: LGTM! The registration process dropdown implementation looks good.The direct mapping of options without filtering aligns well with the updated validation logic.
...cro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js
Show resolved
Hide resolved
...cro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js
Outdated
Show resolved
Hide resolved
...micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/AssumptionsForm.js
Show resolved
Hide resolved
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/utils/utilities.js
Show resolved
Hide resolved
There was a problem hiding this 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
♻️ Duplicate comments (1)
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js (1)
107-107
: 🧹 Nitpick (assertive)Consider preventing layout shifts during loading.
The conditional rendering between Loader and BoundaryKpi might cause layout shifts. Consider wrapping both components in a container with fixed dimensions to maintain layout stability during loading states.
- {isStatusMapLoading ? <Loader /> : <BoundaryKpi data={statusMap} />} + <div className="boundary-kpi-container"> + {isStatusMapLoading ? <Loader /> : <BoundaryKpi data={statusMap} />} + </div>Add the following CSS to your stylesheet:
.boundary-kpi-container { min-height: 200px; /* Adjust based on your BoundaryKpi component's typical height */ position: relative; }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js
(3 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js (1)
Pattern **/*.js
: check
🔇 Additional comments (1)
health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js (1)
21-21
: LGTM! Loading state initialization is well-placed.The loading state is correctly initialized with other state declarations.
...cro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/BoundarySelection.js
Show resolved
Hide resolved
#2122) * FEATURE/HCMPRE-1704 : Removing current validation from assumptions and making sure the flow works as expected( for mixed strat, regis and dist can be same) * FEATURE/HCMPRE-1704 : Review updates
…d making sure the flow works as expected( for mixed strat, regis and dist can be same)
Choose the appropriate template for your PR:
Feature PR
Feature Request
JIRA ID
Module
Description
Related Issues
Bugfix PR
Bugfix Request
JIRA ID
Module
Description
Root Cause
Related Issues
Release PR
Summary by CodeRabbit
Release Notes
Bug Fixes
New Features
The changes focus on improving user experience and form validation in the microplan module, with more robust handling of process selections and loading states.