Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NOTIFICATIONS #9] refactor: use new snackbars for wrap/unwrap/approve notifications #4038

Merged
merged 74 commits into from
Mar 19, 2024

Conversation

shoom3301
Copy link
Collaborator

@shoom3301 shoom3301 commented Mar 13, 2024

Summary

Migrated onchain transactions notifications to the new solution (@cowprotocol/snackbars).

Transactions:

  • approve
  • wrap
  • unwrap
  • cancel
  • eth-flow order placement

Each transaction might end successfully (green snackbar) or with an error (red snackbar).

image image image
image image image image

To Test

  • approve (success/error)
  • wrap (success/error)
  • unwrap (success/error)
  • cancel (success/error)
  • eth-flow order placement (success/error)

anxolin and others added 30 commits February 16, 2024 19:26
… feat/snackbars-from-events

# Conflicts:
#	apps/cowswap-frontend/src/common/pure/PendingOrderNotification/getPendingOrderNotificationToast.test.ts
#	apps/cowswap-frontend/src/common/pure/PendingOrderNotification/index.tsx
#	apps/cowswap-frontend/src/legacy/state/orders/middleware/showPendingOrderNotification.tsx
#	apps/cowswap-frontend/src/modules/injectedWidget/updaters/CowEventsUpdater.ts
#	apps/cowswap-frontend/src/modules/limitOrders/services/safeBundleFlow/index.ts
#	apps/cowswap-frontend/src/modules/limitOrders/services/tradeFlow/index.ts
#	apps/cowswap-frontend/src/modules/swap/services/safeBundleFlow/safeBundleApprovalFlow.ts
#	apps/cowswap-frontend/src/modules/swap/services/safeBundleFlow/safeBundleEthFlow.ts
#	apps/cowswap-frontend/src/modules/swap/services/swapFlow/index.ts
#	apps/cowswap-frontend/src/modules/twap/hooks/useCreateTwapOrder.tsx
#	libs/wallet/src/web3-react/connectors/Injected/WidgetEthereumProvider.ts
#	libs/widget-lib/src/IframeCowEventEmitter.ts
#	libs/widget-lib/src/IframeRpcProviderBridge.ts
#	libs/widget-lib/src/cowSwapWidget.ts
#	libs/widget-lib/src/messages.ts
…protocol/cowswap into feat/snackbars-from-events-2

# Conflicts:
#	apps/cowswap-frontend/src/modules/orders/pure/PendingOrderNotification/getPendingOrderNotificationToast.test.ts
@shoom3301
Copy link
Collaborator Author

@elena-zh thank you!

  1. Fixed
  2. This case probably comes out of this task scope, please create another issue for it

@elena-zh
Copy link
Contributor

Created #4054 issue for the 2nd case.
As for the current fix, Order submitted and Order cancelled links for a parent TWAP order now show View on Etherscan link insteat of 'View on Safe. The etherscan link navigates to 404 page
safe

@elena-zh
Copy link
Contributor

Hey @shoom3301 , still there are some issues:

  1. Cancel parent TWAP order: the link should say 'View on Safe' (now it navigates to 404 Etherscan). Same should be for order creation pop-up.
  2. Cancel TWAP part: the link should say 'View on Explorer' (now it navigates to Safe). Same should be for Filled and Expired notifications.

@shoom3301
Copy link
Collaborator Author

@elena-zh fixed

Copy link
Contributor

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

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

Great job!

… feat/snackbars-from-events-9

# Conflicts:
#	apps/cowswap-frontend/src/common/updaters/FinalizeTxUpdater.tsx
#	apps/cowswap-frontend/src/modules/limitOrders/services/safeBundleFlow/index.ts
#	apps/cowswap-frontend/src/modules/orders/containers/OrderNotification/index.tsx
#	apps/cowswap-frontend/src/modules/orders/index.ts
#	apps/cowswap-frontend/src/modules/orders/updaters/OrdersNotificationsUpdater/handlers.tsx
#	apps/widget-configurator/src/app/configurator/index.tsx
@shoom3301 shoom3301 changed the base branch from feat/snackbars-from-events-8 to develop March 19, 2024 07:38
@shoom3301 shoom3301 merged commit 108c9c3 into develop Mar 19, 2024
4 of 9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2024
@alfetopito alfetopito deleted the feat/snackbars-from-events-9 branch March 19, 2024 09:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants