Skip to content

Add copy to clipboard button for sessions#15

Merged
Reasel merged 4 commits into
masterfrom
feat/copy-session-to-clipboard
Mar 25, 2026
Merged

Add copy to clipboard button for sessions#15
Reasel merged 4 commits into
masterfrom
feat/copy-session-to-clipboard

Conversation

@Reasel

@Reasel Reasel commented Mar 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a clipboard icon next to the delete icon on each session history row
  • Clicking it copies session stats to the clipboard in a readable format:
    Session: My AFK Session
    Length: 15m 32s
    Consistency: 85
    Avg Interval: 1200ms
    Clicks: 47
    
  • Session length is calculated from start/end timestamps and formatted as hours/minutes/seconds
  • Adds hover highlight effect with rounded corners on session icon buttons
  • Adds visual indicator bars below the Consistency and Avg Click Interval stats
    • Consistency: linear scale 0-100 with tick marks every 10
    • Avg Click Interval: logarithmic scale 0-150s with tick marks at key intervals
    • Both use an orange triangle marker to show the current value

Panel preview

Test plan

  • Start and complete a session, verify clipboard icon appears in the history row
  • Click the clipboard icon and paste — verify the format includes session name, length, consistency, avg interval, and click count
  • Verify duration formatting: seconds-only, minutes+seconds, and hours+minutes+seconds
  • Verify consistency indicator shows marker at correct position on 0-100 scale
  • Verify click interval indicator shows marker at correct position on logarithmic 0-150s scale
  • Hover over indicators and verify tooltip text appears

Reasel added 4 commits March 24, 2026 21:45
Adds a clipboard icon next to the delete icon on each session row.
Clicking it copies the session stats including name, duration,
consistency score, average interval, and click count.
Replace hand cursor with background color highlight on hover
for the copy and delete icons in session history rows.
Replace opaque background hover with custom-painted rounded
rectangle using MEDIUM_GRAY_COLOR for better visibility.
Add horizontal bar indicators below each stat card showing the current
value on a scale. Consistency uses a linear 0-100 scale while the
click interval uses a logarithmic 0-150s scale. Both show tick marks,
endpoint labels, and an orange triangle marker for the current value.
@Reasel
Reasel merged commit d6d4f59 into master Mar 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant