Skip to content

feat: Survey dialog#1264

Merged
mariush2 merged 32 commits into
mainfrom
feat/survey-dialog
Apr 21, 2026
Merged

feat: Survey dialog#1264
mariush2 merged 32 commits into
mainfrom
feat/survey-dialog

Conversation

@mariush2
Copy link
Copy Markdown
Contributor

@mariush2 mariush2 commented Apr 13, 2026

Azure DevOps links

Feature

User story


  • Needs to be tested locally by reviewer

Description

This PR adds the survey provider

Copilot AI review requested due to automatic review settings April 13, 2026 12:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new SurveyProvider + dialog UI for rendering and answering active surveys, and updates Storybook/router utilities and a few supporting components to align with newer conventions and dependencies.

Changes:

  • Added a new Survey feature area (SurveyProvider, dialog, question components, Storybook stories/play tests).
  • Updated Storybook router parameter shape (initialEntriesinitial) across many stories and added Storybook typings.
  • Bumped motion and adjusted related mocks/types; tightened lint to include tsc --noEmit.

Reviewed changes

Copilot reviewed 47 out of 50 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/tests/framerMotionMock.ts Adjusts MotionValue import to match updated motion package structure.
src/storybook/PropsTable.tsx Removes PropTypes usage from Storybook helper component.
src/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.ts Adds explicit typing for useTransform callback arg.
src/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.test.tsx Updates hook tests to include newly required contentRef argument.
src/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.stories.tsx Migrates Storybook router params to new initial field.
src/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.ts Adds explicit typing for useTransform callback arg.
src/providers/SurveyProvider/SurveyProvider.types.ts Introduces local question type helpers for survey rendering.
src/providers/SurveyProvider/SurveyProvider.tsx Adds Survey context/provider with active survey state and answer/opt-out handling.
src/providers/SurveyProvider/SurveyProvider.stories.tsx Adds Storybook stories and play tests for survey flows (standard + UMUX).
src/providers/SurveyProvider/SurveyDialog/UmuxDialog.tsx Implements UMUX-specific dialog flow (answer all questions, complete).
src/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyQuestion.tsx Routes question rendering by QuestionType.
src/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyMultipleChoiceQuestion.tsx Implements multiple-choice question UI bound to provider state.
src/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyLinearScaleQuestion.tsx Implements linear scale question UI (also reused for UMUX).
src/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyFreeTextQuestion.tsx Implements free-text question UI bound to provider state.
src/providers/SurveyProvider/SurveyDialog/SurveyProgress.tsx Adds progress/percentage UI for survey dialog.
src/providers/SurveyProvider/SurveyDialog/SurveyDialog.tsx Adds main dialog flow for non-UMUX surveys and switches to UMUX dialog when needed.
src/providers/SurveyProvider/SurveyDialog/SurveyDialog.styles.ts Adds shared styling wrapper for dialog content.
src/providers/SurveyProvider/hooks/useSurvey.ts Adds hook for consuming SurveyContext.
src/organisms/TopBar/Tutorials/Tutorials.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/TopBar/TopBar.stories.tsx Migrates Storybook router params; removes console logging in story props.
src/organisms/TopBar/Resources/Resources.tsx Removes unused field prop plumbing into Feedback.
src/organisms/TopBar/Resources/Resources.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/TopBar/Guidelines/Guidelines.test.tsx Fixes test data shape for colorBox boolean flag.
src/organisms/TopBar/FieldMenu/FieldMenu.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/TopBar/Account/StatusAvatar.tsx Makes variant required in StatusAvatarProps.
src/organisms/TableOfContents/TableOfContents.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/Status/collections/ServerError.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/Status/collections/PageNotFound.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/Status/collections/MissingPermissions.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/Status/collections/GenericError.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/Status/collections/BadRequest.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/Status/collections/ApiResponseError.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/SideBar/SideBar.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/ReleaseNotesPage/ReleaseNotesPage.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/ReleaseNotesPage/ReleaseNoteFilter.tsx Fixes clearing filter when search[key] is undefined.
src/organisms/FieldSelector/FieldSelector.stories.tsx Migrates Storybook router params to new initial field.
src/organisms/Faq/Faq.stories.tsx Migrates Storybook router params to new initial field.
src/molecules/Waves/Waves.stories.tsx Migrates Storybook router params to new initial field.
src/molecules/Typography/Typography.stories.tsx Refactors story layout to use in-story wrapper rather than decorators.
src/molecules/Stepper/Stepper.stories.tsx Migrates Storybook router params to new initial field.
src/molecules/RichTextEditor/MenuBar/TextColor.tsx Switches color input handler from onInput to onChange.
src/molecules/RichTextDisplay/RichTextDisplay.tsx Formats props interface declaration (no behavioral change).
src/molecules/RichTextDisplay/RichTextDisplay.stories.tsx Avoids passing Storybook’s internal _children arg into component props; simplifies render fn.
src/molecules/IconCell/stories/data.ts Updates IconCell story data enums/colors to new values.
src/atoms/style/spacings.stories.tsx Updates Storybook meta to use render instead of component.
package.json Updates lint to run typecheck; bumps motion dependency.
bun.lock Lockfile update for motion bump.
.storybook/storybook.d.ts Adds Storybook parameters typing for msw/router/design.
.storybook/preview.tsx Updates router decorator to new initial API; refactors provider decorator; adjusts mocked AuthProvider import path.
.idea/conventionalCommit.xml Adds IDE config related to conventional commits.
Files not reviewed (1)
  • .idea/conventionalCommit.xml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
Comment thread src/providers/SurveyProvider/SurveyDialog/UmuxDialog.tsx
Comment thread src/storybook/PropsTable.tsx
Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 13, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 100%) 17247 / 17247
🔵 Statements 100% (🎯 100%) 17247 / 17247
🔵 Functions 100% (🎯 100%) 1239 / 1239
🔵 Branches 100% (🎯 100%) 4361 / 4361
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/molecules/RichTextDisplay/RichTextDisplay.tsx 100% 100% 100% 100%
src/molecules/RichTextEditor/MenuBar/TextColor.tsx 100% 100% 100% 100%
src/molecules/RichTextEditor/custom-extensions/ExtendedImage.tsx 100% 100% 100% 100%
src/molecules/Select/ListSelectPersistent.tsx 100% 100% 100% 100%
src/molecules/Select/SearchBar.tsx 100% 100% 100% 100%
src/molecules/Select/Select.styles.ts 100% 100% 100% 100%
src/organisms/ReleaseNotesPage/ReleaseNotesPage.utils.ts 100% 100% 100% 100%
src/organisms/Status/Illustration.constants.ts 100% 100% 100% 100%
src/organisms/TopBar/TopBar.styles.ts 100% 100% 100% 100%
src/organisms/TopBar/Account/StatusAvatar.tsx 100% 100% 100% 100%
src/organisms/TopBar/Resources/Resources.tsx 100% 100% 100% 100%
src/providers/SurveyProvider/SurveyProvider.tsx 100% 100% 100% 100%
src/providers/SurveyProvider/SurveyDialog/SurveyDialog.styles.ts 100% 100% 100% 100%
src/providers/SurveyProvider/SurveyDialog/SurveyDialog.tsx 100% 100% 100% 100%
src/providers/SurveyProvider/SurveyDialog/SurveyProgress.tsx 100% 100% 100% 100%
src/providers/SurveyProvider/SurveyDialog/UmuxDialog.tsx 100% 100% 100% 100%
src/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyFreeTextQuestion.tsx 100% 100% 100% 100%
src/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyLinearScaleQuestion.tsx 100% 100% 100% 100%
src/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyMultipleChoiceQuestion.tsx 100% 100% 100% 100%
src/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyQuestion.tsx 100% 100% 100% 100%
src/providers/SurveyProvider/hooks/useSurvey.ts 100% 100% 100% 100%
src/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.ts 100% 100% 100% 100%
src/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.ts 100% 100% 100% 100%
Generated in workflow #2224 for commit 29e444f by the Vitest Coverage Report Action

Copilot AI review requested due to automatic review settings April 13, 2026 12:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 47 out of 50 changed files in this pull request and generated 12 comments.

Files not reviewed (1)
  • .idea/conventionalCommit.xml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
Comment thread src/providers/SurveyProvider/SurveyDialog/SurveyDialog.tsx
Comment thread src/providers/SurveyProvider/SurveyDialog/UmuxDialog.tsx
Comment thread src/providers/SurveyProvider/SurveyDialog/UmuxDialog.tsx
Comment thread src/providers/SurveyProvider/SurveyDialog/SurveyProgress.tsx
Copilot AI review requested due to automatic review settings April 14, 2026 05:57
@mariush2 mariush2 requested a review from arkadiy93 April 15, 2026 10:30
arkadiy93
arkadiy93 previously approved these changes Apr 15, 2026
Copy link
Copy Markdown
Contributor

@arkadiy93 arkadiy93 left a comment

Choose a reason for hiding this comment

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

LGTM 🔥

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 64 out of 68 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • .idea/conventionalCommit.xml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread public/mockServiceWorker.js
Copilot AI review requested due to automatic review settings April 21, 2026 06:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 64 out of 68 changed files in this pull request and generated 9 comments.

Files not reviewed (1)
  • .idea/conventionalCommit.xml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/organisms/ReleaseNotesPage/ReleaseNotesPage.utils.ts
Comment thread src/providers/SurveyProvider/SurveyDialog/UmuxDialog.tsx
Comment thread src/providers/SurveyProvider/SurveyDialog/UmuxDialog.tsx
Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
Comment thread src/providers/SurveyProvider/SurveyDialog/SurveyDialog.tsx
Comment thread src/providers/SurveyProvider/SurveyProvider.tsx Outdated
Copilot AI review requested due to automatic review settings April 21, 2026 06:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 64 out of 68 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • .idea/conventionalCommit.xml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/providers/SurveyProvider/SurveyProvider.tsx
Comment thread public/mockServiceWorker.js
Copy link
Copy Markdown
Contributor

@arkadiy93 arkadiy93 left a comment

Choose a reason for hiding this comment

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

Nicely done 🔥

@mariush2 mariush2 merged commit 710119a into main Apr 21, 2026
9 of 11 checks passed
@mariush2 mariush2 deleted the feat/survey-dialog branch April 21, 2026 07:31
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.

3 participants