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

Use AG Grid filter types #12072

Merged
merged 23 commits into from
Jan 23, 2025
Merged

Use AG Grid filter types #12072

merged 23 commits into from
Jan 23, 2025

Conversation

marthasharkey
Copy link
Contributor

@marthasharkey marthasharkey commented Jan 17, 2025

Pull Request Description

ag-filters-numeric
ag-filters-date

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.
  • If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
    or the Snowflake database integration, a run of the Extra Tests has been scheduled.
    • If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

Copy link

github-actions bot commented Jan 17, 2025

🧪 Storybook is successfully deployed!

📊 Dashboard:

@marthasharkey marthasharkey marked this pull request as ready for review January 20, 2025 12:52
@marthasharkey marthasharkey changed the title Wip/mk/change filter types Use AG Grid filter types Jan 21, 2025
Comment on lines 331 to 334
case 'Integer':
case 'Float':
case 'Decimal':
case 'Byte':
Copy link
Contributor

Choose a reason for hiding this comment

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

This could use isNumericType

toValue: string
fromValue: string
}
//The filter value can be a single value for comparisons such as 'equals' or 'greater than,' a list for 'is in' filtering, or two values that define a range.
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be a doc comment

Comment on lines 17 to 26
type FilterAction =
| 'equals'
| 'notEqual'
| 'greaterThan'
| 'greaterThanOrEqual'
| 'lessThan'
| 'lessThanOrEqual'
| 'inRange'
| 'blank'
| 'notBlank'
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
type FilterAction =
| 'equals'
| 'notEqual'
| 'greaterThan'
| 'greaterThanOrEqual'
| 'lessThan'
| 'lessThanOrEqual'
| 'inRange'
| 'blank'
| 'notBlank'
type FilterAction = keyof typeof ActionMap

@marthasharkey marthasharkey added CI: Ready to merge This PR is eligible for automatic merge CI: No changelog needed Do not require a changelog entry for this PR. labels Jan 23, 2025
@mergify mergify bot merged commit 49cb150 into develop Jan 23, 2025
39 of 42 checks passed
@mergify mergify bot deleted the wip/mk/change-filter-types branch January 23, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants