Commit Graph

256 Commits

Author SHA1 Message Date
Victor Woeltjen
e1ba2487b3 [Layout] Add Layout type
Add the type definition for Layout domain objects.
Part of transitioning Layouts, WTD-535.
2014-12-04 10:42:54 -08:00
Victor Woeltjen
ba14aeabc6 [Forms] Complete specs
Fill in new specs and amend existing specs to ensure
full coverage after integration of forms component,
and associated changes. WTD-593.
2014-12-03 17:59:37 -08:00
Victor Woeltjen
6fb5da1b35 [Forms] Prune obsolete specs
Prune obsolete specs after changes made to support
integration of forms component, WTD-593.
2014-12-03 17:26:02 -08:00
Victor Woeltjen
5aff4e3777 [Forms] Edit Properties specs
Add baseline specs (not yet matched up to current implementation)
for Edit Properties action. WTD-593.
2014-12-03 17:07:01 -08:00
Victor Woeltjen
a8f2de6f5e [Forms] Remove obsolete declaration
Remove obsolete controller declaration (this was triggering
warnings in the console.) WTD-593.
2014-12-03 17:03:06 -08:00
Victor Woeltjen
61cee6d8f8 [Forms] Change CreateWizard method name
Change CreateWizard method name to be consistent
with terms used for form structure elsewhere.
WTD-593.
2014-12-03 17:00:22 -08:00
Victor Woeltjen
bbd0271fc5 [Forms] Add Edit Properties
Add the Edit Properties action, now that Forms are
available to support it. Integration of forms
component, WTD-593.
2014-12-03 16:50:14 -08:00
Victor Woeltjen
75f4daa5c3 [Forms] Add specs, doc for CompositeController
Add spec and in-line documentation for CompositeController,
introduced to support integration of forms with the Create
menu, WTD-593.
2014-12-03 16:19:01 -08:00
Victor Woeltjen
218f732dc2 [Forms] Add CompositeController
Add a controller for composite controls; this is used
to flag contained controls as required when they have
been partially filled in (to treat entering one of two
such fields as invalid.) WTD-593.
2014-12-03 16:07:46 -08:00
Victor Woeltjen
6a6797bf53 [Forms] Handle required flag in composite controls
Handle the ng-required flag in composite controls.
WTD-593.
2014-12-03 15:51:42 -08:00
Victor Woeltjen
d54524a96c [Forms] Provide initial property arrays
Provide initial empty arrays for type properties that
are array-like; this is needed to support two-way data
binding for composite controls. Part of ongoing integration
of forms component, WTD-593.
2014-12-03 15:19:23 -08:00
Victor Woeltjen
363a6f6b47 [Forms] Add composite control type
Add a type for composite controls, to allow populating
arrays (e.g. preferred size). WTD-593.
2014-12-03 15:08:41 -08:00
Victor Woeltjen
3d95c8b744 [Forms] Tie OK button to validation
Enable/disable the confirmation button in overlay dialogs
such that it is only enabled when the included form is
valid. WTD-593.
2014-12-03 14:08:42 -08:00
Victor Woeltjen
1753aa6784 [Forms] Add placeholder spec for Locator
Add placeholder spec for the LocatorController, introduced
to support forms used from the Create menu. Part of ongoing
integration of forms bundle, WTD-593.
2014-12-03 14:04:44 -08:00
Victor Woeltjen
2476941eb2 [Forms] Add Locator control
Add Locator form control, to allow selection of a
destination for newly-created domain objects in a
tree. WTD-593.
2014-12-03 13:51:07 -08:00
Victor Woeltjen
9dd0a54568 [Forms] Initialize model from form value
Correctly initialize domain object model from form
value upon domain object creation. Integration of
forms component, WTD-593.
2014-12-03 13:44:27 -08:00
Victor Woeltjen
e04b9828ea [Forms] Use ng-model for tree state
Use ng-model when communicating state to/from the
tree in browse mode. This will simplify implementation
of the Locator control, which also uses a tree, but
which should not set navigation state. WTD-593.
2014-12-03 13:18:51 -08:00
Victor Woeltjen
80ba6f4da3 [Forms] Reorganize Create templates
Reorganize templates associated with the Create menu in
preparation for adding the Locator control, used to
specify the destination folder for object creation.
WTD-593.
2014-12-03 12:56:53 -08:00
Victor Woeltjen
ccdd1bcd57 [Forms] Adjust Create form formats
Adjust formats used in Create forms to match those used
by the mct-form directive. Integration of forms bundle,
WTD-593.
2014-12-03 12:52:51 -08:00
Victor Woeltjen
d0e29befa6 [Forms] Use forms from DialogService
Use the mct-form when displaying a dialog for user input,
replacing the placeholder textarea used prior to integration
of the forms bundle. WTD-593.
2014-12-03 12:32:00 -08:00
Victor Woeltjen
2bee842509 [Forms] Merge in forms bundle
Merge in forms bundle from its development branch
to begin work integrating Forms into the general
UI, for WTD-593.
2014-12-03 12:22:12 -08:00
Victor Woeltjen
a6fc9badfe [Persistence] Hide dangling underscores
Hide dangling underscores; JSLint considers these a problem
and the command line build fails as a consequence when they
are present directly in the code, but CouchDB provides these
so we cannot avoid them entirely. So, hide them behind
variables and use []-style lookup.

