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

Add pagination / time filter to recap #54

Open
Fort-TM opened this issue Nov 18, 2024 · 2 comments
Open

Add pagination / time filter to recap #54

Fort-TM opened this issue Nov 18, 2024 · 2 comments

Comments

@Fort-TM
Copy link
Contributor

Fort-TM commented Nov 18, 2024

Suggestion

Some people's recaps can have thousands of maps, so I think it would help if:

  • The recap could have pagination, instead of infinite scrolling
  • The user could choose to only load the maps from the last day / week / month / etc.

For the latter, the plugin could keep a JSON with the map UUIDs and when they were last played, and only load the files that match those UUIDs in that time frame. Something like

[
    ["OAmhby4s9zR4IMzUu8Zkh1sxd3c", 1731947838],
    ["Ye6btWgKsS2M4vCqGsL8COTOUoh", 1729438863]
]

(example uses epoch time)

Credits

Time filter idea originally suggested by Tarpor on the Openplanet Discord server (Link)

@drekdrek
Copy link
Owner

drekdrek commented Jan 5, 2025

we could also use the last modified time of the file to detect when it was last played, that is how the current implementation works in the recap display

@Fort-TM
Copy link
Contributor Author

Fort-TM commented Jan 5, 2025

Yeah, that also works and would avoid requiring another file. Good idea 👍

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