Skip to content

Mark integration title as required in the create integration dialog - #660

Open
jay23606 wants to merge 1 commit into
MORE-Platform:mainfrom
jay23606:pr-go/291-creating-an-integration-title-field-shou
Open

jay23606 wants to merge 1 commit into
MORE-Platform:mainfrom
jay23606:pr-go/291-creating-an-integration-title-field-shou

Conversation

@jay23606

Copy link
Copy Markdown

Problem

In the create/edit integration dialog, the "Integration title" field is required: the input has the required attribute and the dialog shows an error when it is left blank. However, the label gives no visual indication that the field is required, so users only learn this after submitting.

Change

src/components/dialog/IntegrationDialog.vue: append * to the integration title label, the same marker the observation title label uses in ObservationDialog.vue.

Testing

Added tests/component/IntegrationDialog.spec.ts, which mounts the dialog and asserts the title label ends with *.

  • npx vitest --environment jsdom run tests/component/IntegrationDialog.spec.ts: 1 passed
  • npx eslint --max-warnings=0 src/components/dialog/IntegrationDialog.vue tests/component/IntegrationDialog.spec.ts: no lint errors

Regression test: added; see Testing above.

Fixes #291

@jay23606

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

creating an integration - title field should be required

1 participant