Skip to content
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

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

mattseddon
Copy link
Member

  • Make timestamp column hideable
  • make some suggestions

@mattseddon mattseddon self-assigned this Aug 24, 2022
@mattseddon mattseddon changed the base branch from main to make-timestamp-column-hideable August 24, 2022 04:08
@@ -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)
Copy link
Member Author

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,
Copy link
Member Author

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.

@codeclimate
Copy link

codeclimate bot commented Aug 24, 2022

Code Climate has analyzed commit 995eb87 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

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.

Copy link
Contributor

@julieg18 julieg18 left a 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!

@julieg18 julieg18 marked this pull request as ready for review August 24, 2022 13:14
@julieg18 julieg18 requested review from sroy3 and wolmir as code owners August 24, 2022 13:14
@julieg18 julieg18 marked this pull request as draft August 24, 2022 13:15
@julieg18 julieg18 marked this pull request as ready for review August 24, 2022 14:33
@julieg18 julieg18 merged commit 64f0b6a into make-timestamp-column-hideable Aug 24, 2022
@julieg18 julieg18 deleted the make-suggestions branch August 24, 2022 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants