research-software-directory / RSD-as-a-service

This repo contains the new RSD-as-a-service implementation
https://research.software
27 stars 14 forks source link

rsd admin can edit package manager item #1279

Closed dmijatovic closed 2 months ago

dmijatovic commented 3 months ago

Rsd admin can edit package manager item

Closes #1277

Changes proposed in this pull request:

How to test:

Add package manager (not changed)

image

Admin package manager modal (to disable service or change platform)

image

Example disabled service on PM page

image

Example disabled service on services page

image

PR Checklist:

jmaassen commented 3 months ago

Setting the message works well, and the difference between admin and regular user is as expected.

However, when I set the message as an admin, I don't see any visual feedback on this as a user in the package manager section (only in the 'background services section'). An improvement would be to add some icon or message indicating a error, that links to the background services section?

dmijatovic commented 3 months ago

@jmaassen & @ewan-escience Thanks for the feedback. I have improved working of the modal and the messaging (see printscreens in the PR):

Note! I have rebased to latest changes from main. so you will need to load remove old branch and load this PR branch again.

jmaassen commented 3 months ago

Works well.

Small comment:

Screenshot 2024-08-23 at 09-38-39 Edit software Research Software Directory

Instead of saying "Why ... is disabled?" it may be better to say "Reason to disable ...."

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed for 'rsd-database'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed for 'rsd-frontend'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
32.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud