You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Content: empty-state Generate button ignores the isCloud restriction #661
The header's manual Generate button is deliberately hidden on cloud ({!isCloud && (<Button onClick={handleGenerate} …>)}), because opportunities are generated automatically there. But the second Generate button inside the empty-state card renders unconditionally — and the empty state is exactly what a brand-new cloud user sees. They get a manual-generation flow that the product intends to hide.
Wrap the empty-state button in the same !isCloud condition. On cloud, show an informational line instead (e.g. "Opportunities are generated automatically as your tracking data comes in.") so the empty state still explains what will happen.
Acceptance criteria
Self-host: empty state unchanged, Generate button present.
Cloud: no Generate button in the empty state; an explanatory sentence appears instead.
@kn-dev-code assigned — thanks for picking it up! The fix is a one-condition change (wrap the empty-state button in the same !isCloud guard the header button uses) plus an informational line for the cloud case; the issue body has the exact file/line links.
Activity
kn-dev-code commentedon Aug 7, 2026
Hi @gkhngyk I can work on this issue
gkhngyk commentedon Aug 8, 2026
@kn-dev-code assigned — thanks for picking it up! The fix is a one-condition change (wrap the empty-state button in the same
!isCloudguard the header button uses) plus an informational line for the cloud case; the issue body has the exact file/line links.