-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(release-comparison): Add issue filter tabs to release details #26826
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
Conversation
Add issue filter tabs to release details for Release Comparison feature. FIXES WOR-968
matejminar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kapture.2021-06-25.at.11.09.19.mp4
There seems to be a race condition or something when you switch tabs quickly.
| and not features.has( | ||
| "organizations:release-comparison", organization, actor=request.user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this? From release details we always ask for single project.
static/app/utils/theme.tsx
Outdated
| issueCountActiveText: colors.gray100, | ||
|
|
||
| /** | ||
| * Issue count when tab not active | ||
| */ | ||
| issueCountNotActiveText: colors.gray400, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we name these in a more generic way? Perhaps buttonCount?
| onClick={() => this.handleIssuesTypeSelection(value)} | ||
| > | ||
| {label} | ||
| <QueryCount count={issueCount} max={99} hideParens hideIfEmpty /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still want number 0 to show up.
| <QueryCount count={issueCount} max={99} hideParens hideIfEmpty /> | |
| <QueryCount count={issueCount} max={99} hideParens hideIfEmpty={false} /> |
| all: issueResponse[`${IssuesQuery.ALL}:${version}`], | ||
| new: issueResponse[`${IssuesQuery.NEW}:${version}`], | ||
| resolved: resolvedResponse.length, | ||
| unhandled: | ||
| issueResponse[`${IssuesQuery.UNHANDLED} ${IssuesQuery.ALL}:${version}`], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fallback to 0 because this endpoint returns null in case of no issues and we want to see 0 in the buttonbar.
| all: issueResponse[`${IssuesQuery.ALL}:${version}`], | |
| new: issueResponse[`${IssuesQuery.NEW}:${version}`], | |
| resolved: resolvedResponse.length, | |
| unhandled: | |
| issueResponse[`${IssuesQuery.UNHANDLED} ${IssuesQuery.ALL}:${version}`], | |
| all: issueResponse[`${IssuesQuery.ALL}:${version}`] || 0, | |
| new: issueResponse[`${IssuesQuery.NEW}:${version}`] || 0, | |
| resolved: resolvedResponse.length, | |
| unhandled: | |
| issueResponse[`${IssuesQuery.UNHANDLED} ${IssuesQuery.ALL}:${version}`] || 0, |
| span:last-child { | ||
| color: ${p => p.theme.issueCountNotActiveText}; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not need to do it now, but the preferred way in the future would be to define StyledQueryCount instead of nested selectors.
matejminar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work 👏👏👏
Add issue filter tabs with issue counts to the release details page. Browser URL query will also update based on the selected tab and provide a direct link to that tab.
FIXES WOR-968
Before
After