Skip to content

fix(gui): the phase indicator says not scored, and maturity averages only scored phases (#20658) - #20666

Merged
mrveiss merged 1 commit into
mainfrom
issue-20658-unscored-phase
Nov 3, 2026
Merged

mrveiss merged 1 commit into
mainfrom
issue-20658-unscored-phase

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Closes #20658

Thinking Path

  • ?? 0 turned "no figure" into a measured 0%, and the average then counted it. Keeping null through the component makes the difference visible everywhere it's read.
  • A measured 0% has to stay 0%, so the check is on missing, not on falsy.
  • The component was over its size ceiling, so the scoring helpers moved out rather than the ceiling going up.

What Changed

  • PhaseProgressionIndicator.vue: an unscored phase reads "Not scored", and its progress bar has no aria-valuenow and no fill. Maturity averages only scored phases, and shows "No phases scored" when there are none. A report's overall_maturity is also no longer defaulted to 0.
  • New phaseScoring.ts: deriveStatus maps a missing figure to not_scored, and averageScored skips missing ones. An unscored card doesn't get the incomplete class.
  • Two English-only keys, with the i18n baselines raised by 1 for workflow.phaseProgression.noneScored. Size ceiling lowered from 634 to 618.

Verification

  • New PhaseProgressionIndicator.unscored.test.ts, covering unscored, measured 0%, mixed, all unscored and all scored: 5 passed, with reka-ui stubbed.
  • repo_tests/i18n_untranslated_ratchet_test.py: 13 passed. ESLint on the touched files printed nothing; commit hooks passed.
  • Not run: vue-tsc, the component's stories, other vitest files, and any browser check.

Model Used

Claude Opus 5.5

@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 2, 2026
@mrveiss mrveiss added the phase:M3.9 Chat, Agents, Analytics and Settings screens label Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 655489c and 9e65b40.

Files selected for processing: 6
  • autobot-frontend/src/components/workflow/PhaseProgressionIndicator.vue
  • autobot-frontend/src/components/workflow/__tests__/PhaseProgressionIndicator.unscored.test.ts
  • autobot-frontend/src/components/workflow/phaseScoring.ts
  • autobot-frontend/src/i18n/locales/en.json
  • repo_tests/i18n_untranslated_ratchet_test.py
  • scripts/frontend_file_size_known_large.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20666 (head 9e65b40): approve.

Read against the diff; no tests were run.

Both #20658 criteria hold:

  • An unscored phase keeps null through deriveStatus, reads "Not scored", has no fill or aria-valuenow, and gets no lowest-tier class. A measured 0% stays 0%, with a test.
  • averageScored averages scored phases only and returns null when none are, and the page then says "No phases scored".

Low, not blocking: en.json adds two keys while each locale count in i18n_untranslated_ratchet_test.py rises by one. I did not resolve why; the ratchet test on CI will show if that's wrong.

Not checked: vue-tsc, which the author also did not run, and the moved helpers beyond reading them against the old code.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Auto-sync: merging main into issue-20658-unscored-phase conflicts

The sync aborted the merge and pushed nothing. Conflicts are information, so it never resolves one itself. Below, for each conflicted file, are the commits that touched it on each side since the merge base 655489c4e6. Merge main in yourself and push; the label clears on the first run that finds this branch 0 behind.

repo_tests/i18n_untranslated_ratchet_test.py

side commit subject issue refs
main ba1111df9 Merge #20496 @ fe1d9af into the merge train #20496
main 62b874223 fix(company-os): a company can require board approval to raise a budget limit (#8214) #8214
this branch 9e65b40d4 fix(gui): unscored phase reads as not scored, not 0%, and is left out of maturity (#20658) #20658

@github-actions github-actions Bot added the sync-conflict Set by the branch sync (#19548) label Nov 2, 2026
This was referenced Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase:M3.9 Chat, Agents, Analytics and Settings screens sync-conflict Set by the branch sync (#19548)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(gui): the phase indicator shows an unscored phase as 0% and averages it into maturity

1 participant