Complete the code to create a comment in Figma for design feedback.
figma.currentPage.[1]('Please review this section.')
Use addComment to add feedback comments directly on the design.
Complete the code to select all frames for review in the current page.
const frames = figma.currentPage.[1](node => node.type === 'FRAME')
The filter method selects nodes matching a condition, here frames.
Fix the error in the code to assign reviewers to frames for feedback.
frames.forEach(frame => frame.[1] = ['alice@example.com', 'bob@example.com'])
The correct property to assign reviewers is assignedReviewers.
Fill both blanks to create a workflow that sends notifications after comments are added.
figma.on('[1]', event => { sendNotification(event.[2]) })
The event to listen for is commentAdded, and the comment data is in comment.
Fill all three blanks to create a summary report of comments per frame.
const report = frames.map(frame => ({
[1]: frame.name,
[2]: frame.comments.length,
[3]: frame.comments.map(c => c.message).join('; ')
}))Use descriptive keys: frameName, commentCount, and commentMessages for clarity.
