Skip to content

Commit

Permalink
🐛 fix(storage): remove credentials UI
Browse files Browse the repository at this point in the history
  • Loading branch information
thrownullexception committed Apr 11, 2024
1 parent fba2fd5 commit 3902d90
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
4 changes: 3 additions & 1 deletion src/__tests__/_/forCodeCoverage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { FOR_CODE_COV as $46 } from "shared/constants/portal/menu/main";
import { FOR_CODE_COV as $47 } from "shared/constants/portal/menu/index";
import { FOR_CODE_COV as $48 } from "shared/user-preferences/base-types";
import { FOR_CODE_COV as $49 } from "shared/user-preferences/types";
import { FOR_CODE_COV as $50 } from "frontend/design-system/components/EmptyWrapper/types";

import { noop } from "shared/lib/noop";

Expand Down Expand Up @@ -85,7 +86,8 @@ noop(
$46,
$47,
$48,
$49
$49,
$50
);

describe("Code coverage ignores plain types file", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/_layouts/guest/_partials/GuestHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Root = styled(CardBody)`

interface IProps {
title: string;
subTitle?: string;
subTitle: string;
fullLogo?: string;
homeLink?: string;
}
Expand All @@ -37,7 +37,7 @@ export function GuestHeader({
<Spacer />
<Typo.MD color="inverse">{title}</Typo.MD>
<Spacer size="xs" />
{subTitle ? <Typo.XS color="inverse">{subTitle}</Typo.XS> : null}
<Typo.XS color="inverse">{subTitle}</Typo.XS>
</a>
</Root>
);
Expand Down
2 changes: 2 additions & 0 deletions src/frontend/design-system/components/EmptyWrapper/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ export interface IEmptyWrapperProps {
text: string;
createNew?: { action: string | (() => void); label: string };
}

export const FOR_CODE_COV = 1;
22 changes: 4 additions & 18 deletions src/frontend/views/integrations/storage/Credentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
FormSkeletonSchema,
} from "frontend/design-system/components/Skeleton/Form";
import { ISchemaFormConfig } from "shared/form-schemas/types";
import { noop } from "shared/lib/noop";
import { IStorageIntegration } from "shared/types/actions";
import { STORAGE_INTEGRATIONS_CRUD_CONFIG } from "./constants";
import {
Expand Down Expand Up @@ -71,23 +70,10 @@ export function StorageCredentialsSettings() {
}
>
{storageCredentialsConfiguration.data === undefined ? (
<>
<SchemaForm<{ storageKey: string }>
fields={{
storageKey: storageFormConfig,
}}
onSubmit={async () => noop()}
initialValues={{
storageKey: currentStorage,
}}
buttonText={null}
systemIcon="Save"
/>
<PasswordToReveal
label={`${STORAGE_INTEGRATIONS_CRUD_CONFIG.TEXT_LANG.TITLE} Configuration`}
isLoading={storageCredentialsConfiguration.isLoading}
/>
</>
<PasswordToReveal
label={`${STORAGE_INTEGRATIONS_CRUD_CONFIG.TEXT_LANG.TITLE} Configuration`}
isLoading={storageCredentialsConfiguration.isLoading}
/>
) : (
<SchemaForm<{ storageKey: string }>
fields={{
Expand Down

0 comments on commit 3902d90

Please sign in to comment.