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

[DT-1081] Typescriptify the filters file #2746

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

s-rubenstein
Copy link
Contributor

Addresses

I wanted to make this typescript before I went chasing bugs down.

Summary


Have you read Terra's Contributing Guide lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@s-rubenstein s-rubenstein requested a review from a team as a code owner December 6, 2024 16:35
@s-rubenstein s-rubenstein requested review from fboulnois and cinyecai and removed request for a team December 6, 2024 16:35
Copy link
Contributor

@fboulnois fboulnois left a comment

Choose a reason for hiding this comment

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

looks good 👍

@s-rubenstein s-rubenstein requested review from pshapiro4broad and removed request for cinyecai December 9, 2024 15:03
Copy link
Member

@pshapiro4broad pshapiro4broad left a comment

Choose a reason for hiding this comment

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

Looks OK, but maybe datasets doesn't need to be passed to filter items.

export const FilterItemList = (props) => {
interface FilterItemListProps {
category: string;
datasets: DatasetTerm[]
Copy link
Member

Choose a reason for hiding this comment

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

This declares datasets but this prop is not extracted below. Is the idea that it will be needed in the future?

max: number;
minCategory: string;
maxCategory: string;
datasets: DatasetTerm[];
Copy link
Member

Choose a reason for hiding this comment

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

This also appears to be unused

Comment on lines 9 to 10
import { Button, TextField, Typography } from '@mui/material';
import { Checkbox } from '@mui/material';
Copy link
Member

Choose a reason for hiding this comment

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

Not related to this PR, but I think these two imports can be merged into one

@s-rubenstein s-rubenstein merged commit b9c97e7 into develop Dec 9, 2024
9 checks passed
@s-rubenstein s-rubenstein deleted the sr/dt-1081-typescriptify-filters branch December 9, 2024 20:06
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.

3 participants