fastruby / fastruby/ruby_or_rails
[Feature Request] Add a button to copy the snippet code
- 主要语言
- Ruby
- 星标
- 5
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
# 🐛 Problem / Context
When viewing code snippets in a list, it’s sometimes difficult to copy only the intended snippet.
Users often end up selecting extra rows or unrelated text, which slows things down and causes mistakes.
# 🎯 Goal
Make copying code snippets quick, precise, and frustration-free.
# ✅ Done When
Each row that contains a code snippet includes a “Copy” button
Clicking the button copies only the code snippet, nothing else
The action works consistently across all rows where code snippets are displayed
# 💡 Notes (Optional)
The button should be clearly visible but not visually distracting
Bonus points for user feedback (e.g. tooltip or toast: “Copied!”)
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先定位渲染代码片段列表的 view 或 component,并检查该列表的测试方式。跟踪每一行可用的 snippet 值,然后确认每一行都有一个可见的 Copy 操作,该操作只复制该行的 snippet,并在已实现的情况下提供所要求的反馈。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ruby
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100