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 introduces several new components and refactors existing ones to improve the functionality and user experience of the offer drawer feature. The changes include adding new components for handling offers, creating tabs for easier navigation, and refactoring the main offer drawer component to integrate these new features.
Key changes include:
New Components:
frontend/src/components/design-library/molecules/offers-list/offers-list.tsx
: Added a newOffersList
component to display a list of offers with options to accept, reject, or message the offer creator.frontend/src/components/design-library/templates/offer-drawer/components/invite/invite-input.tsx
: Added a newEmailInviteInput
component for inviting users via email.frontend/src/components/design-library/templates/offer-drawer/components/offer-drawer-create.tsx
: Added a newOfferDrawerCreate
component to handle the creation of new offers.frontend/src/components/design-library/templates/offer-drawer/components/offer-drawer-tabs.tsx
: Added a newOfferDrawerTabs
component to manage tabs within the offer drawer.Refactoring:
frontend/src/components/design-library/templates/offer-drawer/offer-drawer.tsx
: Refactored theOfferDrawer
component to integrate the newOfferDrawerCreate
,OfferDrawerTabs
, andOffersList
components. Added support for tabs and updated the component's props to handle the new functionality. [1] [2] [3] [4]Storybook Updates:
frontend/src/components/design-library/molecules/offers-list/offers-list.stories.tsx
: Added a new story for theOffersList
component.frontend/src/components/design-library/templates/offer-drawer/offer-drawer.stories.tsx
: Added a new story to showcase the offer drawer with tabs.