Skip to content

Conversation

@mawinter69
Copy link
Contributor

@mawinter69 mawinter69 commented Nov 12, 2025

When clicking on the "Explain Error" button when viewing the console output and an explanation already exists a intermediate pseudo dialog was shown to either show the explanation, regenerate or cancel. I think that is not a good UI experience.
An existing explanation is now directly shown when clicking in "Explain Error". The card now has 2 buttons in the top right that allow to regenerate and to close the explanation.
Even when the explainer is disabled after an explanation has been created for a run, the button will be available. But re-explaining will not be available in that case.
The change also prevents that the footer injects anything to a page or loads the js when not on a console url.

fixes #52

After:
image

Testing done

Interactive testing and added unit tests that ensure the div is properly injected.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

When clicking on the "Explain Error" button when viewing the console
output and an explanation already exists a intermediate pseudo dialog
was shown to either show the explanation, regenerate or cancel. I think
that is not a good UI experience.
An existing explanation is now directly shown when clicking in "Explain
Error". The card now has 2 buttons in the top right that allow to
regenerate and to close the explanation.
@mawinter69 mawinter69 marked this pull request as ready for review November 12, 2025 21:28
@mawinter69 mawinter69 requested a review from a team as a code owner November 12, 2025 21:28
Copy link
Member

@shenxianpeng shenxianpeng left a comment

Choose a reason for hiding this comment

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

This is really cool 👍

@shenxianpeng shenxianpeng merged commit e7fb11f into jenkinsci:main Nov 13, 2025
17 checks passed
@shenxianpeng shenxianpeng added the enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Nov 13, 2025
shenxianpeng added a commit that referenced this pull request Nov 13, 2025
fixup of #57 

### Testing done

<!-- Comment:
Provide a clear description of how this change was tested.
At minimum this should include proof that a computer has executed the
changed lines.
Ideally this should include an automated test or an explanation as to
why this change has no tests.
Note that automated test coverage is less than complete, so a successful
PR build does not necessarily imply that a computer has executed the
changed lines.
If automated test coverage does not exist for the lines you are
changing, you must describe the scenario(s) in which you manually tested
the change.
For frontend changes, include screenshots of the relevant page(s) before
and after the change.
For refactoring and code cleanup changes, exercise the code before and
after the change and verify the behavior remains the same.
-->

### Submitter checklist
- [ ] Make sure you are opening from a **topic/feature/bugfix branch**
(right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired
changelog entry
- [x] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream
changes
- [ ] Ensure you have provided tests that demonstrate the feature works
or the issue is fixed

<!--
Put an `x` into the [ ] to show you have filled the information.
The template comes from
https://github.com/jenkinsci/.github/blob/master/.github/pull_request_template.md
You can override it by creating .github/pull_request_template.md in your
own repository
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Directly show existing error explanation

2 participants