Repository navigation
Add Tempo extension - #22643
Add Tempo extension#22643
Conversation
- refactor(tempo): rebrand the extension as `Tempo` to prepare for further integrations - feat(tempo): support custom date and log total on success - feat(tempo): implement extension to list worklogs and add new ones - Initial commit
|
Congratulations on your new Raycast extension! 🚀 You can expect an initial review within five business days. Once the PR is approved and merged, the extension will be available on our Store. |
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR introduces a new "Tempo" extension for Raycast that provides comprehensive time tracking functionality integrated with both Tempo and Jira APIs. The extension enables users to log work hours against Jira issues, view historical worklogs grouped by date, and manage their time tracking workflow efficiently. The implementation follows Raycast extension conventions with proper TypeScript configuration, clean service layer architecture, and comprehensive utility functions for duration parsing and date handling.
The extension consists of two main commands: "Add Worklog" for creating new time entries and "List Worklogs" for viewing and managing existing entries. It integrates with both Tempo's time tracking API and Jira's issue management API to provide features like issue selection from favorites, recent activity, assigned issues, and project browsing. The codebase demonstrates good separation of concerns with dedicated service files for API interactions, utility functions for common operations, and proper error handling throughout.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
extensions/tempo/package.json |
5/5 | New extension definition with two commands, proper Tempo/Jira API preferences, and standard dependencies |
extensions/tempo/src/list-worklogs.tsx |
4/5 | Main React component for worklog management with pagination, editing, and favorites functionality |
extensions/tempo/src/services/jira-auth.service.ts |
4/5 | Jira authentication service with Basic Auth and account ID caching using LocalStorage |
extensions/tempo/src/services/tempo.service.ts |
4/5 | Tempo API service layer providing authenticated requests with Bearer token authentication |
extensions/tempo/src/services/jira.service.ts |
4/5 | Jira API service with generic request helper and batch issue fetching functionality |
extensions/tempo/src/services/jira-issues.service.ts |
5/5 | Comprehensive Jira issue service with search, assigned issues, and project filtering |
extensions/tempo/src/services/jira-recent-activity.service.ts |
4/5 | Service for fetching recent user activity from Jira using JQL queries |
extensions/tempo/src/utils/date.ts |
3/5 | Date utility functions with potential timezone handling issues |
extensions/tempo/src/utils/duration.ts |
5/5 | Robust duration parsing and formatting utilities supporting multiple input formats |
extensions/tempo/src/utils/worklogs.ts |
5/5 | Worklog grouping and sorting utilities for organizing time entries by date |
extensions/tempo/src/utils/favorites.ts |
5/5 | Favorites management system using LocalStorage for persistent issue bookmarks |
extensions/tempo/src/types/worklog.ts |
5/5 | Well-structured TypeScript interfaces for worklog data and API responses |
extensions/tempo/CHANGELOG.md |
5/5 | Proper changelog format with template string and comprehensive feature list |
extensions/tempo/README.md |
5/5 | Complete documentation with setup instructions and usage examples |
Confidence score: 4/5
- This PR appears ready to merge with high confidence, introducing a well-architected new extension with comprehensive functionality
- Score reflects robust implementation with proper error handling, service abstraction, and following Raycast conventions, with only minor timezone concerns in date utilities
- Pay close attention to
src/utils/date.tsfor potential timezone-related issues that could affect date comparisons across different user timezones
19 files reviewed, 5 comments
- refactor(tempo): use `showFailureToads` to improve error handling - refactor(tempo): rebrand the extension as `Tempo` to prepare for further integrations - feat(tempo): support custom date and log total on success - feat(tempo): implement extension to list worklogs and add new ones - Initial commit
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This review covers only the changes made since the last review, not the entire PR. The developer has addressed previous feedback by refactoring error handling throughout the Tempo extension to use showFailureToast from @raycast/utils instead of manually creating failure toast notifications. This change affects both add-worklog.tsx and list-worklogs.tsx, replacing verbose showToast({ style: Toast.Style.Failure, ... }) calls with the more concise utility function. This refactoring reduces code duplication, improves consistency, and follows Raycast extension best practices by utilizing the provided utility functions.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/tempo/src/add-worklog.tsx | 5/5 | Successfully refactored all6error handling locations to use showFailureToast utility instead of manual toast creation |
| extensions/tempo/src/list-worklogs.tsx | 3/5 | Partially refactored error handling but contains incorrect usage where objects are passed to showFailureToast instead of Error instances |
Confidence score: 3/5
- This PR has some issues that need to be fixed before merging due to incorrect API usage
- Score lowered due to two instances in
list-worklogs.tsxwhereshowFailureToastis called with object parameters instead of Error instances, which doesn't match the function's expected signature - Pay close attention to
extensions/tempo/src/list-worklogs.tsxlines 102-108 and 241-246 where invalid parameters are passed toshowFailureToast
2 files reviewed, no comments
- refactor(tempo): use `showFailureToads` only in error handling - refactor(tempo): use `showFailureToads` to improve error handling - refactor(tempo): rebrand the extension as `Tempo` to prepare for further integrations - feat(tempo): support custom date and log total on success - feat(tempo): implement extension to list worklogs and add new ones - Initial commit
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This review covers only the changes made since the last review, not the entire PR. The recent changes to the Tempo extension replace multiple instances of the recommended showFailureToast utility from @raycast/utils with verbose manual showToast implementations across two key files: add-worklog.tsx and list-worklogs.tsx.
These changes convert concise error handling patterns like showFailureToast("Error Title", "Error Message") into explicit toast configurations with manual Toast.Style.Failure styling. While functionally equivalent, this approach increases code verbosity and moves away from Raycast's recommended utilities for common operations.
The modifications affect error handling for scenarios such as invalid durations, missing dates, duplicate favorites, and worklog management operations. This change pattern appears consistently across both files, suggesting a deliberate refactoring decision rather than isolated edits.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/tempo/src/list-worklogs.tsx | 3/5 | Replaced showFailureToast utility with manual showToast calls for error handling |
| extensions/tempo/src/add-worklog.tsx | 3/5 | Converted 5 error handling sections from showFailureToast to verbose manual toast implementations |
Confidence score: 3/5
- This PR moves away from recommended Raycast utilities without clear justification, reducing code maintainability
- Score reflects the departure from established best practices and increased code verbosity, despite functional correctness
- Pay close attention to the error handling patterns in both files to ensure consistency with Raycast extension guidelines
2 files reviewed, no comments
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good to me, approved 🔥
|
Thanks a lot @pernielsentikaer! 🎉 |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@gdarchen). Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag. |
- set RefreshStatus on all command calls - update dependencies - fix(scheduler): add missing code changes - package-lock.json update - fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS - Pull contributions - update changelog - docs: update CHANGELOG for background refresh alert feature - feat: add background refresh status alert to scheduled command form - Update CODEOWNERs (b30fad6) - Add httpperf extension (raycast#22809) - Update CODEOWNERs (a1b96be) - Add git extension (raycast#22550) - Update CODEOWNERs (9c35408) - Add logos-launcher extension (raycast#22366) - Update CODEOWNERs (792ccbd) - Add crypto-portfolio-tracker extension (raycast#22516) - Update CODEOWNERs (7c738cc) - chore: update github username (raycast#22634) - Update CODEOWNERs (2009369) - feat(screenocr): add option to disable sound and toast message (raycast#22559) - feat: Vision Support with Pixtral Models and Clipboard Integration (raycast#22724) - Update CODEOWNERs (76861a7) - Update deepcast extension (raycast#22830) - Update CODEOWNERs (4e55cf4) - [Sink] windows support + shortcuts + modernize (raycast#22850) - chore(sdk-scw): migrate to new sdk (raycast#22777) - Improve regex pattern used for Jira issue key detection (raycast#22833) - Update freeagent extension (raycast#22818) - Update CODEOWNERs (0fe6eb9) - [JWT Decoder] Update dependencies (raycast#22411) - Update CODEOWNERs (05e1779) - Add grokipedia extension (raycast#22519) - Update CHANGELOG.md (raycast#22832) - [VLC] Add commands for speed and history (raycast#22800) - Update CODEOWNERs (630baf9) - Update search-router extension (raycast#22823) - Update CODEOWNERs (660ff27) - Add excel-formula-beautifier extension (raycast#22578) - Update CODEOWNERs (f46e7f5) - Add json-resume extension (raycast#22499) - Update vps-explorer extension (raycast#22819) - Update CODEOWNERs (fae2c29) - Update prism-launcher (raycast#22801) - Update CODEOWNERs (6c53c0e) - Update video-downloader extension (raycast#22810) - Update CODEOWNERs (b4006be) - Add vps-explorer extension (raycast#22507) - [Ligue-1] Update extensions (raycast#22806) - Update `Coolify` extension - delete project (new action) (raycast#22794) - Update CODEOWNERs (f6d7e48) - Add `Firefly III` extension (raycast#22795) - Update CODEOWNERs (cfb46f5) - Add AI by vercel extension (raycast#22804) - Update review expectations message in pr-bot (raycast#22734) - Change fetch URL and parse frontend version (raycast#22751) - Update CODEOWNERs (61c928e) - fix(extension): fix zen-browser opening new tab in private window in windows (raycast#22767) - Update raycast-zoxide extension (raycast#22775) - Update browser bookmarks extension (raycast#22778) - Update CODEOWNERs (5898b65) - Add rule-of-three extension (raycast#22773) - Update twitch (raycast#22770) - Update fathom extension (raycast#22760) - [Postiz] v2 month till EoM + posts in markdown (raycast#22774) - Update CODEOWNERs (ad1c866) - Update twitch (raycast#22746) - Update CODEOWNERs (584953d) - Add Shelve extension (raycast#22287) - Update CODEOWNERs (342955a) - Add ray-code extension (raycast#22755) - Update qbittorrent (raycast#22756) - Update CODEOWNERs (c282ff1) - Update uploadthing (raycast#22763) - Update cloudflare-warp extension (raycast#22765) - Update CODEOWNERs (38c5ec8) - Add `Papra` extension (raycast#22761) - Update CODEOWNERs (ba06e8c) - add: Orshot extension (raycast#21715) - [ivpn] minor fix: error handling in logout command (raycast#22757) - Update CODEOWNERs (977815a) - Update steam (raycast#22730) - Update CODEOWNERs (52b198d) - feat(imessage-2fa): add support for the 2FA from Epos Card Japan (raycast#22593) - Update browser history extension (raycast#22749) - Update `Appwrite` extension - Show Sites, Deployments, Variables (raycast#22754) - [Multilinks] Add Perplexity Comet browser support (raycast#21476) - Update anna-s-archive extension (raycast#22739) - Update CODEOWNERs (fceb40c) - [ccusage] feat: enhance Node.js path resolution and CLI execution flexibility (raycast#22740) - Update silent-mode extension (raycast#22738) - Update CODEOWNERs (8101bc2) - AppGrid - Smart app launcher with grid view and category grouping (raycast#22709) - Update CODEOWNERs (c6c796f) - Add silent-mode extension (raycast#22732) - feat(ray-so): add nuxt theme preferences (raycast#22733) - Update CODEOWNERs (6de71ca) - Add pi-drill extension (raycast#22714) - Update CODEOWNERs (043ad9b) - Update bitbucket extension (raycast#22708) - Update CODEOWNERs (57cbf4b) - Add ping-menu extension (raycast#22299) - Docs: Update the utils docs - Update CODEOWNERs (d3ea74a) - Add udemy-coupons extension (raycast#22713) - Update CODEOWNERs (2dfb48e) - Update qbittorrent (raycast#22728) - Update CODEOWNERs (7c6269c) - Add dice-tiles extension (raycast#22021) - FuelX: Remove vulnerable, but unused, dependencies. (raycast#22727) - LingoRep: Fix security vulnerabilities. (raycast#22726) - Update CODEOWNERs (9a3fcb4) - Add zshrc-manager extension (raycast#22314) - Update CODEOWNERs (6f5ff61) - Update parallels-virtual-machines extension (raycast#22676) - Update CODEOWNERs (a92f1b8) - Add tex2typst extension (raycast#22667) - Update CODEOWNERs (dbdf418) - feat(sound-search): new extension for searching sounds 🎵 (raycast#22590) - Update skyscanner-flights extension (raycast#22723) - Update CODEOWNERs (1931677) - Add rhttp extension (raycast#22359) - Update `Capacities` extension - Maintenance + Windows Support (raycast#22694) - Update CODEOWNERs (6f7ed84) - Add `NetNewsWire` extension (raycast#22717) - [Chatwoot] search contacts + show unread convo count (raycast#22719) - Add Ghostty terminal support to Claude Code Launcher (raycast#22706) - Update knowyourmeme extension (raycast#22705) - Feature mistral medium (raycast#22633) - Update CODEOWNERs (10b7497) - Handle the search favourite space error (raycast#22689) - Update CODEOWNERs (85f8818) - Update timezone-buddy extension (raycast#22652) - Update CODEOWNERs (10af08b) - Extension: cloudflare (raycast#22660) - feat(chatgpt-search): Make query parameters configurable, simplify extension (
Description
Note
Opens after the
jira-tempoextension of the following PR was renamed totempo.#22502
I created a new extension to interact with Tempo and Jira, so as to be able to add worklogs and view those of the past days.
Features
Screencast
vcompress_52.MOV
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder