Skip to content

good first issue: copy button on rule condition and action text #15

Description

@hvardhan878

Problem

In the Behaviour tab, each rule card shows a WHEN ... condition and a DO ... action. There's no way to copy this text without manually selecting it, which is frustrating when you want to share a rule or paste it into a bug report.

What to build

A small clipboard icon (📋 or SVG icon) that appears on hover next to the WHEN and DO text. Clicking it copies the text to the clipboard and briefly shows a ✓ checkmark.

Acceptance criteria

  • Copy icon appears on hover of the rule condition and action rows
  • Clicking copies the text and shows a transient ✓ for ~1.5 s
  • Works without any new npm dependencies (use navigator.clipboard.writeText)
  • Matches existing dark card style

Files to look at

  • src/renderer/index.html — search for rule-when and rule-do CSS classes and the loadModel() function that renders rule cards
  • No backend changes needed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions