[App Search] Added the log retention confirmation modal to the Settings page#83009
[App Search] Added the log retention confirmation modal to the Settings page#83009JasonStoltz merged 8 commits intoelastic:masterfrom
Conversation
680b28e to
036cfb1
Compare
036cfb1 to
1f3cd7d
Compare
...tions/app_search/components/settings/log_retention/log_retention_confirmation_modal.test.tsx
Outdated
Show resolved
Hide resolved
cee-chen
left a comment
There was a problem hiding this comment.
Awesome stuff! QA and mobile/cross-browser testing looks great. Some minor test and i18n/a11y comments but overall looks great.
...lic/applications/app_search/components/settings/log_retention/generic_confirmation_modal.tsx
Show resolved
Hide resolved
| )} | ||
| {openedModal === ELogRetentionOptions.API && ( |
There was a problem hiding this comment.
Just me thinking out loud: I wonder what the impetus was for creating multiple modals instead of a single modal where the content gets changed depending on the option selected - I personally would probably have opted for the latter 🤔
There was a problem hiding this comment.
Yeah that may have been cleaner.
...plications/app_search/components/settings/log_retention/log_retention_confirmation_modal.tsx
Outdated
Show resolved
Hide resolved
| // Remove the jest mock on createPortal | ||
| // @ts-ignore | ||
| ReactDOM.createPortal.mockClear(); |
There was a problem hiding this comment.
why is this ts-ignore and comment here? Do we need it, or can we do
| // Remove the jest mock on createPortal | |
| // @ts-ignore | |
| ReactDOM.createPortal.mockClear(); | |
| (ReactDOM.createPortal as jest.Mock).mockClear(); |
or just jest.clearAllMocks 🤷
edit: which we're already doing in beforeEach - can we lose this block entirely?
There was a problem hiding this comment.
Deleted per previous comment.
...pplications/app_search/components/settings/log_retention/generic_confirmation_modal.test.tsx
Show resolved
Hide resolved
| {i18n.translate('xpack.enterpriseSearch.appSearch.settings.logRetention.modal.cancel', { | ||
| defaultMessage: 'Cancel', |
There was a problem hiding this comment.
[not a change request, just me thinking out loud]
I wonder if we should have a library of common UI strings like 'Cancel', 'Save', 'Edit', 'Delete' etc., to lower the number of i18n strings we have and the number of translations the team has to do
Happy to do this is a tech debt refactor in a separate PR later if you think it's a good idea 🤷
There was a problem hiding this comment.
Yeah that's a good point!
...tions/app_search/components/settings/log_retention/log_retention_confirmation_modal.test.tsx
Outdated
Show resolved
Hide resolved
...lic/applications/app_search/components/settings/log_retention/generic_confirmation_modal.tsx
Outdated
Show resolved
Hide resolved
| > | ||
| <EuiFieldText | ||
| data-test-subj="GenericConfirmationModalInput" | ||
| name="engineName" |
There was a problem hiding this comment.
this name doesn't seem right? do we even need a name prop
| name="engineName" |
...lic/applications/app_search/components/settings/log_retention/generic_confirmation_modal.tsx
Outdated
Show resolved
Hide resolved
|
@constancecchen Ready for a second look |
cee-chen
left a comment
There was a problem hiding this comment.
This looks great - thank you so much for the changes! Really excited by how much we're improving our codebase for international users and users with disabilities.
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
…ts-public * upstream/master: (57 commits) Remove unused asciidoc file (elastic#83228) [Lens] Remove background from lens embeddable (elastic#83061) [Discover] Unskip flaky tests based on discover fixture index pattern (elastic#82991) Removing unnecessary trailing slash in CODEOWNERS Trying to fix CODEOWNERS again, where was a non-existent team prior (elastic#83236) Trying to fix CODEOWERS, missing a starting slash (elastic#83233) skip flaky suite (elastic#83231) Add enzyme rerender test helper (elastic#83208) Move Elasticsearch type definitions out of APM (elastic#83081) [ts/checkTsProjects] produce a more useful error message (elastic#83209) [kbnClient] retry updating config if necessary (elastic#83205) I accidentally removed this line in a recent PR (elastic#83201) Don't make the caller do work the function can do (elastic#83180) [App Search] Update EngineRouter & EngineNav to use EngineLogic (elastic#83138) [Workplace Search] Add routes for Sources (elastic#83125) Update logstash pipeline management to use system index APIs (elastic#80405) [ML] Replace EuiBasicTable with EuiInMemoryTable (elastic#83057) [Metrics UI] Add basic interaction and shell for node details overlay (elastic#82013) [App Search] Added the log retention confirmation modal to the Settings page (elastic#83009) [docs] Fix create map title in import geospatial page (elastic#83172) ...
Summary
This PR adds the confirmation modal for log retention settings to the App Search Settings page.
Checklist
Delete any items that are not applicable to this PR.
For maintainers