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

feat: add styling for hooksitems in review modal #4932

Merged
merged 114 commits into from
Oct 4, 2024

Conversation

fairlighteth
Copy link
Contributor

Summary

  • Adds styling for hook items in the review modal
Screenshot 2024-10-01 at 12 04 30 Screenshot 2024-10-01 at 12 04 38 Screenshot 2024-10-01 at 12 04 50 Screenshot 2024-10-01 at 12 05 03 Screenshot 2024-10-01 at 12 05 14 Screenshot 2024-10-01 at 12 05 24

shoom3301 and others added 30 commits September 12, 2024 14:14
… feat/hooks-iframe-app

# Conflicts:
#	apps/cowswap-frontend/src/modules/hooksStore/hooks/usePostHooksRecipientOverride.ts
#	apps/cowswap-frontend/src/modules/hooksStore/hooks/useSetRecipientOverride.ts
#	apps/cowswap-frontend/src/modules/hooksStore/types/hooks.ts
#	apps/cowswap-frontend/src/modules/trade/hooks/useResetRecipient.ts
…l/cowswap into feat/hooks-iframe-app-1

# Conflicts:
#	apps/cowswap-frontend/src/modules/trade/hooks/useNotifyWidgetTrade.ts
@elena-zh
Copy link

elena-zh commented Oct 3, 2024

Hey @shoom3301 , great, thank you!
One more issue I've faced: explorer shows 0 (or 00) in the Hooks field when no hooks added.
Reproducible for all orders (swaps/limit/twaps):

  1. No post-hook:
    image

  2. No hooks at all:
    00

@elena-zh
Copy link

elena-zh commented Oct 3, 2024

Also, still there are some issues for @fairlighteth to address:

  1. When only pre-hook is added to an order, 'pre' label is truncated in the Account modal
    1 hook
  2. It would be nice to Improve account modal view when hooks are added
    image
  3. Improve Explorer view:
    image

LMK please if I need to open a separate task for this

Base automatically changed from feat/hook-to-dapp-matching-cowswap to develop October 4, 2024 08:02
… feat/hook-to-dapp-matching-cowswap-styling1

# Conflicts:
#	apps/cowswap-frontend/src/common/containers/OrderHooksDetails/HookItem/index.tsx
#	apps/cowswap-frontend/src/common/containers/OrderHooksDetails/HookItem/styled.tsx
#	apps/cowswap-frontend/src/common/containers/OrderHooksDetails/index.tsx
#	apps/cowswap-frontend/src/common/containers/OrderHooksDetails/styled.tsx
#	apps/cowswap-frontend/src/modules/trade/pure/TradeConfirmation/index.tsx
#	libs/hook-dapp-lib/src/utils.ts
@shoom3301
Copy link
Collaborator

When only pre-hook is added to an order, 'pre' label is truncated in the Account modal

@elena-zh @fairlighteth fixed that

Copy link

@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.

Fixes #4940 as well.
Approved.
For remaining issues I've opened #4945

@shoom3301 shoom3301 merged commit 83184d2 into develop Oct 4, 2024
11 of 12 checks passed
@shoom3301 shoom3301 deleted the feat/hook-to-dapp-matching-cowswap-styling1 branch October 4, 2024 12:41
@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2024
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.

3 participants