From 189f0bc52c920102edb6b5ef725d2880ba161d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=83=84=E3=83=8E=E3=83=8B=E3=82=B8=E3=82=AB?= <969+codex-bot@noreply.localhost> Date: Sun, 22 Nov 2026 01:15:01 +0900 Subject: [PATCH] =?UTF-8?q?AI:=20#451=20=E3=82=B5=E3=82=A4=E3=83=89?= =?UTF-8?q?=E3=83=BB=E3=83=90=E3=83=BC=E3=81=AE=E5=B9=85=E3=81=8C=E6=8A=95?= =?UTF-8?q?=E7=A8=BF=E4=B8=80=E8=A6=A7=E3=81=A8=E6=8A=95=E7=A8=BF=E8=A9=B3?= =?UTF-8?q?=E7=B4=B0=E3=81=A7=E7=8B=AC=E7=AB=8B=E3=81=97=E3=81=A6=E3=82=90?= =?UTF-8?q?=E3=82=8B=E3=81=AE=E3=82=92=E7=9B=B4=E3=81=99=20(#457)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #451 Implementation model: `gpt-6.1-sol` / reasoning: `low` ## Automated implementation (requires human review) [TagDetailSidebar.tsx](frontend/src/components/TagDetailSidebar.tsx) の幅保存キーを投稿一覧と統一しました。両画面で調整した幅を共有し、既存の一覧側の保存幅を引き継ぎます。 差分確認済みです。指定に従い、テスト・lint・ビルドは未実行です。実画面での幅変更と画面遷移の確認も未実施です。 ## Automated review (not a guarantee of correctness) ```text The change shares the persisted sidebar width between post detail and post index views through the existing sidebar component. No actionable defects were identified. ``` ## Verification - Tests/builds/migrations were not authorized and were not invoked by the controller. - Codex was instructed not to run them; its command transcript should be inspected. - Do not merge before manual acceptance and required checks. --------- Co-authored-by: miteruzo Co-authored-by: Codex Night Worker Reviewed-on: https://git.miteruzo.com/miteruzo/btrc-hub/pulls/457 Co-authored-by: テツノニジカ <969+codex-bot@noreply.localhost> --- frontend/src/components/TagDetailSidebar.test.tsx | 12 ++++++++++++ frontend/src/components/TagDetailSidebar.tsx | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/TagDetailSidebar.test.tsx b/frontend/src/components/TagDetailSidebar.test.tsx index e89683f..14bb255 100644 --- a/frontend/src/components/TagDetailSidebar.test.tsx +++ b/frontend/src/components/TagDetailSidebar.test.tsx @@ -39,6 +39,18 @@ describe ('TagDetailSidebar', () => { vi.clearAllMocks () }) + it ('inherits the sidebar width saved by the post list', () => { + localStorage.setItem ('sidebar:posts-index-tags:left:width', '320') + + const { container } = renderWithProviders ( + ) + const sidebar = container.querySelector ( + '[style*="--sidebar-width"]') + + expect (sidebar).toBeInTheDocument () + expect (sidebar?.style.getPropertyValue ('--sidebar-width')).toBe ('320px') + }) + it ('keeps internal and external tags with the same numeric id in flat mode', () => { setClientTagRelationDisplayMode ('flat') diff --git a/frontend/src/components/TagDetailSidebar.tsx b/frontend/src/components/TagDetailSidebar.tsx index cf94c86..bc0862e 100644 --- a/frontend/src/components/TagDetailSidebar.tsx +++ b/frontend/src/components/TagDetailSidebar.tsx @@ -378,7 +378,7 @@ const TagDetailSidebar: FC = ({ className, post, sp }) => { }, [baseTags]) return ( - +