Skip to content

Issue 2131 - highlight rows with missing data#2209

Merged
rmroot merged 3 commits intodevelopfrom
issue-2131b
Jan 21, 2026
Merged

Issue 2131 - highlight rows with missing data#2209
rmroot merged 3 commits intodevelopfrom
issue-2131b

Conversation

@jamlokim
Copy link
Copy Markdown
Contributor

connects #2131

This pull request enhances the analysis summary data structures and reporting components to track and display missing predictor variables at both the monthly and annual levels. The changes ensure that missing predictors are identified, aggregated, and made available for display in summary tables, improving transparency and data quality diagnostics.

Enhancements to analysis data structures and calculations:

  • Added a missingPredictors array property to MonthlyAnalysisSummaryDataClass, MonthlyAnalysisCalculatedValuesSummation, and AnnualAnalysisSummaryDataClass to track missing predictor variables for each period.
  • Implemented logic in MonthlyAnalysisSummaryDataClass to populate the missingPredictors array by checking for missing predictor variables in each month.
  • Updated MonthlyAnalysisCalculatedValuesSummation and AnnualAnalysisSummaryDataClass to aggregate missing predictors across months or the year, ensuring unique lists.

Propagation of missing predictor information to summary outputs:

  • Modified summary classes (MonthlyAnalysisSummaryClass, MonthlyAccountAnalysisClass, MonthlyFacilityAnalysisClass, AnnualAccountAnalysisSummaryClass, AnnualFacilityAnalysisSummaryClass, AnnualGroupAnalysisSummaryClass) to include missingPredictors in their output objects, making this information available for display.
  • Updated the toObject() methods to return the new missingPredictors property.

UI and reporting updates:

  • Passed new inputs such as [isAccount], [inReport], and [groupSummaries] to summary table components in various report and analysis result templates, preparing the UI to display the enhanced summary information.

These changes collectively improve the application's ability to surface and report on missing predictor data, supporting better analysis and troubleshooting.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request enhances the analysis summary functionality to identify, track, and visually highlight rows with missing predictor data at both monthly and annual levels. The implementation adds a missingPredictors array property to track missing predictor variable IDs throughout the analysis pipeline, from data calculations to UI display.

Changes:

  • Added missingPredictors array to data models (MonthlyAnalysisSummaryData and AnnualAnalysisSummary) to track missing predictor variable IDs
  • Implemented logic to detect and aggregate missing predictors across monthly and annual summaries
  • Enhanced UI tables with visual indicators (exclamation icons and row highlighting) to identify missing data
  • Added input properties (isAccount, inReport, groupSummaries, group) to table components to support context-aware display logic

Reviewed changes

Copilot reviewed 29 out of 30 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/app/models/analysis.ts Added missingPredictors array property to monthly and annual summary interfaces
src/app/calculations/analysis-calculations/monthlyAnalysisSummaryDataClass.ts Implemented checkMissingPredictors method to identify missing predictor variables per month
src/app/calculations/analysis-calculations/monthlyAnalysisCalculatedValuesClassSummation.ts Added logic to aggregate missing predictors across months using lodash's uniq function
src/app/calculations/analysis-calculations/annualAnalysisSummaryDataClass.ts Implemented setMissingPredictors method to aggregate missing predictors for annual summaries
src/app/calculations/analysis-calculations/*.ts Updated toObject methods in summary classes to include missingPredictors in output
src/app/shared/shared-analysis/monthly-analysis-summary-table/* Enhanced table component with getPredictorVariableStatus method and visual indicators for missing data
src/app/shared/shared-analysis/annual-analysis-summary-table/* Enhanced table component with checkPredictorValueStatus method and row highlighting for missing data
Various report and analysis component templates Propagated new input properties (groupSummaries, isAccount, inReport, group) to summary table components
*.component.css Added CSS styling for missing-month-row highlighting and missing-predictor-cell layout
package-lock.json Dependency resolution updates (peer dependency changes)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jamlokim jamlokim requested a review from rmroot January 20, 2026 19:53
@rmroot rmroot merged commit 1697bef into develop Jan 21, 2026
3 checks passed
@jamlokim jamlokim deleted the issue-2131b branch January 23, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants