toggl / track-extension

Toggl Track browser extension for Chrome and Firefox
http://toggl.github.io/track-extension
Apache License 2.0
1.1k stars 568 forks source link

Add support for Pull Requests in Bitbucket #1844

Open vedr4n opened 4 years ago

vedr4n commented 4 years ago

Toggl Button worked with Bitbucket PRs at one point, but it got lost down the line.

Describe the changes you'd like

Add the "Start timer" button to Pull Requests in Bitbucket. Currently, we only display it in issues.

Relevant links or screenshots

This is how it currently looks like (in issues). Do the same in PRs. ec599c36-0078-11e5-8a0c-99d73a9130b3

Slack convo.

Additional context

User request.

chrisaligent commented 3 years ago

I was using the Toggl button in PR's up until today when I switched to the "New PR Experience", and now it's missing. So it's only stopped working since Bitbucket changed things. The "Refined Bitbucket" Chrome extension had the same problem but they've mostly resolved it.

Update: OK, I see. The structure of the page has completely changed, so the Toggl-button plugin can't find an element to hook into. Unfortunately Bitbucket's new CSS classes are the most poorly named things I've ever seen. I don't know whether these are static or if they'll change regularly, but targeting specific elements is going to be pretty challenging: Selection_1799