NASA-AMMOS / aerie-ui

The client application for Aerie.
https://nasa-ammos.github.io/aerie-docs/
MIT License
28 stars 5 forks source link

Support mission specific adaptation for defining global variables #1281

Closed joswig closed 3 months ago

joswig commented 5 months ago

Missions may deliver an optional adaptation javascript file that will have hooks that Aerie can call to perform custom validation. This file will not be available at the time that Aerie is built, so we can't include it in the bundle created by vite/rollup.

The linter and content-assist functions in Aerie will call a method matching a pre-defined name, and the adaptation will return specific details about the global variables. Each global variable has a name and a type (string, int, float, enum).

Prior to our integration with the main Aerie application we should serve this as a 2nd script file. After integrating the DSL editor into Aerie this file can be returned either by Hasura, or another mechanism.

dandelany commented 3 months ago

Closed by PR