Issue number in browser title
Problem to solve
When having an issue open on a browser tab that is not currently selected/active, you can't see the issue number because browser tabs truncate to the first 10-20 characters.
Links / references
- 73% prefer ID first, 27% prefer title first. This truly is an individual level preference.
Intended users
- Any GitLab user with a preference as to how the title of an issue is presented in a page's tab or via notifications such as email.
Further details
- If the goal is for anyone to contribute to any issue, putting a flag on a hill for one way or the other will ultimately alienate the cohort with the alternate preference. So long as this doesn't impact performance or add unnecessary technical debt, there is no reason why we ought not to allow an individual to use GitLab in the way that they want.
Proposal
Add an Issue Formatting
section to ~/profile/preferences
with an Issue Titles
input (and helper text underneath) that allows users to configure the formatting for Issue Titles such that a user can insert formatting with variables to configure their desired appearance for the Issue Title:
%title %id
Default
(%id) %title
Permissions and Security
- To Do - Consult w/ Sean To Verify
Documentation
- Potentially add documentation under User Account
Testing
- The biggest area of concern would be page rendering as this feature would require variable substitution in the page title for ever page load.
What does success look like, and how can we measure that?
Success
- Users can configure how they want issues to be formatted on page titles and within email notifications.
- Measured By: Zero increase in page load time, ~25% of users changing from the default to another format
Acceptance Criteria
- No impact to page speed / rendering.
- Full test coverage.
- A user can customize the appearance of an Issue Title in the page's
<title>
tag and in email notifications. - Minimum: a user can select between
%id %title
or%title %id
- Ideal: a user can use a free form text input to further customize the Issue Title formatting, i.e.:
(%id) %title
%id | %title
%id - %title
History:
Instead of:
/label ~featuretitle (#number) - Issues - group / project
Change to:
#number: title - Issues - group / project
People closing tickets using commit message will be able to skip opening the tab to see the issue number.
Edited by Gabe Weaver