Skip to content

Create a new process: no feedback when invalid name is entered #6166

Description

@MMilosz

Describe the bug

Currently, entering a non-existent script name at /processses/new and pressing "Save" does not provide any visual feedback (no error message, no notification)

Interestingly, when a user selects any script and then deletes the text from the input field, only then the validation error "Script is required" appears (see screenshot):

Image

To Reproduce

Reproduced on sandbox.dspace.org and demo.dspace.org using Google Chrome v151.0.

  1. Log in as admin
  2. Navigate to /processes/new
  3. Enter a process name that does not exist
  4. Click the 'Save' button
  5. Observe that nothing happens (no error, no notification)

The validation error "Script is required" appears only under a certain condition:

  1. Select any script
  2. Delete its name from the input
  3. Observe the "Script is required" error info suddenly appears

Expected behavior

User should receive a clear feedback on what action is required to proceed.

A minimal fix would be to show the "Script is required" error when pressing "Save" with empty/invalid input. Additionally, the "Save" button could be disabled until the form is valid

Related work

Nothing relevant found

Metadata

Metadata

Assignees

Labels

Difficulty: LowEstimated at less than 8 hoursbugclaimed: eScireeScire team is working on this issue & will contribute backtools:processesRelated to Scripts & Processes (new to DSpace 7)uxUser Experience related works

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions