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

refactor: columnpicker remove hard coded value #9342

Merged
merged 1 commit into from
May 10, 2024

Conversation

JComins000
Copy link
Contributor

@JComins000 JComins000 commented May 8, 2024

Ticket

Description

I saw a hardcoded value used in two different places. Here's the location where it's already being defined and used.
https://github.com/determined-ai/determined/blob/main/webui/react/src/pages/F_ExpList/F_ExperimentList.tsx#L1073-L1077

Test Plan

Make sure the column picker looks the same as before
image

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

@JComins000 JComins000 requested a review from a team as a code owner May 8, 2024 23:32
@cla-bot cla-bot bot added the cla-signed label May 8, 2024
Copy link

codecov bot commented May 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 38.56%. Comparing base (3c0eac6) to head (1ee4c40).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9342      +/-   ##
==========================================
- Coverage   45.14%   38.56%   -6.59%     
==========================================
  Files        1230      906     -324     
  Lines      154523   114686   -39837     
  Branches     2405     2404       -1     
==========================================
- Hits        69767    44234   -25533     
+ Misses      84561    70257   -14304     
  Partials      195      195              
Flag Coverage Δ
harness ?
web 36.06% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
webui/react/src/components/ColumnPickerMenu.tsx 0.00% <0.00%> (ø)

... and 324 files with indirect coverage changes

Copy link

netlify bot commented May 8, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 1ee4c40
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/663c0b79b42bd60008d074ef
😎 Deploy Preview https://deploy-preview-9342--determined-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -284,7 +280,7 @@ const ColumnPickerMenu: React.FC<ColumnMenuProps> = ({
),
forceRender: true,
key: canonicalTab,
label: locationLabelMap[canonicalTab],
label: locationLabelMap[canonicalTab as keyof typeof locationLabelMap],
};
})}
/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

tbh i'm not really sure why we have a tabs.length === 1 down two lines. are we planning on using that condition later?

Copy link
Contributor

Choose a reason for hiding this comment

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

the Searches view is a case where we only display columns with location EXPERIMENT, so we don't need the Pivot component and can just display one ColumnPickerTab instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do we ever do that anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks like there's only one reference right now
image

@johnkim-det johnkim-det self-requested a review May 8, 2024 23:53
@johnkim-det johnkim-det self-assigned this May 8, 2024
Copy link
Contributor

@johnkim-det johnkim-det left a comment

Choose a reason for hiding this comment

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

LGTM

@JComins000 JComins000 merged commit 7c26fe1 into main May 10, 2024
91 of 104 checks passed
@JComins000 JComins000 deleted the jcom/columnpicker-question branch May 10, 2024 16:37
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