galaxy icon indicating copy to clipboard operation
galaxy copied to clipboard

Unhelpful/Confusing error handling when creating pages

Open davelopez opened this issue 2 years ago • 3 comments

Describe the bug If you omit the identifier when creating a page you get a rather "technical" and cryptic error. Also, it looks like the annotation is a required value (but it isn't) while the identifier, which is required, doesn't look like that.

Detected during 24.0 release testing.

Galaxy Version and/or server at which you observed the bug Galaxy Version: At least 23.1 Commit: (run git rev-parse HEAD if you run this Galaxy server)

To Reproduce Steps to reproduce the behavior:

  1. Go to https://usegalaxy.org/pages/create
  2. Enter a name (or not) but keep the ´identifier´ field empty
  3. Click Save
  4. See error

Expected behavior Instead of the raw error response, the Indetifier field should be decorated with a more user-friendly error. Also, the annotation seems to catch more attention than the Identifier while it is optional.

Screenshots Screenshot from 2024-03-13 11-03-25

davelopez avatar Mar 13 '24 10:03 davelopez

the identifier could be generated (or auto suggested) from the title with the history slugging algorithm

hexylena avatar Mar 13 '24 10:03 hexylena

I guess the slugging algorithm lives in the backend, I can't remember right now, but it would be helpful to have it directly in the front end so you can generate it as you type the name, and stop auto-generating if you manually edit it.

davelopez avatar Mar 13 '24 10:03 davelopez

yeah I mean lowercasing + s/ /-/g; is probably sufficient, doesn't need to copy it exactly.

hexylena avatar Mar 13 '24 11:03 hexylena