Files
ItemSense/python/specs/003-result-display.md
2026-01-21 15:41:18 -05:00

28 lines
897 B
Markdown

# Feature: Result Display (PyObjC)
## Status: COMPLETE
## Description
Display the analysis results natively in the AppKit UI.
## Requirements
1. **Result UI**:
- Add a scrollable `NSTextView` (within an `NSScrollView`) below the image view.
- Initially empty or hidden.
2. **Workflow**:
- **Live Mode**: Camera active, Button says "Capture", Text view hidden/empty.
- **Processing Mode**: specific indication.
- **Result Mode**: Camera paused on captured frame, Button says "Scan Another", Text view shows description.
3. **Data Binding**:
- Update the `NSTextView` string with the OpenAI response.
- Clicking "Scan Another" resets the UI to **Live Mode**.
## Acceptance Criteria
- [ ] App cycles correctly: Capture -> Result -> Scan Another -> Capture.
- [ ] Result text is readable in a native macOS scroll view.
- [ ] Window resizing layout remains sane.