bitshares / bitshares/bitshares-ui

Can't show or keep week view on Exchange page

Open
#3,613 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
520
Forks
575
Avg merge
12h 7m
Merged PRs (30d)
5

Description

**Describe the bug**

I added a `1w` bucket to the `api.bts.mobi` API node, but the reference wallet does not use it.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to https://develop.bitshares.org/#/market/BTS_XBTSX.USDT
2. Choose the `api.bts.mobi` API node
3. Fresh page, choose "1 hour" in the chart, then choose "7 days" in the chart
4. See error: the chart shows "D" with data starting from 600 days ago
5. choose "7 days" again, the chart shows "7D", however, the range of data does change. By checking API calls with web developer tools, the bucket used in requests are still `86400`.
6. go to another market
7. the chart shows "D" again

**Expected behavior**

**Screenshots**
![image](https://user-images.githubusercontent.com/9946777/205553263-1bda2bce-f774-4194-9fe7-c7ae12b81c4c.png)

**Desktop (please complete the following information):**
- OS: Ubuntu
- Browser Chrome / Firefox
- Version -

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start at the Exchange page and reproduce the chart changes using the api.bts.mobi node while watching the API requests in browser developer tools. Trace why selecting “7 days” still requests the 86400 bucket and why the selection resets when changing markets; done means the week view uses the requested bucket and remains selected across the described navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.