Skip to content

fix(web): restore row dividers in Gantt and Table views - #785

Merged
pikann merged 1 commit into
Paca-AI:masterfrom
robertcoroianu:fix/gantt-table-row-dividers
Nov 19, 2026
Merged

pikann merged 1 commit into
Paca-AI:masterfrom
robertcoroianu:fix/gantt-table-row-dividers

Conversation

@robertcoroianu

Copy link
Copy Markdown
Contributor

Summary

Task rows in the Gantt and Table views had no visible separator, which made it hard to follow a row across the screen.

Cause: each row has border-b … last:border-0, but every row is the only child of its own drag-and-drop (and context-menu) wrapper. last: therefore matched every row and removed all the dividers.

Fix:

  • Remove the last: reset and draw a light dashed divider (border-dashed border-border/30). Do the same on the subtask loading/error/"load more" rows and the inline add-task row, so the list looks consistent.
  • Gantt: the hover tint now spans the whole row, including the chart, so a task can be followed out to its bar. Before, only the name column was tinted.
  • Gantt: the sticky name cell uses an opaque mix of the same tint (color-mix). A translucent fill would let bars show through it while the chart is scrolled sideways.

Type of Change

  • Other (UI fix)

Checklist

  • The change is focused and scoped: row dividers in the Gantt and Table views.
  • Related documentation is updated: n/a, no behaviour or interface change.
  • New structure or direction is explained clearly: the last: cause is noted in code comments.
  • I avoided unnecessary detail or premature abstraction.

Testing

  • bun run lint, tsc -b and the interactions test suite pass.
  • Checked manually in the dev stack (Gantt and Table, light theme).

🤖 Generated with Claude Code

Task rows in the Gantt and Table views had no visible separator, so it
was hard to follow a row across the screen.

Each row carried `border-b ... last:border-0`, but every row is the only
child of its own drag-and-drop (and context menu) wrapper, so `last:`
matched every row and stripped all the dividers. Drop the `last:` reset
and draw a light dashed divider instead, also on the subtask
loading/"load more" rows and the inline add-task row so the list reads
evenly.

In the Gantt view the hover tint now spans the whole row, not just the
name column, so a task can be followed out to its bar. The sticky name
cell uses an opaque mix of the same tint: a translucent fill would let
bars show through it while the chart is scrolled horizontally.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ℹ️ No critical issues — two small visual side effects worth a look.

Approach: sound — the last: reset really was the cause (each row is the sole child of its drag/menu wrapper), and removing it is the minimal fix rather than adding per-row wrappers.

Reviewed changes

  • Table rows (task-row.tsx) — last:border-0 dropped and the divider becomes border-dashed border-border/30, so every row keeps its divider.
  • Gantt rows (gantt-view.tsx) — same divider change plus an end-to-end hover:bg-muted/30 on the row; the sticky name cell compensates with an opaque color-mix of the same tint so scrolled bars stay hidden behind it. The color-mix resolves: @theme inline still emits --color-muted/--color-background into @layer theme :root.
  • Subtask and add-task rows (subtask-rows.tsx, add-task-row.tsx) — loading, error, "load more", no-match and inline add rows switched to the same dashed divider so the list reads consistently.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

// Every row carries its own divider (no `last:` reset: each row is the
// only child of its drag wrapper, so `last:` would strip them all) and
// highlights end to end so a task can be followed out to its bar.
className="group flex w-full cursor-pointer border-b border-dashed border-border/30 text-left transition-colors duration-100 hover:bg-muted/30"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rows now always draw a divider, but each group wrapper still draws its own bottom border (gantt-view.tsx:1091, and list-group.tsx:685 for the Table view). Where a group ends on a task row — always in the Gantt, and in the Table view whenever the group has no add-task row — those two 1px borders stack, so group boundaries render 2px while the final group stays 1px. Is the heavier boundary intended? If not, the group-level border is the redundant one now that rows carry their own.

"hover:bg-muted/30 transition-colors duration-150 border-b border-border/20 last:border-0",
// No `last:` reset: each row is the only child of its drag/menu
// wrapper, so `last:border-0` would strip every divider.
"hover:bg-muted/30 transition-colors duration-150 border-b border-dashed border-border/30",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

TaskRow is also rendered by the Home "My tasks" widget through ListGroup (components/home/assigned-tasks-list.tsx:170), so this restyle reaches a surface outside Gantt/Table. There the new trailing divider lands directly on the card's own border, giving the card a doubled bottom edge, and the loading skeleton still uses the old border-border/20 + last:border-0 (assigned-tasks-list.tsx:34), so the divider style visibly changes the moment loading finishes. Worth deciding whether that widget should change too; if it should, the skeleton needs the same classes.

@pikann pikann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Thank you for the contribution! 🚀

@pikann
pikann merged commit 9b07588 into Paca-AI:master Nov 19, 2026
2 checks passed
robertcoroianu added a commit to robertcoroianu/paca that referenced this pull request Nov 19, 2026
Secondary text and hairlines were faded well past readability. The base
tokens were fine on their own (muted text 4.7:1 on white), but
components layered heavy opacity on top: ~380 uses of muted text at
/30-/60 rendered at roughly 1.5-2.3:1, and borders at /10-/30 were
close to invisible (1.04-1.12:1).

Tokens (index.css):
- --muted-foreground: #737373 -> #5f5f5f (light, 6.4:1),
  #888888 -> #a0a0a0 (dark, 7.6:1)
- --border/--input: #d4d4d4 -> #c8c8c8 (light), #2a2a2a -> #3a3a3a (dark)
- --sidebar-border: #e8e8e8 -> #dedede (light), #1e1e1e -> #2a2a2a (dark)

Opacity floors across components (mechanical sweep):
- text-muted-foreground /30-/60 -> /90 (>= 4.5:1 on background, muted
  and secondary surfaces in both themes; /85 would still fail at
  4.48:1), /70-/90 -> full strength, so two tiers remain
- text-sidebar-foreground /30-/50 -> /60 (4.94:1 light, 6.53:1 dark);
  the sidebar has its own foreground token
- border/divide/ring/bg-border /10-/35 -> /50, /40 -> /60; Gantt
  gridlines /12 -> /30 so they stay lighter than row dividers. The
  dashed row dividers from Paca-AI#785 are left as tuned.

The Gantt drag tests located groups by a border class; they now use a
`data-gantt-group` attribute so styling changes don't break them.

Rebuilt on current master (after Paca-AI#784, Paca-AI#785-Paca-AI#787, Paca-AI#789) so the new
file-management components get the same treatment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants