Skip to content

feat(extension): popup UI with session controls, auth flow, and notes (Week 2 AC 4)#9

Merged
BODMAT merged 6 commits into
developmentfrom
feature/extension-popup
May 21, 2026
Merged

feat(extension): popup UI with session controls, auth flow, and notes (Week 2 AC 4)#9
BODMAT merged 6 commits into
developmentfrom
feature/extension-popup

Conversation

@BODMAT

@BODMAT BODMAT commented May 21, 2026

Copy link
Copy Markdown
Owner

What

Implements the Chrome Extension popup — the primary UI for WorkTrace.

Changes

  • Popup HTML/CSS — BEM structure with neon-tinted dark theme (cyan/purple/yellow/pink on #080812)
  • Session controls — Start / Pause / Resume / Stop with live timer (polling service worker every 1 s)
  • Auth flow — Sign In / Sign Out driven by AUTH_LOGIN / AUTH_LOGOUT / AUTH_GET_STATUS messages
  • Notes — inline note + tags fields; queued as pendingEvents in chrome.storage.local
  • Sync indicator — shows count of pending events; highlights when queue is non-empty
  • Session persistence — timer survives service-worker restart (state stored in chrome.storage.local, elapsed computed from timestamps)
  • Gap 1 fix (from AC 3) — added pauseSession / resumeSession to background/session.ts
  • Dev mode bypassVITE_DEV_MODE=true stores a fake JWT on login click (no Google OAuth needed)

Testing without Google OAuth

VITE_DEV_MODE is already "true" in extension/.env.
Load the unpacked extension → click Sign in with Google → fake JWT is stored automatically.

To reset auth state, paste in the Service Worker DevTools console:

chrome.storage.local.clear().then(() => console.log('cleared'))

@vercel

vercel Bot commented May 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worktrace Ready Ready Preview, Comment May 21, 2026 10:12pm

@BODMAT BODMAT merged commit 68bc2ab into development May 21, 2026
4 checks passed
@BODMAT BODMAT deleted the feature/extension-popup branch May 21, 2026 22:13
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