Repository navigation
Keep unknown history distinct from empty forecast history - #8341
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.
Task
ORB-22549 — Keep unknown history distinct from empty forecast history
Description
Analytics > Forecast, dark theme at 1440×900 and 375×900. In a browser-only GET response fixture, load /#analytics/forecast with inputs.history_deliveries omitted, while keeping the forecast wrapper, explicit unavailable reasons, support, and pre_regression_baseline. The full view claims no task has finished with recorded runs and hides the supplied baseline/reason. A second response keeps available time/cost/token quantiles but omits only the history count: the full view still hides the figures, while the compact Tasks forecast shows them. Users are told to widen history even though the server did not establish empty history. Unknown history must stay distinct from an explicit zero.
Reproduction/evidence: ORB-22536 ux-review.json and measurements/forecast-extra-* retain the API-shaped response. Screenshots on ORB-22536: screenshots/dashboard-forecast-older-with-reasons-dark-375.jpg, screenshots/dashboard-forecast-older-with-values-dark-375.jpg, and their -1440.jpg counterparts. Compare screenshots/dashboard-compact-older-with-values-dark-375.jpg.
Code: crates/orbit-web/assets/dashboard/js/forecast.js:624–633, totalsNodes uses !inputs.history_deliveries before rendering availability evidence. Verified against base e2b83af and matching live JS. Deduplicated against completed ORB-19963 (presentation) and ORB-19961 (calculation); neither is open, and this finding concerns only presentation of an omitted field. No live history was changed.
Acceptance Criteria
Screenshots
Execution Summary
Click to expand
Result
Changed
totalsNodesincrates/orbit-web/assets/dashboard/js/forecast.jsto show the empty-history state only wheninputs.history_deliveriesis numeric zero. Missing and null counts now continue through the existing forecast, unavailable-reason, and baseline renderers.Acceptance criteria
Validation
make ci-guardscargo fmt --all -- --checkscripts/build-budget.py -- cargo clippy -p orbit-web --lib --bins -- -D warnings -D clippy::disallowed_methodsscripts/build-budget.py -- cargo clippy -p orbit-web --all-targets -- -D warnings -A clippy::disallowed_methodsRUSTDOCFLAGS="-D warnings" scripts/build-budget.py -- cargo doc --no-deps -p orbit-webgit diff --checkEvidence and reconciliation
Attached task artifacts:
screenshots/forecast-omitted-reason-dark-1440.jpg,screenshots/forecast-omitted-reason-dark-375.jpg,screenshots/forecast-zero-history-dark-1440.jpg,screenshots/forecast-zero-history-dark-375.jpg,screenshots/forecast-omitted-available-dark-1440.jpg,screenshots/forecast-omitted-available-dark-375.jpg, plus base screenshotsscreenshots/forecast-omitted-reason-dark-1440-before.jpgandscreenshots/forecast-omitted-reason-dark-375-before.jpg.Only the selected source file is a tracked worktree change; it is within the existing task selector. Screenshot sources and the temporary browser harness remain under ignored
.orbit/tmp/. No unrelated edits or cleanup leftovers exist. No documentation change applies.Validation
Branch Freshness
origin/agent-mainorbit/ORB-22549-ef82b925