-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Show a skeleton view above optimistic report actions when we're still loading the rest of the report #13590
Conversation
@parasharrajat @deetergp One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/Videos |
Checklist is done and the code looks good to me — leaving it for @parasharrajat to give his seal of approval. |
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.
} | ||
|
||
const lastReportAction = _.last(this.props.sortedReportActions); | ||
if (this.props.report.isLoadingReportActions && lastReportAction.sequenceNumber > 0) { |
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.
A comment will be helpful regarding why you are doing lastReportAction.sequenceNumber > 0
.
Lol wut - hm yeah so I also see this on main/prod when scrolling up so I don't think it's from this PR - I'll make a follow up issue for it! |
Updated! |
@techievivek created an issue for the right-orientation here: #13636 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
🚀 Deployed to staging by @yuwenmemon in version: 1.2.41-0 🚀
|
🚀 Deployed to staging by @yuwenmemon in version: 1.2.41-0 🚀
|
🚀 Deployed to production by @yuwenmemon in version: 1.2.41-4 🚀
|
@techievivek please review
Details
If we're loading report actions and we know that the report has other actions that are going to be loaded, show a skeleton view above any optimistic report actions so that we can convey the fact we're loading more actions
Fixed Issues
$ #13074
PROPOSAL: N/A
Tests
./script/clitools.sh generator:chatreport
for this)Offline tests
./script/clitools.sh generator:chatreport
for this)QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Kapture.2022-12-14.at.10.58.56.mp4
Mobile Web - Chrome
Kapture.2022-12-14.at.11.17.26.mp4
Mobile Web - Safari
Kapture.2022-12-14.at.11.23.22.mp4
Desktop
Kapture.2022-12-14.at.11.26.01.mp4
iOS
Kapture.2022-12-14.at.11.21.48.mp4
Android
Kapture.2022-12-14.at.11.15.09.mp4