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(frontend): fix bug in test specs virtual list #3657

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

jorgeepc
Copy link
Contributor

This PR fixes a bug with the implementation of the virtual list for Test Specs. A test spec item has a variable height, and for that reason we need to implement the VariableSizeList component with a strategy to provide the item height as part of the render cycle.

Changes

  • fix test specs list

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Screenshots

Before

  • Double scroll and 🐛

2024-02-16 15 52 01

Now

2024-02-16 15 55 37

@jorgeepc jorgeepc self-assigned this Feb 16, 2024
Copy link

vercel bot commented Feb 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tracetest ✅ Ready (Inspect) Visit Preview Feb 16, 2024 9:02pm

@jorgeepc jorgeepc marked this pull request as ready for review February 16, 2024 21:24
Copy link
Contributor

@xoscar xoscar left a comment

Choose a reason for hiding this comment

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

Hey @jorgeepc GJ I added some non-blocking comments!

@@ -57,7 +57,10 @@ export const Selector = styled.div`

export const Title = styled(Typography.Text)`
color: ${({theme}) => theme.color.text};
font-family: monospace;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need this font-family change here?


const getItemSize = useCallback(
index => {
const item = assertionResults?.resultList?.[index];
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we should add some comments about what is going here, why do we need this etc

@xoscar xoscar merged commit 4b34cd6 into main Feb 19, 2024
39 checks passed
@xoscar xoscar deleted the fix-test-specs-virtual-list branch February 19, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants