Skip to content

Add switchable gallery layout to Games tab - #102

Open
Jim8y wants to merge 3 commits into
neoorder:masterfrom
Jim8y:agent/gaming-gallery-layout
Open

Add switchable gallery layout to Games tab#102
Jim8y wants to merge 3 commits into
neoorder:masterfrom
Jim8y:agent/gaming-gallery-layout

Conversation

@Jim8y

@Jim8y Jim8y commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a responsive gallery layout to the Games tab while retaining the existing list layout
  • replace the Gallery/List text controls with a compact icon-only state toggle
  • persist the selected layout across app restarts
  • add game-type filters, recently played, spotlight, quick picks, and responsive all-games sections
  • add image fallbacks and English/Simplified Chinese localization

Validation

  • OneGate.DebugProtocol.Tests: 6/6 passed
  • Android arm64 APK build: passed with 0 warnings and 0 errors
  • Android API 36 emulator: gallery/list toggle, accessibility labels, restart persistence, filters, details, and launch validated
  • iOS simulator-arm64 build: passed with 0 warnings and 0 errors
  • iPhone 17 Pro / iOS 26.5 simulator: gallery/list toggle, accessibility labels, and restart persistence validated
  • git diff --check: passed

Jim8y commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Simulator validation screenshot

Validation head: 23400f7.

iOS Simulator

Verified the gallery layout on iPhone 17 Pro / iOS 26.5, including the compact icon-only layout toggle requested in review. The screenshot shows the gallery sections, featured game card, quick-pick cards, filters, and the icon toggle without the previous large Gallery/List text control.

iOS gallery layout

The screenshot is an external GitHub Release asset and is not committed to the repository.

The Android AVD currently has no QA wallet and opens at onboarding, so I did not accept wallet terms on the user's behalf and did not upload the unrelated welcome-page screenshot.

@Jim8y
Jim8y marked this pull request as ready for review August 8, 2026 09:59
Copilot AI lite review requested due to automatic review settings August 8, 2026 09:59

Copilot AI 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 overview

This PR enhances the Games tab UI by introducing a responsive, switchable gallery vs. list layout, adds additional curated sections (spotlight/quick picks), and persists the user’s chosen layout across restarts, with updated EN/zh-Hans localization to support the new UI labels.

Changes:

  • Added a persisted gallery/list layout toggle and responsive grid behavior for the gallery.
  • Introduced new gallery sections (Spotlight, Quick picks, All games) and a preview-image fallback (PreviewUrl).
  • Added English and Simplified Chinese localized strings for new Games-tab sections/labels.

Reviewed changes

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

Show a summary per file
File Description
OneGateApp/Properties/Strings.zh-Hans.resx Adds zh-Hans strings for new Games tab labels/sections.
OneGateApp/Properties/Strings.resx Adds English strings for new Games tab labels/sections.
OneGateApp/Properties/Strings.Designer.cs Adds strongly-typed accessors for the new localized strings.
OneGateApp/Pages/GamingPage.xaml.cs Implements persisted layout toggle, gallery/list visibility state, and gallery section derivation (spotlight/quick picks).
OneGateApp/Pages/GamingPage.xaml Reworks the Games tab UI into a toggleable gallery/list experience with new sections and layouts.
OneGateApp/Data/DApp.cs Adds PreviewUrl fallback used by the new gallery UI.
Files not reviewed (1)
  • OneGateApp/Properties/Strings.Designer.cs: Generated file
Suppressed comments (3)

OneGateApp/Pages/GamingPage.xaml:110

  • In the Spotlight card, the preview image is declared after the icon image in the same Grid, which will render over the icon and likely hide it. Set a higher ZIndex on the icon (or reorder) so the icon stays visible.
                                        <Image Margin="52" Aspect="AspectFit">

OneGateApp/Pages/GamingPage.xaml:164

  • In the "Quick picks" card template, the preview image is declared after the icon image in the same Grid, which will render over the icon and likely hide it. Set a higher ZIndex on the icon (or reorder) so the icon stays visible.
                                                    <Image Margin="16" Aspect="AspectFit">

OneGateApp/Pages/GamingPage.xaml:203

  • In the gallery item template, the preview image is declared after the icon image in the same Grid, so it will render on top and likely hide the icon. Set a higher ZIndex on the icon (or reorder) so the icon stays visible.
                                        <Image Margin="18" Aspect="AspectFit">

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread OneGateApp/Pages/GamingPage.xaml Outdated
<DataTemplate x:DataType="og:DApp">
<Border StyleClass="Card" WidthRequest="112" HeightRequest="120" Padding="0">
<Grid RowDefinitions="76,44">
<Image Margin="14" Aspect="AspectFit">
Comment thread OneGateApp/Pages/GamingPage.xaml.cs Outdated
}
} = true;
public bool IsListLayout => !IsGalleryLayout;
public string LayoutToggleDescription => IsGalleryLayout ? Strings.GamingList : Strings.GamingGallery;
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