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

Add timezone to moving filters on date filter renderers #228

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

Miexil
Copy link
Member

@Miexil Miexil commented Jan 22, 2025

What does this PR do?

Add timezone to moving filters on date filter renderers

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Migrated touched components to Glimmer Components
  • Properly labeled

@Miexil Miexil self-assigned this Jan 22, 2025
@Miexil Miexil requested review from phndiaye and a team as code owners January 22, 2025 15:29
@Miexil Miexil requested review from OwenCoogan and JulienVannier66 and removed request for a team January 22, 2025 15:29
Copy link

linear bot commented Jan 22, 2025

@@ -28,6 +28,7 @@ export type ColumnDefinition = {
export type Filter = {
key: string;
value: string;
extra?: any;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think {timezone: string } as a type here ?

Copy link
Member Author

Choose a reason for hiding this comment

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

pasting linear response here:

Going to reply here, it's an extra field, they are all typed as any throughout the platform because it would be a pain to adapt each different payload everytime.

That being said, this extra payload has just been added to the column filters so that we can pass the timezone payload.
The best I can do, I think, is to change the type to:

extra?: { timezone?: string } | any;

But having that any will mean that pretty much anything will pass and as such the typing is pretty useless 🤷

@Miexil Miexil merged commit 48fef0a into master Jan 23, 2025
3 checks passed
@Miexil Miexil deleted the mb/dra-2154 branch January 23, 2025 13:45
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.

4 participants