-
Notifications
You must be signed in to change notification settings - Fork 13
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 in-app notification & improve loading UX #1045
Conversation
<FollowerDialog | ||
:is-open-followers-dialog="isOpenFollowersDialog" | ||
:wallet-is-fetching-followers="walletIsFetchingFollowers" | ||
:populated-followers="populatedFollowers" | ||
@close="isOpenFollowersDialog = false" | ||
@on-export-followers="handleClickExportFollowerList" | ||
/> | ||
</AuthRequiredView> | ||
|
||
<FollowerDialog | ||
:is-open-followers-dialog="isOpenFollowersDialog" | ||
:wallet-is-fetching-followers="walletIsFetchingFollowers" | ||
:populated-followers="populatedFollowers" | ||
@close="isOpenFollowersDialog = false" | ||
@on-export-followers="handleClickExportFollowerList" | ||
/> |
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.
<FollowerDialog>
must be inside the <AuthRequiredView/>
to make <AuthRequiredView/>
reactive...don't know why
get progressContainerClasses() { | ||
return [ | ||
'text-like-cyan-light', | ||
{ 'text-shade-gray': this.preset === ProgressIndicatorPreset.Thin }, | ||
'fill-like-cyan-light', | ||
]; | ||
} | ||
|
||
get progressContainer() { | ||
return { | ||
class: [ | ||
'text-like-cyan-light', | ||
{ 'text-shade-gray': this.preset === ProgressIndicatorPreset.Thin }, | ||
'fill-like-cyan-light', | ||
], |
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.
Using an object with key class
is not flattened with v-bind
, so I move the class array to separated computed prop
src/components/AuthRequiredView.vue
Outdated
<div class="flex justify-center mt-[24px]"> | ||
<ProgressIndicator v-if="walletIsLoggingIn" /> | ||
<div class="flex flex-col items-center mt-[24px]"> | ||
<template v-if="isLoadingAtStart || walletIsLoggingIn"> |
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.
Maybe isShowConnectButton = false
is easier to read? isLoadingAtStart
is confusing but I have no better suggestions
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.
Hmm, my purpose is not hiding connect button, this is solving the blinking UI before walletIsLoggingIn
changes to true
, how about isLoadingStartImmediately
, like the immediate: true
in watch?
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.
Sounds good to me
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.
Updated
No description provided.