NatLibFi / Annif

Annif is a multi-algorithm automated subject indexing tool for libraries, archives and museums.
https://annif.org
Other
195 stars 41 forks source link

Add project info to web UI #654

Closed UnniKohonen closed 1 year ago

UnniKohonen commented 1 year ago

This PR adds information about a selected project to the web UI.

A button is added under the project selection: Screenshot 2022-12-08 at 11-43-39 Annif

This opens a box with the information on the project: Screenshot 2022-12-08 at 11-43-48 Annif

IMO a version with the info in a popup next to the project selection would look cleaner but I'm not sure how to implement it yet.

codecov[bot] commented 1 year ago

Codecov Report

Base: 99.55% // Head: 99.55% // No change to project coverage :thumbsup:

Coverage data is based on head (68116c0) compared to base (c48d81a). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #654 +/- ## ======================================= Coverage 99.55% 99.55% ======================================= Files 87 87 Lines 6006 6006 ======================================= Hits 5979 5979 Misses 27 27 ``` Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NatLibFi). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NatLibFi)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

osma commented 1 year ago

Great work so far!

I think the visual design could be a bit simpler instead of a big button. How about making it similar to the collapsible details/summary view available here on GitHub, something like this (try clicking):

Project information Project ID: yso-fi
Language: fi
Backend type: nn_ensemble
Trained: yes
Last modified: 2022-11-21 15:07:57 UTC

Here is a rough sketch how it could look (sorry for the bad alignment, not intended!)

kuva

It would be closed by default of course.

UnniKohonen commented 1 year ago

I changed it to this now: Screenshot 2022-12-16 at 10-45-02 Annif Screenshot 2022-12-16 at 10-44-36 Annif

I left the animation for the collapse element on but it can be removed too if it's distracting.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

juhoinkinen commented 1 year ago

We should remember to update the Wiki page for the Web UI when the next release is made, it is quite old already.