Skip to content

fix(buckets): show phone icon for Android devices in Raw Data view#905

Merged
ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:fix/buckets-android-icon-and-hostname-col
Jul 12, 2026
Merged

fix(buckets): show phone icon for Android devices in Raw Data view#905
ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:fix/buckets-android-icon-and-hostname-col

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Contributor

Problem

The mobile icon was imported in Buckets.vue but never used. All devices
in the Raw Data view showed a desktop icon, even Android phones.

Fix

Add a v-else-if that uses bucketsStore.available(device.hostname).android
(same runtime detection introduced in Activity.vue by #903) to render the
mobile icon for Android devices, with desktop as the fallback.

The hostname column was already removed in #903 (grouped-by-device context
made it redundant). This PR covers the remaining Raw Data view gap.

Behaviour

Situation Before After
Android device in Raw Data view Desktop icon Phone icon ✓
Desktop device in Raw Data view Desktop icon ✓ Desktop icon ✓
Unknown device Question icon ✓ Question icon ✓

Requested by ErikBjare in ActivityWatch/aw-android#176.

The mobile icon was imported but never used — all devices showed the
desktop icon regardless of type. Use bucketsStore.available().android
(same detection as Activity.vue after ActivityWatch#903) to select mobile vs desktop.
@greptile-apps

greptile-apps Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates the Raw Data device icon selection in Buckets.vue.

  • Shows the mobile icon for Android devices.
  • Keeps the question icon for unknown devices.
  • Keeps the desktop icon as the fallback.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
src/views/Buckets.vue Adds an Android-specific icon branch in the Raw Data device row template.

Reviews (1): Last reviewed commit: "fix(buckets): show phone icon for Androi..." | Re-trigger Greptile

@ErikBjare ErikBjare merged commit 5799225 into ActivityWatch:master Jul 12, 2026
9 checks passed
@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.55%. Comparing base (de79efe) to head (1768c17).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #905   +/-   ##
=======================================
  Coverage   38.55%   38.55%           
=======================================
  Files          42       42           
  Lines        2233     2233           
  Branches      444      444           
=======================================
  Hits          861      861           
  Misses       1294     1294           
  Partials       78       78           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants