Skip to content

Commit 0c28181

Browse files
committed
feat: connection init required status
1 parent 5eb2bf7 commit 0c28181

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

src/autokitteh

Submodule autokitteh updated 109 files

src/components/molecules/connectionTableStatus.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const ConnectionTableStatus = ({ status }: { status: ConnectionStatusType
1313
[ConnectionStatus.ok]: "text-green-800 hover:bg-green-800/10",
1414
[ConnectionStatus.unspecified]: "text-blue-500 hover:bg-blue-500/10",
1515
[ConnectionStatus.warning]: "text-yellow-500 hover:bg-yellow-500/10",
16+
[ConnectionStatus.init_required]: "text-orange-500 hover:bg-orange-500/10",
1617
};
1718
const baseClass = cn(
1819
"flex w-[6.8rem] items-center justify-center rounded-md border border-gray-800 px-2 py-0.5 text-xs text-white",

src/enums/components/connection.enum.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ import {
4040
} from "@assets/image/icons/connections";
4141

4242
export enum ConnectionStatus {
43+
// eslint-disable-next-line @typescript-eslint/naming-convention
44+
init_required = 4,
4345
error = 3,
4446
ok = 1,
4547
unspecified = 0,

src/locales/en/services/translation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"noMatchingIntegrationDetailsProjectAndConnection": "No matching integration for the connection found. Connection name: {{connectionName}}, connection ID: {{connectionId}}, project ID: {{projectId}}, integration ID: {{integrationId}}",
5555
"lastPrintForSessionLog": "The session has finished with {{sessionState}} state",
5656
"intergrationsNotFoundExtendedForConnection": "Intergrations for connection not found, connection ID: {{connectionId}}",
57-
"intergrationsNotFoundExtended": "Intergrations for project not found,, project ID: {{projectId}}",
58-
"intergrationsNotFoundExtendedError": "Couldn't fetch intergrations, project ID: {{projectId}}, error: {{error}}",
57+
"intergrationsNotFoundExtended": "Intergrations for project not found, project ID: {{projectId}}",
58+
"intergrationsNotFoundExtendedError": "Couldn't fetch intergrations, error: {{error}}",
5959
"multipleEnvironments": "Multiple environments found, please reload the page",
6060
"multipleEnvironmentsFoundExtended": "Multiple environments found, project ID: {{projectId}}",
6161
"projectNotCreated": "There was an issue creating the project",
@@ -164,4 +164,4 @@
164164
"errorNavigatingToBilling": "Error navigating to billing: {{error}}"
165165
}
166166
}
167-
}
167+
}

src/locales/en/tabs/translation.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
"error": "Error",
5050
"ok": "OK",
5151
"unspecified": "Unspecified",
52-
"warning": "Warning"
52+
"warning": "Warning",
53+
"init_required": "Init Required"
5354
}
5455
},
5556
"titleAvailable": "Connections",
@@ -270,4 +271,4 @@
270271
"variableRemovedSuccessfully": "{{variableName}} removed successfully",
271272
"variableRemovedSuccessfullyExtended": "{{variableName}} removed successfully, variable ID: {{variableId}}"
272273
}
273-
}
274+
}

src/models/connection.model.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export const mapProtoStatusToConnectionStatus = (protoStatus?: Status): Connecti
1616
return "warning";
1717
case Status_Code.ERROR:
1818
return "error";
19+
case Status_Code.INIT_REQUIRED:
20+
return "init_required";
1921
default:
2022
return "error";
2123
}

0 commit comments

Comments
 (0)