Skip to content

Replace the More menu with a More page users can move pages to - #5820

Merged
Gabriel Dufresne (GabrielDuf) merged 5 commits into
mainfrom
feature/more-page
Nov 23, 2026
Merged

Gabriel Dufresne (GabrielDuf) merged 5 commits into
mainfrom
feature/more-page

Conversation

@GabrielDuf

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

Copy link
Copy Markdown
Contributor

Summary

The sidebar grows with every extension, so the More flyout becomes a More page, and users choose which pages stay in the navigation menu and which move to it.

More page

  • Pages: package and extension pages moved off the sidebar, shown as tiles with an icon and a name. Tiles reorder by dragging and show their badge (update count, unsaved bundle, driver updates…).
  • Tools: the former menu's entries (UniGetUI log, package manager logs, operation history, manager health, release notes, help, about) as fixed tiles.
  • Footer: version, Check for updates and Quit.
  • Empty state: a single card instead of an empty section. It names the extensions that are off with a Browse extensions button (opens Settings > Extensions), or, once every extension is on, only explains how to move pages there. It follows extensions being turned on and off while open.

Moving pages

  • Drag a sidebar page onto the More button or onto the open More page (insertion marker, floating copy, edge auto-scroll), or drag a tile onto the sidebar.
  • Right-click a sidebar page → Move to the More page; right-click a tile → Pin to the navigation menu. The context menus also open from the keyboard.
  • Settings and Package Managers stay pinned. Alt+Up/Down still reorders within the sidebar only.

Behaviour

  • Existing users keep their sidebar exactly as it is until they move something: placement is stored in a new NavigationMorePages setting next to NavigationPageOrder, and an unset value means "everything in the sidebar".
  • Extension pages that have ever been on are recorded in NavigationKnownPages, initialised from the extensions already on. The first time an extension is turned on (however it happens) its page lands on the More page; turning one off and on again returns it to where it was.
  • Settings > Interface > Navigation menu order > Reset restores both the order and the placement.
  • The More button stays selected on every page it leads to and reopens the More page when clicked there. It takes the Ctrl/Cmd+number after the sidebar pages and is listed in the macOS View menu. It shows a dot while a page on the More page has a badge.
  • Two requests for the same page while one is waiting on a leave guard now share a single navigation (keyed on history mode, honouring each caller's cancellation), so clicking More can't show the unsaved-changes dialog twice.
  • The icon rail hides its scrollbar (it still scrolls): at 64 px it covered the update badge.
  • Page titles move to a shared PageTitles helper (announcements, macOS menu, More page).

Testing

  • New MorePageTests (headless): storage and reset, extension placement (first enable, re-enable, reset, enabled outside the toggle), sidebar drag onto the More button / the More page / through the open pane's dismiss layer, tile drag onto the sidebar and reorder, Escape, right-click menus, selection, badges and the More dot, the empty-state card (including toggling extensions while open), drop markers, edge auto-scroll, navigation coalescing.
  • Updated the Agent Skills, Drivers, Git Repositories and Xcode sidebar tests: a newly enabled extension now lands on the More page, so they pin it before checking the hidden-order round trip.
  • Related test classes and the language tests pass locally; both dotnet format gates pass.
  • Win-x64-NativeAot publish: no trim/AOT warnings from UniGetUI code; the published exe starts and the sidebar loads.

Not covered

  • macOS: the View menu entry and XcodeTests only run on macOS; the pin-at-a-position path they rely on is covered cross-platform.
  • New strings are English only until the next translation pass.

The sidebar grows with every extension, so the More flyout becomes a
More page. It shows the package and extension pages the user moved off
the sidebar as tiles, the former menu's tools (logs, operation history,
manager health, release notes, help, about) as fixed tiles, and a footer
with the version, Check for updates and Quit.

Pages move between the sidebar and the More page by dragging (onto the
More button, onto the open More page, or a tile onto the sidebar, with
an insertion marker and edge auto-scroll) or from a right-click menu,
which also makes moving reachable from the keyboard. Tiles reorder by
dragging. Settings and Package Managers stay pinned.

Placement is stored in NavigationMorePages next to the existing
NavigationPageOrder, so a user who never moves anything keeps the exact
sidebar they had. Extension pages that have ever been on are recorded in
NavigationKnownPages: the first time an extension is turned on, however
it happens, its page lands on the More page; turning one off and on
again returns it to where it was. The list is initialised from the
extensions already on, so existing sidebars are untouched. Reset clears
the order and the More page, bringing every known page back.

The More button stays selected on every page it leads to and opens the
page again when clicked there; it takes the Ctrl/Cmd+number after the
sidebar pages and is listed in the macOS View menu. Badges show on the
tiles, and the More button shows a dot while a moved page has one. Two
requests for the same page while one is waiting on a leave guard now
share a single navigation (keyed on history mode, honouring each
caller's cancellation), so clicking More cannot show the unsaved
changes dialog twice.

An empty More page shows one card instead of an empty section: it names
the extensions that are off with a Browse extensions button, or only
explains moving pages once every extension is on. It follows extensions
being turned on and off while open.

The icon rail hides its scrollbar (still scrollable): at 64 px it
covered the update badge.

Page titles move to a shared PageTitles helper used by the page
announcements, the macOS menu and the More page.

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

Navigation coalescing still mishandles interleaved requests and caller cancellation, while drag-and-drop can target an invisible sidebar or fail to start on horizontal movement.

4 open issues
What changed in this PR

Replaces the More flyout with a dedicated page, letting users choose which package and extension pages remain in UniGetUI’s sidebar while preserving existing layouts.

Changes:

  • Adds page and tool tiles, badges, an extension-aware empty state, and update/quit controls.
  • Supports moving and reordering pages through drag-and-drop and context menus, with persisted placement and reset behavior.
  • Integrates navigation shortcuts, macOS menus, shared page titles, and headless regression tests.
File Description
src/​UniGetUI.Tests/​XcodeTests.cs Updates extension placement and pinning assertions.
src/​UniGetUI.Tests/​MorePageTests.cs Tests placement, interactions, badges, and navigation coalescing.
src/​UniGetUI.Tests/​GitRepositoriesTests.cs Expects newly enabled pages on More.
src/​UniGetUI.Tests/​DriversExtensionTests.cs Pins Drivers before testing sidebar order.
src/​UniGetUI.Tests/​AgentSkillsExtensionTests.cs Adapts sidebar tests to initial More placement.
src/​UniGetUI.Core.Settings/​SettingsEngine_Names.cs Adds placement and known-extension settings.
src/​UniGetUI.Avalonia/​Views/​SidebarView.axaml.cs Adds page movement, drop handling, and More navigation.
src/​UniGetUI.Avalonia/​Views/​SidebarView.axaml Replaces the flyout and adds drop indicators.
src/​UniGetUI.Avalonia/​Views/​Pages/​SettingsPages/​Interface_P.axaml.cs Explains moving pages and resetting placement.
src/​UniGetUI.Avalonia/​Views/​Pages/​MorePage.axaml.cs Implements tiles, badges, empty states, and dragging.
src/​UniGetUI.Avalonia/​Views/​Pages/​MorePage.axaml Defines the More page layout and controls.
src/​UniGetUI.Avalonia/​Views/​MainWindow.MacMenu.cs Adds More to the macOS View menu.
src/​UniGetUI.Avalonia/​Views/​MainWindow.axaml.cs Routes numbered shortcuts to More.
src/​UniGetUI.Avalonia/​ViewModels/​SidebarViewModel.cs Manages placement, extension visibility, and badges.
src/​UniGetUI.Avalonia/​ViewModels/​MainWindowViewModel.cs Integrates More and shared navigation requests.
src/​UniGetUI.Avalonia/​Infrastructure/​SettingsSearchIndex.cs Adds More and pin search terms.
src/​UniGetUI.Avalonia/​Infrastructure/​PageTitles.cs Centralizes translated page titles.
src/​UniGetUI.Avalonia/​Infrastructure/​NavigationPageOrder.cs Persists placement, ordering, and first-enable behavior.
src/​UniGetUI.Avalonia/​Infrastructure/​NavigationDropTargets.cs Finds navigation drop targets.
src/​UniGetUI.Avalonia/​Infrastructure/​NavigationCoalescer.cs Shares matching pending navigation requests.
src/​UniGetUI.Avalonia/​Infrastructure/​EdgeAutoScroller.cs Adds edge scrolling during dragging.
src/​UniGetUI.Avalonia/​Infrastructure/​DragGhost.cs Displays a floating drag preview.
src/​Languages/​lang_en.json Adds English strings for the new interface.

Review effort: Balanced

Navigation coalescing kept a single in-flight slot, so More, then
Updates, then More while a leave guard was pending started a second More
navigation that could show the guard again. Pending navigations are now
kept per (page, history mode) until each finishes.

The shared navigation also ran on the first caller's token, so cancelling
that caller cancelled every caller joined to it. It now runs on its own
token: each caller's token only ends that caller's wait, the shared
navigation is cancelled once every caller has given up, and an abandoned
entry is dropped so a new request starts fresh.

Drop-target hit testing walked hit-test-disabled visuals. The closed
overlay pane stays laid out at opacity 0 with IsHitTestVisible false over
the left of the content, so a tile dragged over that area could be pinned
to the invisible sidebar. Visuals that ignore the pointer are now skipped.

A sidebar drag started only on vertical movement, so a straight
horizontal drag onto the More page released as a click and navigated.
It now starts when either axis crosses the threshold, like tile drags.

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

A pre-cancelled caller can still start shared navigation and synchronously change the page and history before cancellation is checked.

1 open issue
4 resolved since last review

Review effort: Balanced

Since the shared navigation runs on its own token, a first caller whose
token was already cancelled still started it. With the navigation
semaphore free and no asynchronous leave guard, NavigateGuardedAsync then
changed the page and history synchronously before the caller's wait
observed the cancellation. Before coalescing, the semaphore wait threw on
that token first. The coalescer now checks the caller's token before
joining or starting anything.

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

A quick move-and-release can undo tile reordering before it is persisted, and the version label can overlap the update button at narrow supported window sizes.

No open issues 🎉

2 previously missed issues

In code that hasn't changed since last review

Medium severity Constrain version label width to prevent overlap

src/​UniGetUI.Avalonia/​Views/​Pages/​MorePage.axaml:101

At narrow supported sizes, such as an 800 px window with the 250 px docked sidebar, the two Auto columns leave little space for the version label. This horizontal StackPanel measures its children with unlimited width, so TextWrapping="Wrap" never takes effect and the version text extends underneath the update button. Constrain the text with an Auto,* Grid so it wraps within its allocated column.

Medium severity Refresh layout before hit-testing on drag release

src/​UniGetUI.Avalonia/​Views/​Pages/​MorePage.axaml.cs:369

A quick move-and-release can undo a tile reorder: Children.Move changes the collection before layout updates the tiles' bounds (Avalonia panel implementation). If release arrives before the next arrange, its second UpdateDrag hit-tests stale bounds and can move the tile back, leaving nothing to persist. Refresh layout before hit-testing, and add a move/release test without an intervening UpdateLayout.

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": "87de100a-e759-11f1-8c70-b7a5bdef52ac",
	"headSha": "69754ff109f84b8b99f8664d8f359fbffcf39f0d",
	"reviewer": "copilot-pull-request-reviewer[bot]"
}

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit 656d3d4 into main Nov 23, 2026
11 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the feature/more-page branch November 23, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants