Open cweijin opened 1 week ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Long Text Input Causes Truncation in 'View' Command UI
Description
When editing a patient's name to a very long value (e.g., "aaaaa..."), the
view
command does not display the full name. The name is cut off halfway, with no truncation indicator or soft wrapping in the JavaFX UI.Steps to Reproduce
- Add or edit a patient's name to a long string (e.g., "aaaaa..." repeated multiple times).
edit NRIC n|<very_long_name>
- Use the view command to display the patient's full profile.
view NRIC
Expected Result
The full name is displayed, or truncation with an indicator (e.g., "...") or soft wrapping is applied to ensure no information loss.
Actual Result
The name is cut off halfway without any indicator, resulting in loss of information.
Concern
This impacts data visibility and may lead to misinterpretation or incomplete access to critical patient information.
[original: nus-cs2103-AY2425S1/pe-interim#3268] [original labels: severity.Medium type.FunctionalityBug]
[This is the team's response to the above 'original' bug]
We believe this is to be a minor inconvenience that affects a minority of users as firstly, the name field allows for most normal-length names to be viewed at default window size without any issues. Furthermore, for long names that clips beyond the default window, the user can simply open the window in full screen with one click to view the entire name without any issues. Therefore, we believe this is of low severity. Furthermore, we have stated this as a planned enhancement to limit name length (point 6) in our UG and DG, doing so will eliminate this bug from occurring.
Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: [replace this with your explanation]
Replicate: addf n|Jake Tio i|T2446681N s|M d|2001-10-27 p|98178571 e|jakejake@gmail.com a|Blk 555, Clementi Avenue fewfdflkhewkfhewkjhfkewhfqjlahekjfdshlkjfhlkjdsanvjwjvahgewjhfweiufhdsjfhdakjflhewqjfhk3hejfhkjfhdsalfhjdalhfkjlqewkj, S123555 b|O+ nokn|Tio Wei Hsein nokp|91874918 al|Nuts al|Shellfish rl|LOW ec|HighBlood Pressure no|Patient has anger management issues
Long address results in overflow that is not handled. Users could not retrieve the full address if needed.