-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Edit Mode] New editable plot options element for plots #638
Comments
I like the short term plan of a custom representation per object type. Would suggest a name that describes the location of the view(inspector panel) and not the purpose (propertySheet). How about inspectorBrowseView and inspectorEditView? Long term: Similarly, look at form schema defined on type extensions and see if we want to keep going with that. The default inspectorEditView could be the standard "edit properties" dialog. |
In the current extension API, I'd be inclined to express this as another property of extensions in the
Then the inspector could just show an One benefit of this is that it cleanly separates view configuration (properties which effect just this view of an object) from object properties (changes to the object itself, which may in principle effect any view.) |
I think you're treating views and objects as separate things, but here we're moving to "the view is the object." In this context, the object is either a plot or a table and has it's own configuration that is / can be persisted. We could use the object edit properties but I don't believe that can be made flexible enough to support our requirements in the time period we have, and I'd prefer not to commit to form generation in platform based on the requirements we have right now. As far as requirements, we need to support customizing interpolation and marker style per plot line, as well as selecting columns from a dynamic list of columns. Thats where I push for a more flexible option (custom view with a controller that dynamically updates form) that allows this functionality, and allows us to distill out features that we should support in the platform in a future release. |
@akhenry The options for No Line | Step Line | Linear Line need to be radio buttons - they're checkboxes right now. My intention is to make a custom radio button control in the same way that we have one now for the checkbox - was thinking I'd do that first, then check in that element as a control. Also, when I add additional elements to a Panel while in Edit mode (which is the only way I can see the Inspector/Display element right now) they are not automatically appearing in the Inspector - but they need to. |
@charlesh88 Thanks for looking at this so promptly. Ah, yep, oversight on the checkboxes, I'll switch them to radios. That's interesting that you don't see the display section in browse mode, you should be seeing it. I'll look into that. |
@akhenry Sorry, terrible wording: I do see it in Browse mode, what I meant to say was I'm only seeing it for Panels right now. This should also be available in the Telemetry point plot views as well. On the radios, they need to be custom controls. I'm about to check in a styled, custom radio mctControl. |
@charlesh88 Ah good, because I was stumped about what could be causing it to only display in Edit mode :) Yep, no problem, I'll switch them to radios when the radio control is available. I'll also update the developer guide to mention the new control type. |
@charlesh88 A point of clarification on the UI design. Is the "Markers" control supposed to be a radio or a checkbox? If a radio, it looks from the UI spec that it should be in a different radio group to the other buttons, is that correct? |
|
Yup, using the latest UI doc. Apologies, just missed the details on page 35. |
@akhenry No worries. |
open #638 Major progress on form-row markup and CSS when in Inspector 'part' context; General fixes cleanups to custom checkbox/radio CSS;
open #638 Added custom radio button control and modified PlotOptionsController / plotOptionsStructure accordingly; spacing, borders, etc. are all as finally intended;
open #638 Major progress on form-row markup and CSS when in Inspector 'part' context; General fixes cleanups to custom checkbox/radio CSS;
open #638 Added custom radio button control and modified PlotOptionsController / plotOptionsStructure accordingly; spacing, borders, etc. are all as finally intended;
…th domain object model. Fixed failing test Added tests jslint errors Minor refactoring of layout bundle revert layout/bundle.json
Fixed jsdoc Fixed incorrect memberof declaration
Fixed jsdoc Fixed incorrect memberof declaration Corrected memberof statement
[Plots] #638 Fixing failing tests [Plot] Changed PlotOptionsController to prototype form Fixed spacing Fixed jslint issue
Don't see Plot Options in testathon 20160418 and issue is still open, think we should remove unverified label |
Testathon 041816 |
Implemented and verified in VISTA |
Changes to plotting require some user-modifiable options to be available in edit mode for customizing the plot. The property sheet will be a form, and must support different data types as well as validation.
The options available will differ per view type, so a general solution is required. This could be supported via a new a 'viewOptions' (or 'propertySheet', or something similarly named) attribute added to type definitions. It will only be valid for view type objects (does this require validation at registration time?).
My planned approach to this is to use a representation for the property sheet. The 'propertySheet' attribute on the type definition could be a simple as a template name to pass to the representation initially. We could also support form definition here, instead of view definition. This would be a little more involved, but if we have time we might consider it for this or next sprint.
Is there a new view type needed for this? My feeling is no. The solution should be easily applicable to any view, so I can just apply it to plots and panels for now. If plots and panels are combined at some point in the future, then it can be applied to the new view type that comes out of that process.
The text was updated successfully, but these errors were encountered: