Skip to content

Conversation

@kidonng
Copy link
Member

@kidonng kidonng commented Oct 25, 2021

Resolve #4974

Test URLs

Note: to test it you need to change version to 21.10.18 in manifest.json.

chrome://extensions/?options=balgliakcbamepammkbcjdepogihccmj

Screenshot

Before:

image

After:

image

@cheap-glitch cheap-glitch added the meta Related to Refined GitHub itself label Oct 25, 2021
@fregante fregante changed the title Disable checkboxes of hotfixed features Meta: Disable checkboxes of hotfixed features Oct 25, 2021
Copy link
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

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

On second thought, I avoided changing this in most cases because we want the user to be able to disable them (if the hotfix is also failing). Just because there's a hotfix active, it doesn't mean we should lock the interface. Maybe the only think we can do is to gray the whole line out

@kidonng
Copy link
Member Author

kidonng commented Oct 25, 2021

if the hotfix is also failing

But that's probably not going to happen randomly, and the way we disable the checkboxes means it only triggers if (most part of) hotfix still works.

Just because there's a hotfix active, it doesn't mean we should lock the interface. Maybe the only think we can do is to gray the whole line out

We used to disable the checkbox altogether, until #3678 changed the settings page.

@fregante
Copy link
Member

Just because there's a hotfix active, it doesn't mean we should lock the interface. Maybe the only think we can do is to gray the whole line out

We used to disable the checkbox altogether, until #3678 changed the settings page.

True, but I still don't like inactive checkboxes that have no reason to. Even if the checkbox isn't immediately followed, we do show why that's happening and dim the whole line to show something is wrong.

@kidonng
Copy link
Member Author

kidonng commented Oct 27, 2021

True, but I still don't like inactive checkboxes that have no reason to.

There's a reason clearly written in the notice: the feature is disabled.

Even if the checkbox isn't immediately followed, we do show why that's happening and dim the whole line to show something is wrong.

Did you mean we should restore the old appearance?

image

With your suggestion, opacity: 0.5:
image

@fregante
Copy link
Member

fregante commented Oct 28, 2021

True, but I still don't like inactive checkboxes that have no reason to.

There's a reason clearly written in the notice: the feature is disabled.

I mean we don't have a reason to. Just because the feature is disabled it doesn't mean we should also stop the user from toggling it for when it's fixed.

@yakov116
Copy link
Member

I mean we don't have a reason to. Just because the feature is disabled it doesn't mean we should also stop the user from toggling it for when it's fixed.

The only situation I can see a user needing to toggle is if they are transferring their setting from one computer to the next.

I happen to not see an issue with the whole line being disabled.

JMHO

@kidonng
Copy link
Member Author

kidonng commented Oct 31, 2021

If the user scrolls down and doesn't notice/remember the hotfix message, they may wonder why toggling those features doesn't work.

Yeah I know this is some hypothetical situation but AFAICT the checkboxes had been disabled for the longest time. It's just the behavior wasn't keep in the refactor PR (and not restored later).

@fregante
Copy link
Member

fregante commented Nov 8, 2021

Let's release a new version on the 10th. Feel free to merge any approved PRs or review others’

Copy link
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

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

Changed my mind again. All your arguments still apply to the current situation, mainly:

If the user scrolls down and doesn't notice/remember the hotfix message, they may wonder why toggling those features doesn't work.

Same exact thing applies now; additionally the checkbox does not respond to clicks at all, i.e. the checkbox itself is broken.

Looking at your screenshot: The checkbox barely looks disabled at all.


I see 2 improvements possible, if you want to pick this up:

  • dim the whole line as suggested earlier
  • add the reason why it's dimmed inline, like it was before (in addition to the header)

@fregante fregante marked this pull request as draft November 9, 2021 17:05
@fregante
Copy link
Member

Closing for now, it can be opened when there are commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

Hotfix-disabled features should display as disabled

4 participants