Skip to content

Feat: enhance time_ago_tooltip for reusing

What does this MR do and why?

Right now, lots of code use the same way to render time component with a tooltip even though we have a component just for that, and lots of us don't know about it, besides, some of them need a <a/> instead of the default <time />.

This MR is meant to extend the existing component to allow advanced usages, also I think explicitly inherit attributes from the parent level is better, if we tend to migrate towards Vue3 in the future.

/cc @prajnamas @orozot @qk44077907 @lxwan

Describe in detail what your merge request does and why.

Screenshots or screen recordings

CleanShot_2022-11-11_at_16.24.55_2x

CleanShot_2022-11-11_at_16.25.17_2x

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports