You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,8 +79,14 @@ This is the **IFPA (International Flipper Pinball Association) Companion App** -
79
79
- Use FluentUI icons: `FluentIcon.IconName` with `FluentRegular`/`FluentFilled` fonts
80
80
- Implement proper layout containers for responsive design
81
81
82
+
### UI considerations
83
+
- Try to create a UI which looks "default" or "native" on the platform. My original inspiration was the iOS Mail app.
84
+
- When possible, use Fluent UI icons for consistency
85
+
- If an icon doesn't exist in IconFonts.xaml, examine appropriate hex codes here: https://github.com/AathifMahir/MauiIcons/blob/master/src/MauiIcons.Fluent/Icons/FluentIcons.cs
86
+
- Avoid using images, which may bloat the app size, whenever possible.
87
+
82
88
### Error Handling
83
-
- Always wrap async operations in try-catch blocks
89
+
- Always wrap operations that can throw in try-catch blocks from the ViewModel; never let exceptions crash the app
84
90
- Use structured logging with Serilog
85
91
- Display user-friendly error messages via `Shell.Current.DisplayAlert`
86
92
- Log exceptions with context using `logger.LogError(ex, "message")`
@@ -134,9 +140,6 @@ public partial class SampleViewModel : BaseViewModel
0 commit comments