Commit 344aa9c
authored
chore(components): upgrade LeafyGreen modal components COMPASS-9642 (#7594)
* Upgrade LG modal packages
* Fix Modal to adopt LG Modal v20
* Fix connection-form to work around LG Modal v20
* Update generative-ai to adopt marketing-modal v7
* Fix compass-import-export to work around LG modal v20
* Update compass-welcome to adopt marketing-modal v7
* Update compass-explain-plan to LG Modal v20
* Fix compass-crud to adopt LG modal v20
* Update compass-schema to LG Modal v20
* Add workaround for jsdom missing HTMLDialogElement support
* Update generative-ai to adopt LG modal v20
* Fix fullScreen prop on derived Modal
* Remove use of deprecated backdropClassName
* Remove workaround for MarketingModal button disabling
* Fix remaining components tests
* Revert workaround for LG-5593
* Update existing tests to handle dialog elements remaining in the DOM
* Update databases-collections to allow immediate removal of the heading
* Update e2e tests to use waitForDisplayed over waitForExist as this is more important with the new dialog
* Update e2e tests removing [role=dialog] from confirm dialog selectors
* Update e2e tests to wait for bulk delete modal to disappear
* Update e2e tests to wait for connection form to be non-clickable in any case
* Update e2e tests to fix modal regressions
* Disable pointer events on a closed modal
* Disable auto-focus on confirmation modal children by default
* Add new modal specific commands
* Update E2E tests to use new modal commands instead of waitForDisplayed
* Default initialFocus to "null" to avoid breaking existing modals
* Wait for confirm button to show instead of simply expecting it
* Update FocusMode tests to handle LG Modal v20
* Update SettingsModal tests to handle LG Modal v20
* Clarify disabling the @typescript-eslint/no-namespace and add a TODO to move the code later
* Partial revert of ddd6d70
* Fix auto-focus in bulk update and delete modals
* Correcting sizing styles
* Correcting sizing styles more
* Use named imports
* Upgrade confirm-modal package
* Fix useConfirmation's confirmButtonProps types
* Update use of ConfirmationModal
* Set initial focus on cancel (fallback to confirm) button
* Fix package lock1 parent 8752bca commit 344aa9c
File tree
79 files changed
+1083
-946
lines changed- configs
- mocha-config-compass/register
- testing-library-compass/src
- packages
- compass-aggregations/src/components/focus-mode
- compass-assistant/src
- compass-collection/src/components/mock-data-generator-modal
- compass-components
- src
- components
- modals
- hooks
- compass-crud/src/components
- compass-e2e-tests
- helpers
- commands
- tests
- compass-explain-plan/src/components
- compass-generative-ai/src/components
- compass-import-export/src/components
- compass-schema/src/components
- compass-settings/src/components
- compass-welcome/src/components
- connection-form/src/components
- databases-collections/src/stores
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
79 files changed
+1083
-946
lines changedLines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
38 | 57 | | |
39 | 58 | | |
40 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
0 commit comments