52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
import { __, s__ } from '~/locale';
|
|
|
|
export const forwardDeploymentFailureModalId = 'forward-deployment-failure';
|
|
|
|
export const BUTTON_TOOLTIP_RETRY = __('Retry all failed or cancelled jobs');
|
|
export const BUTTON_TOOLTIP_CANCEL = __('Cancel the running pipeline');
|
|
|
|
export const FILTER_TAG_IDENTIFIER = 'tag';
|
|
|
|
export const JOB_GRAPHQL_ERRORS = {
|
|
jobMutationErrorText: __('There was an error running the job. Please try again.'),
|
|
jobQueryErrorText: __('There was an error fetching the job.'),
|
|
};
|
|
|
|
export const ICONS = {
|
|
TAG: 'tag',
|
|
MR: 'git-merge',
|
|
BRANCH: 'branch',
|
|
RETRY: 'retry',
|
|
SUCCESS: 'success',
|
|
};
|
|
|
|
export const SUCCESS_STATUS = 'SUCCESS';
|
|
export const PASSED_STATUS = 'passed';
|
|
export const MANUAL_STATUS = 'manual';
|
|
|
|
// Constants for the ID and IID selection dropdown
|
|
export const PipelineKeyOptions = [
|
|
{
|
|
text: __('Show Pipeline ID'),
|
|
label: __('Pipeline ID'),
|
|
value: 'id',
|
|
},
|
|
{
|
|
text: __('Show Pipeline IID'),
|
|
label: __('Pipeline IID'),
|
|
value: 'iid',
|
|
},
|
|
];
|
|
|
|
export const RAW_TEXT_WARNING = s__(
|
|
'Pipeline|Raw text search is not currently supported. Please use the available search tokens.',
|
|
);
|
|
|
|
export const TRACKING_CATEGORIES = {
|
|
table: 'pipelines_table_component',
|
|
tabs: 'pipelines_filter_tabs',
|
|
search: 'pipelines_filtered_search',
|
|
failed: 'pipeline_failed_jobs_tab',
|
|
tests: 'pipeline_tests_tab',
|
|
};
|