From 9b8947a198671655c0db5c9c43bd7abc86119c64 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Tue, 11 Nov 2025 12:48:17 -0600 Subject: [PATCH] feat: add download and share buttons to shared worksheet viewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add action buttons to shared worksheet banner for quick actions: **Download Button (⬇️)** - Generates and downloads the worksheet as PDF - Uses current date for generation - Filename includes share ID for reference **Re-share Button (🔗)** - Creates a new share link for the same configuration - Copies link to clipboard automatically - Shows alert confirmation (TODO: replace with toast) **Edit Button** - Renamed from "Edit This Worksheet" to just "Edit" for consistency - Same functionality (opens modal with overwrite warning) All three buttons styled consistently in the blue banner with hover effects. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../src/app/worksheets/shared/[id]/page.tsx | 152 +++++++++++++++--- 1 file changed, 126 insertions(+), 26 deletions(-) diff --git a/apps/web/src/app/worksheets/shared/[id]/page.tsx b/apps/web/src/app/worksheets/shared/[id]/page.tsx index 119602db..f81b166f 100644 --- a/apps/web/src/app/worksheets/shared/[id]/page.tsx +++ b/apps/web/src/app/worksheets/shared/[id]/page.tsx @@ -273,32 +273,132 @@ export default function SharedWorksheetPage() { - +
+ {/* Download Button */} + + + {/* Share Button */} + + + {/* Edit Button */} + +
{/* Worksheet studio layout */}