Improve popups and linking in compliance badges
Related to #462942 (closed)
In !156570 (merged) we implemented Compliance info in the project page. Current linking logic was suggested by @cam.x:
(links should navigate)to the compliance center of the TOP-LEVEL group - so the group where the framework was actually created and can be edited
@nrosandich suggested the following:
- If user is top-level group owner redirect to compliance center at top-level group.
- If user is group owner redirect to compliance center at group.
- If user is project owner redirect to compliance center at project.
- If user is not above remove links and show tooltip.
@nradina suggested the following:
the simplest and logical solution would be to redirect users to the project's compliance center since they are on the project page.
This issue is created to come up with the best solution and implement it. Also, we might think about similar links in other pages and fix them as well
Design proposal
See the design section
As a result of a sync with @cam.x we agreed on the following:
- Badges are not wrapped with links anywhere except for multiple badges popup.
- The links in the popups always lead to the same level if user can admin compliance frameworks - Edit framework screen if user is in subgroup - View details
Edited by Nataliia Radina