Skip to content

Commit

Permalink
Refactor to be standalone expansion of the original extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
extempl committed Sep 7, 2016
1 parent 7f5d8f2 commit 8cd494c
Show file tree
Hide file tree
Showing 29 changed files with 40 additions and 2,401 deletions.
41 changes: 2 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,3 @@
# customization of the Harvest Chrome extension
# YouTrack support for Harvest Time Tracker extension

Currently based on version 2.1.2 in the
[Chrome Store](https://chrome.google.com/webstore/detail/harvest-time-tracker/fbpiglieekigmkeebmeohkelfpjjlaia)

## Additional features compared to the official version:

* Track time in [JetBrains YouTrack](http://www.jetbrains.com/youtrack/). Timer icon appears on the
full issue view, and on the popup in the agile view when you double-click an issue card.
Your YouTrack must be configured to force SSL (in YouTrack global settings).
* Basecamp: Fixes an apparent bug with URL links from Harvest reports to Basecamp, even in
extension version 2.04. (Doesn't fix previous time entries, only new ones.)
* Basecamp: Timer icon appears on closed issues too.
* Harvest: When viewing a detailed time report or the uninvoiced time report on the Harvest
website, you can click the hours in the far right column to jump to the timesheet for that
date and employee. This makes it easier to edit time entries when viewing the report for
a client, such as to change the task type (e.g. from billable to non-billable) or the
description.

## Installation

1. Go to [Releases](https://github.com/extempl/harvest-chrome/releases) in this GitHub repository.
1. Download the .crx for the latest release.
1. Then in Chrome go to [chrome://extensions](chrome://extensions).
1. Optionally tick "Developer mode" at the top.
1. Drag the .crx into the browser.
1. You can delete the .crx after that.
1. If you repeat later with a newer version it _should_ automatically replace the previous version.

## Working on the extension

1. Clone this repository.
1. Then in Chrome go to [chrome://extensions](chrome://extensions).
1. Optionally tick "Developer mode" at the top.
1. Delete an existing .crx-based version, if any (it won't have "Source" or "Reload" links).
1. Drag the `harvest-chrome-extension` subfolder from the checked-out repository folder into the browser.
1. Don't move or delete the folder after that.
1. Make code changes in the `harvest-chrome-extension` subfolder. Then just go back to [chrome://extensions](chrome://extensions) and click "Reload" to test.
1. Bump the version number in `manifest.json`.
1. Commit and push your changes.
This extension adds support for YouTrack for [Harvest Time Tracker](https://chrome.google.com/webstore/detail/harvest-time-tracker/fbpiglieekigmkeebmeohkelfpjjlaia) extension.
Binary file added chrome-extension/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chrome-extension/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chrome-extension/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions chrome-extension/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"content_scripts": [ {
"js": [ "js/profiles/youtrack.js" ],
"matches": [ "https://*.myjetbrains.com/youtrack/*" ]
}],
"description": "This extension adds YouTrack support to Harvest Time Tracker extension (should be installed to work)",
"icons": {
"128": "images/[email protected]",
"16": "images/[email protected]",
"48": "images/[email protected]"
},
"manifest_version": 2,
"name": "YouTrack support for Harvest Time Tracker",
"permissions": [ "http://*/*", "https://*/*" ],
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "2.4.0",
"web_accessible_resources": [ "images/trello-timer-icon.png" ]
}
19 changes: 0 additions & 19 deletions harvest-chrome-extension/css/trello.css

This file was deleted.

Binary file removed harvest-chrome-extension/images/[email protected]
Binary file not shown.
Binary file removed harvest-chrome-extension/images/[email protected]
Binary file not shown.
Binary file removed harvest-chrome-extension/images/[email protected]
Binary file not shown.
Binary file removed harvest-chrome-extension/images/[email protected]
Binary file not shown.
Binary file removed harvest-chrome-extension/images/[email protected]
Binary file not shown.
Binary file removed harvest-chrome-extension/images/[email protected]
Binary file not shown.
Binary file removed harvest-chrome-extension/images/[email protected]
Binary file not shown.
Binary file removed harvest-chrome-extension/images/loading.gif
Binary file not shown.
Binary file not shown.
73 changes: 0 additions & 73 deletions harvest-chrome-extension/js/background.js

This file was deleted.

57 changes: 0 additions & 57 deletions harvest-chrome-extension/js/background/config.js

This file was deleted.

57 changes: 0 additions & 57 deletions harvest-chrome-extension/js/background/cookie.js

This file was deleted.

8 changes: 0 additions & 8 deletions harvest-chrome-extension/js/background/request_header.js

This file was deleted.

Loading

0 comments on commit 8cd494c

Please sign in to comment.