Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes multiple changes to the frontend components, focusing on adding new components, updating existing ones, and refactoring code for better organization and readability. The most important changes include adding a router decorator to Storybook, creating new story files for
IssueSolutionCard
andRequirementList
, and refactoring theSendSolutionDrawer
component.Improvements to Storybook:
frontend/.storybook/preview.js
: Added a router decorator to wrap stories withBrowserRouter
for better navigation support. [1] [2]New Story Files:
frontend/src/components/design-library/molecules/issue-solution-card/issue-solution-card.stories.tsx
: Added a story file forIssueSolutionCard
to showcase its usage and different states.frontend/src/components/design-library/molecules/requirements-list/requirement-list.stories.tsx
: Added a story file forRequirementList
to demonstrate its functionality and different scenarios.Component Refactoring:
frontend/src/components/task/components/send-solution-drawer.tsx
: Refactored theSendSolutionDialog
component toSendSolutionDrawer
, updated its implementation to useIssueSolutionCard
instead ofTaskSolution
, and removed unnecessary console logs. [1] [2] [3]frontend/src/components/task/send-solution-requirements.js
: Removed the oldSendSolutionRequirements
component and replaced it with a TypeScript version that uses theRequirementList
component for better code reuse and type safety. [1] [2]