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

Adding Feature: Data Viewer #112

Merged
merged 38 commits into from
Aug 6, 2018
Merged

Adding Feature: Data Viewer #112

merged 38 commits into from
Aug 6, 2018

Conversation

ydlamba
Copy link
Member

@ydlamba ydlamba commented Jun 15, 2018

First Draft
screenshot_20180615_201616
Status: Work in Progress
Fixes #85.

@domoritz
Copy link
Member

https://medium.com/mission-log/design-better-data-tables-430a30a00d8c for some advice.

@domoritz domoritz added the WIP Work in Progress PRs label Jun 18, 2018
@domoritz domoritz changed the title [WIP] Adding Feature: Data Viewer Adding Feature: Data Viewer Jun 18, 2018
@ydlamba ydlamba force-pushed the ydl/data-viewer branch 2 times, most recently from 19b2b64 to 3cdfa12 Compare June 25, 2018 15:21
@domoritz
Copy link
Member

domoritz commented Jun 27, 2018

Somehow I cannot brush in http://localhost:8080/#/examples/vega-lite/selection_layer_bar_month.

  • Broken hover
  • Not pixel perfect (notice offset to the right)

screen shot 2018-06-26 at 17 25 40

  • make tabs look like in VSCode or remove the line between tab and content.
  • dropdown too large
  • Too much white space
  • It's not just error logs. Rename!

screen shot 2018-06-26 at 17 26 15

  • Resize should be above the tabs

screen shot 2018-06-26 at 17 29 37

Other

  • Don't use (...)
  • How do I access data that's too large?
  • Only show the first 100 rows. Then provide a way to jump to next batch.

@ydlamba ydlamba force-pushed the ydl/data-viewer branch 4 times, most recently from 0207821 to b5ff147 Compare August 1, 2018 01:00
@ydlamba
Copy link
Member Author

ydlamba commented Aug 1, 2018

@domoritz I have updated a bunch of things. To proceed further, PR needs your feedback.

@ydlamba
Copy link
Member Author

ydlamba commented Aug 1, 2018

The only thing left is How do I access data that's too large?, which will be done in a followup PR.

@domoritz
Copy link
Member

domoritz commented Aug 1, 2018

Performance is awesome and it looks great. Well done! Below are some bugs I found and comments for improvements.

What about Don't use (...)? I see the this very often and don't think it's necessary in many cases.

For example, why doesn't this table adjust so that the first column fits?

screen shot 2018-07-31 at 22 12 59

  • I've also noticed that the panel at the bottom resizes when I switch from warnings to data viewer when I resized the panel before. The state should be saved.

  • reduce whitespace above selector

  • Don't show pagination if there is only one page

screen shot 2018-07-31 at 22 14 23

  • Add up down icon like the one we use for Vega code

screen shot 2018-07-31 at 22 15 16

  • Table does not update when I switch example
  • Make root the last dataset, not the first one
  • If the table is very wide, there is a lot of whitespace. Can we make it more narrow in this case? (not high priority)
  • There is a double line at the right side of the table.

screen shot 2018-07-31 at 22 19 24

@ydlamba
Copy link
Member Author

ydlamba commented Aug 1, 2018

PR has been updated.

@domoritz
Copy link
Member

domoritz commented Aug 1, 2018

When the table is narrow, the pager is oddly placed. Do you want to center it?

screen shot 2018-08-01 at 08 57 06

@domoritz
Copy link
Member

domoritz commented Aug 1, 2018

Before we can merge this, we need to deal with .... At least we should show a tooltip that says that the field is too large to be displayed. Please use the view API (see JS console).

@domoritz
Copy link
Member

domoritz commented Aug 1, 2018

Sometimes headers are not fully visible

screen shot 2018-08-01 at 09 09 00

@domoritz
Copy link
Member

domoritz commented Aug 1, 2018

  • Data table does not update when the data changes. Doe example, when I brush in a chart, the brush store should update.

Check data_1 in http://localhost:8080/#/examples/vega-lite/selection_layer_bar_month

@domoritz
Copy link
Member

domoritz commented Aug 1, 2018

  • The state of the data viewer is not saved. When I refresh, the arrow is pointing the wrong way.

@domoritz
Copy link
Member

domoritz commented Aug 1, 2018

  • I think the header of the table should not scroll.

screen shot 2018-08-01 at 09 12 30

@domoritz
Copy link
Member

domoritz commented Aug 1, 2018

  • Large table names overflow the dropdown.

screen shot 2018-08-01 at 09 13 12

@ydlamba ydlamba removed the WIP Work in Progress PRs label Aug 6, 2018
@domoritz
Copy link
Member

domoritz commented Aug 6, 2018

Two things and then we can merge

  • horizontal scrolling when the table is too wide
  • use the full height for the table instead of fixing the height

@domoritz domoritz merged commit 9cc173d into master Aug 6, 2018
@domoritz domoritz deleted the ydl/data-viewer branch August 6, 2018 02:35
@invokesus
Copy link
Member

🎉

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.

3 participants