[docs] Add CRUD to themed example#4785
Merged
apedroferreira merged 14 commits intomui:masterfrom Apr 2, 2025
Merged
Conversation
Netlify deploy preview |
| }, [listPath, router]); | ||
|
|
||
| return ( | ||
| <CrudProvider<Employee> dataSource={employeesDataSource} dataSourceCache={employeesCache}> |
Collaborator
There was a problem hiding this comment.
I'll expose the dataGrid slot to the Crud component so we can just use that component here.
Collaborator
There was a problem hiding this comment.
Feel free to just add a TODO comment here for this for now as i guess we will only be able to adjust here after the next release once we merge #4786
apedroferreira
requested changes
Mar 19, 2025
Collaborator
There was a problem hiding this comment.
Looks good! Just noticed a few things that probably we can improve:
- Add:
import PersonIcon from '@mui/icons-material/Person';
// ...
{
segment: 'employees',
title: 'Employees',
icon: <PersonIcon />,
pattern: 'employees{/:employeeId}*',
},
// ...to the navigation to show employees pages and breadcrumbs.
- There's no spacing above and below the action icon buttons, not sure if we should solve that in the template itself or in the CRUD components? (just checked and all looks fine in the standard version so I guess we can fix it somehow for this template)
- The form input labels need spacing below, I guess this one should probably be fixed in the template?
Collaborator
Author
Thanks! Addressed all of this in the theme of the template |
Collaborator
apedroferreira
approved these changes
Mar 26, 2025
Collaborator
apedroferreira
left a comment
There was a problem hiding this comment.
I've addressed my own suggestions since Bharat is out.
apedroferreira
approved these changes
Apr 1, 2025
Janpot
approved these changes
Apr 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Crud