AOSSIE-Org / AOSSIE-Org/DocPilot

[BUG]: UI Overflow and Outdated Prescription Handling in Transcription Screen

未關閉
#31 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug stale
主要語言
Dart
星號
18
分支
24
PR 合併指標
30 天內沒有已合併 PR

描述

### Bug Description

## Issue Description

The Transcription Screen has the following issues:

1. **UI Overflow (RenderFlex Error)**
- A horizontal overflow occurs in the status indicator row.
- This happens when long status text exceeds screen width.

2. **Outdated Prescription Usage**
- The UI still relies on `controller.prescription`, which is no longer available after migrating to structured AI responses.
- This causes compilation errors.

3. **Inconsistent UX with New AI Structure**
- The app now supports structured insights (symptoms, medicines), but the UI still shows a "Prescription" button.
- This leads to mismatch between backend logic and UI.

---

## Expected Behavior

- Status text should not overflow on small screens.
- UI should use structured data (`symptoms`, `medicines`) instead of deprecated fields.
- Navigation should reflect updated AI outputs via a dedicated screen.

---

## Suggested Fix

- Wrap status `Text` widget with `Expanded` and apply `TextOverflow.ellipsis`
- Replace `controller.prescription` with structured getters
- Introduce a new `MedicalInsightsScreen` for better UX

### Steps to Reproduce

_No response_

### Logs and Screenshots

_No response_

### Environment Details

_No response_

### Impact

Critical - Application is unusable

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。