Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Pin menu: pinboards with the same name share a React key

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
electron, react, typescript
Domain
desktop, frontend

Research direction

Read src/renderer/src/shelf/shelf-app/components/menu/menu.tsx and menu.types.ts, then trace how pinEntries is built in src/renderer/src/shelf/shelf-app/shelf-app.tsx. Reproduce with two pinboards named Work in pnpm demo. Done means both entries render without a React key warning, each checkbox pins the card to its own board, and other menus behave as before.

Written by the indexing model from the issue text.

Description

bug good first issue

Nothing stops two pinboards from having the same name. When they do, the Pin to menu renders both entries with the same React key, and the console shows:

Encountered two children with the same key, `Work`. Keys should be unique so that components
maintain their identity across updates. Non-unique keys may cause children to be duplicated
and/or omitted

To reproduce in pnpm demo: create two pinboards called Work, right-click a card and hover Pin to.

Where to look
  • src/renderer/src/shelf/shelf-app/components/menu/menu.tsx: <MenuItem key={entry.label} … />
  • src/renderer/src/shelf/shelf-app/components/menu/menu.types.ts: the MenuEntry type
  • pinEntries in src/renderer/src/shelf/shelf-app/shelf-app.tsx, which builds one entry per pinboard

A menu's entries don't change order while it's open, so the entry's index is a fine key. Adding an optional id to MenuEntry and setting it to the board's id also works.

Done when
  • With two pinboards named Work, the menu shows both, there's no key warning, and checking each one pins the card to that pinboard
  • The other menus look and behave as before

Whether two pinboards should be allowed to share a name is a separate question. This issue is only about the menu.

Suggested pull request title: fix(shelf): keep same-named pinboards apart in the pin menu


New to OpenPaste? CONTRIBUTING.md covers setup, the code conventions and the checks to run before a pull request (pnpm typecheck, pnpm test, pnpm format, pnpm cleaner). Leave a comment if you're picking this up so nobody doubles up.


Generated by Claude Code

Dominant language
TypeScript
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

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 alexsilver8/openpaste

All issues in alexsilver8/openpaste

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.