search: implement Recent Files homepage panel
Created by: limitedmage
Fixes #13423
- Adds event logging details when ViewBlob is logged to also log the repo name and file path. This required a bit of refactoring of
trackPageView
andlogViewEvent
- Populates the Recent Files panel with data based on the ViewBlob event. Each file is only shown once and files without the new data from the ViewBlob event are not shown. Panel supports pagination via a "Show More" button.
- Refactored the data fetching from the Recent Searches panel to also work fo the Recent Files panel, as the data queried is the same except for the event type.