Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,7 @@
}
} catch (e) {
$rootScope.$broadcast("StatusUpdated", {
msg: $translate.instant("batchEditConfigIsNotJson"),
error: e,
msg: $translate.instant("batchEditConfigIsNotValid"),
timeout: 2,
type: "danger"
});
Expand Down
3 changes: 1 addition & 2 deletions web-ui/src/main/resources/catalog/locales/en-v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,7 @@
"uuidMergePolicy": "UUID merge policy",
"filteringAndProcessing": "Filtering and processing response",
"recordCreationOptions": "Record creation options",
"batchEditConfigIsNotValid": "Batch edit configuration is invalid. It must be a JSON <pre>{\"insertMode\": \"gn_add\", \"xpath\": \"...\", \"value\": \"...\"}</pre>",
"batchEditConfigIsNotJson": "Batch edit configuration is not JSON.",
"batchEditConfigIsNotValid": "Batch edit configuration is invalid. Copy the configuration from another batch edit rule.",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@josegar74 Since this is about copying (not pasting) and the error happens when the configuration has bad input, I think it's best if the message says:

"Failed to copy invalid batch edit configuration. Please review and try again."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@GeoSander, it's about pasting.

The problem with this function is that it’s rather confusing. First, you have to copy another rule and paste it into the existing one. The problem arises when you paste it.

It could be implemented with just a Duplicate button, that doesn't require any clipboard interaction.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes @josegar74, I understood that shortly after my comment. Never used this feature but now that I saw it in action, I agree that the functionality is quite confusing.

The buttons could be clarified (more clear copy/paste icons), but what I think is cleaner is the following:

  • When you select an example in the dropdown, nothing happens yet.
  • Next to the Examples dropdown, there should be an "apply" button (or something with a clear icon for that purpose). This behaves in much the same way as the + button right now.
  • When you click that button, it fills in the expression in the existing form and not in a new form underneath the other one.
  • This would remove the need for copy/paste buttons and I think the UX/UI will be much more clear.

Does that make sense?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@GeoSander

  • When you select an example in the dropdown, nothing happens yet.

When I select an example the form below is replaced with the example.

  • Next to the Examples dropdown, there should be an "apply" button (or something with a clear icon for that purpose). This behaves in much the same way as the + button right now.

The user most probably needs do changes in the fields like Condition or Text or XML value, or even the XPATH expression, before clicking the + button.

I'm not sure if the behaviour described by you would be the most appropiate.

  • When you click that button, it fills in the expression in the existing form and not in a new form underneath the other one.

I'm not following this.

  • This would remove the need for copy/paste buttons and I think the UX/UI will be much more clear.

I'm not following this either, as the copy & paste has nothing to do with the examples.

"testLink": "Test",
"metadata/link": "Link analysis",
"metadata/link/excludedUrlPattern": "Exclude URL from link analysis",
Expand Down
Loading