Skip to content

Conversation

@timbms
Copy link
Contributor

@timbms timbms commented Dec 20, 2025

Fix #982

Signed-off-by: Tim Mueller-Seydlitz <timbms@gmail.com>
Signed-off-by: Tim Mueller-Seydlitz <timbms@gmail.com>
Copy link
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

This PR implements list expansion functionality for the watchOS app by refactoring the navigation architecture to support nested pages. The changes enable users to navigate from a sitemap page into linked pages (sub-lists) within the watch interface.

Key Changes:

  • Refactored SitemapPageView to conditionally render NavigationStack only at the root level, avoiding nested NavigationStack issues
  • Added a new UserData initializer that accepts a linkedPage parameter for loading sub-pages
  • Replaced NavigationLink wrapping in OpenHABWidgetExtension with a simple chevron indicator, moving navigation logic to WidgetRowView

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
openHABWatch/Views/SitemapPageView.swift Refactored to support nested navigation with conditional NavigationStack and new WidgetRowView wrapper for handling linked page navigation
openHABWatch/Domain/UserData.swift Added init(linkedPage:) to enable loading sub-pages for navigation
openHABWatch/Model/OpenHABWidgetExtension.swift Simplified makeView to only display chevron icon, removing NavigationLink logic
openHABWatch/Views/Utils/IconView.swift Commented out success logging to reduce log verbosity
OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift Commented out debug URL logging to reduce log verbosity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

timbms and others added 2 commits December 20, 2025 10:27
Signed-off-by: Tim Mueller-Seydlitz <timbms@gmail.com>
Signed-off-by: Tim Bert <5411131+timbms@users.noreply.github.com>
@timbms timbms merged commit 4ab92fb into develop Dec 21, 2025
2 checks passed
@timbms timbms deleted the fix982 branch December 21, 2025 21:17
@curlyel
Copy link

curlyel commented Dec 22, 2025

Wow, what a surprise. Many thanks for that "early Christmas present". Quite keen to try it out and to make use of it for my watch sitemap.

Wish you guys a merry Chrismas season and again thanks a lot for all the effort you've put this year into the (now) really great iOS app.

@timbms
Copy link
Contributor Author

timbms commented Dec 22, 2025

@curlyel Thank you for your kind words. Please put a good review on App Store. This helps to promote the openHAB project over all.

@curlyel
Copy link

curlyel commented Dec 22, 2025

@curlyel Thank you for your kind words. Please put a good review on App Store. This helps to promote the openHAB project over all.

Done. But for whatever reason the review is not (yet?) visible to me.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Watch app does not expand lists

3 participants