Inspiration for data table design from flatgithub.com #869
Replies: 5 comments 4 replies
-
Historgram facet summary and filtering for numeric fieldsNote one issue with CSVs is that it doesn't realize last column is actually year (see the commas ...) |
Beta Was this translation helpful? Give feedback.
-
Auto-formatting numbers with "," separators |
Beta Was this translation helpful? Give feedback.
-
Identifying enumerated fields and using that in the UXHere it has identified GICS is enumerated and displayed it as such with "button" look and coloring On filter even get a pop-out: |
Beta Was this translation helpful? Give feedback.
-
I spent the last hours trying to understand the code and i have some thoughts. Firstly, we could probably just copy and paste the code, especially everything up to this point https://github.com/githubocto/flat-viewer/blob/main/src/components/json-detail-container.tsx and just remove the code related to github itself, the repo has a MIT License. We could go even further, turns out 90% of the magic in the project is actually in this repo https://github.com/githubocto/flat-ui honestly, this is so good, that we should instead of try adding stuff into our own component, we should probably just copy the code from this one and change everything that we don't like. One of the things i don´t like for instance is that it tries to auto detect enumerated fields in the example you shown, GIC Sub-Industry could also be categories. This detection is done here https://github.com/githubocto/flat-ui/blob/4d0848ef1928fb23b1f487c1d9f53d8f6aac2f1a/src/store.ts#L691 but we could probably also have some object metadata that overrided this auto detection. The work to move this code into PortalJS wouldn't be that hard, we would probably just need to create a wrapper that takes the csv url, this is because the flat-ui component already expects the data in parsed format. |
Beta Was this translation helpful? Give feedback.
-
/cc @davidgasquez thought you might like this thread 😄 |
Beta Was this translation helpful? Give feedback.
-
Github's (2021?) experiment with data presentation was really cool in lots of ways:
https://flatgithub.com
Writeup: https://githubnext.com/projects/flat-data
Code: https://github.com/githubocto/flat-viewer
What inspiration or learnings could we take from this?
Example
https://flatgithub.com/datasets/s-and-p-500-companies?filename=data%2Fconstituents.csv&sha=6517cdbbc8908397ff70d2259d6721672da3bc43
Beta Was this translation helpful? Give feedback.
All reactions