mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-17 19:25:49 +00:00
67 lines
2.7 KiB
JavaScript
67 lines
2.7 KiB
JavaScript
import { s__ } from '~/locale';
|
|
|
|
export const TODO_STATE_DONE = 'done';
|
|
export const TODO_STATE_PENDING = 'pending';
|
|
|
|
export const TODO_TARGET_TYPE_ISSUE = 'ISSUE';
|
|
export const TODO_TARGET_TYPE_MERGE_REQUEST = 'MERGEREQUEST';
|
|
export const TODO_TARGET_TYPE_DESIGN = 'DESIGN';
|
|
export const TODO_TARGET_TYPE_ALERT = 'ALERT';
|
|
export const TODO_TARGET_TYPE_EPIC = 'EPIC';
|
|
export const TODO_TARGET_TYPE_SSH_KEY = 'KEY';
|
|
export const TODO_TARGET_TYPE_PIPELINE = 'PIPELINE';
|
|
export const TODO_TARGET_TYPE_WIKI_PAGE = 'WIKIPAGEMETA';
|
|
|
|
export const TODO_ACTION_TYPE_ASSIGNED = 'assigned';
|
|
export const TODO_ACTION_TYPE_MENTIONED = 'mentioned';
|
|
export const TODO_ACTION_TYPE_BUILD_FAILED = 'build_failed';
|
|
export const TODO_ACTION_TYPE_MARKED = 'marked';
|
|
export const TODO_ACTION_TYPE_APPROVAL_REQUIRED = 'approval_required';
|
|
export const TODO_ACTION_TYPE_UNMERGEABLE = 'unmergeable';
|
|
export const TODO_ACTION_TYPE_DIRECTLY_ADDRESSED = 'directly_addressed';
|
|
export const TODO_ACTION_TYPE_MERGE_TRAIN_REMOVED = 'merge_train_removed';
|
|
export const TODO_ACTION_TYPE_REVIEW_REQUESTED = 'review_requested';
|
|
export const TODO_ACTION_TYPE_MEMBER_ACCESS_REQUESTED = 'member_access_requested';
|
|
export const TODO_ACTION_TYPE_REVIEW_SUBMITTED = 'review_submitted';
|
|
export const TODO_ACTION_TYPE_OKR_CHECKIN_REQUESTED = 'okr_checkin_requested';
|
|
export const TODO_ACTION_TYPE_ADDED_APPROVER = 'added_approver';
|
|
export const TODO_ACTION_TYPE_SSH_KEY_EXPIRED = 'ssh_key_expired';
|
|
export const TODO_ACTION_TYPE_SSH_KEY_EXPIRING_SOON = 'ssh_key_expiring_soon';
|
|
export const TODO_ACTION_TYPE_DUO_PRO_ACCESS_GRANTED = 'duo_pro_access_granted';
|
|
export const TODO_ACTION_TYPE_DUO_ENTERPRISE_ACCESS_GRANTED = 'duo_enterprise_access_granted';
|
|
|
|
export const TODO_EMPTY_TITLE_POOL = [
|
|
s__("Todos|Good job! Looks like you don't have anything left on your To-Do List"),
|
|
s__("Todos|Isn't an empty To-Do List beautiful?"),
|
|
s__('Todos|Give yourself a pat on the back!'),
|
|
s__('Todos|Nothing left to do. High five!'),
|
|
s__('Todos|Henceforth, you shall be known as "To-Do Destroyer"'),
|
|
];
|
|
|
|
export const STATUS_BY_TAB = [['pending'], ['pending'], ['done'], ['pending', 'done']];
|
|
export const TABS_INDICES = {
|
|
pending: 0,
|
|
snoozed: 1,
|
|
done: 2,
|
|
all: 3,
|
|
};
|
|
|
|
/**
|
|
* Instrumentation
|
|
*/
|
|
export const INSTRUMENT_TODO_ITEM_CLICK = 'click_todo_item_action';
|
|
export const INSTRUMENT_TODO_BULK_CLICK = 'click_todo_bulk_action';
|
|
export const INSTRUMENT_TODO_ITEM_FOLLOW = 'follow_todo_link';
|
|
export const INSTRUMENT_TODO_SORT_CHANGE = 'sort_todo_list';
|
|
export const INSTRUMENT_TODO_FILTER_CHANGE = 'filter_todo_list';
|
|
|
|
export const INSTRUMENT_TAB_LABELS = [
|
|
'status_pending',
|
|
'status_snoozed',
|
|
'status_done',
|
|
'status_all',
|
|
];
|
|
|
|
export const DEFAULT_PAGE_SIZE = 20;
|
|
export const TODO_WAIT_BEFORE_RELOAD = 1 * 1000; // 1 second
|