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

[RFR] New ra-tree for react-admin v2 #3771

Merged
merged 42 commits into from
Oct 18, 2019
Merged

[RFR] New ra-tree for react-admin v2 #3771

merged 42 commits into from
Oct 18, 2019

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Oct 3, 2019

  • Refactor according to feedbacks
  • Actions on nodes
  • Add drag & drop with reordering
  • Optimistic updates
  • Optimistic updates for react-admin actions
  • Adding new nodes
  • Tests
  • Documentation

ra-tree-drag-drop

@djhi djhi added this to the 2.9.7 milestone Oct 3, 2019
@djhi djhi added the WIP Work In Progress label Oct 10, 2019
@djhi djhi changed the title [WIP] New ra-tree for react-admin v2 [RFR] New ra-tree for react-admin v2 Oct 11, 2019
@djhi djhi added RFR Ready For Review and removed WIP Work In Progress labels Oct 11, 2019
packages/ra-tree-core/README.md Outdated Show resolved Hide resolved
examples/simple/src/dataProvider.js Outdated Show resolved Hide resolved
examples/simple/src/dataProvider.js Outdated Show resolved Hide resolved
packages/ra-tree-ui-materialui/src/Tree.tsx Outdated Show resolved Hide resolved
packages/ra-tree-ui-materialui/src/Tree.tsx Outdated Show resolved Hide resolved
packages/ra-tree-ui-materialui/src/Tree.tsx Outdated Show resolved Hide resolved
...rest
}) => (
<Toolbar className={classes.toolbar}>
<span />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand you're using justifyContent: 'space-between' and this span to push the actions to the right. But that means that 90% of the line is the toolbar... Wrong solution IMHO.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how it is done in the ListToolbar from which I just removed the filters

@@ -0,0 +1,538 @@
import React, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file needs to be split into several smaller components, it's too hard to follow

@djhi djhi modified the milestones: 2.9.7, 2.9.8 Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants