Skip to content

extended visualisation helpers#4

Merged
gkennos merged 2 commits into
mainfrom
tui
Jul 19, 2026
Merged

extended visualisation helpers#4
gkennos merged 2 commits into
mainfrom
tui

Conversation

@gkennos

@gkennos gkennos commented Jul 19, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an interactive Textual-based TUI for exploring compiled output definitions, editing JSON context, and running projections, alongside small supporting updates to docs, tests, and packaging metadata.

Changes:

  • Introduces omop_semantics.runtime.tui (Textual app + widgets) and a new omop-semantics tui CLI subcommand.
  • Adds test coverage for the TUI behaviors and for derive_status() outcome mapping.
  • Updates packaging/docs (new optional tui extra, mkdocs nav + docs page) and refreshes the lockfile.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
uv.lock Adds Textual and related transitive deps; bumps a few pinned packages.
tests/test_viz.py Adds a focused test for derive_status() outcome coverage.
tests/test_tui.py Adds end-to-end Textual run_test() scenarios for the new explorer app.
src/omop_semantics/runtime/tui/widgets.py Adds shared rendering helpers for the TUI result summary and tree.
src/omop_semantics/runtime/tui/app.py Implements the Textual app, CLI entrypoint, and view-model extraction.
src/omop_semantics/runtime/tui/init.py Exposes the public TUI API (OutputDefinitionExplorer, run_tui).
src/omop_semantics/init.py Adds tui subcommand routing to the top-level CLI entry point.
pyproject.toml Bumps version to 0.4.0 and introduces tui optional dependency group.
mkdocs.yaml Adds “TUI Explorer” to documentation navigation.
docs/visualization.md Links to the new TUI explorer documentation.
docs/usage/tui.md Adds new documentation page describing installation and usage of the TUI.
CHANGELOG.md Adds 0.4.0 changelog entry describing visualization + TUI explorer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/omop_semantics/runtime/tui/app.py Outdated
Comment thread docs/usage/tui.md Outdated
Comment on lines +55 to +57
current context. When the app is launched through `groundworkers --tui`, that
payload uses the flat `SemanticProjectionRequest` shape so it can be pasted
directly into the real worker-backed flow.
Comment thread docs/usage/tui.md
Comment on lines +9 to +16
The TUI dependencies are optional:

```bash
uv sync --extra dev
```

For a non-development install, install the package with its `tui` extra.

@gkennos
gkennos merged commit e98f673 into main Jul 19, 2026
1 check passed
@gkennos
gkennos deleted the tui branch July 19, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants