What's in this prototype
- The hero above mirrors the real role-page hero used on every /roles/[slug] page (HeroSurface, exposure panel, wage line).
- The only difference is the new Measure Your Role button on the left of the existing Download as PDF button.
- Both buttons would be controlled independently from /AgentAdmin. The proposed flag names mirror the existing PDF flags:
measure_cta_roles,measure_cta_hubs,measure_cta_rankings. - When a flag is off, the corresponding button hides cleanly (no empty gap). When both are on you get the row above. When only one is on, that single button stands alone, centred.
- The Measure Your Role button links to
/startusing a Link, identical to how the nav CTA, floating CTA, and BottomCTA route cold visitors.
If approved, here's the wiring
- Add three flags to DEFAULT_SETTINGS in
src/hooks/useAgentSettings.js:measure_cta_roles,measure_cta_hubs,measure_cta_rankings, defaulting to true. - Add three matching columns in the Base44 AiAgentSettings entity, plus three toggles to /AgentAdmin under a new "Measure Your Role CTA" section that mirrors the existing PDF toggles.
- Wire the new button at the same call site as the PDF button in
RoleRisk.jsx(line ~1100),RoleCategoryHub.jsx(line ~525), andRankings.jsx(line ~415). Each call site gets a flex-row wrapper with both buttons inside, each gated on its own flag.
