@gitkraken/gitkraken-components 1.1.0-rc.15 → 1.1.0-rc.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -148,6 +148,7 @@ export type GraphRefGroup = Array<GraphRef>;
148
148
  export type RefMetadataById = { [id: string]: RefMetadata | null | undefined } | null;
149
149
  export type RefMetadata = {
150
150
  pullRequests?: PullRequestMetadata[] | null;
151
+ upstream?: UpstreamMetadata | null;
151
152
  };
152
153
 
153
154
  export type PullRequestMetadata = {
@@ -161,6 +162,14 @@ export type PullRequestMetadata = {
161
162
  context?: GraphItemContext;
162
163
  };
163
164
 
165
+ export type UpstreamMetadata = {
166
+ name: string,
167
+ owner: string,
168
+ ahead: number,
169
+ behind: number,
170
+ sha?: Sha
171
+ };
172
+
164
173
  // Hosting service types for pull request metadata
165
174
  export const gitHubDotComHostingServiceType = 'github';
166
175
  export const githubEnterpriseHostingServiceType = 'githubEnterprise';
@@ -182,8 +191,9 @@ export type RefsMissingMetadata = {
182
191
  [refId: string]: RefMetadataType[]
183
192
  }
184
193
  export const pullRequestMetadataType = 'pullRequests';
194
+ export const upstreamMetadataType = 'upstream';
185
195
  // Expand this as we add more types to RefMetadata
186
- export type RefMetadataType = typeof pullRequestMetadataType;
196
+ export type RefMetadataType = typeof pullRequestMetadataType | typeof upstreamMetadataType;
187
197
 
188
198
  // Callbacks
189
199
  export type GetExternalIcon = (key: string) => React.ReactElement<any>;
@@ -222,6 +232,7 @@ export interface GraphContainerProps {
222
232
  isContainerWindowFocused?: boolean;
223
233
  showGhostRefsOnRowHover?: boolean,
224
234
  showRemoteNamesOnRefs?: boolean,
235
+ showUpstreamStatus?: boolean,
225
236
  scrollRowPadding?: number,
226
237
  enableMultiSelection?: boolean,
227
238
  graphRows: GraphRow[];