frostyfan109 / tranql

A Translator Query Language
https://researchsoftwareinstitute.github.io/data-translator/apps/tranql
MIT License
0 stars 1 forks source link

Message.js needs a better method of handling numerous errors #28

Closed frostyfan109 closed 5 years ago

frostyfan109 commented 5 years ago

At the moment, App::_handleMessageDialog takes the arguments title<String>, message<String>, and details<String>. api.py is formatting a list of errors into a single string by joining each with two newline characters.

Both message and details should accept arrays and in some way format it so that each error can be easily distinguished from one another. Currently it gets very confusing when there are multiple errors of substantially different length and some have details and some don't. Also, this would allow for both errors and warnings.

A possibility is that since the Message modal is already using react-tabs, we could add a second react-tabs as a parent that would be error tabs.

frostyfan109 commented 5 years ago

Added.