-
Notifications
You must be signed in to change notification settings - Fork 0
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
TreeTable React component #813
Conversation
…can read data from URL
tidytree margin specs are not |
Fixed these margin/spacing issues in our fork :-) https://github.com/d-callan/TidyTree/pulls Now we have the vertical alignment bit pretty much sorted. Can start building a tree-table component next. First I think I will nail down this TidyTree.tsx component to only do horizontal dendrograms - or wrap a horizontal dendrogram component around it. The |
…en passed to emptinessCulprit
@@ -71,6 +73,7 @@ | |||
"@babel/core": "^7.17.9", | |||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7", | |||
"@babel/preset-env": "^7.16.11", | |||
"@emotion/css": "^11.11.2", |
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.
Does this eventually need to be a regular runtime dependency because we're doing runtime dynamic styling with cx(css(...))
?
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.
yeah, it probably does
Would the props be better split into |
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.
mostly i just played w storybook, but i think its looking good! 😸 I notice there isnt a dendrogram story w the branches colored as well, but just looking at the component api quickly suggests it should be possible. 👍
}, | ||
]; | ||
|
||
const tableColumns: MesaColumn<LeafRow>[] = [ |
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.
idk enough to know... is it easy to add a column of check boxes?
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 having a look. There's a separate story in "HorizontalDendrogram" with some non-table checkboxes that colour the tree.
I should probably wire up the TreeTable to use table-based checkboxes. Would be a good thing for the story.
I factored out the shimming here c62b622 Hopefully this will be visible to other packages as |
Latest story! Responds appropriately to
rowHeight
prop in the controls. (Though the table row height is a minimum height so things don't line up below a certain value (42 for me).)Firstly I followed much of Dave's work here #559
But I wanted it to be a
components
component, not something only working in ortho-site.So I started with a super-simple story, and I'm working backwards from there.
cd packages/libs/components
yarn add d3v5@npm:d3@5
- adds version 5 with the aliasd3v5
yarn add tidytree@github:d-callan/TidyTree
yarn add --dev imports-loader@^1.1.1 exports-loader@^1.1.1
- Storybook uses webpack 4, this page suggests v1.1.1 is the last suitable for webpack 4tidytree.d.ts
for now.storybook/main.js
patristic
isn't available totidytree.js
patristic
in.storybook/main.js
- this wasn't needed in Dave's PR but that was using webpack 5.Notes
I tried to get
storybook-addon-deep-controls
working for the nested args object in the story, but I couldn't get it to work. Have given up!I installed
react-query
as a dev dependency and provided the Storybook wrappings for it, but stopped using it. We should probably leave it in though, right?Question
How do we get the shimming to work when the component is used outside of Storybook?