@@ -3,22 +3,22 @@ import { useTranslation } from "react-i18next";
33import EmbeddingCodeModal from "./modals/EmbeddingCodeModal" ;
44import { getUserInformation } from "../../../selectors/userInfoSelectors" ;
55import { hasAccess } from "../../../utils/utils" ;
6- import SeriesDetailsModal from "./modals/SeriesDetailsModal" ;
76import { EventDetailsPage } from "./modals/EventDetails" ;
87import { useAppDispatch , useAppSelector } from "../../../store" ;
98import {
109 fetchSeriesDetailsAcls ,
1110 fetchSeriesDetailsMetadata ,
1211 fetchSeriesDetailsTheme ,
1312 fetchSeriesDetailsThemeNames ,
13+ openModal as openSeriesModal ,
1414} from "../../../slices/seriesDetailsSlice" ;
1515import { Event , deleteEvent } from "../../../slices/eventSlice" ;
16- import { Tooltip } from "../../shared/Tooltip" ;
1716import { openModal } from "../../../slices/eventDetailsSlice" ;
1817import { ActionCellDelete } from "../../shared/ActionCellDelete" ;
1918import { Modal , ModalHandle } from "../../shared/modals/Modal" ;
2019import ButtonLikeAnchor from "../../shared/ButtonLikeAnchor" ;
2120import { LuFileSymlink , LuFileText , LuFolderOpen , LuLink , LuMessageCircle , LuScissors , LuTriangleAlert } from "react-icons/lu" ;
21+ import { SeriesDetailsPage } from "./modals/SeriesDetails" ;
2222
2323/**
2424 * This component renders the action cells of events in the table view
@@ -31,7 +31,6 @@ const EventActionCell = ({
3131 const { t } = useTranslation ( ) ;
3232 const dispatch = useAppDispatch ( ) ;
3333
34- const seriesDetailsModalRef = useRef < ModalHandle > ( null ) ;
3534 const embeddingCodeModalRef = useRef < ModalHandle > ( null ) ;
3635
3736 const user = useAppSelector ( state => getUserInformation ( state ) ) ;
@@ -45,7 +44,7 @@ const EventActionCell = ({
4544 } ;
4645
4746 const showSeriesDetailsModal = ( ) => {
48- seriesDetailsModalRef . current ?. open ( ) ;
47+ dispatch ( openSeriesModal ( SeriesDetailsPage . Metadata , row . series ? row . series : null ) ) ;
4948 } ;
5049
5150 const onClickSeriesDetails = async ( ) => {
@@ -79,20 +78,12 @@ const EventActionCell = ({
7978
8079 return (
8180 < >
82- { ! ! row . series && (
83- < SeriesDetailsModal
84- seriesId = { row . series . id }
85- seriesTitle = { row . series . title }
86- modalRef = { seriesDetailsModalRef }
87- />
88- ) }
89-
9081 { /* Open event details */ }
9182 < ButtonLikeAnchor
9283 onClick = { onClickEventDetails }
9384 className = { "action-cell-button" }
9485 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_VIEW" }
95- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.DETAILS" }
86+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.DETAILS"} // Disabled due to performance concerns
9687 >
9788 < LuFileText />
9889 </ ButtonLikeAnchor >
@@ -103,7 +94,7 @@ const EventActionCell = ({
10394 onClick = { onClickSeriesDetails }
10495 className = { "action-cell-button more-series" }
10596 editAccessRole = { "ROLE_UI_SERIES_DETAILS_VIEW" }
106- tooltipText = { "EVENTS.SERIES.TABLE.TOOLTIP.DETAILS" }
97+ // tooltipText={"EVENTS.SERIES.TABLE.TOOLTIP.DETAILS"} // Disabled due to performance concerns
10798 >
10899 < LuFileSymlink />
109100 </ ButtonLikeAnchor >
@@ -112,7 +103,7 @@ const EventActionCell = ({
112103 { /* Delete an event */ }
113104 < ActionCellDelete
114105 editAccessRole = { "ROLE_UI_EVENTS_DELETE" }
115- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.DELETE" }
106+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.DELETE"} // Disabled due to performance concerns
116107 resourceId = { row . id }
117108 resourceName = { row . title }
118109 resourceType = { "EVENT" }
@@ -121,13 +112,13 @@ const EventActionCell = ({
121112
122113 { /* If the event has an preview then the editor can be opened and status if it needs to be cut is shown */ }
123114 { ! ! row . has_preview && hasAccess ( "ROLE_UI_EVENTS_EDITOR_VIEW" , user ) && (
124- < Tooltip
125- title = {
126- row . needs_cutting
127- ? t ( "EVENTS.EVENTS.TABLE.TOOLTIP.EDITOR_NEEDS_CUTTING" )
128- : t ( "EVENTS.EVENTS.TABLE.TOOLTIP.EDITOR" )
129- }
130- >
115+ // <Tooltip // Disabled due to performance concerns
116+ // title={
117+ // row.needs_cutting
118+ // ? t("EVENTS.EVENTS.TABLE.TOOLTIP.EDITOR_NEEDS_CUTTING")
119+ // : t("EVENTS.EVENTS.TABLE.TOOLTIP.EDITOR")
120+ // }
121+ // >
131122 < a
132123 href = { `/editor-ui/index.html?id=${ row . id } ` }
133124 className = "action-cell-button cut"
@@ -136,15 +127,15 @@ const EventActionCell = ({
136127 < LuScissors />
137128 { row . needs_cutting && < span id = "badge" className = "badge" /> }
138129 </ a >
139- </ Tooltip >
130+ // </Tooltip>
140131 ) }
141132
142133 { /* If the event has comments and no open comments then the comment tab of event details can be opened directly */ }
143134 { row . has_comments && ! row . has_open_comments && (
144135 < ButtonLikeAnchor
145136 onClick = { ( ) => onClickComments ( ) }
146- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS" }
147- className = { "action-cell-button" }
137+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS"} // Disabled due to performance concerns
138+ className = { "action-cell-button comments " }
148139 >
149140 < LuMessageCircle className = "blue" />
150141 </ ButtonLikeAnchor >
@@ -154,8 +145,8 @@ const EventActionCell = ({
154145 { row . has_comments && row . has_open_comments && (
155146 < ButtonLikeAnchor
156147 onClick = { ( ) => onClickComments ( ) }
157- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS" }
158- className = { "action-cell-button" }
148+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS"} // Disabled due to performance concerns
149+ className = { "action-cell-button comments-open " }
159150 >
160151 < LuMessageCircle className = "blue" />
161152 </ ButtonLikeAnchor >
@@ -167,7 +158,7 @@ const EventActionCell = ({
167158 < ButtonLikeAnchor
168159 onClick = { ( ) => onClickWorkflow ( ) }
169160 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_WORKFLOWS_EDIT" }
170- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.PAUSED_WORKFLOW" }
161+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.PAUSED_WORKFLOW"} // Disabled due to performance concerns
171162 className = { "action-cell-button" }
172163 >
173164 < LuTriangleAlert className = "darkgrey" />
@@ -178,7 +169,7 @@ const EventActionCell = ({
178169 < ButtonLikeAnchor
179170 onClick = { ( ) => onClickAssets ( ) }
180171 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_ASSETS_VIEW" }
181- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.ASSETS" }
172+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.ASSETS"} // Disabled due to performance concerns
182173 className = { "action-cell-button" }
183174 >
184175 < LuFolderOpen className = "darkgrey" />
@@ -188,7 +179,7 @@ const EventActionCell = ({
188179 < ButtonLikeAnchor
189180 onClick = { ( ) => showEmbeddingCodeModal ( ) }
190181 editAccessRole = { "ROLE_UI_EVENTS_EMBEDDING_CODE_VIEW" }
191- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.EMBEDDING_CODE" }
182+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.EMBEDDING_CODE"} // Disabled due to performance concerns
192183 className = { "action-cell-button" }
193184 >
194185 < LuLink className = "darkgrey" />
0 commit comments