Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Paulo Avila
petruz-tasks
Commits
3910f7de
Commit
3910f7de
authored
Jun 15, 2026
by
Paulo Avila
Browse files
melhoria na exibição das tarefas
parent
7264ecf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/tasks/task-board.tsx
View file @
3910f7de
import
{
Pencil
}
from
"
lucide-react
"
;
import
{
CalendarClock
,
CalendarPlus
,
Pencil
}
from
"
lucide-react
"
;
import
{
TASK_STATUSES
}
from
"
@/lib/constants
"
;
import
type
{
Subtask
,
Task
,
WorkspaceMember
}
from
"
@/lib/data
"
;
import
{
formatDate
}
from
"
@/lib/dates
"
;
...
...
@@ -97,9 +97,28 @@ export function TaskBoard({
` (
${
task
.
SubtaskDone
}
/
${
task
.
SubtaskCount
}
)`
}
</
span
>
</
div
>
<
div
className
=
"flex items-center justify-between text-xs text-muted-foreground"
>
<
span
>
{
task
.
AssigneeName
??
"
Sem responsável
"
}
</
span
>
<
span
>
{
formatDate
(
task
.
DueDate
)
}
</
span
>
<
div
className
=
"space-y-1 text-xs text-muted-foreground"
>
<
div
>
{
task
.
AssigneeName
??
"
Sem responsável
"
}
</
div
>
<
div
className
=
"flex flex-wrap items-center gap-x-3 gap-y-1"
>
{
task
.
StartDate
&&
(
<
span
className
=
"flex items-center gap-1"
title
=
"Início"
>
<
CalendarPlus
className
=
"h-3 w-3"
/>
{
formatDate
(
task
.
StartDate
)
}
</
span
>
)
}
{
task
.
DueDate
&&
(
<
span
className
=
"flex items-center gap-1"
title
=
"Vencimento"
>
<
CalendarClock
className
=
"h-3 w-3"
/>
{
formatDate
(
task
.
DueDate
)
}
</
span
>
)
}
</
div
>
</
div
>
{
editable
?
(
<
TaskStatusSelect
...
...
src/components/tasks/task-table.tsx
View file @
3910f7de
...
...
@@ -28,7 +28,7 @@ import { TaskProgress } from "./task-progress";
import
{
TaskProgressEditor
}
from
"
./task-progress-editor
"
;
import
{
TaskStatusSelect
}
from
"
./task-status-select
"
;
const
COLUMN_COUNT
=
6
;
const
COLUMN_COUNT
=
7
;
export
function
TaskTable
({
tasks
,
...
...
@@ -108,26 +108,29 @@ export function TaskTable({
))
}
</
div
>
<
div
className
=
"overflow-hidden rounded-xl border bg-card"
>
<
div
>
<
Table
>
<
TableHeader
>
<
TableRow
className
=
"border-b b
g-muted/40 hover:bg-muted/40
"
>
<
TableHead
className
=
"
text-xs
font-semibold uppercase tracking-wider text-muted-foreground"
>
<
TableRow
className
=
"border-b b
order-border hover:bg-transparent
"
>
<
TableHead
className
=
"
w-full text-[11px]
font-semibold uppercase tracking-wider text-muted-foreground"
>
Tarefa
</
TableHead
>
<
TableHead
className
=
"
text-xs
font-semibold uppercase tracking-wider text-muted-foreground"
>
<
TableHead
className
=
"
whitespace-nowrap text-[11px]
font-semibold uppercase tracking-wider text-muted-foreground"
>
Status
</
TableHead
>
<
TableHead
className
=
"
text-xs
font-semibold uppercase tracking-wider text-muted-foreground"
>
<
TableHead
className
=
"
whitespace-nowrap text-[11px]
font-semibold uppercase tracking-wider text-muted-foreground"
>
Progresso
</
TableHead
>
<
TableHead
className
=
"
text-xs
font-semibold uppercase tracking-wider text-muted-foreground"
>
<
TableHead
className
=
"
whitespace-nowrap text-[11px]
font-semibold uppercase tracking-wider text-muted-foreground"
>
Responsável
</
TableHead
>
<
TableHead
className
=
"text-xs font-semibold uppercase tracking-wider text-muted-foreground"
>
<
TableHead
className
=
"whitespace-nowrap text-[11px] font-semibold uppercase tracking-wider text-muted-foreground"
>
Início
</
TableHead
>
<
TableHead
className
=
"whitespace-nowrap text-[11px] font-semibold uppercase tracking-wider text-muted-foreground"
>
Vencimento
</
TableHead
>
<
TableHead
className
=
"w-[
9
0px]"
/>
<
TableHead
className
=
"w-[
8
0px]"
/>
</
TableRow
>
</
TableHeader
>
<
TableBody
>
...
...
@@ -225,16 +228,14 @@ export function TaskTable({
<
span
className
=
"text-sm text-muted-foreground"
>
—
</
span
>
)
}
</
TableCell
>
<
TableCell
className
=
"py-3"
>
<
span
className
=
"text-sm text-muted-foreground"
>
{
formatDate
(
task
.
StartDate
)
}
</
span
>
</
TableCell
>
<
TableCell
className
=
"py-3"
>
<
div
className
=
"flex items-center gap-2"
>
<
span
className
=
"text-sm text-muted-foreground"
title
=
{
task
.
StartDate
?
`Início:
${
formatDate
(
task
.
StartDate
)}
`
:
undefined
}
>
<
span
className
=
"text-sm text-muted-foreground"
>
{
formatDate
(
task
.
DueDate
)
}
</
span
>
<
DueBadge
dueDate
=
{
task
.
DueDate
}
status
=
{
task
.
Status
}
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment