[Phase L2-7] 퀵 액션 바 — 최근 실행 항목 칩 표시

Models/QuickActionChip.cs (신규 12줄):
- Title, Symbol, Path, Background 레코드

Services/UsageRankingService.cs:
- GetTopItems(int n) 메서드 추가: 실행 횟수 상위 N개 (경로, 횟수) 반환

ViewModels/LauncherViewModel.cs:
- QuickActionItems (ObservableCollection<QuickActionChip>) 프로퍼티 추가
- ShowQuickActions: 입력 비었을 때 칩 표시 조건
- LoadQuickActions(): 상위 8개 경로 → 파일 존재 확인 → 타입별 아이콘/색상 칩 생성
- OnShown()에서 LoadQuickActions() 호출
- InputText 변경 시 ShowQuickActions 알림

Views/LauncherWindow.xaml:
- 입력 Grid를 2행 구조로 변환 (RowDefinitions 추가)
- Row 1: ItemsControl + WrapPanel + DataTemplate 칩 UI
  - CornerRadius=10 Border, 아이콘+제목 StackPanel
  - 호버 시 AccentColor 테두리, 최대 너비 100px 말줄임

Views/LauncherWindow.Shell.cs:
- QuickActionChip_Click 핸들러: 창 숨김 → 경로 실행 → 사용 통계 기록

빌드: 경고 0, 오류 0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-04 10:44:02 +09:00
parent 679de30f68
commit f557f53449
5 changed files with 220 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using System.Windows.Media;
namespace AxCopilot.Models;
/// <summary>
/// 퀵 액션 바에 표시되는 최근 실행 항목 칩 모델.
/// 입력창 아래에 가로 칩 형태로 표시되며 클릭 시 즉시 실행됩니다.
/// </summary>
public record QuickActionChip(
string Title,
string Symbol,
string Path,
Brush Background
);