feat: include usage locations in delete modal #938
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR enhances the details in the files and videos delete confirmation. The new details clarify that deleting content can impact the rendering of the course if used in advanced settings, units, etc. Additional added a list of collapsible sections for the files/videos that are used in units so that users are aware that the files/videos that they are trying to delete might mess up content. This change impacts Authors.
Before
![Screenshot 2024-04-05 at 4 06 46 PM](https://private-user-images.githubusercontent.com/42981026/320126113-6ba9d928-dfe3-4111-98e8-0db2c3fa3c6c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg3NzMyNDIsIm5iZiI6MTczODc3Mjk0MiwicGF0aCI6Ii80Mjk4MTAyNi8zMjAxMjYxMTMtNmJhOWQ5MjgtZGZlMy00MTExLTk4ZTgtMGRiMmMzZmEzYzZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA1VDE2MjkwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRhMTFkZWFmOTEwNjZkZTU4YTBiMWQ1NDRkOGZmN2RmYjRiMTEyMTliZjU3MTZjZjVkZmZlY2ZlMGY1MWZhNjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oE6U8eFAqWebNc7CZXyCCJqiNc2bI6CJhP42ea79fD0)
After
![Screenshot 2024-04-05 at 4 04 27 PM](https://private-user-images.githubusercontent.com/42981026/320125578-ee7f20f2-9351-4e7d-8bc3-5b5349ad19c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg3NzMyNDIsIm5iZiI6MTczODc3Mjk0MiwicGF0aCI6Ii80Mjk4MTAyNi8zMjAxMjU1NzgtZWU3ZjIwZjItOTM1MS00ZTdkLThiYzMtNWI1MzQ5YWQxOWM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA1VDE2MjkwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE4NGRlNjliMWQ3MzIzZGE4ZGU1Yjc1YWQxYjkzZjVjOWU5NDAwYWI4Mzc3OWRiYWNmMjdiNTY1MGQ4NjhiYTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.gPZS22R-F8HxjQMx3C42YVaAhwP11g5xVXMzK2fzj9s)
Supporting information
JIRA Ticket: TNL-10957
Testing instructions