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

feat: Add list nodes for timestamped comments #16530

Closed
wants to merge 5 commits into from

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Jul 12, 2023

Problem

Towards #15680

We don't currently support any type of comments in recordings

Changes

  • Allow the session recording node to render content
  • Make list & item types for a new "timestamp" node type

How did you test this code?

Doesn't actually add any new functionality. Simply adds new node types. Will implement comments using these nodes in a future PR

@daibhin
Copy link
Contributor Author

daibhin commented Jul 13, 2023

This issue was super informative: ueberdosis/tiptap#1403
Along with this sandbox: https://codesandbox.io/s/nested-blocks-forked-plnrwd?file=/src/components/Tiptap.vue

const isEmpty = !hasContent(props.node)

if (!isEmpty && !playbackTime) {
setTimeout(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was seeing the same error @pauldambra faced in #16415 (comment). Adding a very short timeout worked but I feel like there has to be a better way here

@@ -60,3 +63,35 @@ export function externalLinkPasteRule(options: {
},
})
}

export function nodePasteRule(config: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to reimplement the nodePasteRule because it didn't allow for content to be inserted when creating a node. Opened a PR to fix that in a future version: ueberdosis/tiptap#4212

@daibhin daibhin requested a review from benjackwhite July 14, 2023 09:05
@daibhin
Copy link
Contributor Author

daibhin commented Jul 18, 2023

Closing in favour of #16613

@daibhin daibhin closed this Jul 18, 2023
@daibhin daibhin deleted the dn-feat/recording-notes branch July 18, 2023 14:06
@daibhin daibhin mentioned this pull request Jul 18, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant