Owner dashboard: lead pipeline + client management #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone — implements the
-adminsurface perconvention-client-project-structure.Repo
ldraney/pal-enterprisesUser Story
As the platform owner (Lucas)
I want an admin panel to view leads, promote them to clients, and manage client accounts
So that I can onboard and support clients without touching the database directly
Context
Per
convention-client-project-structure, every project gets an-adminsurface. For pal-enterprises, this is the owner-only panel where Lucas manages the leads pipeline and client accounts. The/adminroute already exists in the scaffold (admin_controller.rb,admin/index.html.erb) but needs full CRUD for leads and client management. This is the dogfooding instance — pal-enterprises-admin is where Lucas manages his own business, the same way Marcus uses westside-admin.File Targets
Files to modify:
app/controllers/admin_controller.rb— CRUD actions for leads and clientsapp/views/admin/— list, show, edit views for leads and clientsconfig/routes.rb— admin resource routesapp/services/keycloak_client.rb— Keycloak admin API integration for user creation on lead promotionFiles NOT to touch:
app/controllers/dashboard_controller.rb— separate from adminAcceptance Criteria
/adminshows leads pipeline (new submissions, pending review)ownerrole can access/admin— clients get 403-docsand-adminsurfaces visibleTest Expectations
bin/rails testConstraints
Checklist
Related
convention-client-project-structure— the convention requiring this surfaceproject-pal-enterprisesScope Review: NEEDS_REFINEMENT
Review note:
review-1187-2026-05-09Ticket has good structure but multiple scope gaps prevent agent execution.
Blocking issues:
Traceability gaps:
project-pal-enterprisesproject page in pal-e-docsarch-rails-apparchitecture note in pal-e-docsconvention-client-project-structurereferenced in lineage does not exist in pal-e-docsDecomposition needed: 6 AC across 4 distinct concerns (model expansion, role auth, views, Keycloak API). Exceeds 5-minute rule. Route to
skill-decompose-ticket.Admin panel: lead/client management UIto Owner dashboard: lead pipeline + client management