Skip to content

Reporting Screens Revamp: Modern Tile-Based Layout#478

Merged
StuartFerguson merged 3 commits intomainfrom
copilot/revamp-reporting-screens-layout
Mar 6, 2026
Merged

Reporting Screens Revamp: Modern Tile-Based Layout#478
StuartFerguson merged 3 commits intomainfrom
copilot/revamp-reporting-screens-layout

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 6, 2026

The Reporting screens used a plain vertical list of buttons with no visual hierarchy or modern styling.

Changes

ReportsPage.xaml

  • Replaced flat button list with ScrollView + gradient header (reports theme color #E38C44) containing page icon, title, and subtitle
  • Swapped VerticalStackLayout of buttons for a FlexLayout (Wrap, JustifyContent="SpaceEvenly") to render responsive tiles
  • Back button now uses StandardButton style, consistent with other revamped pages

ReportsPage.xaml.cs

  • Removed LoadProducts/AddBackButton button-building methods and CommunityToolkit.Maui.Behaviors dependency
  • Added LoadReports + CreateReportTile producing Frame tiles styled with SelectionTileFrame, matching the pattern used in MyAccountPage and MobileTopupSelectProductPage
  • Tiles use per-report SVG icons, reports theme-colored labels, and TapGestureRecognizer for navigation
  • AutomationId values (SalesAnalysisButton, BalanceAnalysisButton) preserved for UI test compatibility
private Frame CreateReportTile(ListViewItem modelOption, Int32 rowCount)
{
    Frame tile = new Frame();
    tile.SetDynamicResource(VisualElement.StyleProperty, "SelectionTileFrame");
    tile.AutomationId = $"{modelOption.Title.Replace(" ", "")}Button";

    String iconSource = modelOption.Title switch
    {
        "Sales Analysis"  => "transactionsbutton.svg",
        "Balance Analysis" => "reportbutton.svg",
        _ => "reportbutton.svg"
    };
    // icon + label + TapGestureRecognizer bound to OptionSelectedCommand
    ...
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • f.feedz.io
    • Triggering command: /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/csharp/tools/linux64/Semmle.Autobuild.CSharp /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/csharp/tools/linux64/Semmle.Autobuild.CSharp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Reporting Screens Revamp</issue_title>
<issue_description>I would like the Reporting Screens to have a more modern tile based layout.

See the parent issue for additional guidance.</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Revamp reporting screens to modern tile-based layout Reporting Screens Revamp: Modern Tile-Based Layout Mar 6, 2026
@StuartFerguson StuartFerguson marked this pull request as ready for review March 6, 2026 12:54
@StuartFerguson StuartFerguson merged commit 23e77e3 into main Mar 6, 2026
13 checks passed
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.

Reporting Screens Revamp

2 participants