fix: fix duplicate android hosts in header#725
Merged
ErikBjare merged 1 commit intoActivityWatch:masterfrom Nov 13, 2025
Merged
fix: fix duplicate android hosts in header#725ErikBjare merged 1 commit intoActivityWatch:masterfrom
ErikBjare merged 1 commit intoActivityWatch:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed everything up to c2c68b6 in 1 minute and 45 seconds. Click for details.
- Reviewed
35lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/components/Header.vue:160
- Draft comment:
Reorder of condition fixes duplicate host entries: now only the Android view is added if available. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%<= threshold50%This comment seems to be purely informative, explaining what a change does without suggesting any action or asking for confirmation. It doesn't align with the rules for useful comments.
2. src/components/Header.vue:160
- Draft comment:
Consider using strict inequality (!==) when comparing hostname to 'unknown' for improved type safety. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The diff shows that the code block containinghostname != 'unknown'was moved from one location to another (from before the android check to inside an else-if). The comparison operator!=itself was not modified - it was already using!=before this PR. The comment is suggesting a code quality improvement (using strict equality!==instead of loose equality!=), but this is not related to the changes made in this PR. According to the rules, I should only keep comments that are about changes made in the diff. Since the comparison operator was not changed, this comment is about unchanged code and should be deleted. While the suggestion to use strict equality is generally good practice, the comparison operator itself wasn't changed in this PR - only the code block was moved. However, one could argue that since the line was touched/moved, it's fair game for improvement suggestions. Even though the line was moved, the actual comparison operator was not modified. The rules explicitly state "If the comment is about unchanged code, this should be False, and the comment should be deleted." The comparison operator!=is unchanged code - only its location changed. This is a style suggestion on pre-existing code, not a comment about the actual changes made. This comment should be deleted because it's about unchanged code (the comparison operator itself wasn't modified, only the code block was moved). The comment is a code quality suggestion on pre-existing code rather than feedback on the actual changes made in this PR.
Workflow ID: wflow_GoZLsMHMqmccTYfi
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #725 +/- ##
==========================================
+ Coverage 25.98% 26.30% +0.31%
==========================================
Files 27 29 +2
Lines 1643 1684 +41
Branches 279 288 +9
==========================================
+ Hits 427 443 +16
- Misses 1190 1219 +29
+ Partials 26 22 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes duplicate Android host entries in
Header.vueby reordering conditions in the loop processingtypes_by_host.Header.vueby reordering conditions in the loop processingtypes_by_host.This description was created by
for c2c68b6. You can customize this summary. It will automatically update as commits are pushed.