Concludes transition work for the CouchDB persistence adapter,
WTD-537.
2014-12-03 08:59:40 -08:00
Victor Woeltjen
9b47e47e93 [Persistence] Add JSDoc
Fill in JSDoc for the CouchDB adapter which provides
the ability to persist domain object models. Part of
ongoing transition of the platform/persistence bundle,
WTD-537.
2014-12-02 18:06:49 -08:00
Victor Woeltjen
c303d29768 [Persistence] Complete specs for CouchDB adapter
Complete test coverage for CouchDB adapter, WTD-537.
2014-12-02 17:53:55 -08:00
Victor Woeltjen
bb719a137a [Persistence] Spec for CouchDocument
Fill in spec for CouchDocument, which wraps domain object
models with suitable metadata for persistence. WTD-537.
2014-12-02 17:31:30 -08:00
Victor Woeltjen
aef6f44cb5 [Persistence] Add empty specs
Add empty specs for CouchDB adapter. WTD-537.
2014-12-02 17:26:16 -08:00
Victor Woeltjen
4646896ac8 [Persistence] Separate out CouchDocument
Separate CouchDocument (used to wrap a domain object model
with metadata suitable for persistence to CouchDB) into
its own script, to simplify testing and maintenance.
Ongoing transition of Couch persistence, WTD-537.
2014-12-02 17:19:30 -08:00
Victor Woeltjen
2ce5ebcf20 [Persistence] Initial import of CouchDB adapter
Initial import of CouchDB adapter from the pre-Angular
OpenMCT. Revise to use Angular services ().
WTD-537.
2014-12-02 17:08:58 -08:00
Victor Woeltjen
e8c5f9c66c [Panels] Bring in telemetry panels
Bring in telemetry panels as an object type from
the sandbox Angular transition branch. WTD-576.
2014-12-02 16:20:53 -08:00
Victor Woeltjen
a1edb6047c [Scrolling] Complete specs for scrolling lists
Complete specs for scrolling list views, WTD-534.
2014-12-02 16:15:28 -08:00
Victor Woeltjen
e953e5b4b4 [Scrolling] Fill in specs
Fill in specs for ScrollingListController, and for
the specific Column types that support it. Separate
out the code that produces actual rows in order to
improve testability and maintainability. WTD-534.
2014-12-02 15:59:09 -08:00
Victor Woeltjen
c0a34149ca [Scrolling] Add empty tests
Add empty tests for scripts associated with the scrolling
list view. WTD-534.
2014-12-02 15:25:23 -08:00
Victor Woeltjen
e711073cb5 [Scrolling] Add JSDoc, clean up
Clean up scripts for Scrolling List view and add
some JSDoc. WTD-534.
2014-12-02 15:21:26 -08:00
Victor Woeltjen
d304cc4343 [Scrolling] Bring in scrolling list view
Bring in scrolling list view from the sandbox branch
in preparation for clean up, testing, and integration
to complete transition of scrolling list views,
WTD-534.
2014-12-02 14:51:48 -08:00
Victor Woeltjen
622f1f8be7 [Plot] Add JSDoc
Add inline comments to Plot scripts. WTD-533.
2014-12-02 14:40:11 -08:00
Victor Woeltjen
870172ec6f [Plot] Complete specs for plot
Complete specs for transitioned plot view, WTD-533.
2014-12-02 11:08:21 -08:00
Victor Woeltjen
2f475fc17a [Plot] Fill in specs
Fill in specs for elements used by the PlotController
in order to improve coverage of the plot bundle.
WTD-533.
2014-12-02 10:11:46 -08:00
Victor Woeltjen
ae05ed903b [Plot] Add skeleton specs
Add skeleton specs for remaining plot scripts.
WTD-533.
2014-12-01 19:45:23 -08:00
Victor Woeltjen
86711735b7 [Plot] Organize plot elements
Place elements of the PlotController into a separate
directory inside of the source folder for the plot
plug-in, in preparation for review and integration.
Part of ongoing plot transition to Angular, WTD-533.
2014-12-01 18:21:51 -08:00
Victor Woeltjen
ad802e674e [Plot] Spec for PlotController
Fill in spec for PlotController, which is the primary
handler of logic associated with plot views, transitioned
for WTD-533.
2014-12-01 18:13:03 -08:00
Victor Woeltjen
c9300e8611 [Plot] Initial spec for PlotController
Add initial spec for PlotController, the main controller
to support the plot view. WTD-533.
2014-12-01 16:44:16 -08:00
Victor Woeltjen
e1298db760 [Plot] Separate out plot axis
Separate plot axis (as prepared for the plot's
Angular template) into its own script. WTD-533
2014-12-01 16:35:38 -08:00
Victor Woeltjen
bb708e9a05 [Plot] Separate out formatter
Separate out plot label formatter to simplify PlotController,
to simplify test and maintenance. WTD-533
2014-12-01 15:28:20 -08:00
Victor Woeltjen
5bfa9c76a7 [Plot] Separate out positioning
Separate out pixel-to-plot-coordinate conversion into its
own script, to simplify PlotController for testing and
maintainability. WTD-533.
2014-12-01 14:14:31 -08:00
Victor Woeltjen
1b4286344d [Plot] Separate out pan/zoom stack
Create a separate script/class for the pan-zoom stack,
to simplify PlotController for testability and
maintainability. WTD-533.
2014-12-01 13:48:38 -08:00
Victor Woeltjen
ac00c52589 [Plot] Rename plot preparer
Rename the script used to prepare plot data for
rendering. WTD-533.
2014-12-01 13:27:30 -08:00
Victor Woeltjen
f3b83e0db7 [Plot] Icons for plot controls
Add icons for plot pan/zoom controls, to step
back through or undo pan/zoom states. WTD-533.
2014-12-01 13:04:24 -08:00
Victor Woeltjen
7836fe5fbb [Plot] Make PlotPalette constructor-like
Make PlotPalette look like a constructor, in order
to remain consistent with code style guidelines.
WTD-533.
2014-12-01 10:16:59 -08:00
Victor Woeltjen
8cb3ce4fd9 [Plot] Rename GLPlot to GLChart
Rename the GLPlot script (which handles drawing
of lines/boxes to canvas elements) to GLChart,
to distinguish it from the broader plot view.
WTD-533.
2014-12-01 10:12:07 -08:00
Victor Woeltjen
b556b5e4f2 [Plot] Bring in scripts from sandbox branch
Bring in scripts for plotting from the sandbox
branch to begin transitioning/integrating plot
view. WTD-533.
2014-12-01 09:41:39 -08:00
Victor Woeltjen
55c2d15cdc [Telemetry] Add JSDoc
Add JSDoc and in-line comments to scripts in the
platform/telemetry bundle, for WTD-575.
2014-11-28 20:59:41 -08:00
Victor Woeltjen
f8a0544435 [Telemetry] Add specs
Add specs for scripts in bundle platform/telemetry,
for WTD-575.
2014-11-28 20:29:30 -08:00
Victor Woeltjen
4fcb59e181 [Telemetry] Remove unused scripts
Remove unused scripts from the platform/telemetry
bundle in preparation for integration. WTD-575.
2014-11-28 18:41:38 -08:00
Victor Woeltjen
052f07f725 [Telemetry] Code style
Fix code style, remove Promise from globals where
unused. Part of ongoing preparation of platform/telemetry
bundle for integration, WTD-575.
2014-11-28 18:39:19 -08:00
Victor Woeltjen
51de44a3e5 [Telemetry] Bring in telemetry bundle
Bring in initial state for the platform/telemetry
bundle, which provides general-purpose telemetry
conventions and infrastructure to support creating
domain objects which expose telemetry data.
WTD-575.
2014-11-28 16:06:54 -08:00
Victor Woeltjen
3a7f35487d [Forms] Add usage documentation
Add documentation for using the mct-form directive
introduced for WTD-530.
2014-11-28 15:58:19 -08:00
Victor Woeltjen
1bfc21270b [Forms] Fill in specs
Fill in specs for scripts which support the mct-form
and mct-control directives. WTD-530.
2014-11-28 15:33:40 -08:00
Victor Woeltjen
29c5a7aaba [Forms] Add skeleton specs
Add skeleton specs for scripts from the Forms
component. WTD-530.
2014-11-28 14:40:35 -08:00
Victor Woeltjen
a04b30a383 [Forms] Add clarifying comments
Add in-line documentation to directives and
controller used for the Forms component. WTD-530.
2014-11-28 14:36:00 -08:00
Victor Woeltjen
7f59175313 [Forms] Remove unused templates
Remove unused templates (these have been reorganized
into the controls directory.) WTD-530
2014-11-28 14:18:36 -08:00
Victor Woeltjen
354327accc [Forms] Support patterns
Support patterns for text fields, using the ng-pattern
directive. WTD-530.
2014-11-28 14:08:33 -08:00
Victor Woeltjen
aaa0ff768d [Forms] Get date-time as UNIX timestamp
Get date-time as a UNIX timestamp (in milliseconds
since start of 1970) add the model level for date-time
controls. WTD-530.
2014-11-28 13:35:24 -08:00
Victor Woeltjen
a464fee6df [Forms] Date time controls
Implement date time controls up to the point that
they validate, and information (albeit not the right
information) propagates back up to the containing
form. WTD-530.
2014-11-28 13:15:02 -08:00
Victor Woeltjen
bc3d1270d2 [Forms] Simplify select model value
Simplify select control's interaction with the model;
only store the value associated with the option, not
the name (which is just displayed for the user.)

WTD-530.
2014-11-26 13:23:30 -08:00
Victor Woeltjen
d7c7e2835f [Forms] Let Angular force required rows
Pass along ng-required values such that Angular may
handle tracking of form validity based on the presence
of required fields. WTD-530.
2014-11-26 13:20:07 -08:00
Victor Woeltjen
ede3e4f31e [Forms] Add validation classes
Add classes for required, valid, and invalid, based on
form state and on arguments passed into the form.
WTD-530.
2014-11-26 13:15:12 -08:00
Victor Woeltjen
b31b4770d1 [Forms] Communicate dirty state
Communicate dirty state out of generated forms;
WTD-530.
2014-11-26 13:08:57 -08:00
Victor Woeltjen
77c1b150d9 [Forms] Add more form controls
Add remaining platform form controls; amend mct-form
and mct-control directives to better communicate state.
Begin working on problem of communicating validation
back out of the form. WTD-530.
2014-11-26 12:50:51 -08:00
Victor Woeltjen
658d485ccc [Forms] Initial minimal functionality
Initial minimal working implementation where a
two-way binding between form and form user is
observable.

Notably, change ng-options to options, since
ng-options is terminal (it breaks mct-control).

WTD-530
2014-11-26 10:43:48 -08:00
Victor Woeltjen
9576673b84 [Forms] Add mct-control directive
Add an mct-control directive which can represent
individual form controls. WTD-530.
2014-11-26 08:43:41 -08:00
Victor Woeltjen
695ca5c0cf [Forms] Bring in initial work on forms
Bring in previous work on the forms component; this includes
transitioned versions of specific form elements, and the
mct-form direction which generates these. WTD-530
2014-11-26 08:01:00 -08:00
Victor Woeltjen
0bacc03e58 [Common UI] Fix FullscreenActionSpec
Fix FullscreenActionSpec such that it will execute on
command line; the global screenfull dependency behaves
differently during attempts to spy on methods from
the command line build, so replace it entirely.

