Repository navigation
feat(extension): 共有済みでローカル変更があるコマンドの同期ボタンを更新ありの表示にする - #511
Conversation
…mmand list Show a CloudUpload icon with a badge on the share button when a shared command has local edits not yet pushed to the Hub, and push the edits on click. Commands without a content fingerprint count as unchanged. Closes #507 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
レビュー結果変更範囲が小さく意図も明確で、既存の 指摘事項
セキュリティ / パフォーマンス
指摘3の実機確認が済めば、概ね問題ないと思います。 🤖 Generated with Claude Code |
…hed edits Use the CloudUpload icon for the new share action too, and give the button a light red background and a red badge when a shared command has unpushed local edits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
レビュー結果全体として小さくまとまっており、 指摘事項
テスト
セキュリティ/パフォーマンスセキュリティ上の懸念は見当たりません。ロケール文言は全14言語に追加されており問題ありません。 軽微な指摘が中心で、誤検知の実機確認が済めば LGTM だと思います。 |
Use an orange badge, background and hover stroke instead of red, so the state is not confused with an error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
レビュー結果全体として小さく筋の通った変更で、 指摘事項
テスト
ロケール14ロケールすべてにキーが追加されており、en のみ セキュリティ特記事項なし。ハッシュは編集検知のみの用途で、コメントにもその旨が記載されています。 軽微〜中程度の指摘が中心で、1(失敗時のフィードバックと多重送信)と4(誤検知の実機確認)を対応いただければ良いと思います。 |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
レビュー結果全体として小さく読みやすい変更です。 指摘事項
テスト
ロケール14ロケールすべてに追加されており、 まとめ致命的な問題はありません。誤検知の実機確認(項目4)と、push の失敗/連打時の挙動(項目2)を対応すればマージ可能と考えます。 🤖 Generated with Claude Code |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
レビュー結果全体として小さく読みやすい変更で、 指摘事項
テスト
良い点
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Derive the share state once and reuse it for icon, test id and tooltip - Add aria-label to the share button and hide the badge from screen readers - Drop the unused pending status in the push flow - Add tests for push failure, repeated clicks and fingerprint stability through the form schema; fix the SB-06 test name Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
概要
Closes #507
コマンド一覧で、Hubに共有済みかつHubへ未反映のローカル変更があるコマンドは、同期ボタンを「更新あり」の表示にします。
変更内容
hasUnpushedEdits()を追加(services/hub/commandContent.ts)contentHashと現在の内容のハッシュを比較contentHashが無いコマンド(v1.3.2より前に共有)は「変更なし」扱い。次回Hubへ送信した時点からハッシュ判定が有効になるisLocallyModified()は安全側(ハッシュ無し=変更あり)のまま変更なしShareButtonに「共有済み・変更あり」状態を追加CloudUploadアイコン+オレンジのバッジ+薄いオレンジの背景pushEditToHubを実行し、変更をHubへ反映contentHashが保存され、フォームがストレージから再読込されるためマークが消えるOption_shareButton_modified_tooltipを全14ロケールに追加TEST_IDS.modifiedSharedCommandButtonを追加ShareからCloudUploadに変更CloudUploadCloudCheckCloudUpload+オレンジのバッジ+薄いオレンジの背景テスト
hasUnpushedEdits: CC-07a〜c、ShareButton: SB-05・SB-06)locales.test.tsパスtsc --noEmit/ eslint パス🤖 Generated with Claude Code