backstage / backstage

Backstage is an open framework for building developer portals
https://backstage.io/
Apache License 2.0
26.89k stars 5.58k forks source link

🚀 Feature: Home Page Recently Visited component for entities with subpages #24819

Open pativa opened 1 month ago

pativa commented 1 month ago

🔖 Feature description

HomePageRecentlyVisited is a nice component displaying the last few visited pages. However, we have multiple subpages for most component pages, and we would like to be able to count these as visits to the same page, or not count some pages as visits at all.

Example screenshot: recently-visited-duplicates

These are links to different subpages on the same entity.

🎤 Context

As it is now, this component is not very useful for us as it is filled with duplicates for everyone (duplicates in the meaning that they point to the same entity, but different subpages).

✌️ Possible Implementation

I would suggest to add a method for transforming the pathname in VisitListener so that we can control which paths are registered to VisitsApi.

👀 Have you spent some time to check if this feature request has been raised before?

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

Yes I am willing to submit a PR!