Repository navigation
feat: Overload Panel redesign, monitoring factor support, and backend overload detection - #20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes (commits
94e232candd430310):New
OverloadPanelcomponent (frontend/src/components/OverloadPanel.tsx): A compact panel at the top of the left sidebar showing overloaded lines for both N-state and N-1 (post-contingency) states, with clickable line names that zoom the diagram.monitoringFactorsetting: ExposesMONITORING_FACTOR_THERMAL_LIMITS(default0.95) as a user-configurable setting, sent to the backend on every config/analysis request.Backend overload detection (
recommender_service.py): New_get_overloaded_lines()method that compares current flows against thermal limits scaled bymonitoring_factor. Both/api/network-diagramand/api/n1-diagramnow return alines_overloadedlist. The base network diagram also runs an AC load flow first so annotations are current.Rho values scaled by monitoring factor:
rho_before,rho_after, andmax_rhoin enriched action data are now multiplied bymonitoring_factorbefore being sent to the frontend.Severity thresholds use monitoring factor: Action card color coding in
ActionFeeddynamically usesmonitoringFactorinstead of hardcoded1.0/0.9thresholds.View mode toggle relocated: The Flows / Δ Flows toggle moved from
ActionFeedtoVisualizationPanel.standalone_interface.htmlparity: All changes mirrored in the standalone interface.You can create the PR at:
https://github.com/marota/ExpertAssist/compare/master...claude/create-pull-request-2dI9g