Menu ▾ ▴

#191 fix(crm): unnest pipeline stage, origin, and deal milestones from avatar header flex container

open
nobody
2026-11-20
2026-11-20
Anonymous
No

Originally created by: sumamakhan761

Summary

In the CRM Lead Profile Drawer (LeadProfileDrawer.tsx), the pipeline stage switcher, origin automation, audience list, contact credentials, and the deal milestones stepper are squished into a narrow column on the right side of the avatar instead of taking the full width of the drawer.

Current Behavior

The drawer's top profile section is structured as:

<div className="flex items-start gap-4">
  <div className="relative shrink-0">{/* 64px Avatar */}</div>
  <div className="flex-1 min-w-0">
    {/* Name, @username, follower badges */}
    {/* Stage dropdown */}
    {/* Origin automation badge */}
    {/* Audience list badge */}
    {/* Contact credentials */}
    {/* Deal milestones vertical stepper */}
  </div>
</div>

Because all these elements are nested inside the right-hand child of the avatar's flex container, they are constrained to the right side of the avatar. Meanwhile, sections below them (like Lead Tags and Notes) take up the full 100% width of the drawer, making the layout uneven and cramped.

image

Expected Behavior

  • The avatar and the basic identity info (Name, @username, followers, and primary status badges) should form a compact, self-contained header row.
  • The Stage dropdown, Origin metadata, Contact credentials, and Deal Milestones stepper should sit below the header row as clean, full-width blocks that span the entire width of the drawer.

Where to Look

apps/web/app/dashboard/[companyId]/crm/components/leads/LeadProfileDrawer.tsx

Solution / How to Solve

  1. In LeadProfileDrawer.tsx, find the lead identity badges inside <div className="flex-1 min-w-0">.
  2. Close both <div className="flex-1 min-w-0"> and the outer <div className="flex items-start gap-4"> right after the badge list (</span></div></div></div>).
  3. Move the Stage / Status switcher, Origin Automation & Folder, Audience List, Contact Credentials, and Deal Milestones Stepper into their own full-width div blocks directly beneath the header row.
  4. Remove the trailing duplicate closing </div></div> that previously closed the avatar container at the bottom of the milestones section.

Discussion


Log in to post a comment.