Skip to content

fix(web): reduce sidebar separators to header and footer - #787

Merged
pikann merged 1 commit into
Paca-AI:masterfrom
robertcoroianu:fix/sidebar-separators
Nov 19, 2026
Merged

pikann merged 1 commit into
Paca-AI:masterfrom
robertcoroianu:fix/sidebar-separators

Conversation

@robertcoroianu

Copy link
Copy Markdown
Contributor

Summary

In a project, the sidebar drew up to seven separators: one under the header, one between each navigation section, and one above the footer. Every section already has its own heading (Interactions, Docs, Plugins, Project; Administration in the workspace sidebar), so the lines between them added clutter without separating anything the headings didn't already.

This keeps the two separators that frame the fixed header (logo and project switcher) and the fixed footer (theme and user menu), and removes the ones between sections in both the project and workspace sidebars. The CSS rule that hid back-to-back separators is no longer needed and is removed.

Most of the diff is re-indentation: removing the separators left the admin and plugin sections inside one-child fragments (noUselessFragments), so those fragments were unwrapped.

Type of Change

  • Other (UI cleanup)

Checklist

  • The change is focused and scoped: sidebar separators only.
  • Related documentation is updated: n/a.
  • New structure or direction is explained clearly: noted in a code comment.
  • I avoided unnecessary detail or premature abstraction.

Note

Plugin-contributed sidebar sections (sidebar.project.section) are now separated only by spacing, so a plugin section without a heading will sit directly under the section above it.

Testing

  • bun run lint, tsc -b and the app-shell tests pass.

🤖 Generated with Claude Code

In a project the sidebar drew up to seven separators: one under the
header, one between each of the navigation sections and one above the
footer. Every section already has its own heading, so the lines between
them added clutter without separating anything the headings didn't.

Keep the two separators that frame the fixed header (logo and project
switcher) and footer (theme and user menu) and drop the ones between
sections, in both the project and workspace sidebars. The CSS rule that
hid back-to-back separators is no longer needed.

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.

ℹ️ Minor suggestion only — the divider cleanup itself looks correct.

Approach: sound — removing the dividers where they are rendered and dropping the now-dead adjacency-hiding rule keeps the change scoped to presentation, and the two separators that frame the header and footer are untouched.

Reviewed changes

  • Project sidebar: all five inter-section <SidebarSeparator />s removed (ProjectNav, Interactions, Docs, the sidebar.project.section extension point, plugin pages, project nav items) and SidebarContent no longer carries the [&_[data-slot=sidebar-separator]+[data-slot=sidebar-separator]]:hidden workaround.
  • Workspace sidebar: separators before the Administration group and the plugin-admin group removed, with the resulting single-child fragments unwrapped — the diff is otherwise pure re-indentation.
  • Comment: the top-of-content rationale is updated to say headings separate sections and separators only frame header/footer.

Every section still renders a SidebarGroup, so group padding continues to provide ~16px between sections. biome check on the file passes.

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

{/* Navigation — switches between workspace and project context.
Sections are set apart by their own headings, so no dividers
between them; separators only frame the header and footer. */}
<SidebarContent>

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.

The rationale in the comment above only holds when the section headings are visible. In the collapsed icon rail those headings are gone — SidebarGroupLabel is forced to opacity-0/-mt-8 under data-collapsible=icon, and ProjectNavItems/CollapsibleSidebarGroup skip rendering the label entirely when isRail — so rail mode now separates sections with padding alone (~16px between adjacent SidebarGroup p-2 boxes). Worth a look at the rail before merging; if the grouping reads too loosely, keeping these dividers only when isRail would preserve the intent.

@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 a8a29c7 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