-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Section visibility nuances #58
Comments
Note that right now if you click legend HIDE the positioning field still shows up as MenuPanel triggers section visibility . We should turn that off and test. |
This is blocking adding layout attributes inside a Tracepanel. For example cc @alexcjohnson sorta stuck on this one. We may have to rethink the way visibility is handled... |
https://medium.com/@mweststrate/how-to-safely-use-react-context-b7e343eff076 Hmmm we may have to rethink our use of context period. |
One way would be to also define defaultProps for the container attr like I'll investigate that. |
So this is all First is that it just computes the wrong visibility for the field. Second, once it has computed the wrong plotProps the default behaviour of a One way to get around the visibility problem is with a I am going to move some of the other simple exceptions to a shame.js file and add the layout-inside-trace |
Also re: shouldComponentUpdate and |
Instead of modifyPlotProps we have a more general supplyPlotProps. If a supplyPlotProps is present it is run. Most implementations of supplyPlotProps will run `unpackPlotProps` first and then alter plotProps as necessary. However, this enables us to now alter `props` and `context` _before_ running unpackPlotProps. This will allows us to "fix" the problem of nested layout fields within a trace context. See #58 (comment) for background.
workaround here #91 |
Instead of modifyPlotProps we have a more general supplyPlotProps. If a supplyPlotProps is present it is run. Most implementations of supplyPlotProps will run `unpackPlotProps` first and then alter plotProps as necessary. However, this enables us to now alter `props` and `context` _before_ running unpackPlotProps. This will allows us to "fix" the problem of nested layout fields within a trace context. See #58 (comment) for background.
Instead of modifyPlotProps we have a more general supplyPlotProps. If a supplyPlotProps is present it is run. Most implementations of supplyPlotProps will run `unpackPlotProps` first and then alter plotProps as necessary. However, this enables us to now alter `props` and `context` _before_ running unpackPlotProps. This will allows us to "fix" the problem of nested layout fields within a trace context. See #58 (comment) for background.
closed by #99 |
see #54 (comment)
Right now
<Section>
will hide itself when all of itsattr
children are not visible. Currently if you put nonattr
children in a<Section>
it will show. However you could make the case that<Info>
(for example) should not by default force<Section>
to show since it is<Info>
about non applicable (and hidden) fields.We might be able to extend this argument to
<MenuPanel>
(CogMenu) as well. If CogMenu is always (or almost always) an advanced settings of the base fields in<Section>
then it may not make sense to show it.To resolve this we need to look at all the CogMenus in the workspace and figure out sane defaults.
The text was updated successfully, but these errors were encountered: