Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/components/LegacyExternalLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function ExternalLinkText({
);
}

export type ExternalLinkRole = "button" | "link" | "text";
type ExternalLinkRole = "button" | "link" | "text";

interface ExternalLinkProps {
children?: React.ReactNode | null;
Expand Down
43 changes: 0 additions & 43 deletions client/src/components/clamped/ClampedParagraph.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion client/src/components/errors/RtkOrDataServicesError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import cx from "classnames";
import { extractTextFromObject } from "../../utils/helpers/TextUtils";
import { ErrorAlert } from "../Alert";

export interface BackendErrorResponse {
interface BackendErrorResponse {
error: {
code: number;
message: string;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/loginAlert/LoginAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { Alert } from "reactstrap";

import { useLoginUrl } from "../../authentication/useLoginUrl.hook";

export interface LoginAlertProps {
interface LoginAlertProps {
logged: boolean;
noWrapper?: boolean;
textIntro?: string;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/progress/ProgressSteps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface StepsProgressBar {
step: string;
}

export interface ProgressStepsIndicatorProps {
interface ProgressStepsIndicatorProps {
/**
* Type of progress-bar. Indeterminate or Determinate
* @default Indeterminate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ import Select, {

import styles from "~/features/sessionsV2/components/SessionForm/Select.module.scss";

export interface ProjectMemberRoleOption {
interface ProjectMemberRoleOption {
label: string;
value: string;
description?: ReactNode;
}

export const GROUP_MEMBER_ROLE_OPTIONS = [
const GROUP_MEMBER_ROLE_OPTIONS = [
{
value: "viewer",
label: "Viewer",
Expand Down
2 changes: 1 addition & 1 deletion client/src/features/ProjectPageV2/utils/roleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type {
Role,
} from "../../projectsV2/api/projectV2.api";

export type RoleOrNone = Role | "none";
type RoleOrNone = Role | "none";
const ROLE_MAP: Record<RoleOrNone, number> = {
owner: 30,
editor: 20,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { Input, Label } from "reactstrap";
import { InfoAlert } from "~/components/Alert";
import type { ProviderForm } from "../connectedServices/api/connectedServices.types";

export interface ConnectedServiceFormContentProps {
interface ConnectedServiceFormContentProps {
control: Control<ProviderForm, unknown>;
}
export default function ConnectedServiceFormContent({
Expand Down

This file was deleted.

12 changes: 1 addition & 11 deletions client/src/features/cloudStorage/projectCloudStorage.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ export interface CloudStorage
sensitive_fields?: { name: string; help: string }[];
}

export type CloudStorageSensitiveFieldDefinition = Pick<
RCloneOption,
"name" | "help"
>;
type CloudStorageSensitiveFieldDefinition = Pick<RCloneOption, "name" | "help">;

export interface CloudStorageCredential
extends CloudStorageSensitiveFieldDefinition {
Expand Down Expand Up @@ -105,10 +102,3 @@ export type CloudStorageDetails = {
};

export type AuxiliaryCommandStatus = "failure" | "none" | "success" | "trying";

export interface AddStorageMountForm {
name: string;
mountPoint: string;
readOnly: boolean;
saveCredentials: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import type {

const LAST_POSITION = 1000;

export interface CloudStorageOptions extends RCloneOption {
interface CloudStorageOptions extends RCloneOption {
requiredCredential: boolean;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* limitations under the License.
*/

export const INTERNAL_GITLAB_PROVIDER_ID = "INTERNAL_GITLAB";
export const SEARCH_PARAM_PROVIDER = "targetProvider";
export const SEARCH_PARAM_ACTION_REQUIRED = "actionRequired";
export const SEARCH_PARAM_SOURCE = "source";
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,7 @@ type DataConnectorMountFormFields =
| "slug"
| "visibility";

export function DataConnectorMount({
dataConnector,
}: AddOrEditDataConnectorProps) {
function DataConnectorMount({ dataConnector }: AddOrEditDataConnectorProps) {
const dispatch = useAppDispatch();
const { cloudStorageState, flatDataConnector, schemata } = useAppSelector(
(state) => state.dataConnectorFormSlice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import { SuccessAlert } from "../../../../components/Alert";
import useAppSelector from "../../../../utils/customHooks/useAppSelector.hook";

export type AuxiliaryCommandStatus = "failure" | "none" | "success" | "trying";

interface DataConnectorModalResultProps {
alreadyExisted: boolean;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ interface DataConnectorModalHeaderProps {
dataConnectorId: string | null;
initialStep?: number;
}
export function DataConnectorModalHeader({
function DataConnectorModalHeader({
dataConnectorId,
initialStep,
}: DataConnectorModalHeaderProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import { skipToken } from "@reduxjs/toolkit/query";
import cx from "classnames";
import { capitalize } from "lodash-es";
import { useCallback, useMemo, useRef, useState } from "react";
import {
Cloud,
Expand Down Expand Up @@ -52,7 +53,6 @@ import { WarnAlert } from "../../../components/Alert";
import { Clipboard } from "../../../components/clipboard/Clipboard";
import { Loader } from "../../../components/Loader";
import { ABSOLUTE_ROUTES } from "../../../routing/routes.constants";
import { toCapitalized } from "../../../utils/helpers/HelperFunctions";
import { CredentialMoreInfo } from "../../cloudStorage/CloudStorageItem";
import {
CLOUD_STORAGE_SENSITIVE_FIELD_TOKEN,
Expand Down Expand Up @@ -376,7 +376,7 @@ function DataConnectorViewConfiguration({
{scope !== "global" &&
nonRequiredCredentialConfigurationKeys.map((key) => {
const title =
key == "provider" && hasAccessMode ? "Mode" : toCapitalized(key);
key == "provider" && hasAccessMode ? "Mode" : capitalize(key);
const value = storageDefinition.configuration[key]?.toString() ?? "";
return (
<DataConnectorPropertyValue key={key} title={title}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ interface DataConnectorNotVisibleToAllUsersBadgeProps {
warning?: string;
}

export function DataConnectorNotVisibleToAllUsersBadge({
function DataConnectorNotVisibleToAllUsersBadge({
className,
}: DataConnectorNotVisibleToAllUsersBadgeProps) {
const ref = useRef<HTMLDivElement>(null);
Expand Down Expand Up @@ -275,7 +275,7 @@ interface IntegrationBadgeProps {
dataConnector: DataConnector;
}

export function IntegrationBadge({ dataConnector }: IntegrationBadgeProps) {
function IntegrationBadge({ dataConnector }: IntegrationBadgeProps) {
const providerKind = useMemo(
() =>
CLOUD_STORAGE_INTEGRATION_KIND_MAP[dataConnector.storage.storage_type],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@ import { skipToken } from "@reduxjs/toolkit/query";
import { useMemo } from "react";

import { useGetProjectsByProjectIdsQuery } from "../../projectsV2/api/projectV2.enhanced-api";
import type { SessionStartDataConnectorConfiguration } from "../../sessionsV2/startSessionOptionsV2.types";
import type { DataConnectorRead } from "../api/data-connectors.api";
import { useGetDataConnectorsByDataConnectorIdProjectLinksQuery } from "../api/data-connectors.enhanced-api";

export interface DataConnectorConfiguration
extends Omit<SessionStartDataConnectorConfiguration, "cloudStorage"> {
dataConnector: DataConnectorRead;
}

interface UseDataSourceConfigurationArgs {
dataConnector: DataConnectorRead | undefined;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,4 @@
* limitations under the License.
*/

import type { DataConnector } from "./api/data-connectors.api";

export type DataConnectorScope = "global" | "namespace" | "project";

export type DataConnectorWithScope = DataConnector & {
scope: DataConnectorScope;
};
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import {
import { EMPTY_CLOUD_STORAGE_STATE } from "../../cloudStorage/projectCloudStorage.constants";
import {
AddCloudStorageState,
AuxiliaryCommandStatus,
CloudStorageSchema,
} from "../../cloudStorage/projectCloudStorage.types";
import {
EMPTY_DATA_CONNECTOR_FLAT,
type DataConnectorFlat,
} from "../components/dataConnector.utils";
import type { AuxiliaryCommandStatus } from "../components/DataConnectorModal/DataConnectorModalResult";

interface BackendResult {
isSuccess: boolean | undefined;
Expand Down
22 changes: 2 additions & 20 deletions client/src/features/display/display.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,13 @@
* limitations under the License.
*/

interface ProjectConfig {
projectPath: string;
gitUrl: string;
branch: string;
}

interface SessionConfig {
targetServer: string;
}

interface FaviconSet {
ico: string;
png_32x: string;
png_16x: string;
svg: string;
}

export type FaviconStatus =
| "general"
| "running"
| "waiting"
| "error"
| "pause";
interface Display {

export interface Display {
favicon: FaviconStatus;
}

export type { Display, FaviconSet, ProjectConfig, SessionConfig };
5 changes: 0 additions & 5 deletions client/src/features/display/index.ts

This file was deleted.

Loading
Loading