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

UI: update tab/window title when user changes market and fix minor display issues on market page #2458

Merged
merged 4 commits into from
Aug 26, 2023

Conversation

ukane-philemon
Copy link
Contributor

Closes #2115 and resolves some improvements detailed in f89367a commit message.

Notable UI changes:
Screenshot 2023-08-03 at 6 26 47 PM

Before now, the "Create Wallets to trade" message had no bottom border to separate it from the other details in that section.

The changes in this PR ensure improved UX - the user will notice more visual changes on the markets page when they select a new market before the order book note is received.

Copy link
Contributor

@martonp martonp left a comment

Choose a reason for hiding this comment

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

LGTM, but maybe you could update the title with the mid-gap after the order book gets loaded.

@ukane-philemon
Copy link
Contributor Author

ukane-philemon commented Aug 4, 2023

but maybe you could update the title with the mid-gap after the order book gets loaded

The title is updated in handleBookRoute when the order book is received and processed. That way, we will have the mid-gap value in the title if the order book is not empty.

client/webserver/site/src/js/markets.ts Outdated Show resolved Hide resolved
client/webserver/site/src/js/markets.ts Outdated Show resolved Hide resolved
client/webserver/site/src/js/markets.ts Outdated Show resolved Hide resolved
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
This includes:
- Display balance widget when balance note is received only if the asset
  is set in the balance widget.
- Ensure there are visible changes when user clicks on another market instead
  of waiting for order book note which might delay. These visible
  changes include: clearing the depth chart, order book and recent matches, setting the
  balance widget wallets, selecting and saving the market.
- Setting a bottom border for the "Create wallets to trade" message.

Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
@ukane-philemon
Copy link
Contributor Author

ukane-philemon commented Aug 18, 2023

Thanks for the review @buck54321. Let me know when you want me to squash.

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.

ui: switching markets does not change the tab/window title
4 participants