Import Google Calendar events as billable time entries into ClickUp timesheets.
Copy the example config and fill in your real client ID:
cp config.json.example config.jsonEdit config.json:
{
"google_client_id": "787917123062-xxxx.apps.googleusercontent.com"
}Your client ID is in the Curotec Google Cloud Console: APIs & Services → Credentials
Under OAuth 2.0 Client IDs, find the entry for this extension and copy the Client ID.
It will look like 787917123062-xxxx.apps.googleusercontent.com.
When creating or editing the OAuth client, you need to add the extension's Chrome ID under Authorized JavaScript origins and Authorized redirect URIs.
Use bdkpjnahpplacaegbglhoilpcpamnkcg as the extension ID for the initial load.
This is the extension ID used during development. After loading the extension in Chrome
for the first time, check chrome://extensions for its actual assigned ID and update
the OAuth client with that value if it differs.
config.jsonis gitignored and will never be committed.manifest.jsononly contains a{{GOOGLE_CLIENT_ID}}placeholder.
node build.jsThis injects your client ID into manifest.json and copies all files to dist/.
If you have archiver installed (npm install archiver), it also produces
dist/gcal-clickup-importer-vX.X.X.zip (named from the manifest version, with
the icons/ folder included).
- Go to
chrome://extensions - Enable Developer mode
- Click Load unpacked and select the
dist/folder — or drag in the zip file if you built one
Open ⚙️ Settings inside the extension and fill in:
- ClickUp API Token — from ClickUp → Settings → Apps → API Token (starts with
pk_) - ClickUp Team ID — the number in your ClickUp URL, e.g.
9017610002
- Click the extension icon
- Select a date and click Load Events
- Events are cross-checked against existing ClickUp entries:
[existing]— same ticket already logged for that time, unchecked by default[conflict]— different ticket but overlapping time, unchecked by default
- Star (☆) tickets you use frequently to pin them to the top of the dropdown
- Adjust billable checkboxes as needed
- Click Import Selected
Click the 📄 CSV button next to "Load Events" and select a .csv file.
CSV format:
title,start,end,ticket,billable,tag
Standup,2026-06-24T09:00:00-03:00,2026-06-24T09:15:00-03:00,CTK-6752,true,
Feature work,2026-06-24T10:00:00-03:00,2026-06-24T12:00:00-03:00,CTK-5678,false,| Column | Required | Notes |
|---|---|---|
title |
Yes | Event title. Do not embed the ticket ID here — use the ticket column |
start |
Yes | ISO 8601 datetime. Explicit TZ offset honored; no offset = local time |
end |
Yes | ISO 8601 datetime. Must be after start |
ticket |
No | Ticket ID (e.g. CTK-1234). Injected into the title so it's detected the same way a Google Calendar event's title code would be. Case-insensitive (lowercased input is upper-cased) |
billable |
No | true/false (also accepts yes/no, 1/0). Blank defaults to billable (true); only an explicit false value marks the row non-billable |
tag |
No | ClickUp tag name for the entry. Pre-selects the row's tag dropdown only if it matches an existing workspace tag (case-insensitive); an unknown tag is ignored, since ClickUp can't accept one that doesn't exist. Not written into the title or description |
- Unknown columns are ignored. Extra columns such as
confidenceorreason(e.g. from an AI-proposed timesheet — see below) pass through harmlessly, so you can upload a review file without stripping helper columns first. - Header row is optional. Auto-detected (case-insensitive) when the first row contains
title,start,end; columns are then matched by name, in any order. With no header, columns are parsed positionally in the ordertitle, start, end, ticket, billable, tag. - One day per file. The date picker auto-sets to the first row's date, and existing-entry conflict detection is scoped to that day — mixing dates in one file will break conflict checks.
- Date picker is auto-set to the date of the first CSV row.
- CSV replaces any previously loaded calendar events.
- Validation blocks the entire import if any row is malformed — the error identifies the row number and what's wrong.
- Render pipeline is identical to calendar events: skip list, ClickUp duplicate detection, ticket combos, billable toggles, click-to-edit titles.
The ticket, billable, and unknown-column handling above are designed so an
assistant (e.g. Claude with Google Calendar access) can read a day's events and
propose a ready-to-upload CSV. A proposed file typically adds two helper columns
the importer ignores:
| Helper column | Purpose |
|---|---|
confidence |
high / medium / low — how sure the assistant is of the ticket guess |
reason |
Short note explaining the match (which rule fired, or why it's a guess) |
Review the proposed file, correct any wrong ticket IDs, and upload it as-is — the helper columns are ignored at import time. Feeding the corrected file back to the assistant improves future guesses (a manual correction-history loop).
You can push one event straight from the Google Calendar web UI without opening the extension popup.
- In
calendar.google.com, click an event to open its detail popover - A ticket-ID field and a ClickUp icon button appear at the left end of the popover's action row (input on the left, button to its right)
- The button is state-aware, reflecting existing ClickUp entries for that timeframe:
- icon only (neutral) — nothing logged yet; clicking pushes immediately
- icon + green ✓ — the same ticket is already logged for that time
- icon + red ⚠ — a different ticket overlaps that time In both the ✓ and ⚠ states the push button is disabled, so you can't create a duplicate or overlapping entry. The ticket field switches to a greyed, read-only view showing the existing entry's ticket ID, the tag dropdown is hidden, and a red delete button appears. Clicking the delete button removes the blocking ClickUp entry (after a confirmation) — once it's gone, the fields re-enable and you can push normally. Deleted entries go to ClickUp's Trash and can be restored there within 30 days.
- The ticket-ID field is always shown. If a ticket ID is detected in the event title it's prefilled so you can confirm it's correct; otherwise the field is empty. Either way it offers live ClickUp search (same as the popup: type 4+ characters to search your assigned tasks, or pick from your frequent/favorite tickets). Changing the ticket re-checks ClickUp and re-evaluates the button's enabled/disabled state.
- A tag dropdown sits between the ticket field and the ClickUp button. Once a valid ticket is set, it loads your workspace's time-entry tags and remembers the tag you last used for that ticket (shared with the popup's per-ticket tag memory). Pick a tag — or leave it on No tag — then click the ClickUp button to push. (The tag dropdown is hidden in the ✓/⚠ states to make room for the delete button.)
The ClickUp time-entry description is cleaned before pushing: any ticket ID in
the event title (e.g. CTK-1234) is stripped out, matching the popup's behavior so
the description reads as the plain event name.
Pushed entries are marked billable by default and are recorded in your frequent-ticket history, just like popup imports.
When is the push button disabled? Detection matches on time overlap with the event's window — same ticket → ✓ (would duplicate), different ticket → ⚠ (overlapping). Either way the push is blocked, and a delete button is offered to remove the blocking entry. This is a deliberately simple guard: it prevents duplicates without trying to merge or update existing entries.
Note: Google Calendar's page markup is not a stable, documented API. If a Google UI update ever hides the button or misreads an event's time, it can be re-tuned in one place — see the
SELECTORSblock andscrape*helpers at the top ofgcal-content.js.
| File | Purpose |
|---|---|
manifest.json |
Extension manifest (MV3). Contains {{GOOGLE_CLIENT_ID}} placeholder; permissions; registers the popup, options page, and both content scripts |
background.js |
Service worker. Handles Google OAuth and all ClickUp API calls (user lookup, fetch entries, task search, task-name resolution, tag fetch, import time entry, delete time entry) plus the ad-hoc timer |
popup.html / popup.js / popup.css |
The toolbar popup: date picker, event list, CSV upload, ticket combos, billable toggles, import |
options.html / options.js / options.css |
Settings page: ClickUp token, Team ID, skip list, debug mode, ticket-history reset, Google sign-out |
content.js |
Minimal content script on ClickUp pages (liveness ping) |
gcal-content.js |
Content script on calendar.google.com: injects the state-aware → ClickUp push button into the event popover, with inline ticket combo and tag dropdown |
gcal-content.css |
Styling for the injected button + inline ticket combo + tag dropdown, matched to Google's native light popover |
build.js |
Injects the client ID from config.json into the manifest, copies all files to dist/, optionally zips |
config.json.example |
Placeholder config shape (safe to commit) |
.gitignore |
Ignores config.json, dist/, and Temp/ |
icons/ |
Extension icons (16/32/48/128px) |
To update the extension, edit source files and re-run node build.js,
then reload the extension at chrome://extensions.
Bugfix: CSV import folded the tag value into the entry title instead of setting it as a tag.
- Fixed CSV tag going into the title. The CSV parser appended the
tagvalue to the event summary (and copied it into the description), so imported entries had the tag text in their title (e.g. "… Misc PM Tasks") rather than a real time-entry tag. The parser now carriestagas a structured field (csvTag) and keeps the title and description clean. Theticketcolumn still gets prepended into the summary so the ticket-detection regex picks it up (then stripped from the display/description bycleanTitle()) — only the erroneous tag-append was removed. - CSV tag now pre-selects the row's tag dropdown, but only when it matches an existing ClickUp workspace tag (case-insensitive); unknown tags are ignored, since ClickUp can't accept a tag that doesn't exist. The import already reads the selected tag from the dropdown, so a matched CSV tag now flows through to the created entry.
- No change to
ticket/billablehandling (already correct in v3.1.2).
- Fixed: duplicated options-page sections. The "Recurrent Events Rules" and "Tag Manager" sections each appeared twice in
options.html. Because HTML element IDs must be unique,getElementByIdbound the logic to the first copy only, leaving the second copy of each as a dead, broken-looking shell.- The duplicate "Recurrent Events Rules" box (the second one) is removed.
- The Tag Manager now loads and refreshes correctly. Its failure to refresh (while still showing previously selected tags) was caused by the same duplicate-ID collision, not a fault in the tag-loading logic — removing the duplicate section restores refresh. Kept the copy whose hint includes the "drag to reorder" note.
- Options-page-only change. No changes to the popup,
background.js, the GCal push panel, the CSV importer, or the timer.
- Fixed: live ticket search in the Google Calendar push panel was unusable. Typing a search term (anything not yet a complete
CTK-1234pattern) erased itself before the search could run. Cause: each keystroke resolved to a null ticket, which triggered a "clean" state re-detection that rewrote the input to the empty ticket value. The push panel's resolve callback now ignores null (mid-search) values and only re-detects once a ticket is actually resolved — by typing a complete pattern or picking a dropdown option. - Build/packaging: zip filename now uses dots,
gcal-clickup-importer-vX.X.X.zip(e.g.gcal-clickup-importer-v3.1.1.zip), previously underscores.build.jsand README references updated to match. - No changes to the popup CSV importer, background handlers, or the timer.
- CSV: dedicated
ticketcolumn. Ticket IDs now live in their own column instead of being embedded in the title. The value is injected into the title internally so downstream detection is unchanged. Case-insensitive. - CSV:
billablecolumn. Acceptstrue/false(alsoyes/no,1/0). Blank defaults to billable; an explicit false value renders the row's billable toggle unchecked and imports it as non-billable. - CSV: unknown columns are ignored. Extra columns like
confidenceandreasonpass through untouched, so an AI-proposed review file can be uploaded without stripping helper columns. - Header columns are now matched by name in any order (previously fixed position). Headerless positional order updated to
title, start, end, ticket, billable, tag. - Documented the AI-proposed-timesheet workflow and the one-day-per-file requirement in the README.
- No changes to
background.js, the GCal push button, or the timer.
Bugfix: popup importer was not attaching tags to created time entries.
- Fixed missing tags on import. In the popup importer, the tag you selected from a
row's dropdown was saved as a per-ticket preference but never read back when the
import ran — so every entry was created with no tag. The row-read at import time now
reads the tag select's current value into the entry. (Regression from the
ticket-search rework, which reshaped how each row is read at import time; the tag
read was dropped then.) The background
IMPORT_TIME_ENTRYhandler was correct all along — it only ever received an empty tag.
Delete the blocking ClickUp entry straight from the Google Calendar popover.
- Delete button in the ✓/⚠ states. When the push button is disabled because an overlapping entry exists (same ticket or different), a red delete button now appears. Clicking it removes that existing ClickUp entry (after a confirmation that names the ticket + time window and notes the 30-day Trash recovery). Once deleted, the popover re-checks ClickUp, the fields re-enable, and you can push normally.
- The tag dropdown is hidden in these states to make room for the delete button; the ticket field still shows the existing entry's ticket as a read-only indicator. (This supersedes v3.0.4's greyed tag display.)
- After a successful push or delete, the popover re-checks state in place instead of needing to be reopened.
- New service-worker message:
DELETE_TIME_ENTRY(DELETE .../time_entries/{timer_id}).detectState()now also returns the matched entry'sidto target the delete. - Delete icon is the supplied inline "remove" SVG, tinted red via
fill: currentColor.
The disabled push button now shows what's already in ClickUp.
- Read-only existing-entry view. When the push button is disabled because an overlapping entry exists (✓ same ticket or ⚠ different ticket), the ticket field and tag dropdown now display that existing entry's ticket ID and tag(s), greyed and locked. Multiple tags are shown comma-separated. This turns the disabled state into an at-a-glance answer to "what's already logged here?" without opening ClickUp.
- Both fields are fully locked in this state (pure indicator); changing the ticket isn't offered here — adjust the times to clear the overlap instead.
detectState()now returns the matched entry's ticket + tag names alongside the state. The existingGET_CLICKUP_ENTRIESquery already requestedinclude_task_tags, so no API change was needed. An async-safe guard keeps the tag-load from clobbering the read-only view.
Reverted the v3.0.2 update-in-place experiment; replaced with a simpler duplicate guard.
- Reverted update-in-place (v3.0.2). Updating an existing entry via
PUT .../time_entries/{timer_id}did not reliably update the tag, so the whole update path was removed (UPDATE_TIME_ENTRYhandler and the create-vs-update branching are gone). Behavior returns to v3.0.1's single create path. - Disable the push button when an entry already exists. In both the ✓ (same ticket already logged) and ⚠ (different ticket overlapping) states, the push button is now disabled rather than warn-but-allow. This is a simpler, reliable way to prevent duplicate/overlapping entries. The neutral state stays enabled. Changing the ticket re-checks ClickUp and re-evaluates the enabled/disabled state.
- Tag dropdown width reduced to 100px (from 120px).
Google Calendar push button could update an existing entry instead of duplicating it.
- Update-in-place from the ✓ state via
PUT .../time_entries/{timer_id}, with a confirm showing the existing vs. new time window. Reverted in v3.0.3 because the tag was not reliably updated on the PUT.
Small follow-up to the Google Calendar push button (two field-tested fixes).
- Clean descriptions on push. Pushing an event from the GCal popover now
strips the ticket ID (e.g.
CTK-1234) out of the ClickUp time-entry description, matching the popup importer's behavior. Previously the raw event title — ticket ID included — was sent verbatim. - Tag dropdown in the popover. Added a tag selector between the ticket field
and the ClickUp button, mirroring the popup's tag logic: it loads the
workspace's time-entry tags (cached via the service worker) and remembers the
tag last used for each ticket through the shared
ticketTagpreference map. GCal pushes previously had no way to set a tag. - New service-worker message:
GET_TAGS(content scripts can't call the ClickUp API directly, so tag fetching routes throughbackground.js).
Milestone release: consolidates the v2.11–v2.12 work and a full code-review pass.
Major fix
- Timer reliability (MV3): the 1-hour warning, auto-stop, badge refresh, and
pause reminder were driven by
setTimeout/setIntervalinside the service worker, which Chrome kills after ~30s idle — so they usually never fired. Migrated the whole timer subsystem tochrome.alarms, which persists across worker restarts and wakes the worker when due. (Newalarmspermission.)
Google Calendar push button (introduced across v2.12.x)
- State-aware ClickUp icon button injected into the event popover; pushes a single event's time to ClickUp. ✓/⚠ glyphs flag already-logged / conflicting entries; push asks for confirmation in those states.
- Always-shown ticket field, prefilled with any detected ID, with live ClickUp search; dropdown shows ticket names; follows the browser light/dark theme.
- Robust injection: survives Google's popover DOM-node reuse and late content render (keyed on event identity; retries briefly).
- Icon inlined as a base64 data URL (no
web_accessible_resourcesneeded).
Popup (v2.11.0)
- Paste of a complete ticket ID no longer pops the dropdown over the value.
- Taller popup (min-height 600px) and event list; 340px dropdown with compact rows.
- Dropdown favorites use color only (no leading ★ glyph).
Housekeeping / review fixes
- Removed unused
scriptingpermission; dedupedhost_permissionsand the ClickUp content-script match (*.clickup.comalready coverscurotec). build.js: zip is now named from the manifest version (gcal-clickup-importer-vX.X.X.zip) and includes theicons/folder (previously omitted from the zip).- Removed dead/duplicate CSS (
.ticket-input-rowin popup.css; the superseded pre-drag-and-drop.tag-checklist/.tag-check-itemblock in options.css). content.js: removed a redundant nestedquerySelectorinGET_TICKET_FROM_DOM..gitignorenow also ignoresTemp/.
- Properly fixed the GCal button not appearing on the first open. Root cause was Google reusing popover DOM nodes across opens: a one-shot attribute marker left the node looking "already injected" so the button was skipped (or showed stale event data). Injection now keys on the event's identity (title + time) and verifies our element is actually present, re-injecting when the node is reused for a different event.
- Fixed the GCal input/button being unclickable (v2.12.5–2.12.6 regression): appending the box to the popover root placed it under Google's content stacking context, which no z-index could escape. Reverted to inserting into the toolbar button row (the v2.12.4 placement), keeping the CSS absolute positioning and the v2.12.5 first-open retry fix.
- Fixed the GCal input and push button being unclickable after v2.12.5: the
absolutely-positioned box was sitting under Google's popover layer. Raised its
z-indexso it's interactive (dropdown stays above it).
- Fixed the GCal button intermittently not appearing until the second time an event was opened: Google sometimes mounts the popover container before its title/time/buttons render. Injection no longer depends on the Edit button being present and now retries briefly (up to ~0.5s) while the popover content finishes rendering.
- The injected box is now absolutely positioned within the popover
(
left: 30px; top: 15px), anchored to the popover itself rather than spliced into Google's button row — more robust against toolbar layout changes.
- Reworked the GCal popover layout to stop the dropdown overflowing into the calendar grid: the whole ClickUp box now sits at the left end of the popover action row, with the ticket input on the left and the push button to its right. The dropdown opens left-aligned, into the popover.
- GCal popover dropdown again shows the ticket name next to each ID. Names
missing from local cache (e.g. frequents built before names were stored) are
now resolved from ClickUp via the background (new
GET_TASK_NAMEShandler), matching the popup's behavior - The GCal ticket field + dropdown now follow the browser/OS theme — light by
default, dark via
prefers-color-scheme— instead of being hardcoded light
- GCal popover now always shows the ticket-ID field, even when a ticket is detected from the title — it's prefilled with the detected ID so you can verify it's the right ticket (and edit it via live search if not)
- GCal push button now shows the ClickUp icon instead of the "→ ClickUp" text
label; the Logged/Conflict states are indicated by a small colored ✓/⚠ glyph
beside the icon
- Icon is inlined as a base64 data URL, so the content script needs no
web_accessible_resourcesentry
- Icon is inlined as a base64 data URL, so the content script needs no
- Narrowed the inline ticket-ID field in the GCal popover (160px → 70px)
- Push from Google Calendar: added a state-aware → ClickUp button to the
event detail popover on
calendar.google.com, left of Edit event- States reflect existing ClickUp entries for that timeframe: → ClickUp (clean), ✓ Logged (same ticket already logged), ⚠ Conflict (different ticket overlaps)
- In the Logged/Conflict states, pushing asks for confirmation first
- If the event title has no ticket ID, an inline field offers full live ClickUp search (same behavior as the popup)
- Reuses existing background handlers (
IMPORT_TIME_ENTRY,GET_CLICKUP_ENTRIES,SEARCH_CLICKUP_TASKS); button is styled to match Google's native light popover - New files:
gcal-content.js,gcal-content.css; newcalendar.google.comhost permission + content-script registration
- Event list (
#events) max-height raised 320px → 386px to use the taller popup - Added a File reference table to this README
- Paste fix: when the ticket field already holds a complete ticket ID (e.g. a pasted
CTK-1234), the suggestion dropdown stays closed so it no longer covers the value - Popup is now a minimum of 600px tall (was content-driven, ~513px)
- Dropdown favorites no longer show a leading ★ glyph — the amber color is the only cue (the per-row ☆/★ favorite toggle button is unchanged)
- Dropdown widened to 340px with tighter, more compact option rows (11px font), so more suggestions are visible at once
- CSV upload: click 📄 CSV to import events from a
.csvfile- Columns:
title,start,end,tag(tag optional, used for ticket ID) - Header row auto-detected; positional fallback if absent
- ISO 8601 datetimes; explicit TZ offset honored, bare = local time
- Date picker auto-set from first row
- Full validation: blocks import on any malformed row with row-level error messages
- Feeds into the same render pipeline (skip list, ClickUp dedup, combos, billable, click-to-edit)
- Columns:
- Ticket search now splits the query into words and requires all of them to
appear in the task name —
"LCI PO"matches"LCI | M2 PO/Packing List..."(previously required a contiguous substring match and missed this case) - Search result cap raised from 5 to 10
- Live ClickUp ticket search in the dropdown:
- Empty input or 1-3 chars → frequent tickets (unchanged)
- 4+ chars → searches your assigned ClickUp tasks by title (max 5 results, 400ms debounce)
- Input starting with CTK- bypasses search
- Results cached per session to avoid duplicate API calls
- Fixed ticket dropdown becoming transparent on validation: opacity is now applied only to title/meta/checkbox elements, never to ancestors of the dropdown, so no stacking context is created where the dropdown lives
- Default date is now yesterday instead of today
- Click-to-edit event title: click any event title to modify the description sent to ClickUp (Enter to confirm, Escape to revert)
- Skip list is now pre-populated on fresh install (Lunch, Break, OOO, Out of office, PTO)
- Fixed skip list intermittently not applying: migrated skipList storage from chrome.storage.sync to chrome.storage.local so all read paths are consistent
- Session persistence: loaded events are saved to storage and restored when the popup reopens
- Added Cancel button to discard the session and return to the date picker
- Added margin-top to .timer-controls for visual separation from ticket name label
- Fixed timer icon alignment: moved ticket name label outside the combo div so it no longer inflates the row height
- Added
ticket-name-label:empty { display:none }to prevent empty labels from taking up space
- Update checker now points to GitHub repo (alberto-curotec/gCal-2-ClickUp)
- Fixed vertical alignment of checkmark and star icons in the timer ticket row
- Removed leading dot from selected count label
- Matched font size of selected count and time sum to event count
- Fixed ticket name label:
applyTicketValidationnow creates the label element AND sets its text — previous versions had a broken reference to an undefinednameLabelvariable
- Fixed ticket name label not appearing in calendar event rows — switched to insertAdjacentElement for reliable placement after the ticket input row
- Ticket name label font size increased to 12px
- Fixed ticket name label placement in calendar event rows — now appears below the ticket input row rather than inside the narrow combo container
- Ticket name now shown below the ticket input after validation in:
- Calendar event rows
- Timetracker ticket input
- Timetracker confirmation panel
- Clears when ticket ID changes or is invalid
- Fixed Recurrent Events Rules not pre-filling ticket IDs in popup — the getMatchingRule call was missing from renderEvents after a previous refactor
- Renamed "Event Rules" section to "Recurrent Events Rules"
- Fixed ticket names not showing in Event Rules dropdown for new rule rows
- Fixed popup horizontal scroll caused by wide dropdown (reduced to 270px)
- Fixed popup vertical scroll caused by dropdown pushing layout instead of overlaying (z-index and overflow fixes)
- Fixed ticket suggestions dropdown in Event Rules — was rendering as a plain list instead of a positioned overlay; fixed CSS scoping and z-index
- Event Rules ticket input now shows favorite and frequent ticket suggestions dropdown on focus, same as the popup ticket inputs
- Fixed "Load upcoming events" button not responding — added proper error handling for chrome.runtime.lastError and undefined response cases
- Added Event Rules in ⚙️ Settings:
- Load upcoming calendar events (next 2 weeks) as rule suggestions
- Click a suggestion to create a rule, or add manually with title + time
- Each rule has ticket ID (validated), billable toggle, tag dropdown
- Matching: title contains (case-insensitive) + optional time (HH:MM)
- Priority: title+time match > title only > time only
- On event load, matching events auto-fill ticket, billable and tag
- Fixed ticket suggestions dropdown width (min 300px, no longer clipped to the narrow ticket input width)
- Ticket suggestions dropdown now shows all options without a scrollbar
- Tag Manager checklist height doubled (260px → 520px) to show more tags
- Ticket suggestions dropdown now shows up to 8 frequent tickets (was 5), plus up to 3 favorites, for a total of 11 suggestions
- Tag Manager moved above Favorite Tickets in settings
- Tag Manager checklist now supports drag-and-drop reordering — order is preserved in enabledTags and restored on next open
- Favorite tickets now have an optional tag dropdown in settings — pre-fills the tag dropdown in the popup when that ticket is selected
- Added Tag Manager in ⚙️ Settings:
- Fetches all workspace tags from ClickUp on first open
- Checklist lets you select which tags appear in the dropdown
- Refresh button to reload tags from ClickUp
- Select all / Select none shortcuts
- Tag dropdowns in popup only show enabled tags
- Added optional tag selector to time entries:
- Tags fetched from ClickUp workspace time entry tags API (cached 10 min)
- Tag dropdown appears to the right of the ticket input after validation
- Ticket input narrowed to half-width to make room for the tag dropdown
- Tag preference saved per ticket and pre-fills on next use
- Tag also available in timetracker confirmation panel
- Tag sent to ClickUp when logging time entries
- Added selected event count next to event count (e.g. "11 events found · 3 selected")
- Fixed auto-stop losing tracked time — confirm panel state is now saved to storage before the timer is cleared, so time is never lost on auto-stop
- Notification Stop button also saves confirm state correctly
- Starting a new timer is blocked while a confirmation panel is pending
- Notification message updated to clarify time is saved
- Added elapsed time badge on the extension icon:
- Green badge shows elapsed minutes/hours when timer is running (e.g. 14m, 1h)
- Orange badge when timer is paused
- Badge clears when timer is stopped or auto-stopped
- Updates every 30 seconds, restores correctly after browser restart
- Fixed pause button not appearing when timer starts
- Added Pause/Resume to the timetracker:
- ⏸ Pause button (orange) appears next to ⏹ Stop when timer is running
- ▶ Resume button (green) replaces Pause when timer is paused
- Elapsed time is preserved correctly across pause/resume cycles
- Paused state persists across popup close/reopen
- Chrome notification fires every 5 minutes while paused as a reminder
- Added automatic update checker — popup shows a banner when a newer version is available on Bitbucket, with a direct link to the repository
- Improved setup documentation:
- OAuth Client ID section now links directly to the Curotec Google Cloud Console credentials page
- Added instructions for using bdkpjnahpplacaegbglhoilpcpamnkcg as the initial extension ID when setting up OAuth
- ClickUp Team ID now pre-filled with the Curotec workspace ID (9017610002) so new users don't need to look it up
- Timetracker now detects ticket ID from the ClickUp DOM when the URL doesn't contain it (e.g. inbox view) — reads from the task label button using the data-test="task-view-task-label__taskid-button" selector, with a fallback to scanning the page text
- Added billable preference per ticket:
- Favorites: each favorite row in settings now has a Billable toggle (checked by default), saved immediately on change
- Frequent tickets: billable status is saved every time a time entry is imported, so the last-used status is remembered
- Priority: favorite setting > last-used > default (billable)
- Pre-fills automatically in event row billable checkboxes on load and when a ticket is selected from the dropdown
- Pre-fills in timetracker confirmation panel when timer stops or ticket ID is changed
- Removed temporary forced debug logging — debug mode back to settings toggle
- Fixed applyTicketValidation not applying isProtected check — previous edits were not persisting to file; verified and reapplied correctly
- Forced debug logging always on temporarily to diagnose [existing] checkbox issue
- Fixed applyTicketValidation re-enabling protected checkboxes on valid tickets
- Fixed [existing] rows being re-enabled after ticket validation — runValidation empty-id path was unconditionally re-enabling all checkboxes including protected rows
- Fixed [existing] events getting re-checked after ticket validation — applyTicketValidation now skips re-enabling checkboxes on rows that have a status-warning or status-danger class
- Fixed [existing] checkbox not being disabled — HTML attribute alone was unreliable; now also sets disabled imperatively via JS after the element is added to the DOM
- Added debug logging to status detection loop for diagnosing [existing] checkbox issue
- Fixed [existing] events not being disabled — checkbox attribute was not being applied correctly in HTML string; now uses explicit checked="checked" and disabled="disabled" forms
- Fixed bug where [existing] and [conflict] events were still checked and enabled — they are now unchecked and disabled to prevent duplicate entries
- Added total selected time sum displayed next to the event count (green, updates dynamically as checkboxes are toggled)
- Added ticket ID validation to the timetracker ticket input:
- Pre-filled/auto-detected tickets validated on load
- Typing validates after 600ms debounce
- Dropdown selections validate immediately
- Same ⏳/✔/✖ icons as calendar rows and confirm panel
- Added ticket ID validation against ClickUp API for both calendar events and
the timetracker confirmation panel:
- Calendar events: pre-filled ticket IDs validated on load (300ms stagger), manually entered IDs validated on demand (600ms debounce)
- ⏳ shown while checking, ✔ yellow if valid, ✖ red if not found
- Invalid rows are grayed out, checkbox unchecked and disabled
- Row restores to normal when a valid ticket ID is entered
- Timetracker: ticket validated on blur/debounce, Log Time stays disabled until both ticket is valid and description is filled
- Timetracker confirmation panel improvements:
- Added mandatory Description field (3 lines) — Log Time stays disabled until filled
- Description is sent as the ClickUp time entry description (not the ticket ID)
- Removed +/- duration buttons — rounded duration shown as plain text
- Raw tracked time shown in top right corner of the panel for reference
- Timer section hides when calendar events are loaded and reappears after import completes or when Load Events is clicked again
- Full housekeeping rewrite of popup.js:
- Removed duplicate cleanTitle() function
- Fixed ticket ID detection to use rawTitle (pre-clean) not cleaned title
- Removed dead filter in getFrequentTickets
- Unified dropdown builder into single buildDropdown() used by both event list and timer combos
- Removed all leftover debug code and dead blocks from previous attempts
- Consistent wireCombo() with onSelect callback throughout
- Fixed star not highlighting on first dropdown selection — complete rewrite of wireTimerCombo confirmed in place with working DOM node handlers
- Complete rewrite of wireTimerCombo — uses DOM nodes with direct per-item mousedown handlers, synchronous dbg() logging
- Fixed dbg() helper to cache debug mode synchronously so logs work inside event handlers (previously async storage read caused logs to be missed)
- Added global mousedown tracker and dropdown open log for debugging
- Rewrote dropdown item rendering to use createElement and attach mousedown handlers directly to each item instead of innerHTML + event delegation
- Fixed dropdown click not firing — switched to mousedown+mouseup pair with preventDefault to capture selection before blur closes the dropdown
- Replaced event-based dropdown selection with polling + click approach to reliably detect value changes regardless of blur/mousedown race conditions
- Fixed star sync — blur was calling syncStar with empty value before mousedown completed; onSelect now only fires on explicit input changes and dropdown selection
- Switched dropdown click handler to document-level event delegation to fix star sync on first selection
- Restored debug logs for dropdown and star sync, gated behind the Debug Mode setting in options — enable it to see [GCal→ClickUp] logs in the console
- Fixed star not highlighting on dropdown selection — root cause was that innerHTML re-renders on each keystroke were destroying the mousedown listener; switched to event delegation on the parent container which survives re-renders
- Fixed star not highlighting on dropdown selection — root cause was that innerHTML re-renders on each keystroke were destroying the mousedown listener; switched to event delegation on the parent container which survives re-renders
- Fixed star highlight on dropdown selection using preventDefault on mousedown to stop the input blur from firing before the value is set
- Fixed star not highlighting on first dropdown selection — blur event was firing before input.value was set, causing syncStar to read an empty value; onSelect now fires synchronously in mousedown before blur can clear the input
- Fixed star not highlighting on first dropdown selection — syncStar now reads directly from chrome.storage.local instead of the async getFrequentTickets(), eliminating the race condition on first open
- Fixed timer star not highlighting after selecting a favorite from the dropdown
- Star now correctly turns yellow on dropdown selection, typing, and paste
- Timer star icon now reliably highlights yellow when the selected ticket is in the favorites list — fixed timing issue where star was checked before the dropdown wiring completed, and added sync when selecting from dropdown
- Timer confirmation panel now persists across popup close/reopen — ticket ID, duration and billable state are saved to storage and restored when you reopen the popup, so tracked time is never lost until you explicitly Log or Discard
- Favorite ticket ID input is now shorter (12 char width) with maxlength enforced
- Add favorite from settings now validates the ticket against ClickUp API:
- Yellow ✔ and task name shown when ticket exists
- Red ✖ and error message when ticket not found
- Add button stays disabled until validation passes
- Validation triggers automatically 600ms after typing stops, or on blur
- Task name is fetched from ClickUp and stored automatically (read-only)
- Timer star icon now correctly highlights on load when the auto-detected or restored ticket ID is already a favorite
- Added Ad-hoc Timer below the date picker:
- Auto-detects ticket ID from the active ClickUp tab URL
- Editable ticket input with favorites + frequent ticket dropdown and star button
- ▶ Start / ⏹ Stop button with live HH:MM:SS counter
- Timer persists across popup close/reopen via chrome.storage.local
- At 1 hour: Chrome notification fires with Continue / Stop buttons
- No response within 1 minute: timer auto-stops
- On stop: confirmation panel with editable ticket ID, duration (rounded up to nearest 5 min, adjustable in 5 min steps), billable checkbox (default on), and Log Time / Discard buttons
- Updated extension icon with revised version
- Added extension icon (ClickUp + Google Calendar combo) in all required sizes: 16×16, 32×32, 48×48, 128×128
- Icon appears in the Chrome toolbar, extensions page, and Chrome Web Store listing
- Every event now shows an editable ticket ID input, pre-filled when a ticket ID is detected from the event title
- Ticket ID badge removed from title display (it now lives solely in the input)
- Star button reads the current input value at click time, so you can favorite a ticket after editing it
- Favorite tickets can now be fully managed from ⚙️ Settings:
- Add a ticket by ID and optional title directly on the settings page
- Edit a ticket's title inline with a ✓ save button
- Remove any favorite with the ✕ button
- Previously favorites could only be added via the popup star and removed from settings
- Ticket ID is now stripped from the event title both in the popup display and when sent to ClickUp as the time entry description (e.g. "Fix bug CTK-123" becomes "Fix bug")
- Added Favorite Tickets — star (☆) any ticket with a detected ID to pin it to the top of the dropdown; stars turn yellow when active
- Favorites list in ⚙️ Settings shows ticket ID + name with a remove (✕) button
- Dropdown now shows favorites first (up to 3), then frequent tickets, deduped
- Ticket ID suggestions dropdown now shows task name alongside ID
(e.g.
CTK-1640 – Gen Admin) - Task names fetched from ClickUp API on first use and cached locally
- Added Reset ticket history button in ⚙️ Settings to clear frequency data and start fresh
- Ticket ID input replaced with a combo dropdown showing the 5 most-used tickets from the last 30 days (rolling window, auto-pruned)
- Ticket use frequency stored in
chrome.storage.localand updated on every successful import
- Import Google Calendar events as ClickUp time entries via the ClickUp REST API (no DOM scraping)
- Cross-check calendar events against existing ClickUp entries for the selected day:
[existing]badge for already-logged entries,[conflict]badge for time overlaps - Both badges uncheck the event by default to prevent duplicates
- Billable checkbox per event (checked by default)
- ClickUp user timezone detected and displayed below the event list
- Skip List in settings — keywords that auto-deselect matching events
- Debug Mode toggle in settings — writes detailed logs to the browser console
- OAuth Client ID stored in
config.json(gitignored) and injected at build time viabuild.js, keepingmanifest.jsonsafe to commit - ClickUp API Token and Team ID stored in
chrome.storage.localvia ⚙️ Settings