Skip to content

fix(DataAppShell): SW-2097 align collapsed sidebar divider under the icon column #153

Merged
boramyi-ts merged 2 commits into
mainfrom
SW-2097-sidebar-collapsed-divider
Jun 24, 2026
Merged

fix(DataAppShell): SW-2097 align collapsed sidebar divider under the icon column #153
boramyi-ts merged 2 commits into
mainfrom
SW-2097-sidebar-collapsed-divider

Conversation

@boramyi-ts

@boramyi-ts boramyi-ts commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

SW-2097 — Sidebar collapsed icons & lines don't align

In the collapsed (icon-only) rail of DataAppShell, two separators used a full-width border-t/border-b that ran edge-to-edge across the 60px rail, so they sat wider than the centered icon column and didn't line up under the icons:

  1. Header divider (app icon → nav icons)
  2. Footer divider (above the user avatar)

The nav icons themselves were already centered; it was these two lines that were off.

Fix

DataAppShell.tsxSidebarBody, collapsed mode only:

  • Drop the full-width borders on the header and footer wrappers.
  • Render a short, centered divider (w-8 mx-auto border-t) in each spot — the same width/treatment as the existing nav-group dividers — so every line aligns under the icon column.
  • Expanded mode is unchanged (keeps the full-width header/footer borders).

Measured after the change: both dividers are centered at the rail midpoint (29.5px), matching the icon centers — all three divider types (header, nav-group, footer) now share one w-8 centered column.

Header divider — before / after (zoomed)

Before After
header before header after

Footer divider — before / after (zoomed)

Before After
footer before footer after

Verification

  • yarn lint — clean (zero warnings)
  • yarn typecheck — clean
  • yarn test:storybook DataAppShell — 13/13 pass

🤖 Generated with Claude Code

In the collapsed rail the header used a full-width `border-b` that ran
edge-to-edge across the 60px rail, so the separator between the app icon
and the nav icons sat wider than the centered icon column (SW-2097).

Drop the full-width border in compact mode and render a short, centered
divider (`w-8`, matching the existing nav-group dividers) so the line
aligns under the icon. Expanded mode keeps the full-width header border.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@boramyi-ts boramyi-ts requested review from a team as code owners June 23, 2026 22:56
@boramyi-ts boramyi-ts temporarily deployed to artifactory-prod June 23, 2026 22:56 — with GitHub Actions Inactive
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ts-lib-ui-kit-storybook Ignored Ignored Jun 23, 2026 10:56pm

Request Review

@boramyi-ts

Copy link
Copy Markdown
Contributor Author

Claude created without my knowing sorry

@boramyi-ts boramyi-ts closed this Jun 23, 2026
The bottom user-menu slot also used a full-width `border-t` in the
collapsed rail, so the separator above the avatar spanned the whole 60px
rail rather than the centered icon column — the same misalignment as the
header divider (SW-2097).

Apply the same treatment: in compact mode render a short centered
divider (`w-8 mx-auto`) above the user-menu slot and drop the wrapper's
full-width border. Expanded mode keeps the full-width border.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 94.75% (🎯 83%)
⬆️ +0.01%
20634 / 21777
🟢 Statements 94.75% (🎯 83%)
⬆️ +0.01%
20634 / 21777
🟢 Functions 93.58% (🎯 74%)
🟰 ±0%
919 / 982
🟢 Branches 88.75% (🎯 81%)
⬆️ +0.01%
3771 / 4249
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/components/composed/DataAppShell/DataAppShell.tsx 97.96%
⬆️ +0.04%
88.7%
⬆️ +0.37%
85.71%
🟰 ±0%
97.96%
⬆️ +0.04%
214-215, 303-308
Generated in workflow #833 for commit 8415273 by the Vitest Coverage Report Action

@boramyi-ts boramyi-ts changed the title fix(DataAppShell): align collapsed sidebar divider under the icon column [SW-2097] fix(DataAppShell): SW-2097 align collapsed sidebar divider under the icon column Jun 24, 2026
@boramyi-ts boramyi-ts merged commit 84c2018 into main Jun 24, 2026
15 of 16 checks passed
@boramyi-ts boramyi-ts deleted the SW-2097-sidebar-collapsed-divider branch June 24, 2026 15:22
@blee-tetrascience

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 0.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants