Global search (Cmd/Ctrl+J) never sorts results by relevance
Los mantenedores suelen responder en 1 día
@hamidzr ya está trabajando en esto.
Desde el 23/11/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 74/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- nextjs, react, typescript
Línea de trabajo
Empieza en apps/dokploy/package.json, donde cmdk está fijado a ^0.2.1, luego lee components/ui/command.tsx, que según el issue ya coincide con el wrapper de cmdk 1.x. Sube a ^1.1.1, ejecuta el dashboard y reproduce con Cmd/Ctrl+J con un servicio llamado billing; si el ranking sigue viéndose mal, aplica el cambio opcional de value/keywords en components/dashboard/search-command.tsx y elimina los wrappers anidados de CommandList alrededor de las líneas 92 y 121. Hecho significa que una coincidencia exacta de nombre se ordena primero y Enter la abre.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens
Typing a service name in the global search palette filters the list but does not rank it. Results stay in project order, so an exact name match can sit far below weak fuzzy matches. Pressing Enter opens the first item, which is often the wrong service.
Steps to reproduce
- Have several projects with a few services each. Create a new service in a later project, e.g.
billing. - Press Cmd/Ctrl+J and type
billing. - Every service whose text contains the letters of
billingin order shows up, in project order. Thebillingservice is not at the top. - Press Enter. It opens the first item in the list, not
billing.
Root cause
apps/dokploy/package.json pins cmdk to ^0.2.1. That version's sort is broken:
- Scores are stored per item id:
filtered.items.set(id, score). - The sort reads the score by the item's
data-value, which is its lowercased text:e.get(item.getAttribute("data-value")). - That lookup always returns
undefined, so every score counts as 0 and no item moves. Groups are sorted the same way and have the same bug.
cmdk 1.x fixes this by sorting on item.getAttribute("id") (checked in the published [email protected] dist/index.mjs).
The palette's own markup makes the bad order more likely to bite:
- With no
valueprop, each service item's value is its full text:project / environment / nameplus the service id in a hidden div (components/dashboard/search-command.tsx:159). The random id adds more chance fuzzy matches. - Each group wraps its items in an extra
<CommandList>(lines 92 and 121) inside the outer one.
Suggested fix
- Bump
cmdkto^1.1.1.components/ui/command.tsxalready looks like the newer shadcn wrapper written for cmdk 1.x, so the change should be small. Note that 1.x matchesvaluecase-sensitively and adds akeywordsprop. - Optional: give each service item
value={service.name}andkeywords={[project.name, environment.name]}, and drop the hidden id div, so the name ranks first and ids stop matching. - Optional: remove the nested
<CommandList>wrappers inside the groups.
Related: #5986 (wants Cmd/Ctrl+K for this palette; a separate issue).
- Lenguaje dominante
- TypeScript
- Estrellas
- 38.8k
- Forks
- 3.2k
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 110
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Dokploy/dokploy
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Dokploy/dokploy#6151 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tabPosiblemente ocupada @AyhamJo7 la tomó hace 4 días. Abiertoneeds-triage🔍
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Dokploy/dokploy#6115 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining itPosiblemente ocupada @SyncWithRaj la tomó hace 8 días. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
Dokploy/dokploy#6075 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)Posiblemente ocupada @ghazy2001 la tomó hace 10 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Dokploy/dokploy#6051 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dokploy monitoring API returns partial container metrics with HTTP 200 when a row read failsPosiblemente ocupada @PAtreju la tomó hace 12 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Dokploy/dokploy#6029 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de Dokploy/dokploy
Issues similares
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
ag-ui-protocol/ag-ui#3504 ·
Los mantenedores suelen responder en 1 día
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NousResearch/hermes-agent#161712 ·
Los mantenedores suelen responder en 1 día
-
bug p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rothgar/rabble.radio#283 ·
Los mantenedores suelen responder en 1 día
-
bug from-app needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
nightly-labs/openbot#19805 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
OHDSI/Data2Evidence#3760 ·
Los mantenedores suelen responder en 3 días