Verified Commit c79b42e4 authored by Mohammed Osumah's avatar Mohammed Osumah 2️⃣ Committed by GitLab
Browse files

feat: support missing default namespace state in status bar

parent 5a2c52db
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ export const VisibleCodeSuggestionsState = {
  LOADING: 'code-suggestions-loading',
  UNSUPPORTED_GITLAB_VERSION,
  SUGGESTIONS_API_ERROR,
  SUGGESTIONS_NO_DEFAULT_NAMESPACE: 'code-suggestions-no-default-namespace',
  SUGGESTIONS_NO_CREDITS,
  AUTHENTICATION_REQUIRED: 'authentication-required',
  SUGGESTIONS_FILE_EXCLUDED: 'code-suggestions-file-excluded',
+5 −0
Original line number Diff line number Diff line
@@ -50,6 +50,11 @@ export const CODE_SUGGESTIONS_STATUSES: Record<VisibleCodeSuggestionsState, Stat
      'A GitLab Duo license is required to use this feature. Contact your GitLab administrator to request access.',
    backgroundColor: errorBackgroundColor,
  },
  [VisibleCodeSuggestionsState.SUGGESTIONS_NO_DEFAULT_NAMESPACE]: {
    iconName: 'gitlab-code-suggestions-disabled',
    tooltip:
      'Code Suggestions cannot detect a namespace for this project. To continue, please set a default GitLab Duo namespace in your user preferences.',
  },
  [VisibleCodeSuggestionsState.SUGGESTIONS_NO_CREDITS]: {
    iconName: 'gitlab-code-suggestions-disabled',
    tooltip: