Skip to content

Content: empty-state Generate button ignores the isCloud restriction #661

Closed

Description

@gkhngyk

Problem

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.

Evidence

Fix

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.

Activity

  1. added
    bug
    good first issue
    on Aug 7, 2026
  2. kn-dev-code commented on Aug 7, 2026

    @kn-dev-code
    Contributor

    Hi @gkhngyk I can work on this issue

  3. gkhngyk commented on Aug 8, 2026

    @gkhngyk
    ContributorAuthor

    @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.

  4. added
    content
    on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcontentgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions