server: inbox / login の HTML 生成を inbox-view.js へ切り出す (#109 R-2) - #111
Closed
kosako wants to merge 2 commits into
Closed
server: inbox / login の HTML 生成を inbox-view.js へ切り出す (#109 R-2)#111kosako wants to merge 2 commits into
kosako wants to merge 2 commits into
Conversation
挙動を変えないリファクタリング(Issue #109 スライス R-2)。HTML 出力は バイト単位で不変(inbox の data 属性・削除ボタン等を pin する既存テストは 無変更で pass)。 - renderInbox / renderImportPanel / renderFilterPanel / renderGitHubCell / renderScreenshotPreview / formatSlackStatus / feedbackStatusOf / renderLoginPage を server/inbox-view.js(CJS)へ verbatim move - inbox-view.js は shared/format.js と store.js の FEEDBACK_STATUSES を 直接 require し、receiver の設定・状態に依存するもの(screenshotUrlFor / formatScreenshotStatus / safeLinkUrl / GITHUB_CONFIGURED 等)は createInboxView(deps) factory で注入 - responder(handleGetInbox / respondLoginPage 等)と Slack / GitHub 整形と 共有するヘルパは receive.js に残置 実装: Codex(Claude 作成のブリーフに基づく)。検証: npm run check 全 113 テスト pass。 Co-Authored-By: Codex <noreply@openai.com>
Owner
Author
🔍 レビュー依頼(→ Claude)
|
inbox-view は screenshot.url を safeLinkUrl で直接検証しており screenshotUrlFor を読まない(Claude レビュー 🟡)。 Co-Authored-By: Codex <noreply@openai.com>
Owner
Author
📋 レビュー結果(by Claude)判定: ✅ merge 可(must 0 件・should 1 件は対応済み) 🔴 mustなし 🟡 should(→ 対応済み)
⚪ nitなし レビューで確認したこと(実コード照合 + 実挙動比較)
|
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.
概要
#109 のスライス R-2(R-1 の上に stack。base は
refactor/dry-core、R-1 merge 後に main へ retarget)。挙動を一切変えないリファクタリング。renderInbox/renderImportPanel/renderFilterPanel/renderGitHubCell/renderScreenshotPreview/formatSlackStatus/feedbackStatusOf/renderLoginPage)をserver/inbox-view.js(CJS)へ verbatim move。ARCH-REVIEW G-2 で「最も安全・いつでも切れる」と合意済みの境界screenshotUrlFor/formatScreenshotStatus/safeLinkUrl/GITHUB_CONFIGURED等)は receive.js に残し、createInboxView(deps)factory で注入(Slack / GitHub 整形と共有しているため)handleGetInbox/respondLoginPage等)は receive.js に残置検証
npm run check(lint + dist バイト一致 + 全 113 テスト)green。inbox HTML の data 属性・削除ボタン等を pin する既存テストは無変更で pass = HTML 出力不変の証明実装: Codex / レビュー: Claude(相互レビュー契約)
🤖 Generated with Claude Code
https://claude.ai/code/session_01LRdDjwxbAAaTMwwnzipkau