Skip to content

Commit

Permalink
more sortable columns for reports list
Browse files Browse the repository at this point in the history
  • Loading branch information
olemp committed Dec 12, 2024
1 parent 7cf5d46 commit c28b54e
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions client/pages/Reports/ReportsList/useColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function useColumns() {
showIcon: false
}),
data: {
isSortable: true,
isGroupable: true,
isFilterable: true,
filterType: ProjectFilter
Expand All @@ -57,6 +58,7 @@ export function useColumns() {
customer
}),
data: {
isSortable: true,
isGroupable: true,
isFilterable: true,
filterType: CustomerFilter
Expand All @@ -67,15 +69,33 @@ export function useColumns() {
'project.tag',
t('projects.keyFieldLabel'),
{
minWidth: 160,
maxWidth: 180,
minWidth: 180,
maxWidth: 200,
renderAs: 'projectTag',
createRenderProps: ({ project }) => ({
project,
size: 'small',
displayIcon: true
})
}),
data: {
isSortable: true,
}
}
),
createColumnDef<TimeEntry>(
'role.name',
t('projects.roleFieldLabel'),
{
minWidth: 100,
data: { hidden: true }
}),
createColumnDef<TimeEntry>(
'role.hourlyRate',
t('common.hourlyRateLabel'),
{
minWidth: 100,
data: { hidden: true }
}),
createColumnDef<TimeEntry>(
'startEndDateTime',
t('common.timeLabel'),
Expand Down

0 comments on commit c28b54e

Please sign in to comment.