Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "Recent" tab (bottom tray) always show recently played #822

Open
whyboris opened this issue Sep 11, 2023 · 1 comment
Open

Make "Recent" tab (bottom tray) always show recently played #822

whyboris opened this issue Sep 11, 2023 · 1 comment

Comments

@whyboris
Copy link
Owner

This should be easy using the lastPlayed property 🤔

Rather than replace the functionality, perhaps load the top-5 according to lastPlayed property upon opening the hub 🤔 and continue using whatever code already exists.

This may be better than replacing the code with the filter that would have to re-run (re-compute) every time 🤷‍♂️

@Swish78
Copy link

Swish78 commented Oct 13, 2023

Hello,

I would like to take on this issue and contribute to its resolution. I see the potential to optimize the code without replacing it entirely. My proposal is to load the top-5 items based on the "lastPlayed" property upon opening the hub. This would enhance performance and prevent the need for re-computation on each load.

Here's my plan for resolving this issue:

  1. Retrieve the data containing the "lastPlayed" property.
  2. Sort the data in descending order by the "lastPlayed" property.
  3. Select the top 5 items based on the sorted data.
  4. Display these items in the hub interface.

I'd greatly appreciate some guidance on the specific codebase and any additional preferences you may have. Please consider assigning this issue to me, and I'll diligently work on implementing this improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants