Commit 7e2be326 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch 'cngo-delete-issues-css' into 'master'

Delete some issues CSS

See merge request gitlab-org/gitlab!71228
parents bc5d7fae 63576a5b
...@@ -316,7 +316,7 @@ export default { ...@@ -316,7 +316,7 @@ export default {
</p> </p>
</gl-tooltip> </gl-tooltip>
<span ref="countBadge" class="issue-count-badge board-card-info gl-mr-0 gl-pr-0"> <span ref="countBadge" class="board-card-info gl-mr-0 gl-pr-0 gl-pl-3">
<span v-if="allowSubEpics" class="gl-mr-3"> <span v-if="allowSubEpics" class="gl-mr-3">
<gl-icon name="epic" /> <gl-icon name="epic" />
{{ totalEpicsCount }} {{ totalEpicsCount }}
...@@ -334,7 +334,7 @@ export default { ...@@ -334,7 +334,7 @@ export default {
<span <span
v-if="shouldRenderEpicProgress" v-if="shouldRenderEpicProgress"
ref="progressBadge" ref="progressBadge"
class="issue-count-badge board-card-info gl-pl-0" class="board-card-info gl-pl-0"
> >
<span class="gl-mr-3" data-testid="epic-progress"> <span class="gl-mr-3" data-testid="epic-progress">
<gl-icon name="progress" /> <gl-icon name="progress" />
......
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
> >
<span class="gl-display-inline-flex"> <span class="gl-display-inline-flex">
<gl-tooltip :target="() => $refs.itemCount" :title="itemsTooltipLabel" /> <gl-tooltip :target="() => $refs.itemCount" :title="itemsTooltipLabel" />
<span ref="itemCount" class="issue-count-badge-count"> <span ref="itemCount" class="gl-display-inline-flex gl-align-items-center">
<gl-icon class="gl-mr-2" :name="countIcon" /> <gl-icon class="gl-mr-2" :name="countIcon" />
<item-count :items-size="itemsCount" :max-issue-count="list.maxIssueCount" /> <item-count :items-size="itemsCount" :max-issue-count="list.maxIssueCount" />
</span> </span>
...@@ -388,7 +388,7 @@ export default { ...@@ -388,7 +388,7 @@ export default {
v-gl-tooltip.hover v-gl-tooltip.hover
:aria-label="$options.i18n.newIssue" :aria-label="$options.i18n.newIssue"
:title="$options.i18n.newIssue" :title="$options.i18n.newIssue"
class="issue-count-badge-add-button no-drag" class="no-drag"
icon="plus" icon="plus"
@click="showNewIssueForm" @click="showNewIssueForm"
/> />
......
...@@ -162,7 +162,6 @@ export default { ...@@ -162,7 +162,6 @@ export default {
icon="plus" icon="plus"
:aria-label="__('Add a related issue')" :aria-label="__('Add a related issue')"
:class="qaClass" :class="qaClass"
class="js-issue-count-badge-add-button"
@click="$emit('toggleAddRelatedIssuesForm', $event)" @click="$emit('toggleAddRelatedIssuesForm', $event)"
/> />
</div> </div>
......
...@@ -81,13 +81,13 @@ export default { ...@@ -81,13 +81,13 @@ export default {
{{ __('Related merge requests') }} {{ __('Related merge requests') }}
</span> </span>
<div v-if="totalCount" class="d-inline-flex lh-100 align-middle"> <div v-if="totalCount" class="d-inline-flex lh-100 align-middle">
<div class="mr-count-badge gl-display-inline-flex"> <div
<div class="mr-count-badge-count"> class="mr-count-badge gl-display-inline-flex gl-align-items-center gl-py-2 gl-px-3"
<svg class="s16 mr-1 text-secondary"> >
<gl-icon name="merge-request" class="mr-1 text-secondary" /> <svg class="s16 mr-1 text-secondary">
</svg> <gl-icon name="merge-request" class="mr-1 text-secondary" />
<span class="js-items-count">{{ totalCount }}</span> </svg>
</div> <span class="js-items-count">{{ totalCount }}</span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
@import './pages/groups'; @import './pages/groups';
@import './pages/help'; @import './pages/help';
@import './pages/issuable'; @import './pages/issuable';
@import './pages/issues/issue_count_badge';
@import './pages/issues'; @import './pages/issues';
@import './pages/labels'; @import './pages/labels';
@import './pages/login'; @import './pages/login';
......
.issue-count-badge,
.mr-count-badge {
padding: 5px $gl-padding-8;
}
.issue-count-badge-count,
.mr-count-badge-count {
display: inline-flex;
align-items: center;
}
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
<gl-loading-icon v-if="loading" size="md" class="mt-8" /> <gl-loading-icon v-if="loading" size="md" class="mt-8" />
<div v-if="showChart" class="issues-analytics-chart"> <div v-if="showChart" class="issues-analytics-chart">
<h4 class="chart-title">{{ s__('IssuesAnalytics|Issues opened per month') }}</h4> <h4 class="gl-mt-6 gl-mb-7">{{ s__('IssuesAnalytics|Issues opened per month') }}</h4>
<gl-column-chart <gl-column-chart
data-qa-selector="issues_analytics_graph" data-qa-selector="issues_analytics_graph"
...@@ -191,10 +191,10 @@ export default { ...@@ -191,10 +191,10 @@ export default {
/> />
<div class="d-flex"> <div class="d-flex">
<gl-chart-legend v-if="chart" :chart="chart" :series-info="seriesInfo" /> <gl-chart-legend v-if="chart" :chart="chart" :series-info="seriesInfo" />
<div class="issues-analytics-legend"> <div class="gl-font-sm gl-text-gray-500">
<span>{{ s__('IssuesAnalytics|Total:') }} {{ seriesTotal }}</span> {{ s__('IssuesAnalytics|Total:') }} {{ seriesTotal }}
<span>&#8226;</span> &#8226;
<span>{{ s__('IssuesAnalytics|Avg/Month:') }} {{ seriesAverage }}</span> {{ s__('IssuesAnalytics|Avg/Month:') }} {{ seriesAverage }}
</div> </div>
</div> </div>
</div> </div>
......
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
<div <div
v-if="isEpic" v-if="isEpic"
ref="countBadge" ref="countBadge"
class="issue-count-badge text-secondary gl-display-inline-flex gl-py-0 p-lg-0" class="gl-text-gray-500 gl-display-inline-flex gl-py-0 p-lg-0"
> >
<span <span
v-if="allowSubEpics" v-if="allowSubEpics"
......
...@@ -11,14 +11,3 @@ ...@@ -11,14 +11,3 @@
max-width: px-to-rem($milestone-title-max-width); max-width: px-to-rem($milestone-title-max-width);
} }
} }
.issues-analytics-chart {
.chart-title {
margin: $gl-padding-24 0 $gl-padding-32;
}
}
.issues-analytics-legend {
font-size: $gl-font-size-small;
color: $gl-text-color-secondary;
}
...@@ -119,12 +119,12 @@ RSpec.describe 'epics swimlanes', :js do ...@@ -119,12 +119,12 @@ RSpec.describe 'epics swimlanes', :js do
end end
it 'displays new issue button' do it 'displays new issue button' do
expect(first('.board')).to have_selector('.issue-count-badge-add-button', count: 1) expect(first('.board')).to have_button('New issue', count: 1)
end end
it 'shows form in unassigned issues lane when clicking button' do it 'shows form in unassigned issues lane when clicking button' do
page.within(first('.board')) do page.within(first('.board')) do
find('.issue-count-badge-add-button').click click_button 'New issue'
end end
page.within("[data-testid='board-lane-unassigned-issues']") do page.within("[data-testid='board-lane-unassigned-issues']") do
...@@ -134,7 +134,7 @@ RSpec.describe 'epics swimlanes', :js do ...@@ -134,7 +134,7 @@ RSpec.describe 'epics swimlanes', :js do
it 'hides form when clicking cancel' do it 'hides form when clicking cancel' do
page.within(first('.board')) do page.within(first('.board')) do
find('.issue-count-badge-add-button').click click_button 'New issue'
end end
page.within("[data-testid='board-lane-unassigned-issues']") do page.within("[data-testid='board-lane-unassigned-issues']") do
...@@ -148,7 +148,7 @@ RSpec.describe 'epics swimlanes', :js do ...@@ -148,7 +148,7 @@ RSpec.describe 'epics swimlanes', :js do
it 'creates new issue in unassigned issues lane' do it 'creates new issue in unassigned issues lane' do
page.within(first('.board')) do page.within(first('.board')) do
find('.issue-count-badge-add-button').click click_button 'New issue'
end end
wait_for_all_requests wait_for_all_requests
...@@ -160,7 +160,7 @@ RSpec.describe 'epics swimlanes', :js do ...@@ -160,7 +160,7 @@ RSpec.describe 'epics swimlanes', :js do
wait_for_all_requests wait_for_all_requests
page.within(first('.board .issue-count-badge-count')) do page.within(first('.board [data-testid="issue-count-badge"]')) do
expect(page).to have_content('3') expect(page).to have_content('3')
end end
......
...@@ -32,7 +32,7 @@ RSpec.describe 'create epic in board', :js do ...@@ -32,7 +32,7 @@ RSpec.describe 'create epic in board', :js do
wait_for_requests wait_for_requests
page.within(first('.board .issue-count-badge-count')) do page.within(first('.board [data-testid="issue-count-badge"]')) do
expect(page).to have_content('1') expect(page).to have_content('1')
end end
......
...@@ -51,7 +51,7 @@ RSpec.describe 'Related issues', :js do ...@@ -51,7 +51,7 @@ RSpec.describe 'Related issues', :js do
context 'with "Relates to", "Blocks", "Is blocked by" groupings' do context 'with "Relates to", "Blocks", "Is blocked by" groupings' do
def add_linked_issue(issue, radio_input_value) def add_linked_issue(issue, radio_input_value)
find('.js-issue-count-badge-add-button').click click_button 'Add a related issue'
find('.js-add-issuable-form-input').set "#{issue.to_reference(project)} " find('.js-add-issuable-form-input').set "#{issue.to_reference(project)} "
find("input[name=\"linked-issue-type-radio\"][value=\"#{radio_input_value}\"]").click find("input[name=\"linked-issue-type-radio\"][value=\"#{radio_input_value}\"]").click
find('.js-add-issuable-form-add-button').click find('.js-add-issuable-form-add-button').click
......
...@@ -68,7 +68,7 @@ RSpec.describe 'Issue Boards new issue', :js do ...@@ -68,7 +68,7 @@ RSpec.describe 'Issue Boards new issue', :js do
wait_for_requests wait_for_requests
page.within(first('.board .issue-count-badge-count')) do page.within(first('.board [data-testid="issue-count-badge"]')) do
expect(page).to have_content('1') expect(page).to have_content('1')
end end
......
...@@ -16,7 +16,7 @@ RSpec.describe 'Ensure Boards do not show stale data on browser back', :js do ...@@ -16,7 +16,7 @@ RSpec.describe 'Ensure Boards do not show stale data on browser back', :js do
visit project_board_path(project, board) visit project_board_path(project, board)
wait_for_requests wait_for_requests
page.within(first('.board .issue-count-badge-count')) do page.within(first('.board [data-testid="issue-count-badge"]')) do
expect(page).to have_content('0') expect(page).to have_content('0')
end end
end end
...@@ -35,7 +35,7 @@ RSpec.describe 'Ensure Boards do not show stale data on browser back', :js do ...@@ -35,7 +35,7 @@ RSpec.describe 'Ensure Boards do not show stale data on browser back', :js do
page.go_back page.go_back
wait_for_requests wait_for_requests
page.within(first('.board .issue-count-badge-count')) do page.within(first('.board [data-testid="issue-count-badge"]')) do
expect(page).to have_content('1') expect(page).to have_content('1')
end end
......
...@@ -24,7 +24,7 @@ RSpec.describe 'Group Boards' do ...@@ -24,7 +24,7 @@ RSpec.describe 'Group Boards' do
it 'adds an issue to the backlog' do it 'adds an issue to the backlog' do
page.within(find('.board', match: :first)) do page.within(find('.board', match: :first)) do
issue_title = 'New Issue' issue_title = 'New Issue'
find(:css, '.issue-count-badge-add-button').click click_button 'New issue'
wait_for_requests wait_for_requests
......
...@@ -41,13 +41,13 @@ RSpec.describe 'Related issues', :js do ...@@ -41,13 +41,13 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).not_to have_selector('.js-issue-count-badge-add-button') expect(page).not_to have_button 'Add a related issue'
end end
end end
context 'when logged in but not a member' do context 'when logged in but not a member' do
before do before do
gitlab_sign_in(user) sign_in(user)
end end
it 'shows widget when internal project' do it 'shows widget when internal project' do
...@@ -57,7 +57,7 @@ RSpec.describe 'Related issues', :js do ...@@ -57,7 +57,7 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).not_to have_selector('.js-issue-count-badge-add-button') expect(page).not_to have_button 'Add a related issue'
end end
it 'does not show widget when private project' do it 'does not show widget when private project' do
...@@ -76,7 +76,7 @@ RSpec.describe 'Related issues', :js do ...@@ -76,7 +76,7 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).not_to have_selector('.js-issue-count-badge-add-button') expect(page).not_to have_button 'Add a related issue'
end end
it 'shows widget on their own public issue' do it 'shows widget on their own public issue' do
...@@ -86,13 +86,13 @@ RSpec.describe 'Related issues', :js do ...@@ -86,13 +86,13 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).not_to have_selector('.js-issue-count-badge-add-button') expect(page).not_to have_button 'Add a related issue'
end end
end end
context 'when logged in and a guest' do context 'when logged in and a guest' do
before do before do
gitlab_sign_in(user) sign_in(user)
end end
it 'shows widget when internal project' do it 'shows widget when internal project' do
...@@ -103,7 +103,7 @@ RSpec.describe 'Related issues', :js do ...@@ -103,7 +103,7 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).not_to have_selector('.js-issue-count-badge-add-button') expect(page).not_to have_button 'Add a related issue'
end end
it 'shows widget when private project' do it 'shows widget when private project' do
...@@ -114,7 +114,7 @@ RSpec.describe 'Related issues', :js do ...@@ -114,7 +114,7 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).not_to have_selector('.js-issue-count-badge-add-button') expect(page).not_to have_button 'Add a related issue'
end end
it 'shows widget when public project' do it 'shows widget when public project' do
...@@ -125,13 +125,13 @@ RSpec.describe 'Related issues', :js do ...@@ -125,13 +125,13 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).not_to have_selector('.js-issue-count-badge-add-button') expect(page).not_to have_button 'Add a related issue'
end end
end end
context 'when logged in and a reporter' do context 'when logged in and a reporter' do
before do before do
gitlab_sign_in(user) sign_in(user)
end end
it 'shows widget when internal project' do it 'shows widget when internal project' do
...@@ -142,7 +142,7 @@ RSpec.describe 'Related issues', :js do ...@@ -142,7 +142,7 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).to have_selector('.js-issue-count-badge-add-button') expect(page).to have_button 'Add a related issue'
end end
it 'shows widget when private project' do it 'shows widget when private project' do
...@@ -153,7 +153,7 @@ RSpec.describe 'Related issues', :js do ...@@ -153,7 +153,7 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).to have_selector('.js-issue-count-badge-add-button') expect(page).to have_button 'Add a related issue'
end end
it 'shows widget when public project' do it 'shows widget when public project' do
...@@ -164,7 +164,7 @@ RSpec.describe 'Related issues', :js do ...@@ -164,7 +164,7 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).to have_selector('.js-issue-count-badge-add-button') expect(page).to have_button 'Add a related issue'
end end
it 'shows widget on their own public issue' do it 'shows widget on their own public issue' do
...@@ -175,7 +175,7 @@ RSpec.describe 'Related issues', :js do ...@@ -175,7 +175,7 @@ RSpec.describe 'Related issues', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
expect(page).to have_css('.related-issues-block') expect(page).to have_css('.related-issues-block')
expect(page).to have_selector('.js-issue-count-badge-add-button') expect(page).to have_button 'Add a related issue'
end end
end end
end end
...@@ -186,7 +186,7 @@ RSpec.describe 'Related issues', :js do ...@@ -186,7 +186,7 @@ RSpec.describe 'Related issues', :js do
before do before do
project.add_guest(user) project.add_guest(user)
gitlab_sign_in(user) sign_in(user)
end end
context 'visiting some issue someone else created' do context 'visiting some issue someone else created' do
...@@ -216,7 +216,7 @@ RSpec.describe 'Related issues', :js do ...@@ -216,7 +216,7 @@ RSpec.describe 'Related issues', :js do
before do before do
project.add_maintainer(user) project.add_maintainer(user)
project_b.add_maintainer(user) project_b.add_maintainer(user)
gitlab_sign_in(user) sign_in(user)
end end
context 'without existing related issues' do context 'without existing related issues' do
...@@ -230,7 +230,7 @@ RSpec.describe 'Related issues', :js do ...@@ -230,7 +230,7 @@ RSpec.describe 'Related issues', :js do
end end
it 'add related issue' do it 'add related issue' do
find('.js-issue-count-badge-add-button').click click_button 'Add a related issue'
find('.js-add-issuable-form-input').set "#{issue_b.to_reference(project)} " find('.js-add-issuable-form-input').set "#{issue_b.to_reference(project)} "
find('.js-add-issuable-form-add-button').click find('.js-add-issuable-form-add-button').click
...@@ -247,7 +247,7 @@ RSpec.describe 'Related issues', :js do ...@@ -247,7 +247,7 @@ RSpec.describe 'Related issues', :js do
end end
it 'add cross-project related issue' do it 'add cross-project related issue' do
find('.js-issue-count-badge-add-button').click click_button 'Add a related issue'
find('.js-add-issuable-form-input').set "#{issue_project_b_a.to_reference(project)} " find('.js-add-issuable-form-input').set "#{issue_project_b_a.to_reference(project)} "
find('.js-add-issuable-form-add-button').click find('.js-add-issuable-form-add-button').click
...@@ -261,7 +261,7 @@ RSpec.describe 'Related issues', :js do ...@@ -261,7 +261,7 @@ RSpec.describe 'Related issues', :js do
end end
it 'pressing enter should submit the form' do it 'pressing enter should submit the form' do
find('.js-issue-count-badge-add-button').click click_button 'Add a related issue'
find('.js-add-issuable-form-input').set "#{issue_project_b_a.to_reference(project)} " find('.js-add-issuable-form-input').set "#{issue_project_b_a.to_reference(project)} "
find('.js-add-issuable-form-input').native.send_key(:enter) find('.js-add-issuable-form-input').native.send_key(:enter)
...@@ -275,7 +275,7 @@ RSpec.describe 'Related issues', :js do ...@@ -275,7 +275,7 @@ RSpec.describe 'Related issues', :js do
end end
it 'disallows duplicate entries' do it 'disallows duplicate entries' do
find('.js-issue-count-badge-add-button').click click_button 'Add a related issue'
find('.js-add-issuable-form-input').set 'duplicate duplicate duplicate' find('.js-add-issuable-form-input').set 'duplicate duplicate duplicate'
items = all('.js-add-issuable-form-token-list-item') items = all('.js-add-issuable-form-token-list-item')
...@@ -288,7 +288,7 @@ RSpec.describe 'Related issues', :js do ...@@ -288,7 +288,7 @@ RSpec.describe 'Related issues', :js do
it 'allows us to remove pending issues' do it 'allows us to remove pending issues' do
# Tests against https://gitlab.com/gitlab-org/gitlab/issues/11625 # Tests against https://gitlab.com/gitlab-org/gitlab/issues/11625
find('.js-issue-count-badge-add-button').click click_button 'Add a related issue'
find('.js-add-issuable-form-input').set 'issue1 issue2 issue3 ' find('.js-add-issuable-form-input').set 'issue1 issue2 issue3 '
items = all('.js-add-issuable-form-token-list-item') items = all('.js-add-issuable-form-token-list-item')
...@@ -351,7 +351,7 @@ RSpec.describe 'Related issues', :js do ...@@ -351,7 +351,7 @@ RSpec.describe 'Related issues', :js do
end end
it 'add related issue' do it 'add related issue' do
find('.js-issue-count-badge-add-button').click click_button 'Add a related issue'
find('.js-add-issuable-form-input').set "##{issue_d.iid} " find('.js-add-issuable-form-input').set "##{issue_d.iid} "
find('.js-add-issuable-form-add-button').click find('.js-add-issuable-form-add-button').click
...@@ -367,7 +367,7 @@ RSpec.describe 'Related issues', :js do ...@@ -367,7 +367,7 @@ RSpec.describe 'Related issues', :js do
end end
it 'add invalid related issue' do it 'add invalid related issue' do
find('.js-issue-count-badge-add-button').click click_button 'Add a related issue'
find('.js-add-issuable-form-input').set "#9999999 " find('.js-add-issuable-form-input').set "#9999999 "
find('.js-add-issuable-form-add-button').click find('.js-add-issuable-form-add-button').click
...@@ -382,7 +382,7 @@ RSpec.describe 'Related issues', :js do ...@@ -382,7 +382,7 @@ RSpec.describe 'Related issues', :js do
end end
it 'add unauthorized related issue' do it 'add unauthorized related issue' do
find('.js-issue-count-badge-add-button').click click_button 'Add a related issue'
find('.js-add-issuable-form-input').set "#{issue_project_unauthorized_a.to_reference(project)} " find('.js-add-issuable-form-input').set "#{issue_project_unauthorized_a.to_reference(project)} "
find('.js-add-issuable-form-add-button').click find('.js-add-issuable-form-add-button').click
......
...@@ -71,7 +71,7 @@ module FeatureFlagHelpers ...@@ -71,7 +71,7 @@ module FeatureFlagHelpers
end end
def add_linked_issue_button def add_linked_issue_button
find('.js-issue-count-badge-add-button') find_button 'Add a related issue'
end end
def remove_linked_issue_button def remove_linked_issue_button
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment