Skip to content

Commit 9500345

Browse files
author
FlightCore Dev
committed
feat(16-02): enable Share button for viewport URL sharing
- Uncomment shareBtn variable declaration - Wire Share button click handler to handleShareView() - Remove design decision TODO - viewport-only sharing confirmed - Keyboard shortcut Ctrl+Shift+S already functional - Add ts-ignore comment documenting conditional usage
1 parent d153580 commit 9500345

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

viewer/src/main.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ async function init(): Promise<void> {
161161
const routingStatus = document.getElementById('routing-status')!;
162162
const routingProgress = document.getElementById('routing-progress')!;
163163
const openBtn = document.getElementById('open-btn') as HTMLButtonElement;
164-
// TODO: Share feature disabled pending design decision
165-
// const shareBtn = document.getElementById('share-btn') as HTMLButtonElement;
164+
// @ts-ignore - Used conditionally in web-only block (line 1001-1002)
165+
const shareBtn = document.getElementById('share-btn') as HTMLButtonElement;
166166
const themeToggle = document.getElementById('theme-toggle') as HTMLButtonElement;
167167
const themeIcon = document.getElementById('theme-icon')!;
168168
const editorToggleBtn = document.getElementById('editor-toggle') as HTMLButtonElement;
@@ -999,9 +999,8 @@ async function init(): Promise<void> {
999999

10001000
// Share button (web only)
10011001
if (!isDesktop()) {
1002-
// TODO: Share feature needs design decision - share full board state or just viewport?
1003-
// shareBtn.classList.remove('hidden');
1004-
// shareBtn.addEventListener('click', handleShareView);
1002+
shareBtn.classList.remove('hidden');
1003+
shareBtn.addEventListener('click', handleShareView);
10051004
}
10061005

10071006
// Keyboard shortcuts

0 commit comments

Comments
 (0)