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
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ type FieldProps = {
value: ReactNode;
} & Omit<ComponentProps<typeof Box>, 'title' | 'value'>;

// TODO: description missing color token
const Field = ({ title, value, ...props }: FieldProps) => (
<Box mb={4} pi={4} width='full' flexBasis={100} flexShrink={0} color='default' {...props}>
<Box fontScale='p2m'>{title}</Box>
{value}
<Box fontScale='p2m' color='hint'>{title}</Box>
<Box fontScale='p1m' color='default'>
{value}
</Box>
</Box>
);

Expand Down
7 changes: 1 addition & 6 deletions packages/core-services/src/types/ITelemetryEvent.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
type updateCounterDataType = { settingsId: string };
type slashCommandsDataType = { command: string };

// TODO this is duplicated from /packages/rest-typings/src/v1/statistics.ts
export type TelemetryMap = { slashCommandsStats: slashCommandsDataType; updateCounter: updateCounterDataType };
export type TelemetryEvents = keyof TelemetryMap;
import type { TelemetryMap, TelemetryEvents } from '@rocket.chat/rest-typings';

export interface ITelemetryEvent {
register: (name: TelemetryEvents, fn: () => Promise<any> | void) => void;
Expand Down
1 change: 1 addition & 0 deletions packages/rest-typings/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export * from './v1/auth';
export * from './v1/cloud';
export * from './v1/banners';
export * from './default';
export * from './v1/statistics';

// Export the ajv instance for use in other packages
export * from './v1/Ajv';