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

merge upstream #1

Open
wants to merge 7,477 commits into
base: master
Choose a base branch
from
Open

merge upstream #1

wants to merge 7,477 commits into from

Conversation

gotjoshua
Copy link
Collaborator

No description provided.

JoseRFelix and others added 24 commits August 2, 2024 12:57
* feat: add initial update to transfer toasts

* feat: bug fixes and show estimated time arrival icon

* feat: stack toasts

* feat: @jonator feedback

* fix: if no selectAssetDenom send user to asset selection

* fix: type

* fix: edit html with raw js

* feat: add toast close button animation
* improve check for loading

* cleanup

* catch no route found error in skip

* make get timeout height use chain ID
* Add getAllocation procedure

* add base ui

* Render all to frontend

* Add assets

* add other

* Add get assets

* Add available

* Add temp tabs

* add types for allocation

* Add tabs

* Update classnames

* Lint issue

* Add ion

* Clean up styles

* Add open / close

* Add address for allocation

* Update colors

* Fix error

* Update types

* type 2

* fix lint

* Move alloction

* Clean up tabs

* Update URL

* Clean up addresses

* Clean up comments

* Add translations

* Add translations

* add pooled

* Update useMemo

* Fix ion color

* Remove cachified

* Remove color

* Update to fiatValue

* Migrate all to RatePretty and PricePretty

* Convert to Dec and PricePretty

* Refactor with RatePretty and PricePretty

* Update

* Remove log

* Add spec

* Update tests

* Update tests

* Moved to sidecar folder

* Update to local router

* Clean up

* Add neglible percent

* Extract color class

* Update sort

* Update allocation limit

* Top coins results

* Add allocation limit

* Update allocation
* fix param

* add invariant
* Migrate to tRPC

* Clean up tRPC

* Add chart types

* Fix type issue

* Add skeleton

* Add formatted performance value

* Clean up value calculation

* Clean up percent

* Add formatting for price change display

* Add chart colors

* Update chart config

* Add comment

* clean up imports

* Add resize button

* Add support for 1h

* Clean up color logic

* Migrate chart to asset overview

* Update dates

* remove log

* Add simple error

* Set defaults

* clean up

* Remove address

* Fix imports

* migrate to account store

* Update numia key refrence

* set last value

* temp

* comment out resize button temporarily

* Cleanup

* Clean up ts issues

* Update date logic

* Remove log
* feat: add error box message

* feat: improve error messaging and placement

* improvement: use required dependency keys

* improvement: add comment

* fix: translation
* Add amplitude analytics

* Add analytics
* feat: add error box message

* feat: improve error messaging and placement

* improvement: use required dependency keys

* improvement: add comment

* feat: initial loading changes

* feat: add loading state to amount screen

* fix: remove unused code

* improvement: chain loading

* fix: run prettier

* fix: connect wallet redirect

* fix: add additional condition for external withdraw

* improvement: @jonator feedback
* feat: create generic disclaimer tooltip

* fix: enable propagation on generic disclaimer

* feat: re-arrange and update market trade details

* feat: add free state to trade details

* feat: re-arrange limit order fees

* feat: add gas icon

* feat: move and update review-swap into review-order

* feat: re-implement review-order modal

* feat: added gas fee esimate to place limit state

* feat: reduced fee estimate calls

* feat: add button disabling on review modal

* fix: removed repeating asset price query

* fix: adjusted placed quantity to be exact input

* fix: remove unused var

* refactor: remove old limit order review modal and extract recap row

* feat: add high slippage warning to review order

* feat: inject maxSlippage into usePlaceLimit hook

* chore: remove useless style from GenericDisclaimer

* feat: add gas icon to limit trade details network fees recap row

* feat: add tooltips to trade details row

* build: fixed translation json error

