Repository navigation
chore(cards): sync css/card-widgets.css with the Cacti core Card API stylesheet - #101
Merged
Merged
Conversation
…stylesheet Copy include/css/card-widgets.css from Cacti core 1.2.x as of Cacti/cacti#9095 (the port of Cacti/cacti#9088), which adds the card_sparkline() trend line styles. The bundled copy is loaded only when the running core does not ship the file. Add a unit test that pins the copy's hash, checks the sparkline rules are present, and checks the load gate. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
TheWitness
approved these changes
Dec 3, 2026
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
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.



Syncs the bundled
css/card-widgets.csswith Cacti core, as requested for Cacti/cacti#9088.css/card-widgets.cssis now byte-identical toinclude/css/card-widgets.cssin feature: [1.2.x] add card_sparkline() trend widget to the Card API cacti#9095 (the1.2.xport of feature: add card_sparkline() trend widget to the Card API cacti#9088) and in #9088 itself. The change adds thecard_sparkline()trend line styles. Nothing else in the file changed.tests/Unit/CardWidgetsSyncTest.phppins the copy's SHA-256, checks each sparkline rule is present, and checks the load gate.Merge after Cacti/cacti#9095, so the copy matches a merged core file. If the stylesheet changes in review there, I will re-sync this PR.
Verification (local): the new test passes under Pest with the plugin placed in a Cacti
1.2.xtree, andtests/bin/validate-manifest.phppasses.