From 0a22412d3188bbe6050f532985bc9ccbcacf301b Mon Sep 17 00:00:00 2001 From: M Fahru Date: Thu, 15 Jun 2023 08:46:03 -0700 Subject: [PATCH] Improve error message when users try to import empty github repo (#13334) * Improve error message when a user is trying to import an empty repo with github * Only show GitHub organization footer link after the user is successfully connected to github This link should only be shown for users that have some of their repos missing because of their organization's access restriction See this ticket for more detail: https://github.com/overleaf/web-internal/pull/1591 GitOrigin-RevId: 3235d63b94b952b93f7a1cfe0d551d38a2783eb3 --- services/web/frontend/extracted-translations.json | 1 + services/web/locales/en.json | 1 + 2 files changed, 2 insertions(+) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index c4da12d1b9..50d3ee18f3 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -360,6 +360,7 @@ "git_integration_info": "", "github_commit_message_placeholder": "", "github_credentials_expired": "", + "github_empty_repository_error": "", "github_file_name_error": "", "github_for_link_shared_projects": "", "github_git_folder_error": "", diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 0385287732..25556186fe 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -614,6 +614,7 @@ "git_integration_lowercase_info": "You can clone your Overleaf project to a local repository, treating your Overleaf project as a remote repository that changes can be pushed to and pulled from.", "github_commit_message_placeholder": "Commit message for changes made in __appName__...", "github_credentials_expired": "Your GitHub authorization credentials have expired", + "github_empty_repository_error": "It looks like your GitHub repository is empty or not yet available. Create a new file on GitHub.com then try again.", "github_file_name_error": "This repository cannot be imported, because it contains file(s) with an invalid filename:", "github_for_link_shared_projects": "This project was accessed via link-sharing and won’t be synchronised with your GitHub unless you are invited via e-mail by the project owner.", "github_git_and_dropbox_integrations": "<0>Github, <0>Git and <0>Dropbox integrations",