Keep focus when typing in full-page filter forms that auto-submit
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Read the “Lazy index/filter frames” section in CLAUDE.md and the reference implementation in #2815; this issue is explicitly blocked on that pull request merging. Then update the six listed filter views and add a system spec for each page that types through the auto-submit; done means the final input value and URL are preserved.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
🤖 From Claude:
Typing in a filter box on these pages reloads the whole page after a short pause, so the cursor leaves the box and any further typing is lost.
Why it happens
- The
collectionStimulus controller auto-submits text fields 400 ms after typing stops. - On these pages the filter form isn't inside a results Turbo Frame, so each submit is a full-page visit that drops focus.
Affected pages (frameless filter forms using collection, with text filters)
app/views/quotes/_search_boxes.html.erbapp/views/faqs/_search_boxes.html.erbapp/views/story_ideas/_search_boxes.html.erbapp/views/workshop_variation_ideas/_search_boxes.html.erbapp/views/forms/results.html.erbapp/views/bookmarks/tally.html.erb
Fix (already used on workshop logs in #2815)
turbo_refreshes_with method: :morph, scroll: :preservein the page view.data: { turbo_action: "replace" }on the filter form.data-turbo-permanentplus anidon any TomSelect wrapper so the morph doesn't strip its widget.- System spec per page: type, pause long enough to submit, keep typing, and assert the final value + URL.
- Pattern documented in
CLAUDE.md→ "Lazy index/filter frames".
Blocked on
- #2815 merging (it introduces the pattern and the reference implementation).
- Lingua principale
- Ruby
- Stelle
- 15
- Fork
- 28
- Merge medio
- 16h 38m
- PR unite (30g)
- 298
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 rubyforgood/awbw
-
blocked
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
rubyforgood/awbw#2824 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
rubyforgood/awbw#2822 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rubyforgood/awbw#2160 ·
I maintainer di solito rispondono entro 1 giorno
-
Update callout faq defualt text when the new person subscription launchesForse già presa @maebeale l’ha presa 87 giorni fa. Apertablocked
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rubyforgood/awbw#2095 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
rubyforgood/awbw#2088 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di rubyforgood/awbw
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Time search attributes lose sub-second precision, and raise NoMethodError without `require 'time'`Forse già presa @RaphaelFakhri l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
temporalio/sdk-ruby#653 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
bridgetownrb/bridgetown#1134 ·
-
Go: a namespaced model's fixture file is loaded through `NewAdmin::Note()`, which doesn't parseAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rubys/roundhouse#1820 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
swombat/souls-house#795 ·
I maintainer di solito rispondono entro 1 giorno