codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
24 stars 23 forks source link

[Discovery] - Create Document View component #644

Open andycwilliams opened 1 month ago

andycwilliams commented 1 month ago

Note: This issue is marked for discovery. It is open for discussion and not necessarily decided upon.

Describe the Current Behavior/Feature:

In the Documents table, clicking on "Preview File" icon button from the grid opens the file directly. It may be better to have it instead direct to a separate page that displays the full information/metadata for that file.

Rationale:

The "Profile" icon button in the Contacts table already behaves in this way and it is good to have consistent design.

Besides, the term 'preview' makes it seem more like the user can glimpse a document rather than directly open it. Doing so may potentially exit out of the app unexpectedly, which could be frustrating for the user.

Proposed Changes:

Create a new component, perhaps called Document View, that opens when clicking on the "Preview File" icon button. There it will display a preview of the document plus the associated data.

Consult the Figma design:

2024-05-24 (2) - Copy

Also consider adding a button in the page that will open that file directly. In which case, the labeling should be clear and perhaps have a warning along the lines of "This will take you outside of the app. Proceed?".