-
Notifications
You must be signed in to change notification settings - Fork 4
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
List of proposals for improvement #67
Comments
Before commenting about the list of proposal I'd like to ask this question: What's the purpose of this project? It's clear to me that this project is (at least) a management interface (aka Admin UI) but I also think this project could be lib/client for Guillotina. That's what someone could think looking at the repo name If we want AdminUI to do a lot of things OOTB, maybe it's interesting to move to But right now, I'm ok with adding a CONTRIB, LICENSE, Prettier and adding consistency to the Form elements. |
I agre with @masipcat opinion. The main idea behind guillotina_react is to provide a minimal package that can provide whatever needed to work with a guillotina, with as less as possible dependecies. Another idea on my head that I will try to fix soon, is to bundle guillotina_react as an es module, that we can import from regular htmls. |
It will be interesting to isolate client in a new context and hook to allow use client in a project without traversal, or in a isolated pages outside traversal? |
@rboixaderg sounds interesting :) |
After a review, I add a list of proposals for improvement:
useTraversal
hook. It is not recommended that the libraries directly expose the context and users have to writeuseContext(TraversalContext)
.onChange
now sometimes receives the value and other times the event.Ctx.filterTabs
and instead use TabPanel props. Or keep both, but I would make the TabPanel have this controlled by default.Instead of:
Do:
currentTab
prop of the TabPanel behavior. If thecurrentTab
doesn't match with any tab that the user has permissions, then the first tab should be selected.doAction
what actions are available without having to consult our documentation.CONTRIBUTING.md
,LICENSE
...linkstate
dependency (only used in 1 component)react-use
to own hooks: It's importing 60kb for 3 simple hooks...The text was updated successfully, but these errors were encountered: