Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Removed the auto-refresh feature #1339

Merged
merged 1 commit into from
Nov 20, 2019
Merged

Conversation

eharris
Copy link
Contributor

@eharris eharris commented Oct 16, 2019

This feature just generated a lot of unnecessary traffic to the server and hurt usability because the page would refresh unexpectedly while a user was actively looking at content. Fixes #1003, #1179, #729.

Did not remove the column for that setting in the user database (just coded around it), since that would lead to complications if needing to downgrade for some reason.

This feature just generated a lot of unnecessary traffic to the server and
hurt usability because the page would refresh unexpectedly while a user was
actively looking at content.  Fixes airsonic#1003, airsonic#1179, airsonic#729.
Did not remove the column for that setting in the user database, since that
would lead to complications if needing to downgrade for some reason.
@eharris eharris added status: pending-design-work Needs design work before any code can be developed. usability labels Oct 16, 2019
@fxthomas
Copy link
Contributor

fxthomas commented Nov 10, 2019

Great, that's a good idea! From a UX perspective:

  • Can you make the active top link clickable so that it's still possible to reload the page (right now if e.g. "Recently played" is the current page the link is not)?
  • How about adding a "refresh" button on the page that avoids stopping playback with the browser refresh?

(Related to #1338)

@eharris
Copy link
Contributor Author

eharris commented Nov 12, 2019

@fxthomas: I don't really want to change the design of the active top link (your first suggestion) in this PR since that is completely unrelated.

And while I agree that your second suggestion of adding a refresh link in all the pages (like the random page already has) would be a good idea, doing so in a consistent place and fixing the table elements to have appropriate html spacing in all circumstances while also maintaining well formatted blocks in the jsp would require a pretty complete overhaul of the whole homePager.jsp, and I'd rather not pollute this PR with that. I do have a PR ready to go to add that though, and can submit it after this PR is merged since otherwise it would cause merge conflicts.

@fxthomas
Copy link
Contributor

Okay, fair enough. Looks good to me then!

@@ -224,7 +224,7 @@ public void updateUserSettings(UserSettings settings) {
settings.getAvatarScheme().name(), settings.getSystemAvatarId(), settings.getChanged(),
settings.isShowArtistInfoEnabled(), settings.isAutoHidePlayQueue(),
settings.isViewAsList(), settings.getDefaultAlbumList().getId(), settings.isQueueFollowingSongs(),
settings.isShowSideBar(), settings.getListReloadDelay(), settings.isKeyboardShortcutsEnabled(),
settings.isShowSideBar(), 60 /* Unused listReloadDelay */, settings.isKeyboardShortcutsEnabled(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove this column instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I noted in the original PR comment, I chose not to remove the column and just code around it so that it would not cause a problem if users downgraded or otherwise switched between versions. I think it would be appropriate to remove it when we are preparing for the next major release, but for now I think it's safer not to.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you maybe add a todo for us? Maybe a github issue so we can track it?

@eharris eharris assigned muff1nman and unassigned fxthomas Nov 13, 2019
@eharris
Copy link
Contributor Author

eharris commented Nov 20, 2019

This has two approving reviews, and I think I've addressed @muff1nman's concern, so I'm inclined to merge this. Anyone else care to do the honors?

@eharris eharris merged commit 569a552 into airsonic:master Nov 20, 2019
@eharris eharris deleted the remove-autorefresh branch November 20, 2019 10:21
eharris added a commit to eharris/airsonic that referenced this pull request Nov 20, 2019
This adds a refresh link to all homePager.jsp browse methods in a
consistent place, so that users can easily refresh the proper frame
without causing a whole page refresh that would interrupt the web
player.
This is a follow-on to airsonic#1339 which removed the auto-refresh feature.
A side effect of this cleanup was to change all spacing between sets
of elements to a standard 2em to the right which made the layout
less convoluted.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: pending-design-work Needs design work before any code can be developed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a simple toggle to disable autorefresh
4 participants