Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Comments in demo meeting #10623

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/client/modules/demo/commentLookup.ts
Original file line number Diff line number Diff line change
@@ -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('<p>We could make our standups async?</p>', serverTipTapExtensions))
]
} as const

Expand Down
3 changes: 1 addition & 2 deletions packages/client/modules/demo/initDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
Loading