-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make some timestamp processing suggestions #2247
Conversation
mattseddon
commented
Aug 24, 2022
- Make timestamp column hideable
- make some suggestions
@@ -228,8 +228,7 @@ const TableHeaderCell: React.FC<{ | |||
setExpColumnNeedsShadow | |||
}) => { | |||
const [menuSuppressed, setMenuSuppressed] = React.useState<boolean>(false) | |||
const isDraggable = | |||
!column.placeholderOf && !['id', 'timestamp'].includes(column.id) | |||
const isDraggable = !column.placeholderOf && !['id'].includes(column.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[F] And now can magically drag and drop the column....
@@ -4,8 +4,8 @@ import { ColumnType } from '../../webview/contract' | |||
export const timestampColumn = { | |||
hasChildren: false, | |||
label: 'Timestamp', | |||
parentPath: 'timestamp', | |||
path: 'timestamp:timestamp', | |||
parentPath: ColumnType.TIMESTAMP, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would see if it is possible to change this to an optional property and drop it from here.
Code Climate has analyzed commit 995eb87 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.7% (0.0% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestions! Makes the solution way cleaner!