feat: add useBusbarIdAsContingencyNameForPolygonCreation to Metadata#1065
feat: add useBusbarIdAsContingencyNameForPolygonCreation to Metadata#1065
Conversation
…ta type Signed-off-by: Florent <florent@users.noreply.github.com>
📝 WalkthroughWalkthroughAdded an optional boolean property Changes
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/utils/types/metadata.ts`:
- Line 20: The new public Metadata property
useEquipmentIdAsContingencyNameForPolygonCreation is missing JSDoc; add a
concise JSDoc comment immediately above the property explaining its purpose
(controls whether equipmentId is used as the contingency polygon name), when to
set it (for services that want polygon names derived from equipment IDs), and
how undefined is interpreted (default false), and mark the type as boolean |
undefined if applicable; optionally offer a shorter alias/name (e.g.,
useEquipmentIdForContingency or useIdForPolygonContingency) in the comment or
consider renaming the property in Metadata to improve readability.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 2e734038-3f51-438b-81e2-ab9303d39e5d
📒 Files selected for processing (1)
src/utils/types/metadata.ts
Refactors variable and metadata property to reflect the updated naming convention from equipment ID to busbar ID for contingency-related logic. Updates all associated occurrences to maintain consistency across the codebase. Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
|



Summary
useBusbarIdAsContingencyNameForPolygonCreationproperty toMetadatatype to support using equipment IDs instead of names as contingency identifiers during polygon creation