-
-
Notifications
You must be signed in to change notification settings - Fork 981
Feature: Add "Troubleshooting Mode" #6343
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
base: develop
Are you sure you want to change the base?
Conversation
|
A few thoughts:
|
Edit: I specifically kept it so that it did not reload to page to keep it inline with other custom implementations. When you enable CSS you need to refresh the page to have it take effect. If I have it refresh the page on toggle then if someone is modifying settings, and clicks it by accident, it would refresh and they would lose their other settings. Just a small bad UX experience but if the consensus is to make it reload then i'm fine with that. |
|
@Gykes Thanks! Suggestion:
|
|
I think the concept itself is a great idea, I don't have much of an opinion on where it should go or what the naming should be. We've had multiple issues come up where it was so difficult to replicate and ended up being solved by "oh I had custom CSS" or "oh I had x y z theme and plugin conflict". I would additionally add some sort of overlay to act as a notice, since the user would probably not want to run in this mode for extended periods of time something akin to the "This copy if windows is not activated" overlay and additionally clickable to quickly turn it off Debug mode in logs would also be great but persistence would be difficult |
|
|
I'm sure @WithoutPants would have a good idea of where this should be located in the settings. But at the same time, I wouldn't waste much effort looking for an optimal location. Because it looks like the entire Settings hierarchy needs reorganized eventually, with more conventional user-friendly node headings. I've been using it since the first version and sometimes I'm still searching where settings are situated. 😅 |
|
My proposal is to have a button, probably in the left panel of the settings screen, to activate this mode. It will bring up a dialog explaining what it will do, and if the user confirms, the system will apply the mode and reload the UI. Having an overlay as feederbox mentioned is a great idea and also provides a quick and easy way to switch back to normal mode. Having it override the log level to at least debug would also be beneficial if we can easily do it in the backend. |
|
Deferring till after .30 release. Keeping open in the meantime. |
|
Do you mean on the main page underneath Advanced Mode and have the same style toggle? |
Good idea. Before this gets finalized, it might be a good idea to revisit the optimal name for the toggle.
|
|
I would not use "Safe Mode" as that could be confused with "SFW mode". I like the idea of the logs being more easily accessible. Perhaps showing the most recent lines at the bottom of each screen, rather than needing to browse to Settings > Logs. I also like @feederbox826 idea of a permanent overlay indicating this mode is turned on (and an easily accessible link to turn it off). Something like this:
|
|
maybe also add a default css blur to images (studio/ performer/ cover/ gallery), saves a lot of steps for censoring both can be added via css, just add a root variable that activates it |
10 minutes, eh? |
|
This pull request has been mentioned on Stash. There might be relevant details there: https://discourse.stashapp.cc/t/stash-v0-31-release-development-thread/4881/1 |
|
Pushed some changes and update the UI images to reflect |

This PR adds a new toggle to
Settings -> Interface(Image Below) which allows users to toggle Disable Customization in the new troubleshooting section. I don't have a reason for where I placed it on the page it was just kind of random. If someone has a better idea for where to place it then it's an easy change to make. I felt like adding in the new section was a good idea for future proofing but I can simplify it if needed.This disables all plugins and custom css, JS, and localization. To keep in line with other settings this will require a manual page reload by the user once enabled.
Tests:
Enabled the Stash Notes plugin -> enable and refresh -> plugin gone from nav bar
Enabled custom css to change background -> enable and refresh -> background back to normal
Enabled custom JS to add a popup alert on reload -> enable and refresh -> popup no longer appears.
Enabled custom localization to change "Scenes" to "blah" -> enabled and refresh -> goes back to scenes
Fixes: #4508
UI Button:

Confirm Modal:

Banner/Exit:
