Added Centers Create fix - #138
Conversation
📝 WalkthroughWalkthroughThe center form now handles localized activation and submitted-on dates for browser date inputs. The form initializes date format and locale values. ChangesCenter form date handling
Center API gap documentation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@ISSUES.md`:
- Around line 227-229: Update the ISSUES.md entries for
PutCentersCenterIdRequest and PutGroupsGroupIdRequest so each model separately
lists its missing staffId and externalId fields; retain the existing endpoint
context for PutGroupsGroupIdRequest.
In `@src/pages/centers/CreateCenters.tsx`:
- Around line 166-185: Update the activationDate handler in CreateCenters.tsx
and the corresponding submittedOnDate handler at the sibling site to store the
input’s raw YYYY-MM-DD value directly, without parsing through Date or
local-time formatting. Keep any date formatting limited to UI display while
ensuring create7 receives the unchanged date-only values in both fields.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 0467ecbc-9cab-47bc-9203-98905e2d0dd2
📒 Files selected for processing (2)
ISSUES.mdsrc/pages/centers/CreateCenters.tsx
JIRA TICKET: MXWAR-109
Description
Added Centers Create fix and document OpenAPI errors for Edit Centers
Related issues and discussion
#{Issue Number}
Screenshots, if any
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
If you have multiple commits please combine them into one commit by squashing them.
Read and understood the contribution guidelines at
CONTRIBUTING.md.Summary by CodeRabbit
New Features
dd MMMM yyyydate format and English locale.Documentation