Files
David Tsay 3f495ca982 Time conductor refactor (#7818)
* add missing licensing comment

* use vue component naming convention

* script, template, style

* Revert "script, template, style"

This reverts commit c8f8a098f2.

* create useTimeSystem composable

* forgot to push useTimeSystem

* extend useTimeSystem to return reactive formatters

* return reactive isUTCBased

* add useTimeMode composable
fix listener in useTimeSystem

* add useTimeBounds composable

* add useClockOffsets composable
documentation update to useTimeBounds

* WIP change replication in time api calls to use composables
many things broken
will need refactor to account for independent time conductor

* missed file in commit

* use composables for conductor mode

* create useClock composable
code clean up

* whoops. mistook prettier red squiggly for code not used red squiggly.

* vue naming convention

* change composables to allow for timeContexts

* change timeContexts to be reactive to objectPath
reactivity fixes to composables

* reactivity and non fixes

* use `shallowRef` for clock object

* WIP: get independent time contexts working again

* vue component naming conventions

* WIP: mostly fixed independent time conductor

* provide timecontext even if its the global/timeapi for shared components

* incorporate provided timecontext into independant time conductor components

* better jsdoc message

* fix missing clock on independent time mode change

* switch to reactive formatter for zoom

* use reactive timecontext in fixed inputs

* use reactive clock props
cleanup unused variables

* edit for clarity

* remove unused injection

* change ITC to use composables

* update to use composables

* rename because need both datetime and time inputs

* make message universal to all timeSystems

* only change time options if independent conductor enabled
re-use timeContext across composables

* make date time only for supporting time systems

* fix css for bounds single inputs

* time formats can specify date/time delimiters

* move history out of form
remove unused gear icon
remove debugging code

* handle toggle independent time

* v-if logic one component up

* add back date selector

* fix datetime fixed validation

* combine time composables into one
lint fix

* fix single datetime fixed input validation
clean up shouldDismiss modal behavior

* correct jsdocs

* this v-if is not in use

* optional `formatDate` method can be defined to split date and time
refine `UTCTimeFormat`'s `format` method and valid formats

* fix split date time inputs test

* copy and paste into split date time inputs

* fix validation and reporting of inputs on paste

* validate against same start and end fixed time bounds
alter verbiage for validation of offsets to match that of bounds

* better jsdocs

* remove deprecated file

* vue component name linting

* fix e2e test label locator

* more specific locator

* fix reactivity for independent time conductor

* convert `IndependentTimeConductor.vue` to use vue3 composition api

* fix throttle on bounds

* safety check on dom element

* follow mode properly in ITC

* fix standard time conductor not having a `useIndependentTime` value

* provide and use `currentValue`

* change timeOptions on path change
lint fix

* fix saved `timeOptions` `bounds` being overwritten by `bounds`

* no more settings icon for independent time conductor pop-up

* fix warning message verbiage

* remove timeout since time conductor is now reactive

* add copy/paste functionality to single datetime inputs

* computeds don't need to be manually set

* explain `formatDate` in documentation

* allow pasting millisecond precision into split date/time inputs

* remove log per review comment
https://github.com/nasa/openmct/pull/7818#discussion_r2535418644

* add tsdoc to plugin
* deprecate records in configuration.menuOption
* reconds should be in configuration

* pass time conductor configuration to independent TC
https://github.com/nasa/openmct/pull/7818#discussion_r2535711788

* fix limit validation
requires provide of `timeSystemKey` and `configuration`

* ensure matching clock and timesystem on change

* make switch clock and time system more resilient

* fix failing notebook visual test

* update visual snapshots
diff - remove gear icon
diff - add history icon

---------

Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
Co-authored-by: Andrew Henry <akhenry@gmail.com>
2025-12-15 22:47:55 +00:00
..