huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
242 stars 80 forks source link

[IX] Adjust the review panel to display the relevant text field when the selected property is text, numeric or date #7158

Open aphilop opened 2 months ago

aphilop commented 2 months ago

Is your feature request related to a problem? Please describe. The information extraction feature currently works with PDF documents as source. We want to expand the sources also to text fields within a template so that information can also be extracted from these text fields.

Describe the solution you'd like When the source of an extractor is defined as text field, then the action name for opening the review panel in the table should be adjusted accordingly. Then the review panel should display on the top part the relevant text field while the lower part remains the same as we have it now.

@juanma will add the discussed designs and description of the flow for this enhancement.

juanmnl commented 2 months ago

The selected source of the entity is added as a block in the drawer (similar as we have the PDF now), retaining the click to fill pattern in the hub.

hub -click to fill - edit

Design

RafaPolit commented 2 months ago

The click-to-fill in text has multiple nuances and it can be affected by how the service segments the text, so this may not be possible to fully implement. Still, the functionality of assigning a value by selecting is still useful, so there are three possible stages to achieve this:

juanmnl commented 2 months ago

We are also "standarizing" the row action that triggers the drawer from "Open PDF" to just "Open", everywhere.

Screenshot 2024-09-11 at 8 47 03 AM