diff options
Diffstat (limited to 'polygerrit-ui/app/elements/core')
3 files changed, 28 insertions, 1 deletions
diff --git a/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.ts b/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.ts index 9d34929723..ea2b92579d 100644 --- a/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.ts +++ b/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.ts @@ -58,10 +58,22 @@ const DEFAULT_LINKS: MainHeaderLinkGroup[] = [ name: 'Open', }, { + url: '/q/status:staged', + name: 'Staged', + }, + { + url: '/q/status:integrating', + name: 'Integrating', + }, + { url: '/q/status:merged', name: 'Merged', }, { + url: '/q/status:deferred', + name: 'Deferred', + }, + { url: '/q/status:abandoned', name: 'Abandoned', }, diff --git a/polygerrit-ui/app/elements/core/gr-navigation/gr-navigation.ts b/polygerrit-ui/app/elements/core/gr-navigation/gr-navigation.ts index b8f2630c35..be030a8483 100644 --- a/polygerrit-ui/app/elements/core/gr-navigation/gr-navigation.ts +++ b/polygerrit-ui/app/elements/core/gr-navigation/gr-navigation.ts @@ -209,6 +209,14 @@ const CCED: DashboardSection = { query: 'is:open -is:ignored -is:wip cc:${user}', suffixForDashboard: 'limit:10', }; +export const INTEGRATING: DashboardSection = { + name: 'Integrating', + query: + '(is:staged OR is:integrating) -is:ignored (-is:wip OR owner:self) ' + + '(owner:${user} OR reviewer:${user} OR assignee:${user} ' + + 'OR cc:${user})', + suffixForDashboard: 'limit:20', +}; export const CLOSED: DashboardSection = { name: 'Recently closed', // Closed changes where viewed user is owner, reviewer, or assignee. @@ -216,7 +224,7 @@ export const CLOSED: DashboardSection = { // changes not owned by the viewing user (the one instance of // 'owner:self' is intentional and implements this logic). query: - 'is:closed -is:ignored (-is:wip OR owner:self) ' + + '(is:merged OR is:abandoned OR is:deferred) -is:ignored (-is:wip OR owner:self) ' + '(owner:${user} OR reviewer:${user} OR assignee:${user} ' + 'OR cc:${user})', suffixForDashboard: '-age:4w limit:10', @@ -229,6 +237,7 @@ const DEFAULT_SECTIONS: DashboardSection[] = [ OUTGOING, INCOMING, CCED, + INTEGRATING, CLOSED, ]; diff --git a/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar.ts b/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar.ts index 2901b8a43b..add8d9bbdd 100644 --- a/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar.ts +++ b/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar.ts @@ -80,7 +80,9 @@ const SEARCH_OPERATORS: ReadonlyArray<string> = [ 'is:attention', 'is:cherrypick', 'is:closed', + 'is:deferred', 'is:ignored', + 'is:integrating', 'is:merge', 'is:merged', 'is:open', @@ -88,6 +90,7 @@ const SEARCH_OPERATORS: ReadonlyArray<string> = [ 'is:private', 'is:reviewed', 'is:reviewer', + 'is:staged', 'is:starred', 'is:submittable', 'is:watched', @@ -117,9 +120,12 @@ const SEARCH_OPERATORS: ReadonlyArray<string> = [ 'status:', 'status:abandoned', 'status:closed', + 'status:deferred', + 'status:integrating', 'status:merged', 'status:open', 'status:reviewed', + 'status:staged', 'submissionid:', 'topic:', 'tr:', |