Skip to content

feat: Eyedropper + Command Palette recent commands#62

Merged
Pregum merged 1 commit intomainfrom
feat/eyedropper-recent-cmd
Apr 23, 2026
Merged

feat: Eyedropper + Command Palette recent commands#62
Pregum merged 1 commit intomainfrom
feat/eyedropper-recent-cmd

Conversation

@Pregum
Copy link
Copy Markdown
Owner

@Pregum Pregum commented Apr 23, 2026

Summary

  • ColorPicker に Chromium の EyeDropper API ボタンを追加(API 非対応ブラウザでは非表示)
  • CommandPalette: 直近使ったコマンド最大 8 件を localStorage に保存し、クエリ未入力時に上位表示("recent" バッジ付き)
  • 新規 `utils/recentCommands.ts` は pure function のみ(push/reorder/load/save)

Test plan

  • `npm run build`: ✅ 型チェック + ビルド成功
  • `npx vitest run`: ✅ 288 tests passed (22 files) — 新規 13 tests 追加
  • Chromium で ColorPicker の 🔍 ボタン動作確認(スクリーンから色を拾える)
  • Cmd+Shift+P でコマンドを数回実行 → 再度開いて "recent" が先頭に並ぶことを確認
  • 非 Chromium(Safari/Firefox)で EyeDropper ボタンが表示されないことを確認

🤖 Generated with Claude Code

- ColorPicker: Chromium の EyeDropper API ボタン(環境で検出)
- CommandPalette: 直近使ったコマンドを localStorage に保存し
  クエリ未入力時に上位表示。"recent" バッジ付き
- utils/recentCommands: pure function (push/reorder/load/save)
- tests: 13 tests for recentCommands

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Pregum Pregum merged commit e62c291 into main Apr 23, 2026
1 check passed
@Pregum Pregum deleted the feat/eyedropper-recent-cmd branch April 23, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant