[Good first issue] 为研究分享文案附上 Trail 项目链接

Open Beginner friendly
#73 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
electron, react, typescript
Domain
content

Research direction

The share-text footer is built in packages/shared/src/export/card.ts around lines 162-176, and the copy action lives in packages/ui/src/components/research/ExportMenu.tsx around lines 97-109. Start with the existing footer assertions in packages/shared/src/export/card.test.ts, run bun test packages/shared/src/export/card.test.ts, and check that the fixed repository URL appears exactly once in both the normal and redacted share paths. Done means the copied text ends with https://github.com/ydflow/Trail and the tests pass.

Written by the indexing model from the issue text.

Description

enhancement good first issue help wanted

场景

把报告的分享文案发到群聊或论坛时,读者看得到页脚 Trail research snapshot,但没有入口去了解 Trail 或复现体验。用合成报告调用 reportToShareCard(),已经核实纯文本没有仓库地址。

验收标准

  • 使用「复制分享文案」时,文本末尾包含一条固定的项目入口 https://github.com/ydflow/Trail,可从复制结果直接打开。
  • 用现有 fixture 验证链接只出现一次,同时覆盖正常的报告内容和既有脱敏分享路径。

源码起点

最小贡献可以从纯文本页脚及相关断言开始。测试入口 bun test packages/shared/src/export/card.test.ts。

认领前先说明准备完成的范围,再评论 /claim。参与方式见 #7。

Dominant language
TypeScript
Stars
206
Forks
37
Avg merge
8h 8m
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ydflow/Trail

All issues in ydflow/Trail

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.