-
Notifications
You must be signed in to change notification settings - Fork 7
feat: Add Excel themes, curate list, and show color counts in UI #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dradoudine
wants to merge
6
commits into
jenkinsci:master
Choose a base branch
from
dradoudine:feature/excel-themes-refinement
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: Add Excel themes, curate list, and show color counts in UI #453
dradoudine
wants to merge
6
commits into
jenkinsci:master
from
dradoudine:feature/excel-themes-refinement
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
This commit introduces several enhancements to the color palette feature: 1. Adds 4 new Excel-inspired color palettes: - EXCEL_OFFICE_DEFAULT - EXCEL_BLUE_II - EXCEL_GREEN_II - EXCEL_RED_VIOLET_II 2. Curates the existing list of ~20 themes for better distinctiveness: - Removes 3 themes: PLASMA, TOMORROW, and TOMORROW_NIGHT. - The total number of predefined themes is now 21 (plus RANDOM). 3. Enhances the UI for palette selection: - The dropdown in the `publishReport` step now displays the number of defined colors for each palette (e.g., "Rainbow (7 colors)"). - This is achieved by a new method `getDefinedColorCount` in `ColorPalette.java` and corresponding changes in `PublishReportStep.Descriptor`. 4. Updates unit tests in `ColorPaletteTest.java` to reflect these additions, removals, and to test the new color count functionality.
Previously, the build was failing because it couldn't find some necessary components for testing. I've now added `mockito-core` (version 5.12.0) to your `pom.xml` file. This should resolve the compilation errors and allow your unit tests to run correctly.
This commit addresses several compilation errors in `ReportRecorderIntegrationTest.java`: - Corrected mocking of `Provider` to use `getSymbolName()` instead of a non-existent `getName()` method. - Updated item handling in test setup for `Report` objects to use `setItems(List<Item>)` as `addItem(Item)` is not available. - Ensured `Provider.scan()` is mocked correctly to return a pre-populated `Report` object for the `ReportScanner` to process. - Made `ColorPalette.THEMES` map public to allow access from tests in different packages for verifying theme color definitions. These changes should allow the test suite to compile and run successfully.
This commit addresses the following issues: 1. Fixes a compilation error in `ReportRecorderIntegrationTest.java` by correctly using `item.setResult(map)` instead of the non-existent `item.addResult()` method for setting up test data. 2. Adds `javax.annotation:javax.annotation-api:1.3.2` with `provided` scope to `pom.xml`. This is to resolve build warnings related to `javax.annotation.meta.When` not being found during compilation. These changes should allow the test suite to compile successfully and reduce build log warnings.
Replaces `mockito-core` with `mockito-inline` (version 5.12.0) in `pom.xml`. This change is to resolve errors during test execution where the JVM failed to initialize due to `mockito-core.jar` being incorrectly used as a Java agent by Surefire. `mockito-inline` includes the necessary agent capabilities and allows for more advanced mocking features, which should prevent the "Failed to find Premain-Class manifest attribute" error and allow tests to run correctly.
I've changed the version of the `mockito-inline` test dependency from 5.12.0 to 5.11.0 in `pom.xml`. This is to resolve an issue where version 5.12.0 could not be found in the configured Maven repositories. Version 5.11.0 is a known stable version and should be resolvable, allowing the build to proceed.
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.
This commit introduces several enhancements to the color palette feature:
Adds 4 new Excel-inspired color palettes:
Curates the existing list of ~20 themes for better distinctiveness:
Enhances the UI for palette selection:
publishReport
step now displays the number of defined colors for each palette (e.g., "Rainbow (7 colors)").getDefinedColorCount
inColorPalette.java
and corresponding changes inPublishReportStep.Descriptor
.Updates unit tests in
ColorPaletteTest.java
to reflect these additions, removals, and to test the new color count functionality.Testing done
Submitter checklist