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

Fix some glaring performance issues in history view as we prepare to release it #1545

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

travjenkins
Copy link
Member

@travjenkins travjenkins commented Apr 1, 2025

Issues

Contributes: #1369

Changes

1369

  • No longer fetch ALL the specs on the load of the page
  • Break up components a bit
  • Add query params into URL to potentially allow sharing of compare links easier
    • Storing them in two params so we can eventually allow user to select any two to compare
  • Tweaking styles to make it more clear the selected pub is on the right side.
  • Make sure that onload the selected publication is visible with scrollIntoView

Tests

Manually tested

  • scenarios you manually tested

Automated tests

  • unit testing covered

Playwright tests ran locally

  • Admin
  • Captures
  • Collections
  • HomePage
  • Login
  • Materialization

Screenshots

Onload it will scroll smoothly down to the item selected
image

 - Stop fetching all of history on load of page
 - Fetch each spec individually when a users selects publication
 - Break out the diff viewer into a stand alone component

Typing
 - Some types were off for the history page so updated those
Minor tweaks to the UX for loading and comparing
Trying to make it more clear the selected item is on the right of the diff
 - We can just use the `published_at` from the main list
 - Make the function safer so it only calls when there is
    at least _one_ pub id

Editor UX
 - Keep the viewState while changing the model so the scroll stays
     while changing publications
 - moved stuff into a shared hook to keep things consistent
 - rename the query params to be specific to this page
 -
@travjenkins travjenkins marked this pull request as ready for review April 2, 2025 17:01
@travjenkins travjenkins requested a review from a team as a code owner April 2, 2025 17:01
Copy link
Member

@kiahna-tucker kiahna-tucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with moderate testing.

@travjenkins travjenkins added the change:planned This is a planned change label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:planned This is a planned change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants