-
Notifications
You must be signed in to change notification settings - Fork 132
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
Load Files Input UI #625
Load Files Input UI #625
Conversation
18e03df
to
f7f8eed
Compare
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.
@jameskerr Care to add some integration tests that ingest itest/sample.{ndjson,tsv}
? A lot of what you already need should be available for direct use, or useful as example. You may modify or copy-from-example pcapIngestSample()
to ingest the NDJSON and Zeek TSV. The test pcap ingest
in itest/test/smoke.js
is a fine example to follow for the actual tests.
ingest: { | ||
filesInput: dataAttrSelector("ingestFilesInput"), | ||
filesButton: dataAttrSelector("ingestFilesButton") | ||
}, |
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 being mindful of good naming!
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.
Code and UI look awesome, love those animation effects!! 🔥I'll pull this down to play with it too, but great job!
@@ -0,0 +1,27 @@ | |||
/* @flow */ |
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.
Oh fun! I was just thinking about how useful a generator like this would be as I added in the expand
icon recently 👏
@mikesbrown I'd be happy to write an integration test. Thanks for the suggestion. |
Based on PcapInput component
Since the file input is now a permanently hidden element, wait for the button to appear, but still use the input.
I have lots of unit tests that catch edge cases, so I feel good with just this one.
2ae6d90
to
b861960
Compare
fixes #572
It now looks like so:
With an animation that looks like this.
This PR is the html and style changes, but the PR #594 contains the functionality. That one must be merged first.