Update sample webapp to mirror MAUI app features and structure#86
Update sample webapp to mirror MAUI app features and structure#86Copilot wants to merge 5 commits into
Conversation
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
mattleibow
left a comment
There was a problem hiding this comment.
This is ok, but we should copy the Maui way and have a razor class library for the Blazor things - just like we have a maui library for the Maui things.
Make sure we have the same sort of projects.
Also, we need to use the same sort of file structure as the Maui library. Controls, converters, features.
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Created |
| { | ||
| // In a web context, we can use ARIA live regions or console for accessibility | ||
| // For simplicity, we'll use console.log, but in a real app you might want to use ARIA live regions | ||
| _ = Task.Run(async () => | ||
| { |
There was a problem hiding this comment.
Let's use those live regions as you suggest.
There was a problem hiding this comment.
Implemented ARIA live regions for proper accessibility announcements. Created a JavaScript function that uses a visually hidden live region element with aria-live="polite" to announce messages to screen readers instead of console.log. See latest commit.
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
This PR transforms the sample webapp to be a direct mirror of the MAUI app, implementing all the same features, pages, controls and functionality while using the shared Library project for business logic.
Changes Made
🎯 Core Requirements
DeviceTestingKitApp.Libraryproject for shared ViewModels and business logicMainPage.xamllayout and component hierarchy exactly🔧 Technical Implementation
Project Dependencies
DeviceTestingKitApp.LibraryprojectProgram.cswith same service registration pattern asMauiProgram.csViewModels Integration
MainViewModelandCounterViewModelfrom Library projectINotifyPropertyChangedsupportRelayCommandusage as MAUI appBlazor Components
CounterView.razoras Blazor equivalent of MAUICounterView.xamlPlatform-Specific Services
BlazorSemanticAnnouncerfor web-specific accessibilityISemanticAnnouncerinterface for web platform using JavaScript interopUI Structure
Updated
Home.razorto mirrorMainPage.xamlexactly:🧪 Verification
The webapp is now a complete direct mirror of the MAUI app, sharing the same ViewModels and business logic while providing web-specific UI implementations.
Fixes #85.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.