From f1c06a5a1f2d5a84f0120db942c1d4fea6df4fc7 Mon Sep 17 00:00:00 2001 From: BOHDAN MATULA <99603423+BODMAT@users.noreply.github.com> Date: Tue, 2 Jun 2026 23:43:37 +0300 Subject: [PATCH] fix: prod release hardening - fixed extension ID, scroll fix, minor polish (#26) * fix(extension): hardcode prod URL + fixed extension ID via manifest key * docs: update extension install instructions for prod release * fix(dashboard): call lenis.resize() on route change to fix scroll on direct page load * fix(dashboard): footer link points to releases page * fix(extension): NOTE_ADD handler now responds to avoid message port closed error --- README.md | 11 ++++----- dashboard/app/dashboard/layout.tsx | 2 +- dashboard/components/smooth-scroll.tsx | 25 ++++++++++++++++---- extension/.env.example | 21 ++++------------- extension/src/background/index.ts | 32 +++++++++++++++----------- extension/src/manifest.ts | 1 + 6 files changed, 50 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 2eb7313..83c51e6 100644 --- a/README.md +++ b/README.md @@ -91,17 +91,14 @@ The extension card should appear with no errors. For HMR-rebuild during active d ### Load from `.zip` (without source code) -```bash -cd extension -npm run zip # builds and creates worktrace-extension.zip -``` +Download `worktrace-extension.zip` from the [latest GitHub Release](https://github.com/BODMAT/worktrace/releases/latest), then: -Then in Chrome: - -1. Unzip `worktrace-extension.zip` to any folder +1. Unzip to any folder 2. Open `chrome://extensions` → **Developer mode** → **Load unpacked** 3. Select the unzipped folder +No `.env` needed — the production dashboard URL and OAuth client ID are baked into the release build. + ## Verifying it works 1. **Dashboard** — відкрий `http://localhost:3000`, натисни "Sign in with Google" → має відкритись `/dashboard` з даними. diff --git a/dashboard/app/dashboard/layout.tsx b/dashboard/app/dashboard/layout.tsx index d8c4bc7..aaf25b7 100644 --- a/dashboard/app/dashboard/layout.tsx +++ b/dashboard/app/dashboard/layout.tsx @@ -19,7 +19,7 @@ export default async function DashboardLayout({