okfn / opendataeditor

No-code application to explore and publish all kinds of data: datasets, tables, charts, maps, stories, and more. Forever free and open source project powered by open standards and generative AI.
http://opendataeditor.okfn.org
MIT License
150 stars 18 forks source link

Error and Report buttons #342

Open romicolman opened 2 months ago

romicolman commented 2 months ago

Problem description

When the user uploads a file and it contains errors, it is possible to explore errors by looking at the table on the screen. He/She/They can also click on the ERROR button which is located below the main menu. This will only select cells with validation errors. If the user clicks on the REPORT button instead, he/she/they will get the same summary (cells with errors) and only when clicking on TYPE error, the ODE will display the error text report.

Steps to reproduce it

Screen 1: Red button at the top shows the file contains errors but errors are not shown on the table

Captura de pantalla 2024-04-24 a la(s) 09 14 28

Note: if the user clicks on the red ERROR button at the top of the screen, nothing happens.

Screen 2: by clicking on the error button on the menu...

Captura de pantalla 2024-04-24 a la(s) 09 22 32

The ODE only shows rows containing errors

Captura de pantalla 2024-04-24 a la(s) 09 27 20

Screen 3: the user clicks on REPORT and the ODE displays a summary of rows with errors. This is the same information the user can explore when clicking on the Errors button (screen 2).

Captura de pantalla 2024-04-24 a la(s) 09 35 41

However, when clicking on TYPE ERROR, the ODE shows a text summary of all errors

Captura de pantalla 2024-04-24 a la(s) 09 45 43

Suggested solution

When a user upload a file with errors, he/she/they can click on the main ERROR button at the top of the ODE. First click, the ODE will ONLY show rows with errors. Second click, full table, without showing errors (the button wil keep its red color in both cases because the file contains errors).