A newer version of the Gradio SDK is available: 6.20.0
Final UI Architecture (clean version) π¦ LEFT PANEL (Navigation)
Campaign list:
π Campaigns
- Preschool Search
- Brand Campaign
- Local Ads
Click β updates state
π¨ RIGHT PANEL (Workspace) π§± A. Global Header (fixed) π― Ads Dashboard Total Spend | Total Leads | Avg CPL | Active Campaigns π§± B. Campaign Context Banner (ONLY when selected) π Campaign Snapshot Spend | Leads | CTR | CPL | Trend
If no campaign selected β hidden or replaced with placeholder
π§± C. 6 AI INSIGHT CARDS (core system)
Layout:
Row 1: [Ads Analyst] [Budget Optimizer] [Keyword Intelligence]
Row 2: [Risk Detector] [Growth Finder] [Experiment Ideas] π© BEFORE CAMPAIGN SELECTION
Right panel shows:
π Select a campaign to begin analysis
AND:
6 cards are visible BUT greyed out disabled state no click behavior π¦ AFTER CAMPAIGN SELECTION banner appears cards activate clicking triggers expansion π§ CARD BEHAVIOR (important consistency rule)
Each card:
Idle Title only + 1-line hint Clicked Expands in place β loading β MiniCPM explanation β action buttons
No page change ever.
π― 3. Final Simple Design Doc (you can implement directly) π§© Layout Structure
- App Layout
Left: Campaign Navigator (fixed width
25%) Right: Analysis Workspace (75%) π§± 2. Right Panel Structure A. Global Metrics Header (always visible) Total Spend Total Leads Average CPL Active Campaigns B. Campaign Context Banner
Visible only when campaign selected:
Campaign name Spend CTR CPL Trend indicators
If no selection:
show placeholder message C. AI Insight Grid (2x3 layout)
Cards:
Ads Performance Analyst Budget Optimizer Keyword Intelligence Risk Detector Growth Opportunities Experiment Ideas π¨ 3. Visual States STATE 1: No campaign selected
Right panel:
message: βSelect a campaign to begin analysisβ 6 cards greyed out STATE 2: Campaign selected Context banner appears Cards activate (clickable) STATE 3: Card clicked
Inside same card:
loading spinner MiniCPM explanation recommendation
β‘ 4. Key UX Principles Context β Action (banner vs cards) No navigation changes (single workspace) Progressive disclosure (click β expand) Grey-out inactive capability (not hide it)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β HEADER: Global KPIs (always visible) β βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββ€ β LEFT PANEL β RIGHT PANEL β β Campaign List β Workspace β β β β β β [Campaign Context Banner] β β β β β β [6 AI Cards Grid (2x3)] β βββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββ