✨(domains) enhance required action modal content
Enhance DNS required actions and explanations
This commit is contained in:
@@ -10,6 +10,7 @@ and this project adheres to
|
||||
|
||||
### Added
|
||||
|
||||
- ✨(domains) enhance required action modal content
|
||||
- ✨(domains) add periodic tasks to fetch domain status
|
||||
- 🧑💻(docker) add celery beat to manage periodic tasks
|
||||
- ✨(organization) add metadata field #790
|
||||
|
||||
@@ -89,7 +89,7 @@ describe('<MailDomainView />', () => {
|
||||
|
||||
// Verify DNS configuration section
|
||||
expect(
|
||||
screen.getByText(/DNS Configuration Required:/i),
|
||||
screen.getByText(/Diagnostic status performed by the server/i),
|
||||
).toBeInTheDocument();
|
||||
expect(screen.getByText(/imap.ox.numerique.gouv.fr./i)).toBeInTheDocument();
|
||||
expect(
|
||||
|
||||
@@ -84,12 +84,12 @@ export const MailDomainView = ({ mailDomain, onMailDomainUpdate }: Props) => {
|
||||
onClose={() => setShowModal(false)}
|
||||
title={t('Required actions on domain')}
|
||||
>
|
||||
<p>
|
||||
<pre>
|
||||
{t(
|
||||
'The domain is currently in action required status. Please take the necessary actions to resolve those following issues.',
|
||||
)}
|
||||
</p>
|
||||
<h3>{t('Actions required detail')}</h3>
|
||||
</pre>
|
||||
<h3>{t('Diagnostic status performed by the server')}</h3>
|
||||
|
||||
<pre>
|
||||
{mailDomain.action_required_details &&
|
||||
@@ -105,7 +105,6 @@ export const MailDomainView = ({ mailDomain, onMailDomainUpdate }: Props) => {
|
||||
</pre>
|
||||
{mailDomain.expected_config && (
|
||||
<Box $margin={{ bottom: 'medium' }}>
|
||||
<h3>{t('DNS Configuration Required:')}</h3>
|
||||
<pre>
|
||||
<div
|
||||
style={{
|
||||
@@ -113,7 +112,9 @@ export const MailDomainView = ({ mailDomain, onMailDomainUpdate }: Props) => {
|
||||
overflowWrap: 'break-word',
|
||||
}}
|
||||
>
|
||||
{t('Add the following DNS values:')}
|
||||
{t(
|
||||
'You can resolve the above issues by applying the following configurations on your domain:',
|
||||
)}
|
||||
<ul>
|
||||
{mailDomain.expected_config.map((item, index) => (
|
||||
<li
|
||||
@@ -122,10 +123,12 @@ export const MailDomainView = ({ mailDomain, onMailDomainUpdate }: Props) => {
|
||||
>
|
||||
{item.target && (
|
||||
<>
|
||||
<b>{item.target.toUpperCase()}</b> -{' '}
|
||||
<b>{item.target}</b>{' '}
|
||||
</>
|
||||
)}
|
||||
<b>{item.type.toUpperCase()}</b> {t('with value:')}{' '}
|
||||
<b style={{ color: 'purple' }}>
|
||||
IN {item.type.toUpperCase()}
|
||||
</b>{' '}
|
||||
<span style={{ backgroundColor: '#d4e5f5' }}>
|
||||
{item.value}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user