fix(audience-lists): replace disruptive blurred modal for "See All Lists"...
Instance is an open-source Instagram sales automation platform and CRM
Brought to you by:
sumama
Originally created by: sumamakhan761
In the Audience Lists dashboard (apps/web/app/dashboard/[companyId]/audience-lists/components/AudienceListDashboard.tsx), clicking the "See All Lists" button opens a full-screen popup modal with a dark blurred backdrop (fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs).
Users are forced to scroll within a small nested container (max-h-96 overflow-y-auto) to find and select their lists, disrupting the flow of the dashboard.
AudienceListDashboard.tsx, replace the modal state isAllListsModalOpen with an expansion state:tsx
const [showAllLists, setShowAllLists] = useState(false);tsx
const pinnedLists = audienceLists.filter((l) => l.isPinned).slice(0, 4);
const displayedLists = showAllLists ? audienceLists : pinnedLists;showAllLists with ChevronDown and ChevronUp icons:tsx
{audienceLists.length > 0 && (
<button
type="button"
onClick={() => setShowAllLists(!showAllLists)}
className="inline-flex items-center gap-1 text-xs font-bold text-blue-600 hover:text-blue-800"
>
{showAllLists ? (
<>
<span>Show Pinned Only</span>
<ChevronUp size={12} />
</>
) : (
<>
<span>See All Lists ({audienceLists.length})</span>
<ChevronDown size={12} />
</>
)}
</button>
)}displayedLists.map(...) in the card grid and remove the {isAllListsModalOpen && ( ... )} JSX modal block.