Concludes work on WTD-574 in preparation to submit for
review.
2014-11-25 23:08:47 -08:00
Victor Woeltjen
b0cb8a8455 [Common UI] Fix Save/Cancel quirk
Fix a defect in the Save/Cancel buttons in Edit mode
that was causing the first click to be missed; this
was due to Angular's inability to detect when a
native promise (as opposed to one from ) had been
resolved.

Since the Editor capability is introduced indirectly
and is a few degrees of separation removed from
the declared extension layer (where we would be able
to get a reference to ), and all we need to do is
make something look Promise-like, a convenience
function to do this is added.

Part of ongoing transition of common user interface
elements, WTD-574.
2014-11-25 22:58:34 -08:00
Victor Woeltjen
52ec1aeb89 [Common UI] Complete remaining specs
Complete remaining specs to achieve full test coverage
for common user interface bundles being transitioned
as part of WTD-574.
2014-11-25 22:48:12 -08:00
Victor Woeltjen
3aa551c4ea [Common UI] Fill in CreationService spec
Fill in specs for CreationService, which supports the
Create action, which, in turn, is included to support
the Create button in Browse mode. Part of the transition
of common user interface elements for WTD-574.
2014-11-25 22:35:30 -08:00
Victor Woeltjen
48ff8c4c03 [Common UI] Continue filling in Browse specs
Continue filling in specs for scripts introduced as part
of bundle platform/commonUI/browse, which is responsible
for browse mode. WTD-574.
2014-11-25 20:26:37 -08:00
Victor Woeltjen
528f6bdf56 [Common UI] Spec for ViewSwitcherController
Fill in spec for the controller which maintains a set of
applicable and selected view options to populate the
view switcher. Part of Browse mode and, in turn, part
of the common user interface elements that are being
transitioned for WTD-574.
2014-11-25 19:46:56 -08:00
Victor Woeltjen
9bc05f27a5 [Common UI] Skeleton specs for Browse
Add skeleton specs for browse mode. WTD-574.
2014-11-25 18:30:30 -08:00
Victor Woeltjen
36fab50825 [Common UI] Add in-line docs for Browse
Add in-line docs for bundle platform/commonUI/browse,
which implements Browse mode, one of the common user
interface bundles being transitioned in WTD-574.
2014-11-25 16:53:22 -08:00
Victor Woeltjen
b97e2d0324 [Common UI] Add JSDoc, remove UUIDService
Add JSDoc to Create-related classes and remove the
UUIDService (replaced by third-party lib) to reduce
amount of code to cover and prepare for code review,
as part of ongoing transition of common user interface
elements, WTD-574.
2014-11-25 16:14:09 -08:00
Victor Woeltjen
242d40fab2 [Common UI] Fill in dialog specs
Fill in specs for bundle platform/commonUI/dialog,
which provides the ability to show dialogs. One
of the common user interface elements being transitioned
for WTD-574.
2014-11-25 15:59:04 -08:00
Victor Woeltjen
f04e02359a [Common UI] Skeleton spec for dialogs
Skeleton specs for bundle platform/commonUI/dialog,
responsible for displaying dialog overlays. Part of
ongoing transition of common user interface elements
for WTD-574.
2014-11-25 14:44:16 -08:00
Victor Woeltjen
0faf4c934e [Common UI] Refactor dialogs
Refactor bundle platform/commonUI/dialog such that
the concerns of showing dialogs (including showing
a single instance thereof) and managing changes to
the DOM are more cleanly separated. This simplifies
testing and satisfies code style guidelines for
this bundle, in preparation for its inclusion among
common user interface bundles to be transitioned
in WTD-574.
2014-11-25 14:39:40 -08:00
Victor Woeltjen
6cce00d601 [Common UI] Add JSDoc to DialogService
Add in-line documentation to the dialog service,
exposed by bundle platform/commonUI/dialog, one
of the common user interface bundles being
transitioned for WTD-574.
2014-11-25 13:31:30 -08:00
Victor Woeltjen
d950fe14e5 [Common UI] Finish JSDoc for edit mode
Complete in-line documentation for bundle
platform/commonUI/edit (Edit Mode), one of the
common user interface bundles being transitioned
for WTD-574.
2014-11-25 12:50:06 -08:00
Victor Woeltjen
4c0e5e963e [Common UI] Add JSDoc for edit actions
Add in-line documentation for actions that are introduced
by the bundle platform/commonUI/edit, which introduces
Edit mode. One of the common user interface bundles being
transitioned for WTD-574.
2014-11-25 11:53:53 -08:00
Victor Woeltjen
c432a4eb1e [Common UI] Complete specs for edit mode
Add specs for remaining capabilities and capability
wrappers employed by Edit mode. Completes coverage
for bundle platform/commonUI/edit, which is being
transitioned along with other commonUI bundles in
WTD-574.
2014-11-25 10:51:23 -08:00
Victor Woeltjen
7ddfcbca9b [Common UI] Fill in spec for RemoveAction
Fill in spec for the Remove action, included as part of
the bundle platform/commonUI/edit. WTD-574.
2014-11-25 10:08:50 -08:00
Victor Woeltjen
19b4dc3fa3 [Common UI] Spec for EditAction
Fill in spec for the Edit action, which enters Edit mode
Part of bundle platform/commonUI/edit, being transitioned
for WTD-574.
2014-11-25 09:48:54 -08:00
Victor Woeltjen
2f7746df53 [Common UI] Add specs for Save/Cancel
Add specs for the save and cancel conclude-editing
actions, part of bundle platform/commonUI/edit
(Edit Mode) which is transitioned among the various
common UI bundles. WTD-574
2014-11-25 09:35:55 -08:00
Victor Woeltjen
d7fbd596ef [Common UI] Specs for edit controllers
Add specs for controllers used to support Edit mode,
one of the common UI elements being transitioned for
WTD-574.
2014-11-24 17:29:42 -08:00
Victor Woeltjen
093ccb637f [Common UI] Amend ActionGroupControllerSpec
Amend ActionGroupControllerSpec (introduced for WTD-574,
transition of common UI elements) such that it handles
the case where no action capability is defined.
2014-11-24 17:09:56 -08:00
Victor Woeltjen
88f3221938 [Common UI] Add skeleton specs for edit mode
Add empty files which will contain specs for
bundle platform/commonUI/edit, which is responsible
for Edit mode. WTD-574.
2014-11-24 17:07:17 -08:00
Victor Woeltjen
80430234d6 [Common UI] Add JSDoc
Add JSDoc to remaining scripts in bundle
platform/commonUI/general. WTD-574.
2014-11-24 16:39:52 -08:00
Victor Woeltjen
2f43e8cd7f [Common UI] Document TreeNodeController
Add in-line documentation to TreeNodeController, and update
glossary with some clarifying definition.

