Skip to content

Show the fix text when the judgement proposes no change to the code - #83

Merged
Pranav-Mathad merged 1 commit into
mainfrom
issue-74-show-fix-text
Nov 29, 2026
Merged

Pranav-Mathad merged 1 commit into
mainfrom
issue-74-show-fix-text

Conversation

@Pranav-Mathad

Copy link
Copy Markdown
Owner

Closes #74.

The last open part of #74: the Decisions screen hid a suggested improvement that the data contains.

Why

Under "Proposed fix", the fix was shown only when fix.action was not none. The AI job sometimes answers with action none and useful text: either why no change is needed, or what to check first. That text was dropped and the screen said "No improvement proposed." In the published results this hit 2 of artemis's top 10 and 5 of shopware's.

What changes

web/src/screens/decisions/FixFirst.tsx, one new branch:

  • action other than none: as before.
  • action none, non-empty text, and the judgement's text is being shown (AI text with AI on, or template text): the text is shown with its badge and without an action label.
  • everything else, including an AI judgement while AI is switched off: "No improvement proposed.", as before.

No other screen shows fix text, so nothing else changes. No change to data, contracts, Python or the bundles.

What I ran and saw

make check passes: ruff, 36 Python tests passed and 1 skipped, contracts up to date, typecheck, 4 web tests, build.

The app was served locally and these pages of the committed bundles were rendered with headless Chrome; the "Proposed fix" text was read out of the rendered page.

Page Before Now
shopware rank 5 No improvement proposed. AI: "No change needed for the bootstrap imports. If the foundation should stay free of DevOps, …"
shopware rank 7 No improvement proposed. AI: "No split is needed; once the deprecated getStates/setStates accessors are removed in v6.8.0 …"
shopware rank 8 No improvement proposed. AI: "No change is needed, because subscribing to SetupStagingEvent is the intended extension point …"
shopware rank 9 No improvement proposed. AI: "No split is needed; the class is a data entity whose length follows from the number of customer fields."
shopware rank 10 No improvement proposed. AI: "Inspect the import statements of the 3 files for references to spec or test files …"
artemis rank 6 No improvement proposed. AI: "Check how GroupNotificationService uses ProgrammingExercise. If it needs only general exercise data, …"
artemis rank 10 No improvement proposed. AI: "Check how TutorialGroup uses ChannelDTO. If it only feeds a JSON view, …"
artemis rank 60 (action none, empty text) No improvement proposed. unchanged
artemis rank 7 (move_symbol) text with "Move a symbol" label unchanged
artemis rank 6 and shopware rank 9 with ai=off No improvement proposed. unchanged

Top 10 with AI on, counted from the data under this rule: all 10 show a suggestion in artemis, shopware and graylog.

Limits

  • The text was read from the rendered page. Nobody has looked at the screen by eye.
  • Four of the shopware entries say that no change is needed. They stay in the fix-first list, because a verdict never moves a finding (spec §11.1); the screen now shows the reason.
  • With AI switched off these findings say "No improvement proposed.", since the template has no fix for their types.

@Pranav-Mathad
Pranav-Mathad merged commit 6cdf2f7 into main Nov 29, 2026
2 checks passed
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.

Give every fix-first finding a suggested improvement

1 participant