* redesign swap widget (#3591)

* fix: fixed isTyping field for inAmountInput

* Improve rate info (#3588)

* rate

* fix build lint

* improve buy/sell view

* Update packages/web/components/swap-tool/trade-details.tsx

Co-authored-by: Connor Barr <[email protected]>

* undo inlang change

---------

Co-authored-by: Connor Barr <[email protected]>

* fix: fix missing attributes

* feat: redesign widget base layout & top selectors

* chore: remove unused old commented code

* chore: remove tab uqs

* feat: update token selection & input/output designs

* feat: redesign quote selection

* feat: WIP redesign limit price selector and update page widget size

* fix: invert triangles direction and comment out unused code

* fix: fix button click disabled when tooltip open

* feat: re-implement open orders card

* feat: WIP init implementing focus switching

* feat: add switching button UI

* feat: change default percent adjustment and label render logic

* feat: re-add trade details

* chore: remove unused code

* refactor: extract AssetFieldset

* chore: comment out unused code

* feat: wire-up trade details limit variant

* feat: WIP implement new swap tool designs

* refactor: moved order mapping to caching function

* build: fixed build errors

* feat: added refetch to cancel/claim [WARNING DO NOT TEST]

* fix: fixed refetching on order table

* feat: finish implementing swap tool redesign

* feat: add popover on limit order disabled & tweak GenericDisclaimer customization

* feat: refetch orders on first load

* feat: add "add funds" button to asset fieldset header balance

* feat: add no balance logics to place limit tool & swap tool

* fix: inputs adjust value of other input for limit orders

* feat: change all site bg & fix earn page radio buttons opacity

* fix: removed unnecessary button disabled state

* fix: removed unnecessary button disabled state

* feat: add trade bg

* chore: removed unused code

* fix: fixed price input error on 0 input

* fix: fixed rounding issue with max button

* fix: fix faulting overflow-hidden on alt swap tool

* fix: fix bar width

* fix: fix alt swap tool labels

* fix: fix scroll on home fixed container

* fix: fix "add funds" display on wallet disconnected

* fix: fix alt headers and remove old code

* fix: fix spacing on tool

* fix: fix trade details bugged animation

* feat: add prefixes/suffixes empty states

* fix: disable ticker on sell tab balance

* fix: fix sell balance precision & fieldset footer height

* fix: fix buy available usdc amount formatting

* feat: update selectableQuotes to cover wallet not connected case

* fix: hide add funds button when wallet is disconnected

* fix: hide add funds cta on price selector and fix lint

* fix: filter in UI default quotes on defaultQuotesWithBalances

* feat: add empty states to swap widget footers

* feat: make "stablecoin" tooltip trigger underlined

* fix: update decimal places and add "<$0.01" to trade details fees

* build: fixed build errors

* fix: update display of gasUsdValueToPay

* feat: update rendering of gasAmount and wire it up on swap tool

* refactor: updated button disabled & loading states

* fix: update gas display on review modal

* chore: readded insufficient balance display to hidden error messages

* fix: update chart icon size and variant display logic

* feat: remove triangle indicator when percentAdjusted is zero

* fix: update token-details-shadow color

* chore: sentence case adjustments

* fix: fixed review modal changing price and incorrect values

* feat: WIP add scaling to asset input

* fix: fix rounding issues on order type selector and wrapping on parent container

* fix: move isValidNumericalRawInput validation to useLimitPrice

* refactor: move orderType prop computation to ReviewOrder and remove unused prop

* fix: fixed low price value display in limit price selector

* feat: WIP add diffGteSlippage handling

* fix: update isManualSlippageTooHigh treshold

* feat: truncate last slippage number if it's gt 50

* feat: add isManualSlippageTooLow disclaimer and update designs

* fix: fix max button spinner distortion

* fix: fix sticky scroll bg color to thead

* feat: add tooltip on order history page

* feat: update order history columns

* fix: fixed overflow on trade details and insufficient funds not disabling review button

* fix: added label for limit price input and fixed hover state for denom selection

* feat: button hover states for price selection

* fix: removed place limit msg generation for market orders

* build: fixed build error

* fix: adjusted text overflow for expected output

* feat: ✨ add limit orders localizations

* feat: added no gas fee estimation state to trade details

* feat: added gas estimate changes to review order

* chore: machine translate

* chore: added more localisations

* feat: added refetchOnMount to all/claimable orders queries

* fix: filtered unwanted quote assets

* feat: added amount formatting for quote denom selection

* refactor: refactored balance queries in placelimit hook

* fix: 💄 fix order history table overflow (#3649)

* fix: fixed modal not being attached to top of screen for denom selection

* fix: 💄 fix trade widget overlap with sidebar

* feat: clear denom selection on modal close

* fix: undid regression

* feat: ✨ add missing translation and fix analytics event page

* fix: 🐛 fix build error

* fix: removed limit price display in review modal on swap tab

* fix: fixed available amount formatting for buy/sell tab

* feat: moved error display

* fix: disabled button on no funds

* fix: limited decimal input to 3 decimal places

* fix: removed gas fee estimation from trade details

* feat: added state for no routes in trade details

* feat: focus input on swap for buy/sell

* feat: automatically display base denom in trade details

* fix: non-focused percentage 3 decimal places

* refactor: altered trade details outAsBase state and added more localisations

* [WIP] feat: price selection has default value

* fix: hid routes chevron when no routes found

* fix: fixed swap tool layout on pools page modal

* fix: background colors for pool page

* fix: background colour changes

* fix: review order terminology changes

* fix: trade-tokens terminology and padding changes

* fix: adjusted ttl for all orders cache

* refactor: changed cache times for orders

* refactor: altered cache times and added logs for active orders query

* feat: small improvement to all orders query

* chore: cleaned up logs

* fix: active orders optimisation

* fix: fixed bug with input form not resetting

* fix: refetch orders when order placed

* fix: caching trade tool active orders query to orders history page

* fix: readded claim all orders function

* refactor: refactored price input to be simpler

* fix: updating price while in percent mode for price selection

* feat: extreme value handling

* feat: extreme value handling

* fix: small bug fixes

* fix: price adjustment as spot price changes in price selection, removed unused log

* feat: spinner/disabled look for claim & close button

* fix: fixed above/below display for price selector

* fix: show order history link when user has any order history

* fix: fixed font scaling for inputs

* fix: reworked order history page

* chore: removed old order history page

* build: fixed build error

* fix: small changes to order history

* build: fix build errors

* feat: moved orderbook denom query to sqs pools

* fix: more active orders query changes

* feat: added no wallet state for order history

* fix: wallet loading state order history page

* feat: limits can now be placed on opposite side of market price

* chore: localisations

* fix: fixed error on high price amount inputs

* fix: small percentage adjustments for price input

* chore: removed logs, small formatting adjustment

* fix: toggle background colours for limit order ff

* fix: percent fill rounding

* feat: added geolocation based feature flags for limit orders

* fix: improved feel of cancel/claim buttons

* fix: correct swap tool depending on feature flags

* fix: missed backgrounds for feature flags

* build: fix build errors

* fix: remove swr and invalidate orderbook queries on tx

* refactor: moved historical orders query, fixed schema issue

* chore: removed unused code

* chore: reduced use of useMemo where possible

* chore: remove unused code

* test: moved tickToPrice to jest in case

* chore: added debug logs for claim/cancel buttons when no wallet found

* feat: added intersection component to orders history

* feat: valid/default limit quote denoms uses MainnetAssetSymbols

* fix: feature flag bg colour in main

* feat: added placeholder prop to ScaledCurrencyInput

* build: fixed build errors

* feat: undid order history first column changes from yesterday

* test: added unit tests for new formatter functions

* refactor: moved countDecimals test to correct file

* refactor: ♻️ add useKeyboardNavigation instead of custom implementation

* chore: added comments to disabled hooks in various places

* fix: 🐛 fix build error

* lint

* clean up unused localizations

* remove tests for old swap tool (deprecated)

---------

Co-authored-by: fabryscript <[email protected]>
Co-authored-by: Fabrizio Emanuele Piperno <[email protected]>
Co-authored-by: Sunny Aggarwal <[email protected]>
Co-authored-by: Davide Segullo <[email protected]>
Co-authored-by: Jon Ator <[email protected]>
* feat: support trx and trx.rt tokens

* improvement: @jonator feedback
* feat: add test id

* feat: ✨ add swap input test id

* feat: ✨ add test id

* feat: ✨ add token-price test id

* feat: ✨ add token in/out test id
yury-dubinin and others added 30 commits November 6, 2024 10:37
* Added close locator
* close modal on last conversoin

* reduce test flakiness
…er Status; Display fee in bridge provider dropdown (#3928)

* feat: refactor transfer store tx snapshot

* feat: display recent transfers in recent activity

* feat: add pending state

* feat: add transaction row in transaction page

* fix: layout

* feat: make transaction rows responsive

* feat: add transaction details for withdrawals and deposits

* fix: bridge provider select, ibc tx tracking and improve transaction details

* test: fix transfer status tests

* fix: squid test

* feat: remove unused localization key

* fix: remove unused localization key

* improvement: @jonator feedback

* improvement: @CryptoAssassin1 feedback
* refactor: 💄 Replace custom SortDirection with osmosis-labs utils SortDirection

* refactor: 💄 Replace Table custom component with base table powered by tanstack react-table

* refactor: 💄 Remove now unused table component
Removed a table component previously used only by another one from which it has been removed

* fix: 💄 Fix table background having a different tint from component background

* refactor: 💄 Change to classNames utility from template literal

* refactor: ⚰️ Remove unused types

* refactor: ⚰️ Remove almost unused BaseCell type

BaseCell type was only used for compatibility with the now removed table component on most types. It was really used on ValidatorInfo that's been changed now

* refactor: 💄 Add missing padding in superfluid validator selection table header

* refactor: 💄 Changed background and hover functionality to be consistent with other app tables

* refactor: 💄 Remove table header background in modals

remove table header background in modals following new design guidelines

* fix: 💄 Change transparent background to be the same as container

Transparent background caused readability issues when scrolling the table
…s 0 (#3940)

* feat: handle ui pending state when estimated time reaches 0

* test: add test ofr transfer-history

* test: improve test

* (Deposit/Withdraw) Truncate decimals to a maximum of 6 digits in transfer toast and better Squid transfer status error handling (#3941)
* refactor:  orders query usage and definition

* chore: localizations

* fix: suggested fixes by coderabbit

* chore: comment fix
* fix: atom stargaze withdrawal

* fix: build

* fix: build

* fix: test

* fix test
…tions (#3947)

* fix: atom stargaze withdrawal

* feat: add provider name to transfer details

* fix: build

* fix: build

* fix: build

* fix: test

* fix: test
* Updated ATOM tests and swap amounts
* fix: preview assets flag

* improvement: remove unnecessary exports
…p continuous rerenders and high CPU usage (#3956)

* hook and their props changes debug logs

swap changes

* fix: stabilize switchAssets

* fix: stabilize outputDifference

* feat: add useDeepMemo to use deep equal when memoizing

lodash.isEqual was another option for deep equality checks but
fast-deep-equal is lot smaller and more performant

* fix: stabilize quote

* fix: stabalize useSwapAmountInput

this one was the trigger for multiple changes
inAmountInput, outAmountInput, spotPriceQuote, sendTradeTokeninTx

* fix: stabilize totalFee

* Revert "hook and their props changes debug logs"

This reverts commit 4b42274.

* fix: coderabbit
* feat: create lock file to manage asset list image cache

* improvement: comment

* fix: build
…3960)

* feat: display unverified and preview assets in supercharged pool creation

* improvement: @jonator feedback
…th IBC (#3920)

* feat: generate swap skip ibc hook

* fix: make ibc hook tx

* feat: show receive asset dropdown in nomic deposit address

* improvement: add clarification comment

* feat: upgrade nomic bitcoin library

* test: add testnet memo

* feat: handle contract pending deposits

* feat: make timestamp a number

* feat: remove testing overrides
* feat: add top gainers below swap tool

* improvement: display 5 top gainers

* improvement: only show 4 top gainers
* feat: update ampli events and tx memo

* fix: build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.