Global search (Cmd/Ctrl+J) never sorts results by relevance
I maintainer di solito rispondono entro 1 giorno
@hamidzr ci sta già lavorando.
Dal 23/11/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 74/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- nextjs, react, typescript
Direzione di ricerca
Inizia in apps/dokploy/package.json, dove cmdk è fissato a ^0.2.1, poi leggi components/ui/command.tsx, che secondo l'issue corrisponde già al wrapper cmdk 1.x. Aggiorna a ^1.1.1, avvia la dashboard e riproduci tramite Cmd/Ctrl+J con un servizio chiamato billing; se il ranking sembra ancora sbagliato, applica la modifica opzionale di value/keywords in components/dashboard/search-command.tsx e rimuovi i wrapper annidati di CommandList intorno alle righe 92 e 121. Fatto significa che una corrispondenza esatta del nome viene ordinata per prima e Enter la apre.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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).
- Lingua principale
- TypeScript
- Stelle
- 38.8k
- Fork
- 3.2k
- Merge medio
- 1g 10h
- PR unite (30g)
- 110
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Dokploy/dokploy
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Dokploy/dokploy#6151 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tabForse già presa @AyhamJo7 l’ha presa 4 giorni fa. Apertaneeds-triage🔍
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Dokploy/dokploy#6115 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining itForse già presa @SyncWithRaj l’ha presa 8 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
Dokploy/dokploy#6075 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)Forse già presa @ghazy2001 l’ha presa 10 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Dokploy/dokploy#6051 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Dokploy monitoring API returns partial container metrics with HTTP 200 when a row read failsForse già presa @PAtreju l’ha presa 12 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Dokploy/dokploy#6029 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Dokploy/dokploy
Issue simili
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
ag-ui-protocol/ag-ui#3504 ·
I maintainer di solito rispondono entro 1 giorno
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#161712 ·
I maintainer di solito rispondono entro 1 giorno
-
bug p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rothgar/rabble.radio#283 ·
I maintainer di solito rispondono entro 1 giorno
-
bug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nightly-labs/openbot#19805 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
OHDSI/Data2Evidence#3760 ·
I maintainer di solito rispondono entro 3 giorni