andreagrandi / andreagrandi/draftomen

Show enhancement availability in terminal and desktop interfaces

已关闭
#441 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
draftomen enhancement size: M
主要语言
Python
星标
0
派生
0
平均合并
1 小时 18 分钟
30 天内合并 PR
197

描述

## 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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
cli, desktop, frontend, testing
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。