Skip to content

Add clocky extension - #31067

Closed
jeffnawroth wants to merge 4 commits into
raycast:mainfrom
jeffnawroth:ext/clocky
Closed

jeffnawroth wants to merge 4 commits into
raycast:mainfrom
jeffnawroth:ext/clocky

Conversation

@jeffnawroth

@jeffnawroth jeffnawroth commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

Screencast

Checklist

- Add Raycast Store screenshots
- Prepare clocky for Raycast Store submission
- chore: update dependencies to latest versions
- Merge pull request raycast#5 from jeffnawroth/deps/update-all-latest
- chore: update @raycast/api to 2.3.1
- chore: update @raycast/utils to 2.3.1
- chore: update typescript to 6.0.3
- chore: update eslint and safe dev dependencies to latest
- fix: freeze the detected sleep-gap duration on the clock-out suggestion
- feat: auto-detect forgotten clock in/out via status tick gaps
- fix: release hardening & cleanup for Clocky 1.0 (raycast#1)
- fix: update repository name from chrono to clocky in issue tracker documentation
- feat: add triage labels documentation for issue tracking
- feat: add triage labels documentation for issue tracking
- feat: add documentation for agent skills and issue tracking
- feat: add estimated work end calculation and time formatting utilities
- Rename project from chrono to clocky
- feat: add time tracking features with clock in/out, pause/resume, and session history
- first commit
@raycastbot raycastbot added new extension Label for PRs with new extensions platform: macOS labels Sep 13, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@greptile-apps

greptile-apps Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds a new time-tracking extension with local storage.

The PR appears safe to merge based on the changes reviewed.

What we checked:

  • Future open entries saved: The manual save actions run through forms that reject future starts. The other commands start open entries at the current time.

Summary

Clocky adds Raycast commands for tracking work sessions, breaks, and time balances. It also adds daily and weekly views, editable time records, and menu-bar reminders for missed clock-ins or clock-outs.

  • Work time and breaks are saved as sessions.
  • People can review and adjust entries, including vacation days.
  • Today, Week, and Status show time totals and reminders.

Reviews (4) · Last reviewed commit: "Update clocky extension"

Comment thread extensions/clocky/src/history.tsx Resolved
Comment thread extensions/clocky/src/history.tsx Resolved
Comment thread extensions/clocky/src/history.tsx Resolved
Comment thread extensions/clocky/src/week.tsx Resolved
Comment thread extensions/clocky/src/storage.ts Resolved
Comment thread extensions/clocky/package.json Resolved
…ore hygiene

- Reject Session adds/edits that overlap another Session in time.
- Reject Session edits that would strand an existing Pause outside the new bounds.
- Reject Pause adds/edits that overlap another Pause on the same Session (was warn-only).
- Close every open Pause on Clock Out, not just the first one found.
- Normalize Work Days per Week (floor, clamp 1-7) once at the preference boundary.
- Source preference types from the generated Preferences type instead of hand-rolled casts.
- Drop the unused @raycast/utils dependency.
- Add CONTEXT.md and an ADR recording the write-time-validation decision.
Comment thread extensions/clocky/src/history.tsx Resolved
isPauseWithinSession allowed an open Pause to remain valid against a
Session that had just gained an end, since it only checked the pause's
own start/end against the session bounds. That left a Pause running
forever with no active Session to resume it through Toggle Pause.

A closed Session now requires every Pause within it to be closed too,
closing the same hole in updateSession, addPause, and updatePause at
once since they all route through this helper.
@jeffnawroth
jeffnawroth marked this pull request as ready for review September 13, 2026 16:26
@0xdhrv 0xdhrv self-assigned this Sep 28, 2026

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution 🔥

The previous review findings look addressed, and the Store screenshots look good.

I found one remaining edge case in Adjust Entries:

  • Could you prevent creating/editing an open session with a future start time? Since an entry without an end is treated as the active session immediately, a future open session currently blocks normal Clock In and makes Status report the user as working before that time.
  • The same applies to open pauses: a future pause without an end is considered active immediately, and toggling Pause can then close it with an end time earlier than its start.

Please either reject future starts for open sessions/pauses or make the active-state logic account for the start timestamp.

Thanks!


I converted this PR into a draft until it's ready for the review, please press the button Ready for review when it's ready and we'll have a look 😊

@0xdhrv
0xdhrv marked this pull request as draft September 28, 2026 08:44
- Merge branch \'contributions/merge-1790874926569\'
- Pull contributions
- Reject open Sessions/Pauses that start in the future
- Reject Session edits that leave a Pause open
- Close every open Pause on Clock Out
- Reject overlapping Pauses on Add/Edit
- Reject Session edits that strand a Pause outside new bounds
- Reject overlapping Sessions on Add/Edit
- Use generated Preferences type in storage.ts, drop unused @raycast/utils
- Normalize Work Days per Week at the preference boundary
- Add ADR-0001 and CONTEXT.md for Session/Pause validation domain
@jeffnawroth

Copy link
Copy Markdown
Contributor Author

Thanks! Adjust Entries now rejects saving an open session or pause whose start time is in the future (you'll see a failure toast asking you to set an end time or pick an earlier start). Closed entries are unaffected. This keeps the active-state logic unchanged, since a future open entry can no longer be stored.

@jeffnawroth
jeffnawroth marked this pull request as ready for review October 1, 2026 17:18

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jeffnawroth 👋

Thanks for your contribution 🔥 Nice local session/break tracker — write-time Session/Pause validation, the menu-bar Status with forgotten clock-in/out hints, and the Store screenshots all look solid. Also appreciate the follow-up on the future open-entry edge case.

Here's everything I found in this pass:

Blocking

  • Please remove planning docs that shouldn't ship with the Store extension: docs/adr/0001-write-time-session-pause-validation.md, docs/agents/domain.md, docs/agents/issue-tracker.md, docs/agents/triage-labels.md, and the docs/ tree.
  • Please remove agent scaffolding files: CLAUDE.md, CONTEXT.md, and similar. Keep user-facing README.md / CHANGELOG.md / metadata/ only.
  • Clocky reads as a coined brand without saying what the extension does. Please rename the Store title to something like Clocky - Time Tracker (or Clocky - Session Tracker), and rename the extension folder + package.json name to match (kebab-case, e.g. clocky-time-tracker).

As mentioned in our docs here ↗

Optional

  • When renaming, consider setting each command subtitle to Clocky so bare titles like Today / Week / Status stay discoverable under the brand in root search.

When the blocking items are done, press Ready for review. I've converted the PR to a draft until then 😊

Feel free to reach me here or on Slack if anything is unclear.

@0xdhrv
0xdhrv marked this pull request as draft October 1, 2026 20:59
@jeffnawroth jeffnawroth mentioned this pull request Oct 2, 2026
5 tasks done
@jeffnawroth

Copy link
Copy Markdown
Contributor Author

Superseded by #31845 — renamed to Clocky - Time Tracker (clocky-time-tracker), set every command subtitle to Clocky, and removed the agent/planning docs (CLAUDE.md, CONTEXT.md, docs/) as requested. Thanks for the review!

@jeffnawroth jeffnawroth closed this Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants