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

Unexpected Loading... in the search field #512

Closed
Keith-CY opened this issue Dec 30, 2023 · 4 comments · Fixed by Magickbase/ckb-explorer-frontend#209
Closed

Unexpected Loading... in the search field #512

Keith-CY opened this issue Dec 30, 2023 · 4 comments · Fixed by Magickbase/ckb-explorer-frontend#209
Assignees
Labels
bug Something isn't working

Comments

@Keith-CY
Copy link
Member

Environment: Testnet

image
image

Reported by users but I cannot reproduce it

@Keith-CY Keith-CY added the bug Something isn't working label Dec 30, 2023
@FrederLu
Copy link

FrederLu commented Jan 3, 2024

After searching for information using the top bar, a Loading... message will appear. At this time, if you do not delete the search box loading..., direct search will not be able to find results because it contains undeleted information.

2024-01-02.11.34.31.mov

@Sven-TBD
Copy link
Contributor

Sven-TBD commented Jan 4, 2024

@zhangyouxin Hi Youxin, we can change the UX to a new one, that is , while loading , and the user click the textbox , the string "loading ..." is selected by default. And we should change the color into grey.

If possible, please keep the dots appear and disappear so that the loading could be more vivid.

Hi Youxin,我们可以改一下这里的交互,即在加载时,如果用户点击文本框,"加载中..." 字符串将默认被选中。然后这里"loading..."颜色应该更改为灰色。

可以尝试让Loading ... 后面三个点动起来(从1个到3个再到1个这样),这样加载就能更加生动一点。

@zhangyouxin
Copy link

@zhangyouxin Hi Youxin, we can change the UX to a new one, that is , while loading , and the user click the textbox , the string "loading ..." is selected by default. And we should change the color into grey.

If possible, please keep the dots appear and disappear so that the loading could be more vivid.

Hi Youxin,我们可以改一下这里的交互,即在加载时,如果用户点击文本框,"加载中..." 字符串将默认被选中。然后这里"loading..."颜色应该更改为灰色。

可以尝试让Loading ... 后面三个点动起来(从1个到3个再到1个这样),这样加载就能更加生动一点。

Screen.Recording.2024-01-15.at.12.58.12.mov

视频显示的是,在“搜索中”状态是,尝试选中 "加载中..." 字符,并且把 “bbb” 改为 “c”, 但页面跳转后, url 里的 query 字段回到了 “bbb”, 这意味着我们需要在检测到加载状态是,如果用户有新的输入,则取消掉前一个搜索,用以避免前一个搜索结果的返回

我的建议是在 loading 状态,可以禁用输入,并且用 spinner 动画来代替 “loading” 字样,这将使得逻辑更简单

@zhangyouxin
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants