-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: reorganize screen data API
Key changes: * Moves responsibility for the top-level structure of the "screen data API" from the `ScreenData` module into the API controller. The former now only has the responsibility of generating serialized widgets from screen configuration. * Moves widget generation and placement from the `ScreenData` module into a new `Layout` module. This is a complex piece of logic with a small public interface, which is already shared with another module (`ScreenAudioData`), so it was a good candidate for extraction. * Simplifies the interface of `ScreenData` to two functions, one for "normal" screen data and one for Screenplay simulation data. Pending config is handled by passing it in as an option. Updating the cache of "visible alerts" is also handled with an explicit option rather than implicitly whenever non-pending, non-simulation data is requested.
- Loading branch information
1 parent
90bd2b5
commit 8e2a976
Showing
12 changed files
with
836 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.