Refactor settings hint management across 15 views#22
Conversation
Co-authored-by: Sjoerd-Bo3 <2100083+Sjoerd-Bo3@users.noreply.github.com>
Co-authored-by: Sjoerd-Bo3 <2100083+Sjoerd-Bo3@users.noreply.github.com>
|
@copilot Great could you put 1 into a PR to my repo? And include some tests for me to do? |
Co-authored-by: Sjoerd-Bo3 <2100083+Sjoerd-Bo3@users.noreply.github.com>
The PR is already created on your repo in the Automated Tests (commit a574923):
Manual Testing Guide:
Run the automated tests in Xcode, then follow the manual testing guide to verify the UI changes work correctly on the device. |
|
@copilot Can we not split these 2 fixes in seperate PR's |
Co-authored-by: Sjoerd-Bo3 <2100083+Sjoerd-Bo3@users.noreply.github.com>
Co-authored-by: Sjoerd-Bo3 <2100083+Sjoerd-Bo3@users.noreply.github.com>
I've split the changes into two separate PRs: PR 1 - Settings Hint Management (current branch:
PR 2 - Chart Popover Positioning (new branch:
The chart popover branch is ready but I cannot push it directly due to authentication restrictions. You can create the second PR manually by:
Alternatively, I can provide instructions for you to cherry-pick the commits locally. |
Eliminates code duplication across 15 settings views by centralizing hint display functionality.
Note: This PR is part 1 of 2. The chart popover positioning refactoring has been split into a separate PR. See
CREATE_SECOND_PR.mdfor instructions.Changes
Created
SettingsHintModifier.swiftwithSettingsHintManagerto centralize hint display state:Before (per view):
After (per view):
Testing
Automated Tests
TrioTests/SettingsHintManagerTests.swift- 12 unit tests covering SettingsHintManager functionality including initial state, property updates, verbose hint binding operations, and edge casesManual Testing Guide
SETTINGS_TESTING_GUIDE.md- Step-by-step instructions for testing all 15 affected settings views, regression testing checklist, device-specific testing guidance, and issue reporting templateImpact
Files Modified
New File:
Next Steps
The chart popover positioning refactoring (3 chart views) has been prepared in a separate branch. See
CREATE_SECOND_PR.mdfor instructions on creating the second PR.Original prompt
💡 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.