Skip to content

Improve onboarding servers searching screen#3688

Merged
bgoncal merged 5 commits intomasterfrom
onboarding-2
Jul 1, 2025
Merged

Improve onboarding servers searching screen#3688
bgoncal merged 5 commits intomasterfrom
onboarding-2

Conversation

@bgoncal
Copy link
Copy Markdown
Member

@bgoncal bgoncal commented Jul 1, 2025

Summary

  • New UI
  • New loader animation
  • Preparation for the soon to come "auto-connect to first discovered instance"

Screenshots

Simulator.Screen.Recording.-.iPhone.16.-.2025-07-01.at.15.53.55.mp4

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

@bgoncal bgoncal requested a review from Copilot July 1, 2025 13:34
@bgoncal bgoncal self-assigned this Jul 1, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Implements a new UI for the server‐searching screen with a loader animation and paves the way for auto‐connecting to the first discovered instance.

  • Replaces the old scanning animation with SearchingServersAnimationView and inserts loader logic in OnboardingServersListView
  • Refactors the servers list from a List to a ScrollView, adds center and inline loaders, and schedules auto‐connect
  • Extends the design system with new 8-point Spaces, CornerRadius, and deprecates the old CornerRadiusSizes

Reviewed Changes

Copilot reviewed 14 out of 17 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
Sources/Shared/Resources/Swiftgen/Strings.swift Added onboarding.servers.title and a new header key for the welcome step
Sources/Shared/DesignSystem/DesignSystem.swift Introduced 8-point Spaces, CornerRadius, and Border enums
Sources/Shared/DesignSystem/Constants/CornerRadiusSizes.swift Deprecated the old CornerRadiusSizes enum
Sources/App/Resources/en.lproj/Localizable.strings Added a new string key for server‐searching title
Sources/App/Resources/Assets.xcassets/searching-servers-dots.imageset/Contents.json Added new loader dots asset
Sources/App/Resources/Assets.xcassets/logo-in-circle.imageset/Contents.json Added new logo‐in‐circle asset
Sources/App/Onboarding/Views/SearchingServersAnimationView.swift New SwiftUI view for rotating dots and pulsing logo
Sources/App/Onboarding/Steps/Welcome/OnboardingWelcomeView.swift Wrapped content in a ScrollView and adjusted button background
Sources/App/Onboarding/Steps/Servers/OnboardingServersListView.swift Switched from List to ScrollView, added center/inline loaders, auto‐connect scheduling, and toolbar refactor
Sources/App/Onboarding/Steps/Servers/OnboardingServersListViewModel.swift Added showCenterLoader state
Sources/App/Onboarding/Steps/Servers/OnboardingScanningInstanceRow.swift Refactored row UI with consistent spacing, icon container, and border overlay
HomeAssistant.xcodeproj/project.pbxproj Removed old ServersScanAnimationView references and added SearchingServersAnimationView entries
Comments suppressed due to low confidence (1)

@bgoncal bgoncal requested review from TimoPtr and matthiasdebaat July 1, 2025 13:55
@emerge-tools
Copy link
Copy Markdown

emerge-tools bot commented Jul 1, 2025

1 build increased size

Name Version Download Change Install Change Approval
Home Assistant
io.robbie.HomeAssistant
2025.6.1 (2025.5172) 61.0 MB ⬆️ 80.1 kB (0.13%) 130.4 MB ⬆️ 103.0 kB (0.08%) N/A

Home Assistant 2025.6.1 (2025.5172)
io.robbie.HomeAssistant

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 103.0 kB (0.08%)
Total download size change: ⬆️ 80.1 kB (0.13%)

Largest size changes

Item Install Size Change
📝 Image.png ⬆️ 0 B
📝 Image.png ⬆️ 0 B
Shared ⬆️ 16.4 kB
HomeAssistant.OnboardingServersListView.body ⬇️ -6.6 kB
📝 HomeAssistant.OnboardingServersListView.content ⬆️ 4.1 kB
View Treemap

Image of diff


🛸 Powered by Emerge Tools

Comment trigger: Size diff threshold of 100.00kB exceeded

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.68%. Comparing base (4f60d68) to head (6b212ff).
Report is 65 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3688      +/-   ##
==========================================
+ Coverage   44.72%   45.68%   +0.96%     
==========================================
  Files         232      232              
  Lines       13911    14059     +148     
==========================================
+ Hits         6221     6423     +202     
+ Misses       7690     7636      -54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bgoncal bgoncal merged commit 22d8b14 into master Jul 1, 2025
14 checks passed
@bgoncal bgoncal deleted the onboarding-2 branch July 1, 2025 14:30
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.

2 participants