BB-3864: Add DomainSettings page
Created by: arjunsinghy96
Adds Domain settings page
JIRA Tickets: BB-3864 Gitlab#717
Testing Instructions
- Checkout to this PR.
- Start OCIM backend and make sure a BetaTestApplication is setup for testing.
- From admin panel set
external_domain
toempty string
anddns_configuration_state
tono_required
- Visit http://localhost:3000/console/settings/domain in your browser.
- Verify that the [Add External Domain] button is visible.
- Verify that clicking the button shows add domain modal.
- Enter invalid domains in text field and submit.
- Verify that errors are reported with text field.
- Enter a valid domain and submit.
- Verifiy that the domain is visible and modal closes.
- Click [Check DNS Configuration] button and verify that the DNS config helper modal is visible.
- From admin panel set
dns_configuration_state
toverified
(External DNS configured
from dropdown) - Verify that the [Check DNS Configuration] button is not visisble.
Author Notes
- Delete Domain button does not work currently because we do not have support for it in the OCIM Backend. Sending null or empty string value results in a 400 response.
- Adding domain was made a 1 step action instead of 2 (First verify and them Add) because we do not have a separate verification endpoint.
- User consent checkboxes were skipped in this implementation as we do not have dedicated fields to store them in OCIM backend.
Screenshots Domain Settings Page