Skip to content

Commit

Permalink
🚧 Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tulsiojha committed Jan 8, 2024
1 parent 136dff6 commit 8315241
Show file tree
Hide file tree
Showing 37 changed files with 74 additions and 77 deletions.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion lib/client/helpers/socket-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ export const useWatch = (...topics: string[]) => {
useSubscribe(
topics,
() => {
console.log('hi');
reloadPage();
},
topics
Expand Down
3 changes: 0 additions & 3 deletions src/apps/auth/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const restActions = async (ctx: IExtRemixCtx) => {
const cookie = getCookie(ctx);
if (cookie.get('cliLogin')) {
try {
console.log('here', 'lskdfjsldfj');

const { data, errors } = await GQLServerHandler(
ctx.request
).setRemoteAuthHeader({
Expand All @@ -21,7 +19,6 @@ const restActions = async (ctx: IExtRemixCtx) => {

logger.log(data, 'loggedin');
if (errors) {
console.log('here', errors);
throw errors[0];
}

Expand Down
1 change: 0 additions & 1 deletion src/apps/auth/routes/_providers+/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const SignUpWithEmail = () => {
.required('confirm password is required'),
}),
onSubmit: async (v) => {
console.log(v);
try {
const { errors: _errors } = await api.signUpWithEmail({
email: v.email,
Expand Down
2 changes: 1 addition & 1 deletion src/apps/auth/routes/test/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CodeMirrorClient from './editor-client';
import CodeMirrorClient from '~/root/lib/client/components/editor-client';

const Editor = () => {
return (
Expand Down
16 changes: 8 additions & 8 deletions src/apps/console/page-components/new-cluster.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ArrowRight } from '@jengaicons/react';
import { useNavigate, useOutletContext, useParams } from '@remix-run/react';
import { useNavigate, useParams } from '@remix-run/react';
import { useMemo, useState } from 'react';
import { Button } from '~/components/atoms/button';
import { TextInput } from '~/components/atoms/input';
Expand All @@ -24,7 +24,7 @@ import {
validateClusterCloudProvider,
} from '../server/r-utils/common';
import { ensureAccountClientSide } from '../server/utils/auth-utils';
import { IAccountContext } from '../routes/_main+/$account+/_layout';
// import { IAccountContext } from '../routes/_main+/$account+/_layout';
import ProgressWrapper from '../components/progress-wrapper';

type props =
Expand All @@ -41,7 +41,7 @@ export const NewCluster = ({ providerSecrets, cloudProvider }: props) => {
const { cloudprovider: cp } = useParams();
const isOnboarding = !!cp;

const [showUnsavedChanges, setShowUnsavedChanges] = useState(false);
// const [showUnsavedChanges, setShowUnsavedChanges] = useState(false);
const api = useConsoleApi();

const cloudProviders = useMemo(
Expand All @@ -63,7 +63,7 @@ export const NewCluster = ({ providerSecrets, cloudProvider }: props) => {

const { a: accountName } = useParams();

const { account } = useOutletContext<IAccountContext>();
// const { account } = useOutletContext<IAccountContext>();

const navigate = useNavigate();

Expand Down Expand Up @@ -110,12 +110,12 @@ export const NewCluster = ({ providerSecrets, cloudProvider }: props) => {
.oneOf(['HA', 'dev']),
}),
onSubmit: async (val) => {
type Merge<T, M> = Omit<T, keyof M> & M;
// type Merge<T, M> = Omit<T, keyof M> & M;

type nt = { availabilityMode: 'HA' | 'dev' | string };
const k: Merge<typeof val, nt> = val;
// type nt = { availabilityMode: 'HA' | 'dev' | string };
// const k: Merge<typeof val, nt> = val;

console.log(k);
// console.log(k);
// val.availabilityMode
if (!accountName || !val.availabilityMode) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/apps/console/routes/_a+/teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const Accounts = () => {
>
<List.Root plain linkComponent={Link}>
{page.map((account, index) => {
console.log('here....', account);
// console.log('here....', account);

const name = parseName(account);
const { isInvite, displayName, inviteToken } = account;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const CurrentBreadcrum = ({ environment }: { environment: IEnvironment }) => {
if (errors) {
throw errors[0];
}
console.log(data);
// console.log(data);

setEnvironments(parseNodes(data));
} catch (err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
parseName,
parseNodes,
} from '~/console/server/r-utils/common';
import { useAPIClient } from '~/root/lib/client/hooks/api-provider';
import useDebounce from '~/root/lib/client/hooks/use-debounce';
import useForm from '~/root/lib/client/hooks/use-form';
import Yup from '~/root/lib/server/helpers/yup';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const EnvironmentVariables = () => {
refKey: Yup.string()
.when(['type'], ([type], schema) => {
if (type === 'config' || type === 'secret') {
console.log('here', type);
// console.log('here', type);
return schema.required();
}
return schema;
Expand Down Expand Up @@ -239,11 +239,11 @@ export const EnvironmentVariables = () => {

const vSchema = Yup.object({
refKey: Yup.string().when('$textInputValue', ([v], schema) => {
console.log(v, 'here');
// console.log(v, 'here');
return schema;
}),
refName: Yup.string().when('$textInputValue', ([v], schema) => {
console.log(v);
// console.log(v);
return schema;
}),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const AppReview = () => {

useEffect(() => {
const res = validateType(app, 'AppIn');
console.log('res', res);
// console.log('res', res);
setErrors(res);
}, []);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ const SecretItemResources = ({
onShow,
};

console.log('items....', items);
// console.log('items....', items);

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Workspaces = () => {
}}
>
{({ environmentData }) => {
console.log('environment: ', environmentData);
// console.log('environment: ', environmentData);

const environments = parseNodes(environmentData);

Expand Down
11 changes: 9 additions & 2 deletions src/apps/console/routes/_main+/$account+/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CaretDownFill, Plus } from '@jengaicons/react';
import { CaretDownFill, ChevronUpDown, Plus } from '@jengaicons/react';
import { redirect } from '@remix-run/node';
import {
Outlet,
Expand Down Expand Up @@ -100,7 +100,14 @@ const AccountMenu2 = ({ account }: { account: IAccount }) => {
}}
trigger={
<Breadcrum.Button
content={<BreadcrumButtonContent content={account.displayName} />}
content={
<span className="flex flex-row items-center gap-md">
<BreadcrumButtonContent content={account.displayName} />
<span className="text-icon-disabled">
<ChevronUpDown color="currentColor" size={11} />
</span>
</span>
}
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import withContext from '~/root/lib/app-setup/with-contxt';
import { IExtRemixCtx } from '~/root/lib/types/common';
import { BrandLogo } from '~/components/branding/brand-logo';
import {
BackingServices,
ChevronRight,
CirclesThreePlus,
Cpu,
Crosshair,
Database,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ClusterOverview = () => {
<SidebarLayout
navItems={[
{ label: 'Info', value: 'info' },
{ label: 'Logs', value: 'logs' },
// { label: 'Logs', value: 'logs' },
{ label: 'Metrics', value: 'metrics' },
]}
headerTitle=""
Expand Down
2 changes: 1 addition & 1 deletion src/apps/console/routes/_main+/_layout/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Logo = () => {
const { account } = useParams();
return (
<LogoWrapper to={`/${account}/infra/clusters`}>
<BrandLogo detailed />
<BrandLogo />
</LogoWrapper>
);
};
Expand Down
2 changes: 0 additions & 2 deletions src/apps/console/utils/commons.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { AWSlogoFill, ChevronRight } from '@jengaicons/react';
import { Github__Com___Kloudlite___Operator___Apis___Common____Types__CloudProvider as CloudProviders } from '~/root/src/generated/gql/server';
import { ReactNode } from 'react';
import { Truncate } from '~/root/lib/utils/common';
import { cn } from '~/components/utils';
import {
IMSvTemplate,
Expand Down
2 changes: 1 addition & 1 deletion src/apps/devdoc/images/cost-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8315241

Please sign in to comment.