Repository navigation
fix(web): restore row dividers in Gantt and Table views - #785
Conversation
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]>
There was a problem hiding this comment.
ℹ️ 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-0dropped and the divider becomesborder-dashed border-border/30, so every row keeps its divider. - Gantt rows (
gantt-view.tsx) — same divider change plus an end-to-endhover:bg-muted/30on the row; the sticky name cell compensates with an opaquecolor-mixof the same tint so scrolled bars stay hidden behind it. Thecolor-mixresolves:@theme inlinestill emits--color-muted/--color-backgroundinto@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.
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" |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
LGTM! Thank you for the contribution! 🚀
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]>

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:
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.color-mix). A translucent fill would let bars show through it while the chart is scrolled sideways.Type of Change
Checklist
last:cause is noted in code comments.Testing
bun run lint,tsc -band theinteractionstest suite pass.🤖 Generated with Claude Code