-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
src/custom/pages/Profile/index.tsx
Outdated
const lastUpdated = useTimeAgo(profileData?.lastUpdated) | ||
|
||
const renderNotificationMessages = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could improve the readability to group the other notifications, what do you think @ramirotw?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the approach. I'm wondering though what happens if both banners are displayed, not sure if that's possible from a state perspective
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while I'm aware that it is currently not possible to show both statuses at the same time now (because errors are only consulted when it is mainnet).
If you think it is better than this without grouping, let me know.
|
Hi @henrypalacios , no, the icon is supposed to be static (discussed in #1376 (comment), see the 4th point) 'Try again' message is displayed everywhere for error messages in different web and mobile applications. Sometimes they are accompanied with an action, sometimes not. In our case a user is able to reload the page using browser's action button/pull down the screen in a mobile device. I'd only add 'later' to the 'Please try again' message to sound it more accomplished... |
Hey @henrypalacios , I have taken a look into the PR.
Also, when the PR is finished, it would be good to me to test it in a 'real' situation and check whether this banner appears only when https://protocol-mainnet.dev.gnosisdev.com/api/v1/profile/.... fails. Thanks! |
bf517c4
to
21685b2
Compare
Hey @henrypalacios , I still see messing profile sections in the mobile view when error message is displayed. |
21685b2
to
9e0f6e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good, still needs to be rebased to clear some commits
src/custom/pages/Profile/index.tsx
Outdated
const lastUpdated = useTimeAgo(profileData?.lastUpdated) | ||
|
||
const renderNotificationMessages = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the approach. I'm wondering though what happens if both banners are displayed, not sure if that's possible from a state perspective
29a93b5
to
0ae32f3
Compare
f3cdfb9
to
48e336c
Compare
Hey @henrypalacios , changes LGTM now! I think , I will need retest this once again when it will be fixed there and merged here once again... |
48e336c
to
72d5bc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nipick comments on the code, the behaviour looks good
Changes LGTM now! |
c09eb53
to
4a104bf
Compare
4a104bf
to
2cda92f
Compare
* Adding errorState in useFetchProfile
* Adding errorState in useFetchProfile
Co-authored-by: Crowdin Bot <[email protected]>
Summary
Closes #1698
Proposal:
NotificationBanner
component inside theProfile Overview
Card.To Test