Skip to content

Add archive/leave boards from dashboard#66

Merged
disnet merged 1 commit into
mainfrom
card/3mf6e6wofp52l
Mar 7, 2026
Merged

Add archive/leave boards from dashboard#66
disnet merged 1 commit into
mainfrom
card/3mf6e6wofp52l

Conversation

@disnet

@disnet disnet commented Mar 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Users can leave joined boards (revokes trust from PDS, removes all local data)
  • Users can archive owned boards (local-only hide, board stays in PDS)
  • Archived boards appear in a collapsible section with unarchive option
  • Board discovery respects archived boards (won't auto-unarchive)

Changes

  • src/lib/types.ts — Added archived?: boolean to Board interface
  • src/lib/db.ts — Added Dexie v11 with archived index
  • src/lib/board-actions.ts — New file with leaveBoard(), archiveBoard(), unarchiveBoard()
  • src/lib/components/BoardCard.svelte — Action menu (archive/leave) with confirmation dialog
  • src/routes/+page.svelte — Filter active vs archived boards, archived section
  • src/lib/appview.ts — Clarified discovery includes archived boards in known set

Test plan

  • Archive an owned board — verify it disappears from main list and appears in "Archived" section
  • Unarchive a board — verify it returns to the main list
  • Leave a joined board — verify confirmation dialog, board removal, and trust revocation
  • Verify board discovery doesn't auto-unarchive previously archived boards
  • Verify no regression on board creation, joining, or deletion

🤖 Generated with Claude Code

- Add `archived` field to Board type (local-only, not synced to PDS)
- Add Dexie v11 with archived index on boards table
- Create board-actions.ts with leaveBoard(), archiveBoard(), unarchiveBoard()
- Leave board: revokes trust from PDS, removes all local board data
- Archive board: hides from dashboard list (local-only soft hide)
- Add action menu (ellipsis) on BoardCard with Archive/Leave options
- Leave shows confirmation dialog before proceeding
- Dashboard filters active vs archived boards
- Collapsible "Archived Boards" section shows archived boards with unarchive
- Discovery respects archived boards (won't re-fetch and auto-unarchive)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@disnet disnet merged commit e01c592 into main Mar 7, 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