openscopeproject / openscopeproject/TrguiNG

Improvements for switching between two servers

Open
#252 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
796
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Looks like switching between two servers keeps the scroll position you had (focused on the Nth entry), which is very confusing, since you are losing the position you had before the tab switch, go to some random position in another list, do your business there, and then find yourself in a random place when you return. Similar things happen with filters like labels, trackers, directories - sometime it's useful, but most of the time the list turns out empty because there is no such label/directory/tracker on another server. You also have to reset the search every time you switch, and set the search again if you want to continue.

I think sometimes keeping the same filters across multiple servers can be useful, especially if you have servers with similar data and a batch workflow for them. But for other times filters mostly come in the way of browsing and make the list empty and you have to remember that you had filters on before you switched the server.

I have a few suggestions on how to fix this:

  • Reset filters on switch, but only in obvious cases when there is no such filter on the other server (directories, trackers, labels, etc.). Scroll position should probably be reset too. Not sure about the search filter, since having no search results might be a meaningful thing too.

  • Add some additional indication of applied filters, since those might be out of view (like trackers) or the user might not expect filters transfer to another server and just think something is wrong with the list itself since it's just empty. The most common filter indication would be having an overlay for the empty torrent list saying "no results for "search term/directory/tracker/status/label filter name" with a button to reset. Another indication would be having closable labels inside the search bar mentioning active filters like tracker or directory etc., joined by OR or AND, depending on how multiselect mode works (I think now it is AND, but OR might be useful in some cases I guess, with some toggle in the GUI).

  • Make option(s?) in the settings to keep the filters, scroll position, search and other useful state separately for each server.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by tracing server switching and the state for filters, search, and scroll position, then review the proposed alternatives before choosing a focused behavior. Done means the selected cross-server state behavior is implemented and the confusing empty or randomly positioned list cases are covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.