In the Add forge now requests list, display a tooltip with the status description on the status label
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Migrated | gitlab-migration | T2197 Ingestion / coverage | ||
Migrated | gitlab-migration | T2199 "Save Forge Now" | ||
Migrated | gitlab-migration | T1538 Add "forge" now | ||
Migrated | gitlab-migration | T4047 User interface to submit and follow Add forge now requests | ||
Migrated | gitlab-migration | T4070 add forge now submission form | ||
Migrated | gitlab-migration | T3989 [Add forge now] Create "browse add requests" tab | ||
Migrated | gitlab-migration | T4073 add tooltip on add forge now request status |
Event Timeline
Hello,
see my comment [1] which is still mostly valid (beyond the linked code source line which is not the same for this need).
It's up to you to propose a solution that will do what's described in the task description.
For reference, there is an existing implementation in the save code now view so please have a look at it for inspiration.
[1] T4078#82019
Cheers,
hey sir, I am new to this platform. I have been looking around for how this works and it's a bit tricky. I hope you can help me by breaking it into steps so I can follow through.
Warm regards
Pranay Prajapati
Maybe look for some 'tooltip' keyword in the swh-web repository.
And that might give some insight as how we are using it [1]?
Note that I've given you that hint using the web ui but the 'grep' command can be more
helpful on a local clone of that repository (to limit result to html or js files).
[1] https://forge.softwareheritage.org/source/swh-web/browse/master/?grep=tooltip
I am working on this task and almost ready to deploy a PR.
great, you can propose your solution as a diff though (not a PR), see our contributing guide about it [1]
Cheers,
[1] https://docs.softwareheritage.org/devel/contributing/phabricator.html
hey @ardumont can you tell me briefly how to setup this do i have to use docker image or anything else this is my first time please explain a little
Hello @arishmaurya , it is on the add-forge-now admin dashboard view but isn't open publicly yet (from @ardumont 's comment on https://forge.softwareheritage.org/T4078).
You can still work on this though using the docker images and make it run locally.
Then adapt the code to make the currently displayed field forge_url a link.
For this, you need to adapt the following code [1].
And then checks with your swh-web instance locally runnlng that the link is now displayed as an url link (instead of raw text).
[1] https://forge.softwareheritage.org/source/swh-web/browse/master/assets/src/bundles/add_forge/moderation-dashboard.js$48-52