From 0bbbfd287fe228cb9899b411b495a123fc368849 Mon Sep 17 00:00:00 2001 From: Luis Felipe Castano Date: Fri, 30 May 2025 11:35:32 -0500 Subject: [PATCH] fix: deprecate Truncate component --- .../card-header/TitleButton.jsx | 2 +- src/course-outline/card-header/TitleLink.jsx | 2 +- src/course-outline/page-alerts/PageAlerts.jsx | 4 ++-- .../__snapshots__/index.test.jsx.snap | 4 ++-- .../components/TitleHeader/index.jsx | 4 ++-- .../SelectionModal/GalleryCard.jsx | 2 +- .../__snapshots__/GalleryCard.test.jsx.snap | 24 +++++++++---------- .../files-page/FileInfoModalSidebar.jsx | 8 +++---- .../generic/DeleteConfirmationModal.jsx | 4 ++-- src/files-and-videos/generic/InfoModal.jsx | 4 ++-- .../generic/table-components/GalleryCard.jsx | 4 ++-- .../upload-modal/UploadProgressList.jsx | 4 ++-- .../common/TitleButton.jsx | 2 +- .../ExperimentCardGroup.jsx | 2 +- 14 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/course-outline/card-header/TitleButton.jsx b/src/course-outline/card-header/TitleButton.jsx index 82d4d83e99..3413b74642 100644 --- a/src/course-outline/card-header/TitleButton.jsx +++ b/src/course-outline/card-header/TitleButton.jsx @@ -39,7 +39,7 @@ const TitleButton = ({ className="item-card-header__title-btn" onClick={onTitleClick} > - {title} + {title} ); diff --git a/src/course-outline/card-header/TitleLink.jsx b/src/course-outline/card-header/TitleLink.jsx index 32e68851f2..914f1d50ee 100644 --- a/src/course-outline/card-header/TitleLink.jsx +++ b/src/course-outline/card-header/TitleLink.jsx @@ -14,7 +14,7 @@ const TitleLink = ({ className="item-card-header__title-btn" to={titleLink} > - {title} + {title} ); diff --git a/src/course-outline/page-alerts/PageAlerts.jsx b/src/course-outline/page-alerts/PageAlerts.jsx index 4b12996395..de27bea8c3 100644 --- a/src/course-outline/page-alerts/PageAlerts.jsx +++ b/src/course-outline/page-alerts/PageAlerts.jsx @@ -378,7 +378,7 @@ const PageAlerts = ({ dismissError={() => dispatch(dismissError(msgObj.key))} > {msgObj.title} - {msgObj.desc && {msgObj.desc}} + {msgObj.desc && {msgObj.desc}} ) : ( {msgObj.title} - {msgObj.desc && {msgObj.desc}} + {msgObj.desc && {msgObj.desc}} ) )) diff --git a/src/editors/containers/EditorContainer/components/TitleHeader/__snapshots__/index.test.jsx.snap b/src/editors/containers/EditorContainer/components/TitleHeader/__snapshots__/index.test.jsx.snap index bcc8a044ed..2f7da401e2 100644 --- a/src/editors/containers/EditorContainer/components/TitleHeader/__snapshots__/index.test.jsx.snap +++ b/src/editors/containers/EditorContainer/components/TitleHeader/__snapshots__/index.test.jsx.snap @@ -14,11 +14,11 @@ exports[`TitleHeader snapshots initialized 1`] = `
- + { "useSelector": [Function], } - + - + {title} - +

- {asset.displayName} + {asset.displayName}

{ asset.transcripts && (
diff --git a/src/editors/sharedComponents/SelectionModal/__snapshots__/GalleryCard.test.jsx.snap b/src/editors/sharedComponents/SelectionModal/__snapshots__/GalleryCard.test.jsx.snap index f14a235f3e..96d7b7b40e 100644 --- a/src/editors/sharedComponents/SelectionModal/__snapshots__/GalleryCard.test.jsx.snap +++ b/src/editors/sharedComponents/SelectionModal/__snapshots__/GalleryCard.test.jsx.snap @@ -59,9 +59,9 @@ exports[`GalleryCard component snapshot with duration badge 1`] = `

- + props.img.displayName - +

- + props.img.displayName - +

- + props.img.displayName - +

- + props.img.displayName - +

- + props.img.displayName - +

- + props.img.displayName - +

- + {asset?.portableUrl} - +
- + {asset?.externalUrl} - +
- + {original.displayName} - + )} data-testid={`collapsible-${original.id}`} diff --git a/src/files-and-videos/generic/InfoModal.jsx b/src/files-and-videos/generic/InfoModal.jsx index 14276a4c2f..39d4d79618 100644 --- a/src/files-and-videos/generic/InfoModal.jsx +++ b/src/files-and-videos/generic/InfoModal.jsx @@ -48,9 +48,9 @@ const InfoModal = ({
- + {file?.displayName} - +
diff --git a/src/files-and-videos/generic/table-components/GalleryCard.jsx b/src/files-and-videos/generic/table-components/GalleryCard.jsx index fa21a182cf..c51820a96e 100644 --- a/src/files-and-videos/generic/table-components/GalleryCard.jsx +++ b/src/files-and-videos/generic/table-components/GalleryCard.jsx @@ -67,9 +67,9 @@ const GalleryCard = ({ />
- + {original.displayName} - +
diff --git a/src/files-and-videos/videos-page/upload-modal/UploadProgressList.jsx b/src/files-and-videos/videos-page/upload-modal/UploadProgressList.jsx index fdecdb35b1..450de9d9e2 100644 --- a/src/files-and-videos/videos-page/upload-modal/UploadProgressList.jsx +++ b/src/files-and-videos/videos-page/upload-modal/UploadProgressList.jsx @@ -25,9 +25,9 @@ const UploadProgressList = ({ videosList }) => ( {bulletNumber}
- + {video.name} - +
diff --git a/src/group-configurations/common/TitleButton.jsx b/src/group-configurations/common/TitleButton.jsx index 87d5d50016..d6edfb0a06 100644 --- a/src/group-configurations/common/TitleButton.jsx +++ b/src/group-configurations/common/TitleButton.jsx @@ -27,7 +27,7 @@ const TitleButton = ({ >

- {name} + {name}

{formatMessage(messages.titleId, { id })} diff --git a/src/group-configurations/experiment-configurations-section/ExperimentCardGroup.jsx b/src/group-configurations/experiment-configurations-section/ExperimentCardGroup.jsx index 36cfc1a8e8..ed1a6161e3 100644 --- a/src/group-configurations/experiment-configurations-section/ExperimentCardGroup.jsx +++ b/src/group-configurations/experiment-configurations-section/ExperimentCardGroup.jsx @@ -14,7 +14,7 @@ const ExperimentCardGroup = ({ groups }) => { data-testid="configuration-card-content-experiment-stack" key={item.id} > - {item.name} + {item.name} {percentage}
))}