Skip to content

feat: expose application properties via Options for TypeScriptBootstrapModifier consumers (#24073) (CP: 24.10) (#24267) (CP: 24.9)#24271

Merged
vaadin-bot merged 1 commit into
24.9from
cherry-pick-24267-to-24.9-1778058927859
May 6, 2026
Merged

feat: expose application properties via Options for TypeScriptBootstrapModifier consumers (#24073) (CP: 24.10) (#24267) (CP: 24.9)#24271
vaadin-bot merged 1 commit into
24.9from
cherry-pick-24267-to-24.9-1778058927859

Conversation

@vaadin-bot
Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #24267 to branch 24.9.

Original PR description

TypeScriptBootstrapModifier implementations (e.g., Copilot) need access
to application properties to conditionally modify bootstrap TypeScript. Currently, the Copilot script is injected in dev mode regardless of whether Copilot is enabled in the project configuration.

Add withApplicationConfiguration to Options and property accessor methods (getApplicationStringProperty,
getApplicationBooleanProperty)
that return Optional.empty() when configuration is unavailable (build time). Wire ApplicationConfiguration from DevModeInitializer.

Fixes #24055

…strapModifier` consumers (#24073) (CP: 24.10) (#24267)

`TypeScriptBootstrapModifier` implementations (e.g., Copilot) need
access
to application properties to conditionally modify bootstrap TypeScript.
Currently, the Copilot script is injected in dev mode regardless of
whether Copilot is enabled in the project configuration.

Add `withApplicationConfiguration` to `Options` and property accessor
methods (`getApplicationStringProperty`,
`getApplicationBooleanProperty`)
that return `Optional.empty()` when configuration is unavailable (build
time). Wire `ApplicationConfiguration` from `DevModeInitializer`.

Fixes #24055
@github-actions github-actions Bot added the +0.0.1 label May 6, 2026
@vaadin-bot
Copy link
Copy Markdown
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR [Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) May 6, 2026 09:18
@vaadin-bot
Copy link
Copy Markdown
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR[Message is sent from bot]

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Test Results

1 288 files  + 1  1 288 suites  +1   1h 5m 49s ⏱️ - 3m 18s
8 899 tests + 4  8 837 ✅ + 4  62 💤 ±0  0 ❌ ±0 
9 267 runs  +34  9 199 ✅ +34  68 💤 ±0  0 ❌ ±0 

Results for commit 877a7ae. ± Comparison against base commit bea5e72.

♻️ This comment has been updated with latest results.

@vaadin-bot vaadin-bot merged commit 7d2c456 into 24.9 May 6, 2026
62 of 66 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-24267-to-24.9-1778058927859 branch May 6, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants