Skip to content

feat: copy-link for board cards and calendar events - #77

Draft
adam4813 with Copilot wants to merge 2 commits into
mainfrom
copilot/add-link-to-child-element
Draft

feat: copy-link for board cards and calendar events#77
adam4813 with Copilot wants to merge 2 commits into
mainfrom
copilot/add-link-to-child-element

Conversation

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Board and calendar note types have child elements (cards, events) stored as individual files in companion dot-folders, but there was no way to obtain an embeddable link (![[path]]) to those children from the UI.

Changes

Client-side path helpers

  • board-format.ts: cardDotFolder(boardPath) + cardFilePath(boardPath, cardId) — browser-safe equivalents of the server-side helpers in card-store.ts
  • calendar-format.ts: eventDotFolder(calendarPath) + eventFilePath(calendarPath, eventId) — same pattern for events

Produced link format: ![[notes/.myboard.cards/card-xxx.md]]

Board cards — two entry points

  • Right-click context menu (board-view.tsx): "Copy link" added as the first item
  • ··· overflow popup (board-card.tsx): 🔗 Copy link button added to the expanded card menu; boardPath threaded through BoardColumn → BoardCard

Calendar events

  • Event details panel (event-details.tsx): 🔗 Copy link button in the panel header; calendarPath prop added and passed down from CalendarView

- Add cardDotFolder/cardFilePath helpers to board-format.ts
- Add Copy link item to board card right-click context menu
- Add Copy link to board card expanded ··· popup menu
- Thread boardPath through BoardColumn → BoardCard
- Add eventDotFolder/eventFilePath helpers to calendar-format.ts
- Add Copy link button to calendar event details panel header
- Pass calendarPath to EventDetails from CalendarView

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: adam4813 <3011917+adam4813@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ability to get a link to a child element for embedding feat: copy-link for board cards and calendar events Aug 28, 2026
Copilot AI requested a review from adam4813 August 28, 2026 02:27
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.

Add ability to get a link to a child element, for embedding

2 participants