Skip to content
Open
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 src/api/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
updateSupabase,
} from 'src/services/supabase';

export interface ExchangeResponse {
interface ExchangeResponse {
directive: Directive | null; // Only null so we can "fake" this response below
applied_directive: AppliedDirective<UserClaims>;
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/drafts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const createEntityDraft = (entityName: string) => {
});
};

export interface DraftsQuery_ByCatalogName {
interface DraftsQuery_ByCatalogName {
id: string;
detail: string;
updated_at: string;
Expand Down
2 changes: 1 addition & 1 deletion src/api/gql/inviteLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { graphql } from 'src/gql-types';

const DEFAULT_LINKS: any[] = [];

export const INVITE_LINKS_PAGE_SIZE = 10;
const INVITE_LINKS_PAGE_SIZE = 10;

const INVITE_LINKS_QUERY = graphql(`
query InviteLinks($first: Int, $after: String) {
Expand Down
14 changes: 7 additions & 7 deletions src/api/liveSpecsExt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@ const commonColumns = baseColumns.concat([
export interface CaptureQuery extends LiveSpecsExtBaseQuery {
writes_to: string[];
}
export interface CaptureQueryWithSpec extends CaptureQuery {
interface CaptureQueryWithSpec extends CaptureQuery {
spec: any;
}
export interface CaptureQueryWithStats extends CaptureQuery {
stats?: CatalogStats;
}
export interface MaterializationQuery extends LiveSpecsExtBaseQuery {
interface MaterializationQuery extends LiveSpecsExtBaseQuery {
reads_from: string[];
}
export interface MaterializationQueryWithSpec extends MaterializationQuery {
interface MaterializationQueryWithSpec extends MaterializationQuery {
spec: any;
}
export interface MaterializationQueryWithStats extends MaterializationQuery {
stats?: CatalogStats;
}
export type CollectionQuery = LiveSpecsExtBaseQuery;
type CollectionQuery = LiveSpecsExtBaseQuery;
export interface CollectionQueryWithStats extends CollectionQuery {
stats?: CatalogStats;
}
Expand Down Expand Up @@ -211,7 +211,7 @@ const getLiveSpecs_existingTasks = (
};

// Hydration-specific queries
export interface LiveSpecsExtQuery_DetailsForm {
interface LiveSpecsExtQuery_DetailsForm {
catalog_name: string;
id: string;
spec_type: Entity;
Expand Down Expand Up @@ -252,7 +252,7 @@ const getLiveSpecs_detailsForm = async (liveSpecId: string) => {
return data;
};

export interface LiveSpecsExtQuery_DataPlaneAuthReq {
interface LiveSpecsExtQuery_DataPlaneAuthReq {
shard_labels: ProtocolLabel[];
}

Expand Down Expand Up @@ -449,7 +449,7 @@ const getLiveSpecSpec = (liveSpecId: string) => {
.single();
};

export interface LiveSpecsExtQuery_Latest {
interface LiveSpecsExtQuery_Latest {
spec: any;
id: string;
last_pub_id: string;
Expand Down
7 changes: 2 additions & 5 deletions src/api/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,14 @@ const MATERIALIZATION_QUERY = `
const hourlyGrain = 'hourly';
const dailyGrain = 'daily';
const monthlyGrain = 'monthly';
export type Grains =
| typeof hourlyGrain
| typeof dailyGrain
| typeof monthlyGrain;
type Grains = typeof hourlyGrain | typeof dailyGrain | typeof monthlyGrain;
type AllowedDates = Date | string | number;

// Make sure that this matched the derivation closely
// Function : grainsFromTS
// Source : https://github.com/estuary/flow/blob/master/ops-catalog/catalog-stats.ts
// TODO (typing)
export const convertToUTC = (
const convertToUTC = (
date: AllowedDates,
grain: Grains,
skipConversion?: boolean
Expand Down
12 changes: 6 additions & 6 deletions src/components/collection/Selector/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ import type { AddDialogProps } from 'src/components/shared/Entity/AddDialog/type
import type { ColumnProps } from 'src/components/tables/EntityTable/types';
import type { BindingMetadata, BindingState } from 'src/stores/Binding/types';

export type CollectionSelectorCellRenderer = (
type CollectionSelectorCellRenderer = (
params: any,
filterValue?: string
) => ReactNode;

export type CollectionNameKey =
type CollectionNameKey =
| typeof COLLECTION_SELECTOR_NAME_COL
| typeof COLLECTION_SELECTOR_STRIPPED_PATH_NAME;

export type CollectionSelectorStringKey =
type CollectionSelectorStringKey =
| CollectionNameKey
| typeof COLLECTION_SELECTOR_UUID_COL;

export type CollectionSelectorBooleanKey =
type CollectionSelectorBooleanKey =
| CollectionNameKey
| typeof COLLECTION_SELECTOR_TOGGLE_COL;

export type CollectionSelectorChunkKey =
type CollectionSelectorChunkKey =
| CollectionNameKey
| typeof COLLECTION_SELECTOR_HIGHLIGHT_CHUNKS;

Expand Down Expand Up @@ -71,7 +71,7 @@ export interface CollectionSelectorProps {
RediscoverButton?: ReactNode;
}

export interface CollectionSelectorCell<T = any> {
interface CollectionSelectorCell<T = any> {
handler?: (rows: T, newVal?: any) => Promise<any>;
cellRenderer: CollectionSelectorCellRenderer;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/collection/schema/Editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import useDraftSpecEditor from 'src/hooks/useDraftSpecEditor';
import { useFormStateStore_isActive } from 'src/stores/FormState/hooks';
import { getProperSchemaScope } from 'src/utils/schema-utils';

export interface Props {
interface Props {
entityName?: string;
localZustandScope?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/DraftSpec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import MonacoEditor from 'src/components/editor/MonacoEditor';
import { MonacoEditorSkeleton } from 'src/components/editor/MonacoEditor/EditorSkeletons';
import useDraftSpecEditor from 'src/hooks/useDraftSpecEditor';

export interface Props {
interface Props {
disabled?: boolean;
localZustandScope?: boolean;
editorHeight?: number;
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/EditorWithFileSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { MonacoEditorProps } from 'src/components/editor/MonacoEditor/types

import MonacoEditor from 'src/components/editor/MonacoEditor';

export interface Props extends MonacoEditorProps {
interface Props extends MonacoEditorProps {
height?: number;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/ListAndDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ReflexContainer, ReflexElement, ReflexSplitter } from 'react-reflex';
import { defaultOutline, reflexSplitterBackground } from 'src/context/Theme';
import { getEditorTotalHeight } from 'src/utils/editor-utils';

export interface Props {
interface Props {
list: ReactNode;
details: ReactNode;
height?: number;
Expand Down
4 changes: 2 additions & 2 deletions src/components/editor/Store/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface SelectorParams {
localScope?: boolean;
}

export const useStoreName = (
const useStoreName = (
entityType: Entity,
localScope?: boolean
): EditorStoreNames => {
Expand Down Expand Up @@ -472,7 +472,7 @@ export const useEditorStore_queryResponse = (
>(useStoreName(entityType, localScope), (state) => state.queryResponse);
};

export const useEditorStore_setQueryResponse = (
const useEditorStore_setQueryResponse = (
params?: SelectorParams | undefined
) => {
const localScope = params?.localScope;
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/Store/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { DraftSpec, DraftSpecQuery } from 'src/hooks/useDraftSpecs';
import type { BaseComponentProps, Schema } from 'src/types';
import type { KeyedMutator } from 'swr';

export interface DraftSpecResponse {
interface DraftSpecResponse {
draftSpecs: DraftSpecQuery[];
isValidating: boolean;
mutate: KeyedMutator<PostgrestResponse<DraftSpecQuery>> | null;
Expand Down
2 changes: 1 addition & 1 deletion src/components/fieldSelection/RefreshButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface Props {
refresh: Function;
}

export function RefreshButton({ buttonLabel, refresh }: Props) {
function RefreshButton({ buttonLabel, refresh }: Props) {
const selectionsHydrating = useBindingStore((state) =>
Object.values(state.selections).some(({ hydrating }) => hydrating)
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/fieldSelection/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface BaseButtonProps extends BindingUUIDProp {
selections: FieldSelection[] | null | undefined;
}

export interface BaseMenuProps {
interface BaseMenuProps {
handleClick: (recommended: boolean | number) => void;
disabled: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/hero/DemoButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
hasLength,
} from 'src/utils/misc-utils';

export const FILTER_TABLE_PROPS = {
const FILTER_TABLE_PROPS = {
captures: {
[`${TablePrefixes.captures}-${TableFilterKeys.searchQuery}`]: `${DEMO_TENANT}wikipedia/recent-changes`,
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/hero/Step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props extends BaseComponentProps {
title: string;
}

export function HeroStep({ children, stepNumber, title }: Props) {
function HeroStep({ children, stepNumber, title }: Props) {
return (
<>
<Stack
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/hero/Steps/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props extends BaseComponentProps {
title: string;
}

export function HeroBaseStep({ children, stepNumber, title }: Props) {
function HeroBaseStep({ children, stepNumber, title }: Props) {
return (
<>
<Stack
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/hero/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { MuiTabProps } from 'src/types';

import { StringParam, useQueryParam, withDefault } from 'use-query-params';

export const TABS: MuiTabProps<TabOptions>[] = [
const TABS: MuiTabProps<TabOptions>[] = [
{
label: 'home.hero.tab.companyOverview',
value: 'overview',
Expand Down
5 changes: 1 addition & 4 deletions src/components/login/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ interface Props {
notificationTitle?: string;
}

export function LoginNotifications({
notificationMessage,
notificationTitle,
}: Props) {
function LoginNotifications({ notificationMessage, notificationTitle }: Props) {
if (notificationMessage) {
return (
<Snackbar
Expand Down
2 changes: 1 addition & 1 deletion src/components/login/Providers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ButtonProps } from '@mui/material';
import type { Schema } from 'src/types';
import type { SupportedProvider } from 'src/types/authProviders';

export type LoginFunction = (
type LoginFunction = (
provider: SupportedProvider,
scopes: string,
params?: Schema
Expand Down
2 changes: 1 addition & 1 deletion src/components/materialization/TrialOnlyPrefixAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useIntl } from 'react-intl';
import AlertBox from 'src/components/shared/AlertBox';
import { useEntityType } from 'src/context/EntityContext';

export function TrialOnlyPrefixAlert({
function TrialOnlyPrefixAlert({
message,
triggered,
}: Omit<TrialOnlyPrefixAlertProps, 'messageId'> & { message: string }) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/materialization/targetNaming/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface Props {
alertMessage?: string;
}

export function TargetNamingDialog({
function TargetNamingDialog({
open,
initialStrategy,
onCancel,
Expand Down
10 changes: 5 additions & 5 deletions src/components/materialization/targetNaming/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export const SCHEMA_TEMPLATE_STRING = '{{schema}}';
export const TABLE_TEMPLATE_STRING = '{{table}}';

// Match i18n keys defaults.schema / defaults.table in CommonMessages.ts
export const EXAMPLE_SCHEMA_DEFAULT = 'anvils';
export const EXAMPLE_TABLE_DEFAULT = 'orders';
const EXAMPLE_SCHEMA_DEFAULT = 'anvils';
const EXAMPLE_TABLE_DEFAULT = 'orders';

export const VALID_STRATEGY_KEYS: StrategyKey[] = [
const VALID_STRATEGY_KEYS: StrategyKey[] = [
'matchSourceStructure',
'singleSchema',
'prefixTableNames',
Expand Down Expand Up @@ -48,7 +48,7 @@ export function hasSchemaTemplate(
);
}

export function hasValidSchemaTemplate(
function hasValidSchemaTemplate(
s: TargetNamingStrategy | null | undefined
): s is Extract<TargetNamingStrategy, { schemaTemplate?: string }> & {
schemaTemplate: string;
Expand All @@ -71,7 +71,7 @@ export function hasTableTemplate(
);
}

export function hasValidTableTemplate(
function hasValidTableTemplate(
s: TargetNamingStrategy | null | undefined
): s is TargetNamingStrategy & { tableTemplate: string } {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/ListItemLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface Props {
link: string;
}

export const ListItemLink = ({ icon, title, link }: Props) => {
const ListItemLink = ({ icon, title, link }: Props) => {
const resolved = useResolvedPath(link);
const selected = Boolean(
useMatch({
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/AutoComplete/DefaultProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const autoCompleteDefaults: AutocompleteProps<any, any, false, false, 'div'> = {
size: 'small',
};

export const autoCompleteDefaults_Virtual: AutocompleteProps<
const autoCompleteDefaults_Virtual: AutocompleteProps<
any,
any,
false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import Row from 'src/components/shared/AutoComplete/VirtualizedList/Row';
import { autoCompleteListPadding } from 'src/context/Theme';

export const itemSize = 40;
const itemSize = 40;
const groupSize = 55;

const getChildSize = (child: ReactChild) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Dialog/TitleWithClose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DialogTitle, IconButton } from '@mui/material';
import { Xmark } from 'iconoir-react';
import { useIntl } from 'react-intl';

export interface DialogTitleProps extends BaseComponentProps {
interface DialogTitleProps extends BaseComponentProps {
id: string;
onClose: () => void;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Entity/CatalogEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface Props {
message: string;
}

export function CatalogEditor({ message }: Props) {
function CatalogEditor({ message }: Props) {
const draftId = useEditorStore_id();

const formStatus = useFormStateStore_status();
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Entity/Details/Alerts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface AlertDetailsWrapperProps {
short?: boolean;
}

export interface AlertDetailsProps extends AlertDetailsWrapperProps {
interface AlertDetailsProps extends AlertDetailsWrapperProps {
detail: AlertDetail;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useIntl } from 'react-intl';

import { diminishedTextColor } from 'src/context/Theme';

export function DetailWrapper({
function DetailWrapper({
children,
header,
Hydrating,
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Entity/EndpointConfig/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from 'src/stores/EndpointConfig/hooks';
import { useFormStateStore_isActive } from 'src/stores/FormState/hooks';

export const CONFIG_EDITOR_ID = 'endpointConfigEditor';
const CONFIG_EDITOR_ID = 'endpointConfigEditor';

interface Props {
readOnly: boolean;
Expand Down
Loading
Loading