Skip to content

use trackBy in root tables#3186

Open
bcb37 wants to merge 1 commit into
devfrom
fix/3179-fix-paginated-scroll
Open

use trackBy in root tables#3186
bcb37 wants to merge 1 commit into
devfrom
fix/3179-fix-paginated-scroll

Conversation

@bcb37

@bcb37 bcb37 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@bcb37 bcb37 linked an issue Jun 17, 2026 that may be closed by this pull request
@bcb37 bcb37 requested a review from Copilot June 17, 2026 20:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds trackBy functions to the three “root” Angular Material tables (Segments, Feature Flags, Experiments) so row identity is preserved by entity id, reducing unnecessary DOM re-creation during sorting/pagination/data refreshes.

Changes:

  • Added trackBy…Id functions in each root table component to return the entity id.
  • Wired each table template to use the corresponding [trackBy] function on mat-table.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/frontend/projects/upgrade/src/app/features/dashboard/segments/pages/segment-root-page/segment-root-page-content/segment-root-section-card/segment-root-section-card-table/segment-root-section-card-table.component.ts Adds trackBySegmentId returning segment.id.
packages/frontend/projects/upgrade/src/app/features/dashboard/segments/pages/segment-root-page/segment-root-page-content/segment-root-section-card/segment-root-section-card-table/segment-root-section-card-table.component.html Hooks the segments table to [trackBy]="trackBySegmentId".
packages/frontend/projects/upgrade/src/app/features/dashboard/feature-flags/pages/feature-flag-root-page/feature-flag-root-page-content/feature-flag-root-section-card/feature-flag-root-section-card-table/feature-flag-root-section-card-table.component.ts Adds trackByFlagId returning featureFlag.id.
packages/frontend/projects/upgrade/src/app/features/dashboard/feature-flags/pages/feature-flag-root-page/feature-flag-root-page-content/feature-flag-root-section-card/feature-flag-root-section-card-table/feature-flag-root-section-card-table.component.html Hooks the feature flags table to [trackBy]="trackByFlagId".
packages/frontend/projects/upgrade/src/app/features/dashboard/experiments/pages/experiment-root-page/experiment-root-page-content/experiment-root-section-card/experiment-root-section-card-table/experiment-root-section-card-table.component.ts Adds trackByExperimentId returning experiment.id.
packages/frontend/projects/upgrade/src/app/features/dashboard/experiments/pages/experiment-root-page/experiment-root-page-content/experiment-root-section-card/experiment-root-section-card-table/experiment-root-section-card-table.component.html Hooks the experiments table to [trackBy]="trackByExperimentId".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bcb37 bcb37 requested review from danoswaltCL and zackcl June 17, 2026 20:41
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.

bug: experiment root page quick scroll jank

2 participants