Skip to content
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 web path as config option #172

Merged
merged 3 commits into from
Mar 21, 2019
Merged

Add web path as config option #172

merged 3 commits into from
Mar 21, 2019

Conversation

dkanada
Copy link
Member

@dkanada dkanada commented Mar 12, 2019

}
picker.close();
},
validateWriteable: true,
Copy link
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Contributor

@JustAMan JustAMan left a comment

Choose a reason for hiding this comment

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

I don't think web ui root should be configurable from web ui... Please provide reasoning.

@joshuaboniface
Copy link
Member

I agree with @JustAMan, the server-side change is something for packaging and really advanced users, not something that should be configurable within the UI itself.

@dkanada
Copy link
Member Author

dkanada commented Mar 14, 2019

I still think you should be able to edit this path along with all the others, makes no sense to hide an option from the dashboard just because it may be for advanced users. I did add a warning to the description, but I could even trigger a modal first with an explanation similar to the plugin installation message.

@@ -1123,7 +1123,7 @@
"LabelMetadataPath": "Metadata path:",
"LabelMetadataPathHelp": "Specify a custom location for downloaded artwork and metadata.",
"LabelWebPath": "Web path:",
"LabelWebPathHelp": "The path where the web client source is located.",
"LabelWebPathHelp": "The path where the web client source is located. Do not change this unless you plan on moving the web files, or the web interface will break.",
Copy link
Contributor

Choose a reason for hiding this comment

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

I would rather we not let users edit this via web UI (warning text is something no one would actually read).

@cvium
Copy link
Member

cvium commented Mar 15, 2019

Changing the ui path feels more like a startup option. What's the use case exactly?

@joshuaboniface
Copy link
Member

So to clarify based on Riot chats around this - I like the idea of showing the web path, but not the idea of it being changeable from the UI - too much potential for a chicken-and-egg problem there if someone typos it. @dkanada if you can adjust it to just be for show I approve.

@joshuaboniface
Copy link
Member

joshuaboniface commented Mar 19, 2019

Discussed more on Riot with @dkanada. I can see the usecase of setting this from the GUI for quick testing across all paltforms. Assuming it actually does save the configured value in server.xmland it works after a restart (@dkanada to test) , I'm OK with this option with a modal bearing a big "DANGER this is advanced and can break your install, don't change this unless you know what you're doing" on it (before the dialog selector) as the safety against users shooting themselves in the foot. Eventually, maybe, we could move this as a setting behind an "advanced" settings mode for developers a la what Android does, but that's a bigger thing for its own issue.

@JustAMan while I understand the argument, I think the potential for additional admin configurability outweighs the possible danger as long as the warning is clear enough. If the user clicks through a big warning and breaks it, OK, we can put a blurb in the docs.

@dkanada
Copy link
Member Author

dkanada commented Mar 19, 2019

I just removed it for now, the visible section on the dashboard is working fine though so this can be merged.

Copy link
Contributor

@JustAMan JustAMan left a comment

Choose a reason for hiding this comment

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

LGTM.

As for modifying the thing from UI for testing (as @dkanada said in Matrix) - I see the point that it eases the tests, but it's not that frequent - one can just have two instances running on different ports.
So in my view the danger outweighs the usability improvement, but if we move it to "Advanced"/"Experts"/"Developer" part of the UI I won't be objecting too loud.

@@ -1329,6 +1329,7 @@
"LabelVideoCodec": "Video: {0}",
"LabelVideoType": "Video Type:",
"LabelView": "View:",
"LabelWeb": "Web",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"LabelWeb": "Web",
"LabelWeb": "Web UI",

maybe?

@joshuaboniface joshuaboniface merged commit 5864c0f into jellyfin:master Mar 21, 2019
@dkanada dkanada deleted the webpath branch March 21, 2019 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants