nexusLIMS.tui.apps.config.screens#
Screens for the NexusLIMS configuration TUI.
Provides ConfigScreen (the main tabbed form) and
FieldDetailScreen (popup help modal for configuration fields).
Module Contents#
Classes#
Modal popup displaying extended help text for a configuration field. |
|
Modal dialog to look up a LabArchives user ID. |
|
Main configuration screen with 7 tabbed sections. |
API#
- class nexusLIMS.tui.apps.config.screens.FieldDetailScreen(field_name: str, detail_text: str, **kwargs)[source]#
Bases:
textual.screen.ModalScreenModal popup displaying extended help text for a configuration field.
Invoked by pressing F1 while an Input or Select is focused in ConfigScreen. Dismisses on Escape, F1, or the Close button.
- Parameters:
- CSS_PATH#
Type: typing.ClassVar
- BINDINGS#
[(‘escape’, ‘dismiss_detail’, ‘Close’), (‘f1’, ‘dismiss_detail’, ‘Close’)]
Type: typing.ClassVar
- class nexusLIMS.tui.apps.config.screens.LabArchivesGetUidDialog(base_url: str, akid: str, access_password: str, **kwargs)[source]#
Bases:
textual.screen.ModalScreen[str | None]Modal dialog to look up a LabArchives user ID.
Prompts for the user’s email and LabArchives account password/app token, calls the
user_access_infoAPI endpoint, and dismisses with the returned UID string on success orNoneon cancel / error.- Parameters:
- CSS_PATH#
Type: typing.ClassVar
- BINDINGS#
[(‘escape’, ‘cancel_dialog’, ‘Cancel’)]
Type: typing.ClassVar
- class nexusLIMS.tui.apps.config.screens.ConfigScreen(env_path: Path, **kwargs)[source]#
Bases:
textual.screen.ScreenMain configuration screen with 7 tabbed sections.
Reads an existing
.envfile (if present), pre-populates all fields, and writes a new.envwhen the user saves.- Parameters:
env_path (Path) – Path to the
.envfile to read/write.
- CSS_PATH#
Type: typing.ClassVar
- BINDINGS#
[(‘ctrl+s’, ‘save’, ‘Save’), (‘escape’, ‘cancel’, ‘Cancel’), (‘f1’, ‘show_field_detail’, ‘Field Help…
Type: typing.ClassVar