andreagrandi / andreagrandi/draftomen

Show enhancement availability in terminal and desktop interfaces

Đã đóng
#441 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
draftomen enhancement size: M
Ngôn ngữ chính
Python
Star
0
Fork
0
Merge trung bình
1 giờ 21 phút
Pull request đã merge (30 ngày)
188

Mô tả

## Problem

Users cannot currently see whether AI-enhanced suggestions are available for the active set. Offering the control for an unenhanced set would imply that the feature is active when no compatible enrichment exists.

## Proposed change

Render shared enhancement availability consistently in the TUI, plain-watch output, and PySide6/QML desktop interface.

When available, identify the active profile as AI-enhanced and provide the enable/disable control. When unavailable, show a concise set-specific message and disable or omit the control.

Make clear that the profile was enhanced offline; no model is called during the live draft.

Keep all availability and command behavior in the shared session. Frontends remain presentation adapters.

## Acceptance Criteria

- [ ] AC1: `tests/test_tui.py` verifies available, enabled, disabled, and unavailable enhancement states and user commands.
- [ ] AC2: `tests/test_watch.py` verifies that plain-watch output identifies enhanced suggestions when active and does not claim enhancement for unenhanced sets.
- [ ] AC3: `tests/test_qt_adapter.py` verifies immutable session-state translation and enable/disable command dispatch.
- [ ] AC4: `tests/test_qt_gui.py` verifies that the desktop control is available only for enhanced profiles and that unavailable copy includes the active set.
- [ ] AC5: TUI and desktop wording states that enrichment is profile-backed and does not imply live AI processing.
- [ ] AC6: The actual terminal and desktop workflows are visually exercised with enhanced and unenhanced mock profiles.
- [ ] AC7: Core and session modules remain free of Textual, PySide6, QML, and presentation-specific dependencies.

## Dependencies

- Expose enhancement availability through the live session.

## Implementation classification

- **Estimated size:** M
- **Orchestration risk:** High
- **Reason:** The same availability contract must remain consistent across terminal and desktop surfaces.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start with the shared live session and the interfaces named in the issue, then read tests/test_tui.py, tests/test_watch.py, tests/test_qt_adapter.py, and tests/test_qt_gui.py. Verify the availability states and command dispatch in those tests, then visually exercise enhanced and unenhanced mock profiles as described in the acceptance criteria.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli, desktop, frontend, testing
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.