Skip to content

Make the Agent Skills settings page scroll and match other settings pages - #5847

Merged
Gabriel Dufresne (GabrielDuf) merged 3 commits into
mainfrom
fix/5837-agent-skills-settings-page
Nov 25, 2026
Merged

Gabriel Dufresne (GabrielDuf) merged 3 commits into
mainfrom
fix/5837-agent-skills-settings-page

Conversation

@GabrielDuf

@GabrielDuf Gabriel Dufresne (GabrielDuf) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #5837

Root cause

  • Not scrollable. Every other settings page has a ScrollViewer at its root, because the settings shell does not scroll pages for them. AgentSkillsSettingsControl had a bare StackPanel, so below the fold was unreachable at small window sizes and the smooth-scroll handler had no scroll host to drive. Its tests missed it because AgentSkillsSettingsTestWindow wraps every control in a ScrollViewer that the real shell never provides.
  • Cards double-inset. The root StackPanel's Margin="40,0" stacked on Border.settings-card's own 40 DIP margin, so cards sat 80 DIP in while section headings sat at 44.
  • Controls unlike the rest of the settings UI. Plain Border boxes, default text boxes, On/Off toggles and three Expanders, none of which other settings pages use.

Fix

  • The page is a ScrollViewer → section headings → SettingsCard rows, like XcodeSettings and Backup: Enabled/Disabled toggle labels (as CheckboxCard), search-field-standalone inputs, secondary-action buttons, 200 DIP combo boxes, and joined corners for the two Notion cards. Card descriptions use the same spacing throughout.
  • The expanders are gone. "How discovery works" folds into the skills.sh card's description; the Notion section and its version policy are two always-visible cards. The view model's IsNotionExpanded / IsAdvancedExpanded, their auto-expand logic, and VersionSummary (which only fed the Advanced header) are removed, as are the Edit version button and the focus code only it could reach.
  • The sources box gets the bordered, accent-barred list of the package-manager SourceManagerCard. This control is also shown on the Sources tab of the main Agent Skills page.
  • Settings search lands on SkillsShDiscoveryCard, TargetModeCard and NotionCard, so the highlight wraps the whole card instead of the switch inside it.
  • The installation targets card gets the header "Install for these agents" (existing string), so it is no longer an unnamed group for screen readers.

Also fixed: Xcode directory cards (macOS)

Content written directly inside <settings:SettingsCard> sets the base ContentControl.Content and replaces the card's whole layout; it has to go through <settings:SettingsCard.Content>. The Xcode Installation directory and Archive directory cards had this mistake and rendered as a bare text box without header, description or frame. XcodeSettingsTests reproduces it (built with -p:EnableXcodeExtension=true, failing before the fix) and now passes; it compiles only where the Xcode extension is enabled, like the other Xcode tests. Not checked visually on a Mac.

…ages

The page could not scroll, so at small window sizes everything below the
fold was unreachable and the smooth-scroll handler had nothing to drive.
Every other settings page has a ScrollViewer at its root because the
settings shell does not scroll pages for them; this one had a bare
StackPanel. Its own tests did not catch it because their test window
wraps each control in a ScrollViewer the real shell never provides.

The page also looked unlike the rest of the settings UI. Its root
StackPanel's 40px margin stacked on Border.settings-card's own 40px, so
cards sat 80px in while headings sat at 44px. It used plain Borders,
default text boxes, On/Off toggles and three Expanders, which no other
settings page uses. It now follows the other pages: section headings
followed by SettingsCard rows, Enabled/Disabled toggle labels,
search-field-standalone inputs, secondary-action buttons, and joined
corners for the two Notion cards. The sources box gets the bordered,
accent-barred list of the package-manager sources card.

With the Notion and Advanced options sections always visible, the view
model's expansion state, its auto-expand logic and the version summary
that only fed the Advanced header are removed, as are the Edit version
button and the focus code only it could reach. Settings search now
lands on the cards instead of the controls inside them.

Content written directly inside <settings:SettingsCard> sets the base
ContentControl.Content and replaces the card's whole layout; it has to
go through <settings:SettingsCard.Content>. The Xcode Installation and
Archive directory cards had the same mistake and lost their header,
description and frame on macOS; they are fixed too.

Fixes #5837

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Moving NotionSummary into the string header removes polite live announcements for successful connection checks, sign-ins, and sign-outs, while the current handler announces only errors.

1 open issue
What changed in this PR

Addresses #5837 by making Agent Skills settings scroll independently and follow UniGetUI’s shared settings layout. Also restores the full layout of Xcode directory cards.

Changes:

  • Adds a page scroll host, consistent card and source-list styling, and whole-card search anchors.
  • Makes Notion options always visible and removes obsolete expansion and focus logic.
  • Fixes Xcode editor content routing and updates regression coverage.
File Description
src/​UniGetUI.Tests/​Views/​Pages/​SettingsPages/​XcodeSettings.axamlTests.cs Adds extension-gated directory-card layout tests.
src/​UniGetUI.Tests/​Views/​Pages/​SettingsPages/​AgentSkillsSettingsControl.axamlTests.cs Tests scrolling, alignment, anchors, styling, and visible options.
src/​UniGetUI.Tests/​ViewModels/​Pages/​SettingsPages/​AgentSkillsSettingsViewModelTests.cs Updates assertions after removing presentation state.
src/​UniGetUI.Tests/​AgentSkillsExtensionTests.cs Checks source-control styling in the library.
src/​UniGetUI.Avalonia/​Views/​Pages/​SettingsPages/​XcodeSettings.axaml Routes directory editors through card content presenters.
src/​UniGetUI.Avalonia/​Views/​Pages/​SettingsPages/​AgentSkillsSourcesControl.cs Restyles the shared source list and actions.
src/​UniGetUI.Avalonia/​Views/​Pages/​SettingsPages/​AgentSkillsSettingsControl.axaml.cs Removes obsolete version-editor focus handling.
src/​UniGetUI.Avalonia/​Views/​Pages/​SettingsPages/​AgentSkillsSettingsControl.axaml Adds scrolling and replaces expanders with settings cards.
src/​UniGetUI.Avalonia/​ViewModels/​Pages/​SettingsPages/​AgentSkillsSettingsViewModel.cs Removes expansion state and the unused version summary.
src/​UniGetUI.Avalonia/​Infrastructure/​SettingsSearchIndex.cs Targets whole cards for search navigation.

Review effort: Balanced

The Notion status line used to be a TextBlock with a polite live setting,
so screen readers heard connection checks, sign-ins and sign-outs. Making
it the card's string header dropped that: SettingsCard builds a plain
TextBlock for a string header and rebuilds it on every change, so a live
setting on it would not fire either, and a bound TextBlock header would
leave the card's accessible name stale because SettingsCard only syncs it
when Header itself changes.

The page now announces NotionSummary changes politely through
AccessibilityAnnouncementService, beside its assertive error
announcements, and only while attached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Both switches lose explicit accessible state text when their content is cleared and replacement labels are hidden, potentially preventing VoiceOver from announcing the current setting.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Preserve accessible state text for both switches

src/​UniGetUI.Avalonia/​Views/​Pages/​SettingsPages/​AgentSkillsSettingsControl.axaml:33

Clearing OnContent/OffContent while hiding the replacement labels removes the explicit state text from both switches' accessibility trees. VoiceOver can then lose the current setting where the native toggle role does not expose IsChecked. Initialize and update ItemStatus and a state-suffixed accessible name for both switches, following SettingsCard.cs:363–375 and CheckboxCard.cs:175–176.

1 resolved since last review

Review effort: Balanced

@randy-but-a-ro randy-but-a-ro Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🤖 Pull request was approved automatically: the AI review is complete and all its review threads are resolved. 🎉

Integration Details
{
	"deliveryId": "328f6df4-e913-11f1-81e4-d46adabae29a",
	"headSha": "eb762c30506430fc23e37d673897c7caa4851b16",
	"reviewer": "copilot-pull-request-reviewer[bot]"
}

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit cc316a0 into main Nov 25, 2026
12 of 14 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the fix/5837-agent-skills-settings-page branch November 25, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

[BUG] Agent Skills Page Issues

2 participants