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 several changes to multiple files in the frontend components, primarily focused on adding new functionalities, improving existing components, and refactoring code for better maintainability. The most important changes are grouped by theme as follows:
New Components and Stories:
frontend/src/components/design-library/molecules/action-buttons/action-buttons.stories.tsx
: Added storybook entries forActionButtons
to demonstrate default and multiple actions configurations.frontend/src/components/design-library/organisms/issue-actions/issue-actions.stories.tsx
: Added storybook entries forIssueActions
to demonstrate different roles and actions.frontend/src/components/task/components/issue-actions-by-role.tsx
: Created a new component to display issue actions based on user roles.Component Enhancements:
frontend/src/components/design-library/molecules/action-buttons/action-buttons.tsx
: Introduced theActionButtons
component to handle primary and secondary actions with icons and dialogs.frontend/src/components/design-library/molecules/drawer/drawer.tsx
: Refactored theDrawer
component to useBox
for layout and flexibility improvements.Refactoring and Code Improvements:
frontend/src/components/design-library/organisms/invoice-payment/invoice-payment.tsx
: Refactored to usemakeStyles
instead ofwithStyles
for styling.frontend/src/components/task/payment/methods/wallet/payment-method-wallet-tab.tsx
: Refactored to usemakeStyles
for styling and removed unusedclasses
prop. [1] [2]frontend/src/components/task/task-payment-form.js
: Wrapped the component withwithRouter
to enhance routing capabilities. [1] [2]Bug Fixes and Minor Changes:
frontend/src/components/task/send-solution-dialog.js
: Fixed the dependency array in theuseEffect
hook to properly clean pull request data state when the dialog is opened.frontend/src/components/task/task-invite-card.js
: Adjusted the margin for the root element to improve spacing.These changes collectively enhance the functionality, maintainability, and user experience of the frontend components.