Closed Carla-Moz closed 2 months ago
Name | Link |
---|---|
Latest commit | c90c84a29ebb80ced17983af52b4e20f4c49d443 |
Latest deploy log | https://app.netlify.com/sites/mozilla-perfcompare/deploys/66a841cfd35c620008f9d9e6 |
Deploy Preview | https://deploy-preview-698--mozilla-perfcompare.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Attention: Patch coverage is 95.45455%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 88.44%. Comparing base (
d8a7420
) to head (c90c84a
). Report is 2 commits behind head on beta.
Files | Patch % | Lines |
---|---|---|
src/components/CompareResults/ResultsView.tsx | 88.88% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
No need to review until I add the fix to frameworks dropdown move because this might end up becoming irrelevant.
This commit removes the
Suspense
component since it doesn't fulfill our task of giving users feedback during the edit work flow. The current implementation requires reloading the page which isn't ideal and honestly, unnecessary. Therefore, I've also removed this from the form.My proposed solution adds an
isLoadingResults
state toResultView
to manage the rendering of the spinner upon initial loading of theResultsTable
and during any revision updates. In this commit, I implement my fix only on theCompareWithBase
component. The form in this component updatesisLoadingResults
totrue
until the results are ready. You'll see I added a delay inResultsView
since theresults
resolve too quickly for users to see any feedback.If the proposed fix is satisfactory upon review, I'll create a new commit to update
CompareOverTime
workflow. Lastly, I've imported theResultTable
inResultsMain
using the lazy API to help improve performance. Profile for beta for initial loading of results table (browsertime framework) / Profile for my deployed PR '' ''My patch reduces the first major jank by 3 seconds.