From f0883c19729b2c18d0c615ff9ae0a799f7e1683f Mon Sep 17 00:00:00 2001 From: Matt Krick Date: Wed, 18 Dec 2024 18:03:08 -0800 Subject: [PATCH] fix: Comments in demo meeting (#10623) --- packages/client/modules/demo/commentLookup.ts | 5 ++++- packages/client/modules/demo/initDB.ts | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/client/modules/demo/commentLookup.ts b/packages/client/modules/demo/commentLookup.ts index 38ef18b7216..753b0c7f363 100644 --- a/packages/client/modules/demo/commentLookup.ts +++ b/packages/client/modules/demo/commentLookup.ts @@ -1,6 +1,9 @@ +import {generateJSON} from '@tiptap/core' +import {serverTipTapExtensions} from '../../shared/tiptap/serverTipTapExtensions' + const commentLookup = { botRef6: [ - `{"blocks":[{"key":"2c991","text":"We could make our standups async?","type":"unstyled","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}}],"entityMap":{}}` + JSON.stringify(generateJSON('

We could make our standups async?

', serverTipTapExtensions)) ] } as const diff --git a/packages/client/modules/demo/initDB.ts b/packages/client/modules/demo/initDB.ts index 6bffa8f4a3e..ea3f3f31888 100644 --- a/packages/client/modules/demo/initDB.ts +++ b/packages/client/modules/demo/initDB.ts @@ -3,7 +3,6 @@ import {PALETTE} from '~/styles/paletteV3' import {Task as ITask} from '../../../server/postgres/types/index.d' import {RetrospectiveMeeting} from '../../../server/postgres/types/Meeting' import JiraProjectId from '../../shared/gqlIds/JiraProjectId' -import {convertTipTapTaskContent} from '../../shared/tiptap/convertTipTapTaskContent' import demoUserAvatar from '../../styles/theme/images/avatar-user.svg' import {ExternalLinks, MeetingSettingsThreshold, RetroDemo} from '../../types/constEnums' import {DISCUSS, GROUP, REFLECT, RETROSPECTIVE, VOTE} from '../../utils/constants' @@ -438,7 +437,7 @@ export class DemoComment { }, db: RetroDemoDB ) { - this.content = convertTipTapTaskContent(content) + this.content = content this.createdAt = new Date().toJSON() this.updatedAt = new Date().toJSON() this.createdBy = isAnonymous ? null : userId