Skip to content

Improve build scan badge readability with long tasks#200

Merged
bigdaz merged 3 commits into
gradle:mainfrom
gabrielfeo:gaf/too-small-bs-badge
Apr 25, 2024
Merged

Improve build scan badge readability with long tasks#200
bigdaz merged 3 commits into
gradle:mainfrom
gabrielfeo:gaf/too-small-bs-badge

Conversation

@gabrielfeo

@gabrielfeo gabrielfeo commented Apr 25, 2024

Copy link
Copy Markdown
Member

Improve readability of build scan when requested tasks is very long, as agreed in #175. HTML diff for each case of job summary is clearer in cd62d9c.

  • Ensure a minimum size for the badge, at least the size of "Build scan®", by preventing a line break with  
  • Reduce the size of the badge by tweaking the inner text

Also fix a typo in the build shell script.

Signed-off-by: Gabriel Feo <gabriel@gabrielfeo.com>
Signed-off-by: Gabriel Feo <gabriel@gabrielfeo.com>
Change tests for nbsp and concise badge

Make tests pass

Signed-off-by: Gabriel Feo <gabriel@gabrielfeo.com>
@gabrielfeo

gabrielfeo commented Apr 25, 2024

Copy link
Copy Markdown
Member Author

Here's how tables render in the end (just the HTML from the unit tests):

Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
root help 8.0 Build Scan published
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
root help 8.0 Build Scan published
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
root help 8.0 Build Scan not published
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
root help 8.0 Build Scan publish failed
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
root help 8.0 Build Scan published
root help 8.0 Build Scan published
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
root
check publishMyLongNamePluginPublicationToMavenCentral publ…
8.0 Build Scan published

@bigdaz

bigdaz commented Apr 25, 2024

Copy link
Copy Markdown
Member

Thanks for the PR and for adding some test coverage. Much appreciated!

@bigdaz bigdaz linked an issue Apr 25, 2024 that may be closed by this pull request
@bigdaz bigdaz merged commit bce7dac into gradle:main Apr 25, 2024
@bigdaz bigdaz added this to the v3.3.2 milestone Apr 25, 2024
@gabrielfeo gabrielfeo deleted the gaf/too-small-bs-badge branch April 26, 2024 08:01
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.

Build scan badge is too small in Job Summary

2 participants