irma-frontend
irma-frontend copied to clipboard
Comments feature
Adding a comment feature on scanned files (in details view).
Using this, all users will be able to add comments and share some information on the file.
Implementation suggestion
1. New table in database
| COMMENT |
|---|
| id |
| name |
| date |
| text |
| id_file |
2. New route in Bottle API
- ADD comment
- route =
/files/<sha256>/comments - method =
POST - callback =
files.add_comment
- route =
3. Update FileWebSchema
Update FileWebSchema in order to get back comments from database
4. Web and AngularJS
Update details view
- Display comments
- Add a form to submit a new comment
Note that it should be better to implement before: Multi-tab feature in details view #102
What do you suggest ?
i'm rebasing your PR right now. will test it on 1.3.0.