Skip to content

feat: expose application properties via Options for TypeScriptBootstrapModifier consumers (#24073) (CP: 25.1)#24248

Merged
vaadin-bot merged 1 commit into
25.1from
cherry-pick-24073-to-25.1-1777889721869
May 4, 2026
Merged

feat: expose application properties via Options for TypeScriptBootstrapModifier consumers (#24073) (CP: 25.1)#24248
vaadin-bot merged 1 commit into
25.1from
cherry-pick-24073-to-25.1-1777889721869

Conversation

@vaadin-bot
Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #24073 to branch 25.1.

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)

`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 4, 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 4, 2026 10:24
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 4, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

Test Results

 1 388 files  +1   1 388 suites  +1   1h 17m 51s ⏱️ - 1m 37s
10 021 tests +4   9 951 ✅ +4  70 💤 ±0  0 ❌ ±0 
10 494 runs  +4  10 415 ✅ +4  79 💤 ±0  0 ❌ ±0 

Results for commit de17fc2. ± Comparison against base commit 3bf9f2d.

@vaadin-bot vaadin-bot merged commit e771943 into 25.1 May 4, 2026
29 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-24073-to-25.1-1777889721869 branch May 4, 2026 10:31
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