Skip to content

Conversation

@bcb37
Copy link
Collaborator

@bcb37 bcb37 commented Dec 16, 2025

No description provided.

@bcb37 bcb37 linked an issue Dec 16, 2025 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

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 converts the ExperimentQueryResultComponent to a standalone component and integrates it into the new metrics data section card on the experiment details page. The changes enable metric data visualization by reusing the existing query result component in a new context.

  • Converted ExperimentQueryResultComponent from a module-declared component to a standalone component
  • Integrated the query result component into the experiment metrics data section
  • Removed duplicate header text from the query result component template

Reviewed changes

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

Show a summary per file
File Description
frontend/projects/upgrade/src/app/features/dashboard/home/home.module.ts Removed ExperimentQueryResultComponent from module declarations since it's now standalone
frontend/projects/upgrade/src/app/features/dashboard/home/components/experiment-query-result/experiment-query-result.component.ts Converted component to standalone with required imports and updated selector
frontend/projects/upgrade/src/app/features/dashboard/home/components/experiment-query-result/experiment-query-result.component.html Removed header text from template
frontend/projects/upgrade/src/app/features/dashboard/experiments/pages/experiment-details-page/experiment-details-page-content/experiment-metrics-data-section-card/experiment-metrics-data/experiment-metrics-data.component.ts Added experiment input and imported the query result component
frontend/projects/upgrade/src/app/features/dashboard/experiments/pages/experiment-details-page/experiment-details-page-content/experiment-metrics-data-section-card/experiment-metrics-data/experiment-metrics-data.component.html Replaced placeholder text with query result component
frontend/projects/upgrade/src/app/features/dashboard/experiments/pages/experiment-details-page/experiment-details-page-content/experiment-metrics-data-section-card/experiment-metrics-data-section-card.component.html Added experiment input binding to metrics data component

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

@danoswaltCL
Copy link
Collaborator

I think this may need to make sure the text is left-aligned along same line as the section-card header text:

figma:
image

currently it's indented further inward:
image

@danoswaltCL
Copy link
Collaborator

danoswaltCL commented Dec 17, 2025

this looks like it's in working order, sans the comments i made in slack that are probably not for this PR to worry about

I think we should move this component from where it is with older stuff into the new structure though, maybe i can share a branch with what i mean, easier than writing it out...

@danoswaltCL
Copy link
Collaborator

https://github.com/CarnegieLearningWeb/UpGrade/compare/experiment-design-refresh...feature/2736-metrics-data-card-suggested-file-structure-change?expand=1

so that branch is a one-commit example of the same thing you've done, just tucking the old component under the card. except it also gets rid of the experiment-metric-data component because it was just a wrapper for the old component, and a few files that are blank or not developed. i tested this out and it works the same.

image

@bcb37
Copy link
Collaborator Author

bcb37 commented Dec 17, 2025

https://github.com/CarnegieLearningWeb/UpGrade/compare/experiment-design-refresh...feature/2736-metrics-data-card-suggested-file-structure-change?expand=1

so that branch is a one-commit example of the same thing you've done, just tucking the old component under the card. except it also gets rid of the experiment-metric-data component because it was just a wrapper for the old component, and a few files that are blank or not developed. i tested this out and it works the same.

image

@danoswaltCL Should we do the same with the enrollment components then. That was on an earlier pr that was already approved and merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metrics Data Tab Section Card

3 participants