fix: show sort state on column header#18950
Merged
eunjae-lee merged 1 commit intomainfrom Jan 28, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
d106375 to
31636e4
Compare
eunjae-lee
commented
Jan 28, 2025
Comment on lines
+316
to
+317
| {header.column.getIsSorted() === "asc" && <Icon name="arrow-up" className="h-4 w-4 shrink-0" />} | ||
| {header.column.getIsSorted() === "desc" && <Icon name="arrow-down" className="h-4 w-4 shrink-0" />} |
Contributor
Author
There was a problem hiding this comment.
show sorting state
Comment on lines
+309
to
+315
| <div | ||
| className="truncate" | ||
| title={ | ||
| typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : undefined | ||
| }> | ||
| {header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext())} | ||
| </div> |
Contributor
Author
There was a problem hiding this comment.
truncate header label, and apply "title" attribute if possible
| fetchNextPage, | ||
| isFetching, | ||
| }); | ||
| const { sorting, setSorting } = useDataTable(); |
Contributor
Author
There was a problem hiding this comment.
Not directly related to this PR, but this sets states and options within DataTableWrapper, so that we don't have to do this in actual components like UserListTable, RoutingFormResponsesTable, etc.
Comment on lines
248
to
249
| enableRowSelection: true, | ||
| columnResizeMode: "onChange", | ||
| debugTable: true, |
Contributor
Author
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (01/28/25)1 reviewer was added to this PR based on Keith Williams's automation. |
Contributor
E2E results are ready! |
MuhammadAimanSulaiman
pushed a commit
to hit-pay/cal.com
that referenced
this pull request
Feb 25, 2025
|
Hi @calcom team, I'd like to fix this issue. My Approach:
Relevant Experience:
Timeline: 1-2 days Ready to start! Best, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What does this PR do?
This PR adds sorting state on column headers.
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Try sorting on /insights/routing or org member list.