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

Kt standard table wip #1029

Draft
wants to merge 44 commits into
base: new-kt-table
Choose a base branch
from
Draft

Conversation

santiagoballadares
Copy link
Collaborator

No description provided.

@santiagoballadares santiagoballadares self-assigned this Dec 3, 2024
@github-actions github-actions bot added the package:kotti-ui @3yourmind/kotti-ui label Dec 3, 2024
},
{
display: { decimalPlaces: 2, type: 'numerical' },
filterFn: (row, columnId, filterValue) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

filterFn is exposed in the Column type. Right now its implementation is on the user side. Could be moved into the standard table hook at the expense of leaving less flexibility in terms of the implementation/logic for the filters/values in the table.

/**
* https://github.com/TanStack/table/discussions/4670
*/
const globalFilter = ref<KottiFieldText.Value>(' ')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Apparently Column filters aren't applied until the Global filter is applied. Maybe this was fixed on a more recent version of tanstack table

columnFilters: z
.object({
id: z.string(),
// Zod schema `z.unknown()` incorrectly infers the property as optional
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Zod has issues with the unknown type

@Isokaeder Isokaeder force-pushed the new-kt-table branch 2 times, most recently from 75f64c5 to f001691 Compare December 9, 2024 08:51
@Isokaeder Isokaeder force-pushed the new-kt-table branch 2 times, most recently from 4ee2681 to 793133f Compare December 16, 2024 05:32
@FlorianWendelborn FlorianWendelborn marked this pull request as draft January 2, 2025 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:kotti-ui @3yourmind/kotti-ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants