Commit 0cd5c848 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '324855-opened-to-created' into 'master'

Change opened to created

See merge request gitlab-org/gitlab!80378
parents 42d940be ef1d0626
......@@ -266,7 +266,7 @@ export default {
>
<span class="gl-font-lg">&middot;</span>
<span data-testid="vsa-stage-event-date">
{{ s__('OpenedNDaysAgo|Opened') }}
{{ s__('OpenedNDaysAgo|Created') }}
<gl-link class="gl-text-black-normal" :href="item.url">{{
item.createdAt
}}</gl-link>
......
......@@ -102,7 +102,7 @@ export default {
</div>
</div>
<span>
{{ __('Opened') }}
{{ __('Created') }}
<time-ago-tooltip data-testid="startTimeItem" :time="createdAt" />
{{ __('by') }}
</span>
......
......@@ -31,7 +31,7 @@ export default {
},
methods: {
getTimeAgoString(createdAt) {
return sprintf(__('opened %{timeAgo}'), {
return sprintf(__('created %{timeAgo}'), {
timeAgo: escape(getTimeago().format(createdAt)),
});
},
......
......@@ -117,13 +117,13 @@ export const DEVOPS_ADOPTION_TABLE_CONFIGURATION = [
{
key: 'issueOpened',
label: s__('DevopsAdoption|Issues'),
tooltip: s__('DevopsAdoption|At least one issue opened'),
tooltip: s__('DevopsAdoption|At least one issue created'),
testId: 'issuesCol',
},
{
key: 'mergeRequestOpened',
label: s__('DevopsAdoption|MRs'),
tooltip: s__('DevopsAdoption|At least one merge request opened'),
tooltip: s__('DevopsAdoption|At least one merge request created'),
testId: 'mrsCol',
},
],
......
......@@ -18,9 +18,9 @@ export default {
metrics: {
mergeRequests: {
value: null,
label: s__('GroupActivityMetrics|Merge Requests opened'),
label: s__('GroupActivityMetrics|Merge Requests created'),
},
issues: { value: null, label: s__('GroupActivityMetrics|Issues opened') },
issues: { value: null, label: s__('GroupActivityMetrics|Issues created') },
newMembers: { value: null, label: s__('GroupActivityMetrics|Members added') },
},
};
......
......@@ -52,7 +52,7 @@ export default {
seriesInfo: [
{
type: 'solid',
name: s__('IssuesAnalytics|Issues opened'),
name: s__('IssuesAnalytics|Issues created'),
color: '#1F78D1',
},
],
......@@ -178,13 +178,13 @@ export default {
<gl-loading-icon v-if="loading" size="md" class="mt-8" />
<div v-if="showChart" class="issues-analytics-chart">
<h4 class="gl-mt-6 gl-mb-7">{{ s__('IssuesAnalytics|Issues opened per month') }}</h4>
<h4 class="gl-mt-6 gl-mb-7">{{ s__('IssuesAnalytics|Issues created per month') }}</h4>
<gl-column-chart
data-qa-selector="issues_analytics_graph"
:bars="[{ name: 'Full', data }]"
:option="chartOptions"
:y-axis-title="s__('IssuesAnalytics|Issues opened')"
:y-axis-title="s__('IssuesAnalytics|Issues created')"
:x-axis-title="s__('IssuesAnalytics|Last 12 months') + ' (' + chartDateRange + ')'"
x-axis-type="category"
@created="onCreated"
......
......@@ -93,7 +93,7 @@ export default {
},
{
key: 'author',
label: s__('IssueAnalytics|Opened by'),
label: s__('IssueAnalytics|Created by'),
class: 'gl-text-left',
thAttr: TH_TEST_ID,
},
......
......@@ -102,7 +102,7 @@ export default {
return this.isShowingLabels && this.item.labels?.length > 0;
},
stateText() {
return this.isOpen ? __('Opened') : __('Closed');
return this.isOpen ? __('Created') : __('Closed');
},
stateIconName() {
if (this.item.type === ChildType.Epic) {
......
......@@ -27,7 +27,7 @@ RSpec.describe 'Test Cases', :js do
it 'shows status, created date and author' do
page.within('.test-case-container .detail-page-header-body') do
expect(page.find('.issuable-status-box')).to have_content('Open')
expect(page.find('.issuable-meta')).to have_content('Opened 5 days ago')
expect(page.find('.issuable-meta')).to have_content('Created 5 days ago')
expect(page.find('.issuable-meta')).to have_link(user.name)
end
end
......
......@@ -131,7 +131,7 @@ exports[`MergeRequestTable component template matches the snapshot 1`] = `
</li>
<li>
opened 5 months ago
created 5 months ago
</li>
<li>
......
......@@ -43,12 +43,12 @@ export const devopsAdoptionTableHeaders = [
{
index: 3,
label: 'Issues',
tooltip: 'At least one issue opened',
tooltip: 'At least one issue created',
},
{
index: 4,
label: 'MRs',
tooltip: 'At least one merge request opened',
tooltip: 'At least one merge request created',
},
{
index: 5,
......
......@@ -83,8 +83,8 @@ describe('GroupActivity component', () => {
it.each`
index | value | title
${0} | ${10} | ${'Merge Requests opened'}
${1} | ${20} | ${'Issues opened'}
${0} | ${10} | ${'Merge Requests created'}
${1} | ${20} | ${'Issues created'}
${2} | ${30} | ${'Members added'}
`('renders a GlSingleStat for "$title"', async ({ index, value, title }) => {
const singleStat = findAllSingleStats().at(index);
......
......@@ -34,7 +34,7 @@ export const tableHeaders = [
'Weight',
'Due date',
'Assignees',
'Opened by',
'Created by',
];
export const endpoints = {
......
......@@ -214,13 +214,13 @@ describe('RelatedItemsTree', () => {
});
describe('stateText', () => {
it('returns string `Opened` when `item.state` value is `opened`', async () => {
it('returns string `Created` when `item.state` value is `created`', async () => {
wrapper.setProps({
item: { ...mockItem, state: ChildState.Open },
});
await nextTick();
expect(findIssueIcon().props('ariaLabel')).toBe('Opened');
expect(findIssueIcon().props('ariaLabel')).toBe('Created');
});
it('returns string `Closed` when `item.state` value is `closed`', async () => {
......
......@@ -12510,10 +12510,10 @@ msgstr ""
msgid "DevopsAdoption|At least one deploy"
msgstr ""
msgid "DevopsAdoption|At least one issue opened"
msgid "DevopsAdoption|At least one issue created"
msgstr ""
msgid "DevopsAdoption|At least one merge request opened"
msgid "DevopsAdoption|At least one merge request created"
msgstr ""
msgid "DevopsAdoption|At least one pipeline successfully run"
......@@ -17143,7 +17143,7 @@ msgstr ""
msgid "Group: %{name}"
msgstr ""
msgid "GroupActivityMetrics|Issues opened"
msgid "GroupActivityMetrics|Issues created"
msgstr ""
msgid "GroupActivityMetrics|Last 90 days"
......@@ -17152,7 +17152,7 @@ msgstr ""
msgid "GroupActivityMetrics|Members added"
msgstr ""
msgid "GroupActivityMetrics|Merge Requests opened"
msgid "GroupActivityMetrics|Merge Requests created"
msgstr ""
msgid "GroupActivityMetrics|Recent activity"
......@@ -20164,6 +20164,9 @@ msgstr ""
msgid "IssueAnalytics|Assignees"
msgstr ""
msgid "IssueAnalytics|Created by"
msgstr ""
msgid "IssueAnalytics|Due date"
msgstr ""
......@@ -20176,9 +20179,6 @@ msgstr ""
msgid "IssueAnalytics|Milestone"
msgstr ""
msgid "IssueAnalytics|Opened by"
msgstr ""
msgid "IssueAnalytics|Status"
msgstr ""
......@@ -20302,10 +20302,10 @@ msgstr ""
msgid "IssuesAnalytics|Avg/Month:"
msgstr ""
msgid "IssuesAnalytics|Issues opened"
msgid "IssuesAnalytics|Issues created"
msgstr ""
msgid "IssuesAnalytics|Issues opened per month"
msgid "IssuesAnalytics|Issues created per month"
msgstr ""
msgid "IssuesAnalytics|Last 12 months"
......@@ -25429,7 +25429,7 @@ msgstr ""
msgid "Opened issues"
msgstr ""
msgid "OpenedNDaysAgo|Opened"
msgid "OpenedNDaysAgo|Created"
msgstr ""
msgid "Opens in a new window"
......@@ -43756,9 +43756,6 @@ msgstr ""
msgid "open issue"
msgstr ""
msgid "opened %{timeAgo}"
msgstr ""
msgid "or"
msgstr ""
......
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