Skip to content
Open
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
32 changes: 32 additions & 0 deletions src/components/feedback-section/FeedbackSection.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,35 @@ export const Portuguese: Story = {
locale: 'pt',
},
}

/** Follow-up panel opened automatically right after voting "Yes". */
export const FollowUpOpen: Story = {
args: {
defaultPanelStage: 'open',
},
}

/** Follow-up panel after the user sends the optional comment/email. */
export const FollowUpSubmitted: Story = {
args: {
defaultPanelStage: 'submitted',
},
}

/** Follow-up panel when sending the detailed feedback fails. */
export const FollowUpError: Story = {
args: {
defaultPanelStage: 'open',
sendDetailedFeedback: async () => {
throw new Error('Network error')
},
},
}

/** Compact version of the follow-up panel used next to the table of contents. */
export const FollowUpOpenSmall: Story = {
args: {
small: true,
defaultPanelStage: 'open',
},
}
Loading
Loading