Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement custom template description functionality for clubhouse #1718

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jdpaterson
Copy link

🌟 What does this PR do?

This PR allows for users to customize the toggl story description format for the Clubhouse integration. My team is using this branch currently as we have this requirement, so thought it might be worthwhile to share it.

This PR adds a new 'Clubhouse' tab to the Settings page, where the user can enable custom description templates.

If it is not enabled: the story description uses the same function (though renamed) as before.

If it is enabled: the user can use any of the currently available selector functions (specifically for Clubhouse in this case) to generate their own custom formatted story description. This is done by using curly braces to denote selector functions.

For example our team uses the format: "[epicName] [storyId] - [storyDescription]". With this PR this could be accomplished by using "{{ epicName }} {{ storyId }} - {{ storyDescription }}" . And the values populate dynamically when the toggl-button is clicked in clubhouse.

We also will be using a similar functionality for JIRA, and maybe BitBucket, so it is built in a way that (hopefully) it will be easy to implement for those integrations, and others as well.

Thanks!

🐛 Recommendations for testing

All changes should be tested across Chrome and Firefox.

Alot of the design on the 'settings' end is more or less copied from the Pomodoro implementation, as I assume that this is an acceptable convention to follow.

The previous function was called getDescription, this has been changed to getStoryTitle, the functionality there was not changed.

📝 Links to relevant issues or information

add clubhouse customTemplate db settings
add clubhouse tab to settings page
create templateParser and templateMessenger classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant