Shelf: deleting your only pinboard while it's open leaves the shelf on an empty board
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
- frontend
Research direction
Read the fallback effect and handleBoardEditorDelete in src/renderer/src/shelf/shelf-app/shelf-app.tsx, then reproduce the deletion flow in pnpm demo. Check that deleting the open pinboard selects History when it is the last board and when other boards remain, and that creating the first pinboard still opens it. Done when both deletion and creation behaviors work as described.
Written by the indexing model from the issue text.
Description
If you delete the pinboard you're looking at and it was your last one, the shelf stays on it. No tab is selected and it says "This pinboard is empty", even though History still has items. Pressing Tab or clicking History gets you back.
To reproduce in the app: create your first pinboard (it opens), then delete it (right-click its tab → Delete… → Delete pinboard).
To reproduce in pnpm demo, which starts with three pinboards: open Replies, then delete Snippets, Brand and Replies.
Deleting the open pinboard while others remain already works: the shelf goes back to History.
Where to look
src/renderer/src/shelf/shelf-app/shelf-app.tsx: the effect under// If the open board is deleted, fall back to history.Itsboards.length &&check skips the fallback when no pinboards are lefthandleBoardEditorDeletein the same file, which deletes the board but doesn't touch the open one
Simply dropping boards.length && looks like the fix, but check that creating your first pinboard still opens it. handleBoardEditorSave switches to the new board as soon as it's created, and the list of boards reloads separately, so for a moment the new board may not be in boards yet. Going back to History in handleBoardEditorDelete when the deleted board is the open one avoids that.
Done when
- Deleting the open pinboard goes back to History with its tab selected, whether or not other pinboards are left
- Creating a pinboard still opens it, both your first one and when you already have others
- You've checked both in
pnpm demoor the app
Suggested pull request title: fix(shelf): go back to history when the open pinboard is deleted
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from alexsilver8/openpaste
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
alexsilver8/openpaste#31 ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
alexsilver8/openpaste#32 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#30 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#29 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#27 ·
All issues in alexsilver8/openpaste
Similar issues
-
🐛 Bug: Calendar work items cannot be opened on mobilePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jaegertracing/jaeger-ui#4596 ·
Maintainers usually reply within 1 day
-
area:tui enhancement platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
anthropics/claude-code#101490 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
netlify/netlify-mcp#75 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day