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.
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.
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).