Skip to content

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

Merged
caalador merged 1 commit into
24.10from
cherry/cherrypick-24073-to-24.10
May 6, 2026
Merged

feat: expose application properties via Options for TypeScriptBootstrapModifier consumers (#24073) (CP: 24.10)#24267
caalador merged 1 commit into
24.10from
cherry/cherrypick-24073-to-24.10

Conversation

@mcollovati
Copy link
Copy Markdown
Collaborator

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: 25.0) (#24252)

`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
@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 11m 23s ⏱️ + 1m 34s
8 898 tests + 4  8 836 ✅ + 4  62 💤 ±0  0 ❌ ±0 
9 254 runs   - 30  9 185 ✅  - 29  69 💤  - 1  0 ❌ ±0 

Results for commit f4d8830. ± Comparison against base commit dfc6ee9.

@caalador caalador merged commit ace9144 into 24.10 May 6, 2026
28 checks passed
@caalador caalador deleted the cherry/cherrypick-24073-to-24.10 branch May 6, 2026 09:09
vaadin-bot added a commit that referenced this pull request May 6, 2026
…strapModifier` consumers (#24073) (CP: 24.10) (#24267) (CP: 24.9) (#24271)

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

Co-authored-by: Marco Collovati <marco@vaadin.com>
@vaadin-bot
Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 24.10.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants