-
Notifications
You must be signed in to change notification settings - Fork 87
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
core: frontend: speedtest: InternetSpeedTest: Fix widget not showing #3146
core: frontend: speedtest: InternetSpeedTest: Fix widget not showing #3146
Conversation
Reviewer's Guide by SourceryThis pull request fixes the issue of the Internet speed test widget not displaying correctly by refactoring the condition used to check for an offline internet state. Instead of directly checking the value of 'helper.has_internet' in the template, a new computed property 'internet_offline' has been introduced to encapsulate this logic. Additionally, the import statement was updated to import the 'InternetConnectionState' constant, providing better clarity and maintainability. Updated class diagram for InternetSpeedTest component (Vue)classDiagram
class InternetSpeedTest {
+mounted() async
+latency_ms: number
+internet_offline: boolean
}
%% Computed property internet_offline encapsulates the logic:
%% internet_offline() returns (helper.has_internet === InternetConnectionState.OFFLINE)
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @patrickelectric - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider extracting the overlay into a separate component to improve readability.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Signed-off-by: Patrick José Pereira <[email protected]>
438473f
to
448594a
Compare
Fix #3145
Summary by Sourcery
Bug Fixes: