Repository: provectus/kafka-ui
Issue: Air Gap: Enhancement: Opt out of version check
Labels: type/enhancement
scope/backend
scope/frontend
status/pending-frontend

Hello,

i'm using your great UI for kafka cluster instance and it's perfect : functionality, rapidity, installating in k8s world with helm.
But i try to install this UI in isolated network without internet access so github.com is not allow.

Is it possible to disable call from the ui to https://api.github.com/repos/provectus/kafka-ui/releases/latest and load the font inside the image ?
Like that the UI could be use in isolated network.



Issue comments:
Hello there LaurentDanti! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀
@LaurentDanti thank you for the issue!

@Haarolean I think we already have issue created for fonts, maybe we add github call handling to that issue? 
hey @LaurentDanti, thanks for reaching out.
I know already at least a few cases in which people successfully use the app in the "air gap" environment (e.g. #1390).
We already have the fonts issue in progress (#2728), we'll keep this open for considering opting out of the version check.
@Haarolean  hello, I also have the fonts issue, UI doesn't work in isolated network, would you give  workaround ?
@Fuou we're working on it (#2372)
 @Haarolean what's the status here?
@cassanellicarlo it's up for grabs for the 3rd-party contributors since we don't have enough capacity to address this issue.
Hey 🙏 what is the status woth the opt out option?
Frontend implementation is invalid.

Tagged versions before:
<img width="361" alt="image" src="https://github.com/provectus/kafka-ui/assets/1494347/c44b0863-63dd-446f-a25a-a5d816843a60">
Tagged versions now are missing the tag and have a commit displayed anyway:
<img width="408" alt="image" src="https://github.com/provectus/kafka-ui/assets/1494347/ed5fb888-52fa-4f8a-aa18-9d0d768d1402">

if version == versionTag display version rather than commitId
<img width="766" alt="image" src="https://github.com/provectus/kafka-ui/assets/1494347/66a9a277-d452-46df-ac17-2696fa8bba87">

@David-DB88 



ok


Pull request review comments:
```suggestion
  const currentVersion = isLatestRelease && version?.match(versionTag)
```
ок

Patch that resolved the issue:
diff --git a/kafka-ui-react-app/src/components/Version/Version.tsx b/kafka-ui-react-app/src/components/Version/Version.tsx
index 6788605d92b..0d0fdcff4b6 100644
--- a/kafka-ui-react-app/src/components/Version/Version.tsx
+++ b/kafka-ui-react-app/src/components/Version/Version.tsx
@@ -8,9 +8,15 @@ import * as S from './Version.styled';
 
 const Version: React.FC = () => {
   const { data: latestVersionInfo = {} } = useLatestVersion();
-  const { buildTime, commitId, isLatestRelease } = latestVersionInfo.build;
+  const { buildTime, commitId, isLatestRelease, version } =
+    latestVersionInfo.build;
   const { versionTag } = latestVersionInfo?.latestRelease || '';
 
+  const currentVersion =
+    isLatestRelease && version?.match(versionTag)
+      ? versionTag
+      : formatTimestamp(buildTime);
+
   return (
     <S.Wrapper>
       {!isLatestRelease && (
@@ -32,7 +38,7 @@ const Version: React.FC = () => {
           </S.CurrentCommitLink>
         </div>
       )}
-      <S.CurrentVersion>{formatTimestamp(buildTime)}</S.CurrentVersion>
+      <S.CurrentVersion>{currentVersion}</S.CurrentVersion>
     </S.Wrapper>
   );
 };


Test patch: