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

fix: update mobile web trade form for better ux experience on isolated trades #1108

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

moo-onthelawn
Copy link
Contributor

@moo-onthelawn moo-onthelawn commented Oct 3, 2024

There are no designs for this yet, this is just to tide us over until ui refresh designs come in; should match what we have in web

iphone SE

buy sell
Screenshot 2024-10-04 at 12 26 54 PM Screenshot 2024-10-04 at 12 26 59 PM

Views

  • New: <TradeSideTabs>

    • Moved to own component because it's shared by the TradeDialog + TradeBoxOrderView to avoid having to think about styling
  • New: forms/TradeForm/MarginAndLeverageButtons

    • Moved to own component because it's shared by the TradeDialog + TradeBoxOrderView to avoid having to think about styling
  • <TradeForm>

    • Note: currentStep is not null only in mobile / tablet views
    • Add fade to end of toggle group so it's more obvious it's scrollable
    • Update to render the tabs on the edit order step
  • TradeBoxOrderView

    • No change, just update to use new TradeSideTabs and MarginAndLeverageButtons component, remove mostly unnecessary tabsStyle

Components

  • TradeDialog

    • Update the EditOrder step so that the new header is just Trade, and we have the TradeSideTabs and MarginAndLeverageButtons in the content of the dialog
  • Icon

    • Update css sizing to allow it to be set from btoh css and typescript
  • Delete: TradeSideToggle

    • No longer used

Components

  • <Collapsible>
    • Fix TriggerIcon sizing to match with --trigger-icon-width

Styles

  • <layoutMixins>
    • Add overflow: hidden to fade mixins

@moo-onthelawn moo-onthelawn requested a review from a team as a code owner October 3, 2024 17:44
Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v4-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2024 3:34pm
v4-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2024 3:34pm

Copy link

linear bot commented Oct 3, 2024

@moo-onthelawn moo-onthelawn marked this pull request as ready for review October 4, 2024 16:22
@@ -44,6 +44,7 @@ const scrollAreaFadeStart = css`

/* Rules */
position: relative;
overflow: hidden;
Copy link
Contributor

Choose a reason for hiding this comment

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

gotta imagine this is going to cause pain SOMEWHERE, but I've got no clue where

@@ -397,6 +412,12 @@ const $TradeForm = styled.form`
}
`;

const $Content = styled.div`
Copy link
Contributor

Choose a reason for hiding this comment

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

mildly prefer just inlining these short ones (except FadeContainer) with tw=

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

Successfully merging this pull request may close these issues.

2 participants