Additionally, change name from tree-item to tree-node for
consistency.

Part of ongoing transition of commonUI bundles, WTD-574.
2014-11-24 15:42:15 -08:00
Victor Woeltjen
e0b201aa17 [Common UI] Add spec for mct-container
Add spec for the mct-container directive, introduced
as part of the general user interface support bundle,
platform/commonUI/general. WTD-574.
2014-11-24 15:22:03 -08:00
Victor Woeltjen
2b1fdc2204 [Common UI] Add specs for controllers
Add specs for controllers in the commonUI/general bundle.
WTD-574.
2014-11-24 15:10:29 -08:00
Victor Woeltjen
b026e313be [Common UI] Add skeleton specs
Add skeleton specs for bundle platform/commonUI/general.
WTD-574.
2014-11-24 13:39:52 -08:00
Victor Woeltjen
f6850ffc4f [Common UI] Encapsulate TreeNodeController
Reduce reliance on  from TreeNodeController,
clean up and better isolate node expansion behavior.
Part of transition of common UI elements, WTD-574.
2014-11-24 10:30:45 -08:00
Victor Woeltjen
eff9747198 [Common UI] Correct dialog failure behavior
When a dialog is already showing, act as if the
user input was cancelled and show a warning.
Part of ongoing transition of common user interface
bundles for WTD-574.
2014-11-24 07:54:26 -08:00