Skip to content

Document Badge component experimental feature and exclude feature flags from jar#45

Merged
javier-godoy merged 2 commits intomasterfrom
issue-43
Apr 21, 2026
Merged

Document Badge component experimental feature and exclude feature flags from jar#45
javier-godoy merged 2 commits intomasterfrom
issue-43

Conversation

@paodb
Copy link
Copy Markdown
Member

@paodb paodb commented Apr 20, 2026

  • Documents that since version 2.x, this add-on uses the preview Badge component from Vaadin core, which must be explicitly enabled as an experimental feature.
  • Excludes vaadin-featureflags.properties from the packaged add-on JAR to prevent distributing project-specific feature flag configuration.

Close #43

Summary by CodeRabbit

  • Documentation
    • Added instructions for enabling the Badge component, now available as an experimental feature starting from version 2.0.0. Users can enable it via the experimental features panel or through feature flag configuration.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 20, 2026

Warning

Rate limit exceeded

@paodb has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 51 minutes and 10 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 51 minutes and 10 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e2c5db22-b92d-4788-b212-888ec3fd525d

📥 Commits

Reviewing files that changed from the base of the PR and between e56fafd and 1b3f852.

📒 Files selected for processing (2)
  • README.md
  • pom.xml

Walkthrough

The changes address enabling the Badge component as an experimental Vaadin feature. README documentation was added describing the Badge component requirement and two enablement methods. The Maven build configuration was updated to exclude the vaadin-featureflags.properties file from add-on artifacts.

Changes

Cohort / File(s) Summary
Badge component enablement
README.md, pom.xml
Added documentation for enabling the experimental Badge component feature via Copilot or feature flags file; excluded vaadin-featureflags.properties from add-on artifact packaging.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Possibly related PRs

  • Migrate to native Vaadin Badge component #40: Implements the Badge component feature flag activation and code migration, while this PR documents the enablement requirement and excludes the configuration file from artifacts.

Suggested reviewers

  • mlopezFC
  • javier-godoy
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes both main changes: documenting the Badge component experimental feature requirement and excluding feature flags from the JAR.
Linked Issues check ✅ Passed The PR successfully addresses all three requirements from issue #43: documents the Badge component as experimental, provides both enablement methods, and excludes the properties file from the JAR.
Out of Scope Changes check ✅ Passed All changes are directly related to the linked issue requirements; no out-of-scope modifications detected in the README documentation or pom.xml configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-43

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
pom.xml (1)

305-315: ⚠️ Potential issue | 🟠 Major

Move the feature-flag exclusion to the top-level JAR configuration.

The **/vaadin-featureflags.properties exclusion at line 313 applies only when the directory profile is active. Since this profile is not active by default, standard Maven builds (mvn package, mvn install) will include the feature flag file in the main add-on JAR. Move the exclusion to the global maven-jar-plugin config (lines 198–214) and leave the flow-build-info.json exclusion in the profile-specific configuration.

🔧 Proposed fix
@@
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-jar-plugin</artifactId>
 				<version>3.1.2</version>
 				<configuration>
+					<excludes>
+						<exclude>**/vaadin-featureflags.properties</exclude>
+					</excludes>
 					<archive>
 						<index>true</index>
@@
 							<!-- Generated file that shouldn't be included in add-ons -->
 							<excludes>
 								<exclude>META-INF/VAADIN/config/flow-build-info.json</exclude>
-								<exclude>**/vaadin-featureflags.properties</exclude>
 							</excludes>
 						</configuration>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pom.xml` around lines 305 - 315, Move the
<exclude>**/vaadin-featureflags.properties</exclude> entry out of the
profile-specific <plugin> configuration and into the top-level maven-jar-plugin
configuration so the vaadin-featureflags.properties file is excluded for
standard builds; keep the
<exclude>META-INF/VAADIN/config/flow-build-info.json</exclude> in the
profile-specific plugin config. Update the global maven-jar-plugin (artifactId
maven-jar-plugin) <excludes> to include **/vaadin-featureflags.properties and
remove that exclude from the profile's maven-jar-plugin block.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Around line 116-118: Wrap the feature-flag line
com.vaadin.experimental.badgeComponent=true in a fenced code block marked with
the properties language (i.e., add ```properties before and ``` after) so the
snippet renders consistently and resolves the MD040 markdownlint warning; update
the README.md snippet accordingly.

---

Outside diff comments:
In `@pom.xml`:
- Around line 305-315: Move the
<exclude>**/vaadin-featureflags.properties</exclude> entry out of the
profile-specific <plugin> configuration and into the top-level maven-jar-plugin
configuration so the vaadin-featureflags.properties file is excluded for
standard builds; keep the
<exclude>META-INF/VAADIN/config/flow-build-info.json</exclude> in the
profile-specific plugin config. Update the global maven-jar-plugin (artifactId
maven-jar-plugin) <excludes> to include **/vaadin-featureflags.properties and
remove that exclude from the profile's maven-jar-plugin block.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f312007a-65a4-47ef-9210-6fe46cc354b4

📥 Commits

Reviewing files that changed from the base of the PR and between cbc6d74 and e56fafd.

📒 Files selected for processing (2)
  • README.md
  • pom.xml

Comment thread README.md Outdated
@sonarqubecloud
Copy link
Copy Markdown

@paodb paodb marked this pull request as ready for review April 20, 2026 21:00
@javier-godoy javier-godoy merged commit 35533a0 into master Apr 21, 2026
4 checks passed
@javier-godoy javier-godoy deleted the issue-43 branch April 21, 2026 18:11
@github-project-automation github-project-automation Bot moved this from To Do to Pending release in Flowing Code Addons Apr 21, 2026
@javier-godoy javier-godoy moved this from Pending release to Done in Flowing Code Addons May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

The Badge component is currently an experimental feature and needs to be explicitly enabled

2 participants