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

Add rename, duplicate and delete for Page Hierarchy #3336

Merged
merged 6 commits into from
Mar 28, 2024

Conversation

asif-choudhari
Copy link
Contributor

@asif-choudhari asif-choudhari commented Mar 28, 2024

  • Added Menu to the tree items. Menu is hidden until the item is hovered.
  • Actions added in the Menu:
    • Rename
    • Duplicate
    • Delete
  • Closes Ability to rename nodes #3168
Screen-Record_28-03-2024_14-50.mp4
  • I've read and followed the contributing guide.
  • I've linked relevant GitHub issue with "Closes #".
  • I've added a visual demonstration in the form of a screenshot or video.

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 28, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 28, 2024
@Janpot Janpot added the core Infrastructure work going on behind the scenes label Mar 28, 2024
});

interface StyledTreeItemProps extends TreeItemProps, EditableTreeItemProps {
labelTextSx?: SxProps;
Copy link
Member

Choose a reason for hiding this comment

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

To simplify this a bit, I think you can just supply values for these directly to the NodeMenu component. I see we're exporting CustomTreeItemProps, I don't think this is necessary, we can keep the component local to this module for now.

@Janpot
Copy link
Member

Janpot commented Mar 28, 2024

Looks great. Had just one suggestion about simplifying the component a bit. I don't think we intend for this CustomTreeItem to be reusable. It's exported for no reason.

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

Thank you! This is great work.

@Janpot Janpot enabled auto-merge (squash) March 28, 2024 14:28
@Janpot Janpot merged commit aec9918 into mui:master Mar 28, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to rename nodes
2 participants