City-of-Helsinki / kerrokantasi-ui

Kerro kantasi participatory democracy UI
7 stars 25 forks source link

Add option to download report in readable format #559

Open petterill opened 6 years ago

petterill commented 6 years ago

An option to download hearing report in other format besides excel would be nice. Such as txt, word or pdf, so the user does not have to sweat with making the excel report understandable, but can send it directly to the BOSS.

Rikuoja commented 6 years ago

Well, this definitely requires a lot more specifying. Also, this is not a UI issue, so you should create an issue in the backend. The backend is responsible for formatting the data, because the data is stored in the backend; the UI only displays the data to the user but should not do any data processing as such. The excel link in the UI is just a direct link to the API excel renderer.

Currently, the data in the excel format is specific fields directly from the database. It is possible to create a pdf, text or word renderer for a specific endpoint in the API, but it would require specifying user needs for such a report: should all comments be included? Should comment images be included? How do we format it?

Do we make some analysis and processing before creating the report? Without that the pdf format is not any better than excel in my opinion.

Rikuoja commented 6 years ago

Okay, I can reopen this issue; once backend support is done we can just add the report link to the UI. That's luckily only one line of UI code.

Rikuoja commented 6 years ago

Though I believe @terotic had some ideas on how to present the links if several report formats are available?

Currently, already, it is possible to download the comments from the API as excel or in geojson format (which gives you the coordinates of all the comments ready for your GIS software to peruse). If a third option (pdf report) is included, I think this calls for its own UI element such as gasp the dreaded drop-down menu!