Skip to content

Commit c5b3ba6

Browse files
authored
ECHO-438 remove the tooltip that says 'audio recording will be deleted' (#273)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Removed the informational tooltip in the audio player section that stated recordings are deleted after 30 days. The audio player toggle, layout, and behavior remain unchanged. Expired recordings still cannot be played according to existing rules; only the explanatory tooltip has been removed. This streamlines the interface without altering how audio availability works. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 9691b68 commit c5b3ba6

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

echo/frontend/src/routes/project/conversation/ProjectConversationTranscript.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ export const ProjectConversationTranscript = () => {
146146
};
147147

148148
// Add function to check if conversation is older than 30 days
149-
const isAudioExpired = () => {
150-
if (!conversationQuery.data?.created_at) return false;
151-
const thirtyDaysAgo = new Date();
152-
thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
153-
return new Date(conversationQuery.data.created_at) < thirtyDaysAgo;
154-
};
149+
// const isAudioExpired = () => {
150+
// if (!conversationQuery.data?.created_at) return false;
151+
// const thirtyDaysAgo = new Date();
152+
// thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
153+
// return new Date(conversationQuery.data.created_at) < thirtyDaysAgo;
154+
// };
155155

156156
return (
157157
<Stack>
@@ -200,7 +200,6 @@ export const ProjectConversationTranscript = () => {
200200
size="md"
201201
variant="subtle"
202202
color="gray"
203-
disabled={isAudioExpired()}
204203
>
205204
<IconRefresh size={48} />
206205
</ActionIcon>
@@ -214,10 +213,6 @@ export const ProjectConversationTranscript = () => {
214213
setShowAudioPlayer(event.currentTarget.checked)
215214
}
216215
label={t`Show audio player`}
217-
disabled={isAudioExpired()}
218-
/>
219-
<InformationTooltip
220-
label={t`Audio recordings are scheduled to be deleted after 30 days from the recording date`}
221216
/>
222217
</Group>
223218
</Group>

0 commit comments

Comments
 (0)