Skip to content

Commit

Permalink
Fix comments from reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
mofojed committed Jan 29, 2025
1 parent fe25d21 commit 0e17d8e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
8 changes: 6 additions & 2 deletions packages/dashboard-core-plugins/src/events/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { type TabEvent as DashboardTabEvent } from '@deephaven/dashboard';

export { default as ChartEvent } from './ChartEvent';
export { default as ConsoleEvent } from './ConsoleEvent';
export { default as InputFilterEvent } from './InputFilterEvent';
Expand All @@ -6,5 +8,7 @@ export { default as MarkdownEvent } from './MarkdownEvent';
export { default as NotebookEvent } from './NotebookEvent';
export { default as PandasEvent } from './PandasEvent';

// Deprecated - use TabEvent from @deephaven/dashboard
export { type TabEvent } from '@deephaven/dashboard';
/**
* @deprecated Use TabEvent from @deephaven/dashboard
*/
export type TabEvent = typeof DashboardTabEvent;
4 changes: 2 additions & 2 deletions packages/dashboard-core-plugins/src/panels/CorePanel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { PureComponent, type ReactElement } from 'react';
import { createXComponent } from '@deephaven/components';
import { type BasePanelProps, Panel } from '@deephaven/dashboard';
import { type BasePanelProps, BasePanel } from '@deephaven/dashboard';
import type { dh } from '@deephaven/jsapi-types';
import { ConsoleEvent, InputFilterEvent } from '../events';

Expand Down Expand Up @@ -71,7 +71,7 @@ class CorePanel extends PureComponent<CorePanelProps> {
const { children, ...otherProps } = this.props;

// eslint-disable-next-line react/jsx-props-no-spreading
return <Panel {...otherProps}>{children}</Panel>;
return <BasePanel {...otherProps}>{children}</BasePanel>;
}
}

Expand Down
11 changes: 8 additions & 3 deletions packages/dashboard-core-plugins/src/panels/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import CorePanelImport from './CorePanel';

export { default as ChartPanel } from './ChartPanel';
export * from './ChartPanel';
export * from './ChartPanelUtils';
Expand All @@ -17,10 +19,13 @@ export { default as MarkdownPanel } from './MarkdownPanel';
export { default as NotebookPanel } from './NotebookPanel';
export { default as PandasPanel } from './PandasPanel';
export * from './PandasPanel';
export { default as CorePanel } from './CorePanel';
// Deprecated - use CorePanel instead
export { default as Panel } from './CorePanel';
export * from './WidgetPanelTypes';
export { default as WidgetPanel, type WidgetPanelProps } from './WidgetPanel';
export { default as WidgetPanelTooltip } from './WidgetPanelTooltip';
export { default as MockFileStorage } from './MockFileStorage';
export const CorePanel = CorePanelImport;

/**
* @deprecated Use CorePanel instead.
*/
export const Panel = CorePanelImport;
2 changes: 1 addition & 1 deletion packages/dashboard/src/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ interface PanelState {
/**
* Generic panel component that emits mount/unmount/focus events.
* Also wires up some triggers for common events:
* Focus, Resize, Show, Session open/close, client disconnect/reconnect.
* Focus, Resize, Show
*/
class Panel extends PureComponent<BasePanelProps, PanelState> {
constructor(props: BasePanelProps) {
Expand Down
8 changes: 6 additions & 2 deletions packages/dashboard/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ export { default as DashboardUtils } from './DashboardUtils';
export * from './LazyDashboard';
export * from './layout';
export * from './redux';
export { type BasePanelProps } from './Panel';
export { default as Panel } from './Panel';
export {
type BasePanelProps,
default as Panel,
// Alias for Panel
default as BasePanel,
} from './Panel';
export * from './PanelManager';
export * from './PanelEvent';
export { default as PanelErrorBoundary } from './PanelErrorBoundary';
Expand Down

0 comments on commit 0e17d8e

Please sign in to comment.