advanceStep was not passing the progress row id, so upsertPlaybookProgress
treated every advance as a new insert instead of updating the existing row.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use defaultValue instead of value for the Loop Path input since it
only saves on blur, not on every keystroke.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
AccountLeads: clicking a lead now opens a full detail modal with
executive summary, outreach hook, talking points, signals, contacts,
renewal context, and action buttons.
Leads list: show lead generation date in the top line of each card.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The dropdown sends capability_name values but the query was filtering on
the capability_id column. Add capability_name filter support to getLeads
and use it from the page.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add full leads pipeline: Lead/LeadRun types, 3 new DB tables (leads,
leads_runs, leads_config), 12 CRUD functions including syncBriefsFromDisk
and exportAccountsForLoop, 12 API actions for leads lifecycle management.
New pages: /leads (filterable lead cards with expand/action), /leads/admin
(run controls, config, run history). AccountLeads component in account
detail view. New Leads scorecard on Executive Overview. Sidebar nav entry.
Also fixes account detail activity list using raw.activities to show all
activities regardless of date filter.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Split the Activities column into Activities (occurred) and Planned
(future) to match the Executive Overview's District Performance chart.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executive Overview now shows a District Performance bar chart with
Activities (occurred), Planned (future), and Accounts Touched per
district. Planned activities now count toward the account's touch
data so scheduling future engagement flips an account to "touched."
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The global filter caused confusion — activities saved with future dates
were silently filtered out, making it appear saves didn't work. Subviews
can add their own filtering where it makes sense.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Playbook steps are stored as simple string arrays in the database,
but the rendering code expected PlaybookStep objects with step/title/
description/duration fields. Handle both formats with a typeof check.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Clickable priority badge with dropdown to change High/Medium/Low
- New account.priority API action for lightweight single-field update
- Larger priority badges on account cards (text-[10px] font-bold)
- Add FedEx Freight Inc. to database, remove TechFarce
- Update 17 AD assignments from FY26 team mapping spreadsheet
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Pipeline Movement Tracker with waterfall chart and snapshot capture
- Forecast Call Workspace with inline deal overrides and lock history
- Forecast Accuracy tracking against locked snapshots
- Win/Loss Analysis with rate breakdowns by stage, competitor, deal size, play
- Playbook Effectiveness dashboard with conversion funnel and step drop-off
- Account engagement trends with 12-week sparklines and direction badges
- Analytics sidebar navigation with collapsible submenu
- Data layer: forecast_locks, forecast_overrides tables, pipeline movement API
- Fix Turbopack function hoisting issues in Sidebar and db.ts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The overlay was only in the account list return block, not the account
detail return block, so clicking an activity set state but never rendered.
Duplicated the overlay into the selectedAccount detail view.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Make account names and activity items clickable across all views:
- Account Explorer activity timeline items open detail overlay
- Pipeline table and deal detail link to Account Explorer
- Implementation kanban cards link to Account Explorer
- Executive Overview NBA account names link to Account Explorer
- Playbooks account progress links to Account Explorer
- Activities overlay and Follow-Ups view link to Account Explorer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Activities with future dates are automatically tagged as Planned. Once
the date passes they become Pending Follow-Ups requiring resolution.
- Added Status column to activities (Planned/Completed/Did Not Occur)
- Built Follow-Ups subview with expandable cards, outcome capture,
and Create Next Step workflow for scheduling follow-on activities
- Upcoming Planned table shows scheduled future activities
- Executive Overview gains Meetings Scheduled and Follow-Ups Pending KPIs
- Planned/Follow-Up badges appear in the activity detail table
- Admin page includes Status field for activities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Subtitles added noise without value. Stripped subtitle props from all 8
PageHeader calls, removed subtitle display from TopBar, and simplified
the PageTitleContext and PageHeader interfaces to title-only.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- New CPM field on AccountRecord type, DB schema, and migration
- Seed "David Stefan" as CPM for 20 specified accounts
- CPM filter dropdown on Account Explorer (alongside AD and IMS BA)
- CPM shown on account cards, account detail view, and activity overlay
- CPM column added to admin data table
- upsertAccount includes CPM in insert/update
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PageHeader now sets title via context instead of rendering inline.
TopBar displays the current page title and subtitle in the left area
that was previously an empty spacer. Content area gains ~40px of
vertical space on every page.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Slider now filters $0-$500K in $50K increments (10 steps)
- Timeline data points and account labels are clickable to open account detail
- Add "Create Opp" button in Pipeline section with inline form (stage, amount,
forecast, probability, close date, product, next step)
- Add "Add Activity" button in Activity Timeline with inline form (type, date,
contact, outcome, notes)
- Both forms save via admin API and refresh dashboard data
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collapsible SVG timeline showing Next Renewal and Anchor Contract dates
for all filtered accounts. Color-coded account names by opportunity status
(green=won/late stage, yellow=early stage, black=lost, gray=none). Includes
dollar amount slider filter, Today marker, and year/quarter gridlines.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds 14 new features across the dashboard:
- Deal Risk Scoring (0-100) with risk factors on pipeline deals
- Account Health Score with multi-factor analysis on account cards
- Next Best Action Engine on Executive Overview
- Account Notes with pin/edit/delete in activity overlay and account detail
- Stakeholder Contact Map with role, sentiment, email, LinkedIn
- Competitive Intelligence Tracker with multi-select competitors and filtering
- CSV/Excel Export on accounts, activities, and pipeline pages
- Data Quality Dashboard in admin with completeness scoring
- Campaign Playbook Templates with 5 default plays and account progress tracking
- Goals & District Targets with quarterly tracking and progress bars
- Weekly Status Report (printable) and Executive Summary (printable)
- Activity Effectiveness Scoring showing pipeline conversion by activity type
- Mobile Activity FAB for quick activity logging on mobile
- Multi-User Auth (NextAuth + Google OAuth, @broadcom.com domain, role-based)
Also adds Phase 2 API route, scoring utilities, sidebar navigation updates,
and database schema extensions for notes, contacts, snapshots, playbooks,
and district targets.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Full-featured sales campaign dashboard replacing Looker Studio with
responsive Next.js app. Includes Executive Overview, Account Explorer
with priority algorithm, Activities with detail overlay, Pipeline/Opps
with deal panels, Implementation tracking, and Data Admin with CSV
import and CRUD operations.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>