Skip to content

Route plugin support menu items to Therapy Settings - #693

Open
damonbayer wants to merge 4 commits into
LoopKit:next-devfrom
damonbayer:dmb/therapy-settings-help-link
Open

damonbayer wants to merge 4 commits into
LoopKit:next-devfrom
damonbayer:dmb/therapy-settings-help-link

Conversation

@damonbayer

@damonbayer damonbayer commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

The Therapy Settings help row currently opens a demo placeholder. Replace it with support items contributed through the existing CustomMenuItem / configurationMenuItems() API.

Add SettingsMenuSection.therapySettingsSupport as their destination and a supportMenuItems parameter to TherapySettingsView, defaulting to an empty array. The view displays every supplied row and hides the Support section when there are no items. Each row can open external documentation or navigate to an in-app help screen.

The companion changes are required to show the LoopDocs help row in Loop.

  • Loop #2705 collects all plugin items marked therapySettingsSupport and passes their views into Therapy Settings.
  • LoopSupport #50 registers the LoopDocs link through configurationMenuItems(). The label and its 23 existing localizations move from LoopKit to LoopSupport.

Validated by building the Loop scheme for iOS Simulator with all three PRs together.

@ps2

ps2 commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

This is a good missing feature to fill; it needs to be done in a app neutral way, though. The LoopSupport plugin is probably the right place. And we might need protocol updates in LoopKit and changes to Loop as well to do that; that's ok and expected.

@damonbayer
damonbayer marked this pull request as draft November 26, 2026 17:13
@damonbayer damonbayer changed the title Open LoopDocs from Therapy Settings help Let support plugins provide Therapy Settings help Nov 26, 2026
@damonbayer

damonbayer commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Updated to reuse the existing plugin menu API. Plugins contribute CustomMenuItem rows through configurationMenuItems(), marked with the new therapySettingsSupport section. Loop routes all matching rows into Therapy Settings. Providers can use either a web link or navigation to an in-app help screen.

The LoopDocs row and its 23 existing translations now live in LoopSupport #50, with the app wiring in Loop #2705. Built all three changes together successfully for iOS Simulator.

@damonbayer
damonbayer requested a review from ps2 November 26, 2026 17:31
@damonbayer
damonbayer marked this pull request as ready for review November 26, 2026 17:31
@damonbayer damonbayer changed the title Let support plugins provide Therapy Settings help Route plugin support menu items to Therapy Settings Nov 27, 2026
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.

2 participants