Temp commit to merge main into this branch

This commit is contained in:
Koper
2023-12-04 20:54:54 +07:00
parent ba40d28152
commit 999a3e05a4
8 changed files with 310 additions and 118 deletions

View File

@@ -49,6 +49,49 @@ export default function TranscriptDetails(details: TranscriptDetails) {
.replace(/ +/g, " ")
.trim() || "";
if (
(transcript?.response?.longSummary === null || true) &&
transcript &&
transcript.response
) {
transcript.response.longSummary = `
**Meeting Summary:**
**Date:** November 21, 2023
**Attendees:** Alice Johnson, Bob Smith, Carlos Gomez, Dana Lee
**Agenda Items:**
1. **Project Alpha Update:**
- Discussed current progress and minor setbacks.
- Agreed on extending the deadline by two weeks.
- Assigned new tasks to team members.
2. **Budget Review for Quarter 4:**
- Reviewed financial performance.
- Identified areas of overspending and discussed cost-cutting measures.
- Decided to allocate additional funds to marketing.
3. **New Product Launch Strategy:**
- Brainstormed ideas for the upcoming product launch.
- Agreed on a digital-first marketing approach.
- Set a tentative launch date for January 15, 2024.
**Key Decisions:**
- Extend Project Alpha's deadline to allow for quality enhancement.
- Implement cost-saving strategies in non-essential departments.
- Proceed with the digital marketing plan for the new product launch.
**Action Items:**
- Alice to coordinate with the marketing team for the new campaign.
- Bob to oversee the budget adjustments and report back in one week.
- Carlos to lead the task force for Project Alpha's final phase.
- Dana to prepare a detailed report on competitor analysis for the next meeting.
**Next Meeting:**
Scheduled for December 5, 2023, to review progress and finalize the new product launch details.
`;
}
return (
<>
{!transcriptId || transcript?.loading || topics?.loading ? (
@@ -56,10 +99,13 @@ export default function TranscriptDetails(details: TranscriptDetails) {
) : (
<>
<ShareModal
transcript={transcript.response}
topics={topics ? topics.topics : null}
show={showModal}
setShow={(v) => setShowModal(v)}
title={transcript?.response?.title}
summary={transcript?.response?.longSummary}
date={transcript?.response?.createdAt}
url={window.location.href}
/>
<div className="flex flex-col">
@@ -90,19 +136,13 @@ export default function TranscriptDetails(details: TranscriptDetails) {
/>
<div className="w-full h-full grid grid-rows-layout-one grid-cols-1 gap-2 lg:gap-4">
<section className=" bg-blue-400/20 rounded-lg md:rounded-xl p-2 md:px-4 h-full">
<button
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
onClick={() => setShowModal(true)}
>
Open Modal
</button>
{transcript?.response?.longSummary && (
<FinalSummary
protectedPath={protectedPath}
fullTranscript={fullTranscript}
summary={transcript?.response?.longSummary}
transcriptId={transcript?.response?.id}
openZulipModal={() => setShowModal(true)}
/>
)}
</section>