-
Notifications
You must be signed in to change notification settings - Fork 365
NAS-139133 / 26.04 / Show SMB restart dialog for any share changes with improved messaging #13054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Claude finished @william-gr's task —— View job Code Review: SMB Restart Dialog ImprovementsGreat work on improving the SMB restart dialog experience! 🎉 The changes effectively address the need for clearer messaging about why and when to restart the SMB service. The implementation is clean, well-tested, and follows Angular best practices. Positive aspectsThe PR successfully consolidates logic by moving restart-related functionality into the dialog component, reducing complexity in the parent SMB form component (77 fewer lines!). The new expandable "Learn more" section provides excellent user education without cluttering the initial dialog view. Test coverage is comprehensive with proper use of harnesses and accessibility attributes. Areas for improvement1. Accessibility: Keyboard navigation for "Learn more" link The "Learn more" link uses
// Missing keydown.space handler
(keydown.enter)="toggleLearnMore()"Suggestion: Add space key handling: (keydown.enter)="toggleLearnMore()"
(keydown.space)="$event.preventDefault(); toggleLearnMore()"The 2. Test: Add keyboard space bar test While there's a test for Enter key (line 97), there should also be a test for the Space bar to match the suggested accessibility improvement.
3. Helptext organization consideration The helptext file grew by 9 new translation keys (lines 244-257). While this is fine, consider whether these detailed explanations might be better suited as documentation links rather than inline text, especially since they're hidden by default in the "Learn more" section. This is a minor point - the current approach works well. Testing verificationThe test coverage is excellent:
Overall assessmentThis is a solid, well-implemented improvement that enhances user experience with better guidance on SMB service restarts! 👍 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #13054 +/- ##
==========================================
+ Coverage 86.69% 86.73% +0.03%
==========================================
Files 1847 1847
Lines 69413 69365 -48
Branches 8584 8556 -28
==========================================
- Hits 60180 60162 -18
+ Misses 9233 9203 -30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Add role, tabindex, aria-expanded for accessibility - Add unit tests for RestartSmbDialog component - Use idiomatic signal pattern in toggleLearnMore
Changes:
Always show SMB restart dialog when making smb share changes.
Be more explicit about why.
Testing:
Just edit a smb share and see the dialog.
Downstream