Skip to content

[WIP] LMEval Routes, Empty state setup #4274

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

Closed
wants to merge 2 commits into from

Conversation

dpanshug
Copy link
Contributor

@dpanshug dpanshug commented May 29, 2025

Description

Screenshot 2025-05-29 at 1 01 33 PM

How Has This Been Tested?

Navigate to deployed model details page and click on Evaluate

Test Impact

None

Request review criteria:

Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

  • Included any necessary screenshots or gifs if it was a UI change.
  • Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main

@openshift-ci openshift-ci bot requested review from christianvogt and ppadti May 29, 2025 07:28
Copy link
Contributor

openshift-ci bot commented May 29, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign antowaddle for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dpanshug dpanshug requested review from ikeola13 and pnaik1 May 29, 2025 07:28
@dpanshug dpanshug force-pushed the lmeval-empty-state branch from ec2157f to 1385fe2 Compare May 29, 2025 07:31
Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 5.88235% with 112 lines in your changes missing coverage. Please review.

Project coverage is 82.13%. Comparing base (34107cd) to head (62e108e).

Files with missing lines Patch % Lines
.../pages/lmEval/global/lmEvalList/LMEvalListView.tsx 0.00% 23 Missing ⚠️
...ntend/src/pages/lmEval/global/LMEvalCoreLoader.tsx 0.00% 15 Missing ⚠️
frontend/src/pages/lmEval/global/LMEval.tsx 0.00% 14 Missing ⚠️
frontend/src/pages/lmEval/const.ts 0.00% 11 Missing ⚠️
...nd/src/pages/lmEval/global/EvaluateModelButton.tsx 0.00% 10 Missing ⚠️
frontend/src/pages/lmEval/global/LMEvalContext.tsx 0.00% 7 Missing ⚠️
...c/pages/lmEval/global/lmEvalList/LMEvalToolbar.tsx 0.00% 6 Missing ⚠️
...d/src/pages/lmEval/components/LMEvalNoProjects.tsx 0.00% 4 Missing ⚠️
...src/pages/lmEval/global/lmEvalList/LMEvalTable.tsx 0.00% 4 Missing ⚠️
.../pages/lmEval/global/lmEvalList/LMEvalTableRow.tsx 0.00% 4 Missing ⚠️
... and 7 more

❌ Your patch check has failed because the patch coverage (5.88%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4274      +/-   ##
==========================================
- Coverage   82.40%   82.13%   -0.27%     
==========================================
  Files        1679     1694      +15     
  Lines       35353    35464     +111     
  Branches    10442    10465      +23     
==========================================
- Hits        29132    29128       -4     
- Misses       6221     6336     +115     
Files with missing lines Coverage Δ
frontend/src/api/k8s/lmEval.ts 100.00% <100.00%> (ø)
frontend/src/api/models/odh.ts 100.00% <ø> (ø)
frontend/src/k8sTypes.ts 100.00% <ø> (ø)
...rontend/src/pages/lmEval/lmEvalForm/LMEvalForm.tsx 0.00% <ø> (ø)
...d/src/pages/lmEval/lmEvalForm/LMEvalFormFooter.tsx 0.00% <ø> (ø)
frontend/src/pages/lmEval/lmEvalForm/utils.ts 100.00% <ø> (ø)
frontend/src/plugins/extensions/navigation.ts 100.00% <ø> (ø)
...es/lmEval/components/LMEvalFormApplicationPage.tsx 0.00% <0.00%> (ø)
frontend/src/plugins/extensions/routes.ts 93.54% <0.00%> (-3.12%) ⬇️
.../pages/lmEval/components/LMEvalProjectSelector.tsx 0.00% <0.00%> (ø)
... and 14 more

... and 6 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34107cd...62e108e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@pnaik1 pnaik1 left a comment

Choose a reason for hiding this comment

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

Great work! just small changes

variant={EmptyStateVariant.lg}
>
<EmptyStateBody>
<Stack hasGutter>
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 a Stack component here, can we not directly add the text??

{isLmEvalAvailable && (
<Tab
eventKey={MetricsTabKeys.LM_EVAL}
title={<TabTitleText>LM Eval</TabTitleText>}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
title={<TabTitleText>LM Eval</TabTitleText>}
title={<TabTitleText>Evaluations</TabTitleText>}

</EmptyStateBody>
<EmptyStateFooter>
<EmptyStateActions>
<Button variant="primary" onClick={() => navigate('/lmEval/evaluate')}>
Copy link
Contributor

@pnaik1 pnaik1 May 29, 2025

Choose a reason for hiding this comment

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

we need to pass a state with deployed model name and namespace right?

@dpanshug dpanshug force-pushed the lmeval-empty-state branch from 1385fe2 to d736194 Compare May 29, 2025 10:34
@dpanshug dpanshug changed the title LMEval Routes, Empty state setup [WIP] LMEval Routes, Empty state setup May 29, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress This PR is in WIP state label May 29, 2025
* Routes
* Global page
* Context
* Table
* Empty state
* Table toolbar
* Core loader
@dpanshug dpanshug force-pushed the lmeval-empty-state branch from d736194 to 62e108e Compare June 3, 2025 08:49
@dpanshug dpanshug force-pushed the lmeval-empty-state branch from a0f3d7c to ef764b8 Compare June 3, 2025 09:32
@dpanshug
Copy link
Contributor Author

dpanshug commented Jun 3, 2025

Closing this, as created new PR

@dpanshug dpanshug closed this Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress This PR is in WIP state
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants