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: update parent containers height when widget height is updated #5784

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

xMort
Copy link
Contributor

@xMort xMort commented Jan 10, 2025

JIRA: LX-681
risk: low


Important

Please, don't forget to run rush change for the commits that introduce new features or significant changes 🙏 This information is used to generate the change log.


Run extended test by pull request comment

Commands can be triggered by posting a comment with specific text on the pull request. It is possible to trigger multiple commands simultaneously.

extended-test --backstop | --integrated | --isolated | --record [--filter <file1>,<file2>,...,<fileN>]

Explanation

  • --backstop The command to run screen tests.
  • --integrated The command to run integrated tests against the live backend.
  • --isolated The command to run isolated tests against recordings.
  • --record The command to create new recordings for isolated tests.
  • --filter (Optional) A comma-separated list of test files to run. This parameter is valid only for the --integrated, --isolated, and --record commands.

Examples

extended-test --backstop
extended-test --integrated
extended-test --integrated --filter test1.spec.ts,test2.spec.ts
extended-test --isolated
extended-test --isolated --filter test1.spec.ts,test2.spec.ts
extended-test --record
extended-test --record --filter test1.spec.ts,test2.spec.ts

// It is used to reconstruct its layout coordinates (item path).
let itemIndex = 0;

const sectionHeight = rows.reduce((sectionHeight, row) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

decrease complexity by splitting to properly named helper functions

}, []);

// filter out containers that were not updated
const updatedItemsWithSizes = itemsWithSizes.filter(({ itemPath, height }) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

move to helper getUpdatedOnly and you can omit comment

@xMort xMort force-pushed the pdo-description-auto-expand branch from 6a373c8 to 8cabdd7 Compare January 13, 2025 12:51
@xMort xMort force-pushed the pdo-description-auto-expand branch from 8cabdd7 to 8e095f6 Compare January 13, 2025 12:59
@xMort xMort enabled auto-merge January 13, 2025 13:11
@xMort xMort merged commit 73450f1 into master Jan 13, 2025
15 checks passed
@xMort xMort deleted the pdo-description-auto-expand branch January 13, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants