Update hostname page to make `.local` use clearer
When setting a hostname with .local (or similar suffix), TinyPilot reports an error about the format. However, this error can be confusing if users expect to need to set .local:
Can we adjust this page to either:
- Update the error to mention not requiring a
.localsuffix - Illustrate what the new URL will look like using the hostname in the text box
Here's a super rough mockup of the second suggestion:
Some users don't access their TinyPilot devices using mDNS, so showing a specific new URL could be misleading. As an alternative approach, I suggest changing the prompt text to:
Enter a new hostname for TinyPilot (you don't need to include ".local").
Thanks @cghague! Yeah, I wasn't sure on which direction to take, but it sounds like a clearer prompt or error message is the best way to proceed. I'm leaning towards updating the error message rather than the prompt because this seems like an uncommon scenario and it avoids extra clutter.
@str028, can we update the error message here to something like:
Invalid hostname: it can only contain the letters a-z, digits and dashes (it cannot start with a dash, though). It must contain 1-63 characters and cannot be "localhost". You don't need to include ".local"
@db39 @scott-tp. Can I get push access rights to this community repo ? Thanks
(venv) reymartbetana@Reymarts-MacBook-Pro tinypilot % git push --set-upstream origin update-hostname-error-message
ERROR: Permission to tiny-pilot/tinypilot.git denied to str028.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
@str028 You should have access now.