Skip to content

fix(demo): use add-on specific path for demo stylesheet - #217

Open
paodb wants to merge 1 commit into
masterfrom
fix-demo-stylesheet-path
Open

paodb wants to merge 1 commit into
masterfrom
fix-demo-stylesheet-path

Conversation

@paodb

@paodb paodb commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Move the demo stylesheet to styles/twincolgrid/demo-styles.css so it no longer shares the generic styles/demo-styles.css path with other add-on demos in AddonsDemo25.

Close #215

Summary by CodeRabbit

  • Style
    • The TwincolGrid demo now uses its dedicated styling, so its appearance may differ from the previous demo styling.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

TwincolDemoView now loads its stylesheet from the add-on-specific context://styles/twincolgrid/demo-styles.css path.

Changes

Demo stylesheet path

Layer / File(s) Summary
Update stylesheet reference
src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java
TwincolDemoView now references the stylesheet at context://styles/twincolgrid/demo-styles.css.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: Minimal · up to 6d130

The demo stylesheet now lives at an add-on-specific path, which avoids collisions with other demo jars. The change is small and reversible, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the demo stylesheet path is changed to an add-on specific path (styles/twincolgrid/demo-styles.css). The raw summary shows TwincolDemoView now loads that path instead …
Linked Issues check Passed [#215] Issue #215 requires the demo stylesheet to be published at META-INF/resources/styles/twincolgrid/demo-styles.css and loaded with @StyleSheet("context://styles/twincolgrid/demo-styles.css").…
Out of Scope Changes check Passed The whole-PR changes are the stylesheet relocation from styles/demo-styles.css to styles/twincolgrid/demo-styles.css and the one-line @StyleSheet path update in `src/test/java/com/flowingcode/va…
Full details: Title check

Explanation

The title names the main change: the demo stylesheet path is changed to an add-on specific path (styles/twincolgrid/demo-styles.css). The raw summary shows TwincolDemoView now loads that path instead of the shared styles/demo-styles.css, which matches the linked issue's goal of avoiding collisions between demo jars. The title is specific and clear, and the 'fix(demo):' prefix fits the change.

Full details: Linked Issues check

Explanation

[#215] Issue #215 requires the demo stylesheet to be published at META-INF/resources/styles/twincolgrid/demo-styles.css and loaded with @StyleSheet("context://styles/twincolgrid/demo-styles.css"). At the merge base, the stylesheet exists at src/test/resources/META-INF/resources/styles/demo-styles.css. At the reviewed head, it exists at src/test/resources/META-INF/resources/styles/twincolgrid/demo-styles.css, and the old path is absent. The raw summary states that TwincolDemoView now loads context://styles/twincolgrid/demo-styles.css. Both required changes are present. The requirement is a coding change, and the path move is the implementation. The text diff could not be read, so the file content is not compared byte-for-byte; the rename is established from the file trees and the summary.

Full details: Out of Scope Changes check

Explanation

The whole-PR changes are the stylesheet relocation from styles/demo-styles.css to styles/twincolgrid/demo-styles.css and the one-line @StyleSheet path update in src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java (+1/-1). Both changes directly implement #215. No unrelated files appear in the file-tree comparison between the merge base and the reviewed head. The text diff was unavailable, so the absence of other content edits rests on the summary and the file trees.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f4b6ddca-d1f4-4dad-8ad2-1cc3ad671a51
Commits

Reviewing files that changed from the base of the PR and between bf3abba and 6d130e2.

Files selected for processing: 2

  • src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java
  • src/test/resources/META-INF/resources/styles/twincolgrid/demo-styles.css

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@sonarqubecloud

Copy link
Copy Markdown

@paodb
paodb marked this pull request as ready for review November 20, 2026 20:33
@paodb
paodb requested a review from scardanzan November 20, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Do

Development

Successfully merging this pull request may close these issues.

Demo stylesheet uses a generic path shared by other add-on demos

1 participant