Skip to content

Commit af79f4f

Browse files
committed
Remove config page & unused endpoints
1 parent 0c7ffa4 commit af79f4f

File tree

6 files changed

+5
-35
lines changed

6 files changed

+5
-35
lines changed

src/components/shared/header/Header.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,12 @@ export default function Header() {
7979
{currentPage == CurrentPage.NEW_PROJECT && <div className="ml-4 text-gray-500 text-sm font-normal">
8080
Add a new project to <span className="font-semibold text-gray-900">{organization?.name}</span>.
8181
</div>}
82-
{!(currentPage == CurrentPage.PROJECTS || currentPage == CurrentPage.USERS || currentPage == CurrentPage.NEW_PROJECT || currentPage == CurrentPage.MODELS_DOWNLOAD || currentPage == CurrentPage.CONFIG) && <div className="ml-4 text-gray-700 text-sm font-normal">
82+
{!(currentPage == CurrentPage.PROJECTS || currentPage == CurrentPage.USERS || currentPage == CurrentPage.NEW_PROJECT || currentPage == CurrentPage.MODELS_DOWNLOAD) && <div className="ml-4 text-gray-700 text-sm font-normal">
8383
{project?.name} - <span className="text-gray-500 font-normal">{project?.numDataScaleUploaded} records</span>
8484
</div>}
8585
{currentPage == CurrentPage.MODELS_DOWNLOAD && <div className="ml-4 text-gray-500 text-sm font-normal">
8686
Welcome <span className="font-semibold text-gray-900">{user?.firstName}</span>! See your downloaded models.
8787
</div>}
88-
{currentPage == CurrentPage.CONFIG && <div className="ml-4 text-gray-500 text-sm font-normal">
89-
{!organizationInactive && user && <>Welcome, <span className="font-semibold text-gray-900">{user?.firstName}</span>! Change your app configuration <span className="font-semibold text-gray-900">here</span>.</>}
90-
{organizationInactive && <>Welcome, <span className="font-semibold text-gray-900">{user?.firstName}</span>!
91-
You are currently on the waitlist.</>}
92-
</div>}
9388
</div>
9489
<div className="flex flex-row flex-nowrap items-center">
9590
<div className="flex items-center justify-center">

src/components/shared/sidebar/VersionOverviewModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function VersionOverviewModal() {
4747
<tbody className="divide-y divide-gray-200">
4848
{versionOverviewData.map((service: VersionOverview, index: number) => (
4949
<tr key={service.service} className={index % 2 != 0 ? 'bg-gray-50' : 'bg-white'}>
50-
<td className="text-left px-3 py-2 text-sm text-gray-500">{service.service}</td>
50+
<td className="text-left px-3 py-2 text-sm text-gray-500 whitespace-nowrap">{service.service}</td>
5151
<td className="text-center px-3 py-2 text-sm text-gray-500">{service.installedVersion}</td>
5252
<td className="text-center px-3 py-2 text-sm text-gray-500">
5353
<div className="flex flex-row items-center justify-center">
@@ -57,7 +57,7 @@ export default function VersionOverviewModal() {
5757
</Tooltip>}
5858
</div>
5959
</td>
60-
<td className="text-center px-3 py-2 text-sm text-gray-500">{service.parseDate}</td>
60+
<td className="text-center px-3 py-2 text-sm text-gray-500 whitespace-nowrap">{service.parseDate}</td>
6161
<td className="text-center px-3 py-2 text-sm text-gray-500">
6262
<a href={service.link} target="_blank" rel="noopener noreferrer" className="h-4 w-4 m-auto block p-0">
6363
<IconExternalLink className="h-4 w-4 m-auto" />

src/services/base/organization.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { FetchType, jsonFetchWrapper } from "@/submodules/javascript-functions/basic-fetch";
22
import { BACKEND_BASE_URI } from "./_settings";
3-
import { convertCamelToSnakeCase } from "@/submodules/javascript-functions/case-types-parser";
43

54
export const organizationEndpoint = `${BACKEND_BASE_URI}/api/v1/organization`;
65

@@ -28,16 +27,3 @@ export function getAllActiveAdminMessages(onResult: (result: any) => void) {
2827
const finalUrl = `${organizationEndpoint}/all-active-admin-messages`;
2928
jsonFetchWrapper(finalUrl, FetchType.GET, onResult);
3029
}
31-
32-
33-
export function changeOrganization(orgId: string, changes: string, onResult: (result: any) => void) {
34-
const finalUrl = `${organizationEndpoint}/change-organization`;
35-
const body = { orgId, changes };
36-
jsonFetchWrapper(finalUrl, FetchType.POST, onResult, JSON.stringify(convertCamelToSnakeCase(body)));
37-
}
38-
39-
export function updateConfig(dictStr: string, onResult: (result: any) => void) {
40-
const finalUrl = `${organizationEndpoint}/update-config`;
41-
const body = { dictStr };
42-
jsonFetchWrapper(finalUrl, FetchType.POST, onResult, JSON.stringify(convertCamelToSnakeCase(body)));
43-
}

src/types/components/config/config.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/types/shared/modal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export enum ModalEnum {
4646
DATA_SLICE_INFO = "DATA_SLICE_INFO",
4747
DELETE_SLICE = "DELETE_SLICE",
4848
SAVE_DATA_SLICE = "SAVE_DATA_SLICE",
49-
CONFIGURATION = "CONFIGURATION",
49+
CONFIGURATION = "CONFIGURATION", // data browser configuration
5050
RECORD_COMMENTS = "RECORD_COMMENTS",
5151
SIMILARITY_SEARCH = "SIMILARITY_SEARCH",
5252
CREATE_OUTLIER_SLICE = "CREATE_OUTLIER_SLICE",

submodules/react-components

0 commit comments

Comments
 (0)