-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 visited servers section to serverlist #15660
base: master
Are you sure you want to change the base?
Conversation
Idea: Add a checkbox at the top of the serverlist for controlling the display of the 'Last Visited' (maybe better named 'Recently Visited' or 'Visited Previously'?) section. Moving all the 'Last Visited' server entries to the 'Public Servers' section when disabled. An alternative to the checkbox would maybe be having the user click/doubleclick the 'Last Visited' header to toggle it, turning the text grey when disabled or something |
be8b035
to
6a44d8c
Compare
6a44d8c
to
1f02036
Compare
Some other games I know use tabs for the server list, to select between e.g. This would also be more future proof if we get #10208 and #14246 someday. |
Just to verify that I share your vision, would the sketch below appeal to you/your idea? I'd like to hear other opinions on your idea first but I could live with this implementation. |
nice, however could you move the buttons to stay on the blue background (maybe after the scroll bar) , |
Personally I think collapsible sections would be fine, which is something |
I'm fine with either implementation, both seem to have their up- and downsides. Thanks for pointing out the
Can you elaborate on that? Do you mean putting them right of the server list? |
I don't think that would be supported too well. I'd just make them all collapsible for simplicity and consistency. Collapsing incompatible servers certainly makes sense. Collapsing favorites or public servers doesn't seem very useful, yet not necessarily useless. |
I like siliconsniffer's sketch. My original vision was to put the buttons/tab selectors/dropdown field at the top of the server list, but putting them left to the list seems to be even better. I prefer the tab over the |
Thank you very much for the feedback. I just want to briefly point out that this still needs roadmap approval before we get into further details. It might also be useful to discuss when/how quickly we want this to be implemented. Personally, I doubt that I will be able to pull this off alone before the 5.11 feature freeze; if anyone has the resources, I'd be happy to collaborate to make that possible. Edit: FF now, guess I'll try for 5.12... |
Add compact, short information about your PR for easier understanding:
This PR aims to add a new section into the server list to display the last visited servers in chronological order from newest to oldest descending.
Goal of the PR
The goal is to stop the automatic addition of servers into the favorites section when joining them.
How does the PR work?
When joining a non-favorite server it will be added to the first/top entry of the "last visited" section.
Additionally the section is limited to only five entries, if there are five entries and there is a new one the last will be removed and the new one will be displayed at the top of the list.
The behavior of "doing nothing" (not adding the server to favs) when double clicking is kept - it won't be added to last visited.
Does it resolve any reported issue?
#4028 (maybe more?)
#15545 second and third point, first point could be solved here too?
Does this relate to a goal in the roadmap?
2.3 hopefully
If not a bug fix, why is this PR needed? What usecases does it solve?
It solves the annoyance of having every server one joins in the favorites.
A nice side effect is that the selection is kept when searching - a user has to specifically pick a server from the results to select it.
To do
This PR is a Work in Progress.
I don't mind suggestions for how to fix the sorting/make them sorted chronically instead of being sorted by their rank - my attempt doesn't seem to work out as I expected. I'd say its ready for review when that works.
How to test
Try to join a few servers, observe how the "Last Visited" section fills up.
Notice how it will remove the oldest entry if there are already five and a new one is added.
Double click on a server to connect to see that it doesn't get added to the list.
See that favorite servers won't get added to the list.
Preview