killed the concept of customizable column sets per device in device logs
Summary: No device was using this feature, so doesn't look like there is a reason to keep it. ...if somebody was about to use this feature, let me know :). But probably, if we need this, a much more simple solution is to determine the visible columns with a simple switch on device type in the logs plugin, even though that is strictly speaking less scalable. But the current solution feels a bit over-engineered for something that is not really used. Marked [interesting] as I might be missing some background concept which would make this relevant as well. Reviewed By: jknoxville, nikoant Differential Revision: D22763507 fbshipit-source-id: ecdbc779cbbfa3b0b72c80b459b12c1a25bf3fc4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d538b66088
commit
94eaaf5dca
@@ -9,9 +9,6 @@
|
||||
|
||||
import {
|
||||
TableBodyRow,
|
||||
TableColumnOrder,
|
||||
TableColumnSizes,
|
||||
TableColumns,
|
||||
TableRowSortOrder,
|
||||
Props as PluginProps,
|
||||
BaseAction,
|
||||
@@ -39,7 +36,7 @@ import {
|
||||
import LogWatcher from './LogWatcher';
|
||||
import React from 'react';
|
||||
import {Icon, LogCount, HiddenScrollText} from './logComponents';
|
||||
import {pad, getLineCount, keepKeys} from './logUtils';
|
||||
import {pad, getLineCount} from './logUtils';
|
||||
|
||||
const LOG_WATCHER_LOCAL_STORAGE_KEY = 'LOG_WATCHER_LOCAL_STORAGE_KEY';
|
||||
|
||||
@@ -404,9 +401,6 @@ export default class LogTable extends FlipperDevicePlugin<
|
||||
};
|
||||
|
||||
tableRef: ManagedTableClass | undefined;
|
||||
columns: TableColumns;
|
||||
columnSizes: TableColumnSizes;
|
||||
columnOrder: TableColumnOrder;
|
||||
logListener: Symbol | undefined;
|
||||
|
||||
batch: Array<{
|
||||
@@ -418,12 +412,6 @@ export default class LogTable extends FlipperDevicePlugin<
|
||||
|
||||
constructor(props: PluginProps<PersistedState>) {
|
||||
super(props);
|
||||
const supportedColumns = this.device.supportedColumns();
|
||||
this.columns = keepKeys(COLUMNS, supportedColumns);
|
||||
this.columnSizes = keepKeys(COLUMN_SIZE, supportedColumns);
|
||||
this.columnOrder = INITIAL_COLUMN_ORDER.filter((obj) =>
|
||||
supportedColumns.includes(obj.key),
|
||||
);
|
||||
|
||||
const initialState = addEntriesToState(
|
||||
this.device
|
||||
@@ -595,9 +583,9 @@ export default class LogTable extends FlipperDevicePlugin<
|
||||
innerRef={this.setTableRef}
|
||||
floating={false}
|
||||
multiline={true}
|
||||
columnSizes={this.columnSizes}
|
||||
columnOrder={this.columnOrder}
|
||||
columns={this.columns}
|
||||
columnSizes={COLUMN_SIZE}
|
||||
columnOrder={INITIAL_COLUMN_ORDER}
|
||||
columns={COLUMNS}
|
||||
rows={this.state.rows}
|
||||
highlightedRows={this.state.highlightedRows}
|
||||
onRowHighlighted={this.onRowHighlighted}
|
||||
|
||||
Reference in New Issue
Block a user