Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dd937373
Commit
dd937373
authored
Mar 16, 2021
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update import statuses icons and texts
* use gitlab-ui
parent
775bb585
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
59 deletions
+47
-59
app/assets/javascripts/import_entities/components/import_status.vue
.../javascripts/import_entities/components/import_status.vue
+5
-22
app/assets/javascripts/import_entities/constants.js
app/assets/javascripts/import_entities/constants.js
+29
-29
changelogs/unreleased/271505-update-the-status-icons-for-migrating-groups-and-projects.yml
...te-the-status-icons-for-migrating-groups-and-projects.yml
+5
-0
ee/spec/features/projects/new_project_spec.rb
ee/spec/features/projects/new_project_spec.rb
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+6
-6
spec/features/import/manifest_import_spec.rb
spec/features/import/manifest_import_spec.rb
+1
-1
No files found.
app/assets/javascripts/import_entities/components/import_status.vue
View file @
dd937373
<
script
>
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
CiIcon
from
'
~/vue_shared/components/ci_icon.vue
'
;
import
{
GlIcon
}
from
'
@gitlab/ui
'
;
import
STATUS_MAP
from
'
../constants
'
;
export
default
{
name
:
'
ImportStatus
'
,
components
:
{
CiIcon
,
GlLoadingIcon
,
GlIcon
,
},
props
:
{
status
:
{
...
...
@@ -20,28 +18,13 @@ export default {
mappedStatus
()
{
return
STATUS_MAP
[
this
.
status
];
},
ciIconStatus
()
{
const
{
icon
}
=
this
.
mappedStatus
;
return
{
icon
:
`status_
${
icon
}
`
,
group
:
icon
,
};
},
},
};
</
script
>
<
template
>
<div
class=
"gl-display-flex gl-h-7 gl-align-items-center"
>
<gl-loading-icon
v-if=
"mappedStatus.loadingIcon"
:inline=
"true"
:class=
"mappedStatus.textClass"
class=
"align-middle mr-2"
/>
<ci-icon
v-else
css-classes=
"align-middle mr-2"
:status=
"ciIconStatus"
/>
<span
:class=
"mappedStatus.textClass"
>
{{
mappedStatus
.
text
}}
</span>
<div>
<gl-icon
:name=
"mappedStatus.icon"
:class=
"mappedStatus.iconClass"
:size=
"12"
class=
"gl-mr-2"
/>
<span>
{{
mappedStatus
.
text
}}
</span>
</div>
</
template
>
app/assets/javascripts/import_entities/constants.js
View file @
dd937373
...
...
@@ -11,43 +11,43 @@ export const STATUSES = {
STARTED
:
'
started
'
,
NONE
:
'
none
'
,
SCHEDULING
:
'
scheduling
'
,
CANCELLED
:
'
cancelled
'
,
};
const
SCHEDULED_STATUS
=
{
icon
:
'
status-scheduled
'
,
text
:
__
(
'
Pending
'
),
iconClass
:
'
gl-text-orange-400
'
,
};
const
STATUS_MAP
=
{
[
STATUSES
.
NONE
]:
{
icon
:
'
status-waiting
'
,
text
:
__
(
'
Not started
'
),
iconClass
:
'
gl-text-gray-400
'
,
},
[
STATUSES
.
SCHEDULING
]:
SCHEDULED_STATUS
,
[
STATUSES
.
SCHEDULED
]:
SCHEDULED_STATUS
,
[
STATUSES
.
CREATED
]:
SCHEDULED_STATUS
,
[
STATUSES
.
STARTED
]:
{
icon
:
'
status-running
'
,
text
:
__
(
'
Importing...
'
),
iconClass
:
'
gl-text-blue-400
'
,
},
[
STATUSES
.
FINISHED
]:
{
icon
:
'
success
'
,
text
:
__
(
'
Don
e
'
),
textClass
:
'
text-success
'
,
icon
:
'
s
tatus-s
uccess
'
,
text
:
__
(
'
Complet
e
'
),
iconClass
:
'
gl-text-green-400
'
,
},
[
STATUSES
.
FAILED
]:
{
icon
:
'
failed
'
,
icon
:
'
status-
failed
'
,
text
:
__
(
'
Failed
'
),
textClass
:
'
text-danger
'
,
},
[
STATUSES
.
CREATED
]:
{
icon
:
'
pending
'
,
text
:
__
(
'
Scheduled
'
),
textClass
:
'
text-warning
'
,
},
[
STATUSES
.
SCHEDULED
]:
{
icon
:
'
pending
'
,
text
:
__
(
'
Scheduled
'
),
textClass
:
'
text-warning
'
,
},
[
STATUSES
.
STARTED
]:
{
icon
:
'
running
'
,
text
:
__
(
'
Running…
'
),
textClass
:
'
text-info
'
,
},
[
STATUSES
.
NONE
]:
{
icon
:
'
created
'
,
text
:
__
(
'
Not started
'
),
textClass
:
'
text-muted
'
,
iconClass
:
'
gl-text-red-600
'
,
},
[
STATUSES
.
SCHEDULING
]:
{
loadingIcon
:
true
,
text
:
__
(
'
Scheduling
'
),
textClass
:
'
text-warning
'
,
[
STATUSES
.
CANCELLED
]:
{
icon
:
'
status-stopped
'
,
text
:
__
(
'
Cancelled
'
),
iconClass
:
'
gl-text-red-600
'
,
},
};
...
...
changelogs/unreleased/271505-update-the-status-icons-for-migrating-groups-and-projects.yml
0 → 100644
View file @
dd937373
---
title
:
Update import statuses texts and icons
merge_request
:
54957
author
:
type
:
changed
ee/spec/features/projects/new_project_spec.rb
View file @
dd937373
...
...
@@ -136,7 +136,7 @@ RSpec.describe 'New project', :js do
click_button
'Connect'
wait_for_requests
expect
(
page
).
to
have_text
(
'
Don
e'
)
expect
(
page
).
to
have_text
(
'
Complet
e'
)
created_project
=
Project
.
last
expect
(
created_project
.
name
).
to
eq
(
'some-github-repo'
)
...
...
locale/gitlab.pot
View file @
dd937373
...
...
@@ -5519,6 +5519,9 @@ msgstr ""
msgid "Canceled deployment to"
msgstr ""
msgid "Cancelled"
msgstr ""
msgid "Cancelling Preview"
msgstr ""
...
...
@@ -15739,6 +15742,9 @@ msgid_plural "Importing %d repositories"
msgstr[0] ""
msgstr[1] ""
msgid "Importing..."
msgstr ""
msgid "Improve customer support with Service Desk"
msgstr ""
...
...
@@ -26322,9 +26328,6 @@ msgstr ""
msgid "Running"
msgstr ""
msgid "Running…"
msgstr ""
msgid "Runs a number of housekeeping tasks within the current repository, such as compressing file revisions and removing unreachable objects."
msgstr ""
...
...
@@ -26466,9 +26469,6 @@ msgstr ""
msgid "Schedules to merge this merge request (%{strategy})."
msgstr ""
msgid "Scheduling"
msgstr ""
msgid "Scheduling Pipelines"
msgstr ""
...
...
spec/features/import/manifest_import_spec.rb
View file @
dd937373
...
...
@@ -37,7 +37,7 @@ RSpec.describe 'Import multiple repositories by uploading a manifest file', :js
wait_for_requests
page
.
within
(
second_row
)
do
expect
(
page
).
to
have_content
'
Don
e'
expect
(
page
).
to
have_content
'
Complet
e'
expect
(
page
).
to
have_content
(
"
#{
group
.
full_path
}
/build/blueprint"
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment