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 <miteruzo@naver.com> Co-authored-by: Codex Night Worker <codex-night@localhost> Reviewed-on: #457 Co-authored-by: テツノニジカ <969+codex-bot@noreply.localhost>
このコミットはプルリクエスト #457 でマージされました。
このコミットが含まれているのは:
@@ -39,6 +39,18 @@ describe ('TagDetailSidebar', () => {
|
|||||||
vi.clearAllMocks ()
|
vi.clearAllMocks ()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it ('inherits the sidebar width saved by the post list', () => {
|
||||||
|
localStorage.setItem ('sidebar:posts-index-tags:left:width', '320')
|
||||||
|
|
||||||
|
const { container } = renderWithProviders (
|
||||||
|
<TagDetailSidebar post={buildPost ()}/>)
|
||||||
|
const sidebar = container.querySelector<HTMLElement> (
|
||||||
|
'[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', () => {
|
it ('keeps internal and external tags with the same numeric id in flat mode', () => {
|
||||||
setClientTagRelationDisplayMode ('flat')
|
setClientTagRelationDisplayMode ('flat')
|
||||||
|
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ const TagDetailSidebar: FC<Props> = ({ className, post, sp }) => {
|
|||||||
}, [baseTags])
|
}, [baseTags])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SidebarComponent sidebarKey="post-detail-tags" className={className}>
|
<SidebarComponent sidebarKey="posts-index-tags" className={className}>
|
||||||
<TagSearch/>
|
<TagSearch/>
|
||||||
<DndContext
|
<DndContext
|
||||||
sensors={sensors}
|
sensors={sensors}
|
||||||
|
|||||||
新しいイシューから参照
ユーザーをブロックする