-
Notifications
You must be signed in to change notification settings - Fork 25
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
BUG/HCMPRE-2260: upload data mapping screen add/edit bug fixes #2198
Conversation
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes update the data handling in the UploadDataMapping component. The reducer logic now conditionally filters data based on specific categories ("HCM_UPLOAD_USER_MAPPING" and "HCM_UPLOAD_FACILITY_MAPPING") to return only active entries, and recalculates totalRows accordingly when filters are applied. In addition, pagination now includes a safeguard ensuring the currentPage does not exceed the available pages. Minor UI enhancements include making columns sortable and refining error handling by structuring error messages. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant C as UploadDataMapping Component
participant F as Filter Logic
participant P as Pagination Manager
participant UI as UI Renderer
U->>C: Submit data with/without filter
C->>F: Apply filtering on currentCategories
F-->>C: Return filtered active entries
C->>P: Validate current page vs totalRows
P-->>C: Confirm valid page/page adjustment
C->>UI: Update table with filtered & paginated data
UI-->>U: Render updated view
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✨ 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 (
|
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