Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Incorrect hostname in `/api/0/info` breaks "this device" badge in Web UI

Abierto
#368 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Ya se ha fusionado un pull request relacionado.

  • #369 de @TimeToBuildBob — fusionado

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
kotlin, rust
Área
backend

Línea de trabajo

Start by reading the /api/0/info handler and the device hostname lookup used elsewhere in the Android application; then trace how the Web UI decides which device gets the “this device” badge. Done means the endpoint reports the real device hostname and the badge identifies that device in a multi-device setup. Pull request #369 is already open, so check its changes and status first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Description

There are a couple of related issues regarding how the Android device hostname is handled, which affects device identification in multi-device setups.

Current Behavior
  1. When querying the /api/0/info endpoint, the hostname is returned as localhost instead of the actual device name. The rest of the application already uses the device hostname correctly.
  2. On the /#/buckets (Raw Data) page in the Web UI, the "this device" badge only appears for a device named localhost. It fails to highlight the actual device currently being used.
Screenshot Image
Expected Behavior
  1. The /api/0/info endpoint should return the device hostname (the same one used elsewhere in the application).
  2. The Web UI should correctly identify the current device and display the "this device" badge based on the real device name.
Lenguaje dominante
Kotlin
Estrellas
279
Forks
63
Merge medio
4 d 15 h
PR fusionados (30 d)
53

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ActivityWatch/aw-android

Todos los issues de ActivityWatch/aw-android

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.