tinypilot icon indicating copy to clipboard operation
tinypilot copied to clipboard

Update hostname page to make `.local` use clearer

Open db39 opened this issue 1 year ago • 5 comments

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:

Image

Can we adjust this page to either:

  • Update the error to mention not requiring a .local suffix
  • 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:

Image

db39 avatar Apr 28 '25 11:04 db39

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").

cghague avatar Apr 29 '25 17:04 cghague

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.

db39 avatar Apr 30 '25 12:04 db39

@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 avatar May 13 '25 12:05 db39

@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 avatar May 21 '25 15:05 str028

@str028 You should have access now.

scott-tp avatar May 21 '25 16:05 scott-tp