-
Notifications
You must be signed in to change notification settings - Fork 405
Add EntityConfigurationWebView and integrate in dialog #4171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Introduces EntityConfigurationWebView for entity configuration via web view. Integrates a toolbar button in EntityMoreInfoDialogView to present the new configuration view as a sheet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a new EntityConfigurationWebView component that displays entity information in a web view and integrates it into the existing EntityMoreInfoDialogView via a toolbar button. The implementation adds a sheet presentation triggered by a gear icon button.
Key Changes
- Added
EntityConfigurationWebViewfor displaying entity details via web view - Integrated a gear-shaped toolbar button in
EntityMoreInfoDialogViewto present the new configuration view as a sheet - Updated Xcode project file with new source file reference
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
EntityConfigurationWebVIew.swift |
New SwiftUI view that embeds a WebViewController to display entity information using the more-info-dialog query parameter |
EntityMoreInfoDialogView.swift |
Added toolbar button and sheet presentation to launch the new EntityConfigurationWebView |
HomeAssistant.xcodeproj/project.pbxproj |
Project file updated with new source file reference and reordered existing entries |
...ces/App/WebView/ExperimentalSpace/EntityTile/MoreInfoDialog/EntityConfigurationWebView.swift
Show resolved
Hide resolved
...ces/App/WebView/ExperimentalSpace/EntityTile/MoreInfoDialog/EntityConfigurationWebView.swift
Show resolved
Hide resolved
...ces/App/WebView/ExperimentalSpace/EntityTile/MoreInfoDialog/EntityConfigurationWebView.swift
Show resolved
Hide resolved
Sources/App/WebView/ExperimentalSpace/EntityTile/MoreInfoDialog/EntityMoreInfoDialogView.swift
Show resolved
Hide resolved
...ces/App/WebView/ExperimentalSpace/EntityTile/MoreInfoDialog/EntityConfigurationWebView.swift
Show resolved
Hide resolved
...ces/App/WebView/ExperimentalSpace/EntityTile/MoreInfoDialog/EntityConfigurationWebView.swift
Show resolved
Hide resolved
...ces/App/WebView/ExperimentalSpace/EntityTile/MoreInfoDialog/EntityConfigurationWebView.swift
Show resolved
Hide resolved
Renamed EntityConfigurationWebVIew.swift to EntityConfigurationWebView.swift and updated project references to correct the filename typo.
Eliminated the areaName property from EntityConfigurationWebView and its usage. Updated the sheet presentation in EntityMoreInfoDialogView to use presentationDetents and presentationDragIndicator for improved UI behavior.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4171 +/- ##
=======================================
Coverage ? 44.94%
=======================================
Files ? 249
Lines ? 14341
Branches ? 0
=======================================
Hits ? 6446
Misses ? 7895
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Introduces EntityConfigurationWebView for entity configuration via web view. Integrates a toolbar button in EntityMoreInfoDialogView to present the new configuration view as a sheet.
Summary
Screenshots
Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#
Any other notes