From 2955b0274925b8fc9fd319b6f16874e614b91e55 Mon Sep 17 00:00:00 2001 From: Redchar1992 Date: Fri, 14 Aug 2026 17:25:42 +0800 Subject: [PATCH] fix(github): temporarily hide integration entry points - Hide GitHub connection controls in the header and Home page.\n- Move the Git panel out of visible UI and omit it from the plugin manager.\n- Leave the existing GitHub, Git, OAuth, token, and service logic unchanged. --- .../src/app/components/plugin-manager-component.js | 5 +++-- apps/remix-ide/src/app/tabs/git-panel-tab.js | 6 ++---- apps/remix-ide/src/app/ui/landing-page/landing-page.js | 6 +++--- libs/remix-ui/top-header/src/lib/top-header.js | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/apps/remix-ide/src/app/components/plugin-manager-component.js b/apps/remix-ide/src/app/components/plugin-manager-component.js index b3c0f015f..2947279ec 100644 --- a/apps/remix-ide/src/app/components/plugin-manager-component.js +++ b/apps/remix-ide/src/app/components/plugin-manager-component.js @@ -244,7 +244,8 @@ class PluginManagerComponent extends ViewPlugin { const isFiltered = (profile) => (profile.displayName ? profile.displayName : profile.name).toLowerCase().includes(this.filter) const isNotRequired = (profile) => !this.appManager.isRequired(profile.name) const isNotDependent = (profile) => !this.appManager.isDependent(profile.name) - const isNotHome = (profile) => profile.name !== 'home' + // Temporarily keep the Git integration out of the plugin manager UI. + const isVisibleInManager = (profile) => !['home', 'gitPanel'].includes(profile.name) const sortByName = (profileA, profileB) => { const nameA = ((profileA.displayName) ? profileA.displayName : profileA.name).toUpperCase() const nameB = ((profileB.displayName) ? profileB.displayName : profileB.name).toUpperCase() @@ -256,7 +257,7 @@ class PluginManagerComponent extends ViewPlugin { .filter(isFiltered) .filter(isNotRequired) .filter(isNotDependent) - .filter(isNotHome) + .filter(isVisibleInManager) .sort(sortByName) .reduce(({ actives, inactives }, profile) => { return this.isActive(profile.name) diff --git a/apps/remix-ide/src/app/tabs/git-panel-tab.js b/apps/remix-ide/src/app/tabs/git-panel-tab.js index 5ed620dcc..4615a5a8d 100644 --- a/apps/remix-ide/src/app/tabs/git-panel-tab.js +++ b/apps/remix-ide/src/app/tabs/git-panel-tab.js @@ -57,11 +57,9 @@ const profile = { events: [], icon, description: 'Local Git version control for the current workspace.', - // 'fileexplorer' groups the icon with the workspace tools; vertical-icons - // only has a fixed set of kind buckets (no 'git' section) and would throw - // on appendChild for an unknown kind. + // Keep the implementation registered while temporarily suppressing its UI entry. kind: 'fileexplorer', - location: 'sidePanel', + location: 'hiddenPanel', documentation: 'https://developers.tron.network/docs/tron-ide', version: packageJson.version } diff --git a/apps/remix-ide/src/app/ui/landing-page/landing-page.js b/apps/remix-ide/src/app/ui/landing-page/landing-page.js index a096567d1..e370de0dd 100644 --- a/apps/remix-ide/src/app/ui/landing-page/landing-page.js +++ b/apps/remix-ide/src/app/ui/landing-page/landing-page.js @@ -2047,7 +2047,7 @@ export class LandingPage extends ViewPlugin { } const renderGithubTokenPanel = () => yo` -
+