Repository navigation
fix(web): 回る印を、いつ付いたものも同じ向きで回す - #827
Merged
Merged
Conversation
回る印(animate-spin)は付いた瞬間から回り始めるので、2つのセッションで作業が始まった時刻が違うと、 片方は上、片方は下を向いて回っていた。印のアニメーションの始まりをページの時計の 0 に置き、 セッションの行の印と、待っている間の Spinner をどれも同じ向きで回す。 Claude-Session: https://claude.ai/code/session_014WPnWu8NLT7prLQhhzYpc1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
何を直したか
作業中のセッションの行に出る回る印が、セッションごとに違う向きで回っていました。印は付いた瞬間から回り始めるので、作業が始まった時刻が違うと、片方は上、片方は下を向きます。
web/src/ui/useSharedTurn.tsを足しました。印のアニメーションの始まりをページの時計の0に置き、いつ付いた印も同じ向きで回しますSessionMarker)と、待っている間のSpinnerに使いました確かめたこと
e2e/terminal-osc.spec.tsに、2つのセッションで時刻をずらして作業を始め、2つの印の角度を同時に読んで比べるテストを足しました。直す前のビルドでは約160°ずれて落ちます(2回実行して144°と-18°、144°と-12°)。直した後は2回とも通りましたnpm run typecheck、npm run lint、npm testが通りましたhttps://claude.ai/code/session_014WPnWu8NLT7prLQhhzYpc1