chore(LineModification): use form from commons-UI#4083
Conversation
|
Warning Review limit reached
Next review available in: 59 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR unifies line segment save handling through shared ChangesLine segment and line modification flow
Sequence Diagram(s)sequenceDiagram
participant LineForm
participant LineTypeSegmentDialog
participant LineModificationDialog
participant modifyLine
LineForm->>LineModificationDialog: form field updates
LineTypeSegmentDialog->>LineModificationDialog: onSave(data, lineSegments, applyLimits)
LineModificationDialog->>LineModificationDialog: merge segments and build DTO
LineModificationDialog->>modifyLine: modifyLine(studyUuid, nodeUuid, modificationUuid, dto)
modifyLine-->>LineModificationDialog: PUT or POST request result
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
7b7bad6 to
d66e01e
Compare
d66e01e to
493d5d6
Compare
Signed-off-by: David BRAQUART <david.braquart@rte-france.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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
`@src/components/dialogs/network-modifications/line/modification/line-modification-dialog.tsx`:
- Around line 24-57: The imports from `@gridsuite/commons-ui` in
`LineModificationDialog` reference line-modification symbols that are not
available in the currently published type declarations, so this will not
type-check. Either update the dependency to the version that exports
`lineModificationFormSchema`, `lineModificationEmptyFormData`,
`LineModificationFormData`, `lineModificationFormToDto`,
`lineModificationDtoToForm`, and `LineModificationDto`, or switch this dialog to
the older line-modification API and remove the unavailable imports.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 1d88b086-5afb-47ca-b75c-84d042c4e343
📒 Files selected for processing (13)
src/components/dialogs/line-types-catalog/line-type-segment-dialog.tsxsrc/components/dialogs/line-types-catalog/line-type-segment-form.tsxsrc/components/dialogs/network-modifications/line/creation/line-creation-dialog.tsxsrc/components/dialogs/network-modifications/line/modification/line-dialog-tabs.tsxsrc/components/dialogs/network-modifications/line/modification/line-modification-dialog-header.tsxsrc/components/dialogs/network-modifications/line/modification/line-modification-dialog-tabs.tsxsrc/components/dialogs/network-modifications/line/modification/line-modification-dialog.tsxsrc/components/dialogs/network-modifications/line/modification/line-modification-type.tssrc/components/dialogs/network-modifications/line/modification/line-utils.tssrc/services/network-modification-types.tssrc/services/study/network-modifications.tssrc/translations/en.jsonsrc/translations/fr.json
💤 Files with no reviewable changes (8)
- src/components/dialogs/network-modifications/line/modification/line-modification-type.ts
- src/components/dialogs/network-modifications/line/modification/line-dialog-tabs.tsx
- src/components/dialogs/network-modifications/line/modification/line-modification-dialog-header.tsx
- src/components/dialogs/network-modifications/line/modification/line-utils.ts
- src/components/dialogs/network-modifications/line/modification/line-modification-dialog-tabs.tsx
- src/translations/fr.json
- src/services/network-modification-types.ts
- src/translations/en.json
Signed-off-by: David BRAQUART <david.braquart@rte-france.com>
Signed-off-by: David BRAQUART <david.braquart@rte-france.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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
`@src/components/dialogs/network-modifications/line/modification/line-modification-dialog.tsx`:
- Around line 176-178: Annotate the reset callback’s formValues parameter in the
line modification dialog with the same form-values type used by the typed
callback near Line 147, while preserving the existing spread, equipment ID
update, and keepDirty behavior.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a4cf6e0e-fe5d-4258-a843-b0a8fc587641
📒 Files selected for processing (2)
src/components/dialogs/network-modifications/line/modification/line-modification-dialog.tsxsrc/components/dialogs/network-modifications/load/modification/load-modification-dialog.tsx
Signed-off-by: David BRAQUART <david.braquart@rte-france.com>
PR Summary
We remove from grid-study what has been moved to commons-ui by gridsuite/commons-ui#1232.