Rebuild the UI on vendored Textual; make the checkout self-contained
The internal servers have no access to outside package repositories and run Python 3.8/3.9, so the UI moves from hand-drawn curses to Textual 6.2.1 (the last release supporting 3.8.1), vendored with its pure-Python dependencies in vendor/. The launcher puts vendor/ first on sys.path, so a plain checkout runs with no pip and no network. - dsflow/: the single script split into a package (pure moves of the backend sections); action rules moved to ops.py, free of Textual - dsflow/ui/: tabs, detail pane, live sanity-run panel, log viewer, modal dialogs, filter, themes, mouse support - tests/test_ui.py: headless UI tests through Textual's pilot - tools/vendor.py (refresh vendor/), tools/screenshots.py (README images) - README, CLAUDE.md, TODO and the feature doc updated for the new layout, the Python 3.8.1 floor and the vendoring rules Verified: 11 tests green on Python 3.12 and 3.8.20; the shipped file set runs under `python -I -S` on both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
275d42aeb4
commit
60532a4043
926 files changed
+272979
-2540
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
## Goal
|
||||
|
||||
Give designers one screen for the `dsflow` check-in flow: see local changes,
|
||||
Give designers one interactive screen (keyboard and mouse) for the `dsflow` check-in flow: see local changes,
|
||||
locks and checked-out copies; run sanity on chosen files with those files
|
||||
locked for the duration; then check in, tag, or just unlock. This replaces
|
||||
typing `dsflow precheckin` / `checkin` / `claim` / `release` by hand and
|
||||
@@ -23,6 +23,11 @@ makes "I forgot to release the lock" impossible.
|
||||
too. The run dialog warns; it does not stop the run.
|
||||
- The runner and TUI may be on different hosts sharing the workspace over
|
||||
NFS, so liveness is a heartbeat in the job file, not a pid check.
|
||||
- The servers have Python >= 3.8.1 (answer from the lead, 2026-09-24) and
|
||||
no access to outside package repositories, so Textual and its
|
||||
dependencies are vendored. **Unverified on the servers**: TODO §1.
|
||||
- Designers use a UTF-8 terminal that Textual can drive (xterm, VNC, SSH
|
||||
from a modern terminal). **Unverified**: TODO §1.
|
||||
|
||||
## Handshakes
|
||||
|
||||
@@ -39,6 +44,9 @@ Promises to bash `dsflow`: `.dsflow/new_files` stays a sorted path list;
|
||||
|
||||
Promises to `dsflow_ci`: never moves `WORKING_TAG`.
|
||||
|
||||
The runner is re-executed through `dsflow_tui.py` (`common.ENTRY`), so the
|
||||
launcher must stay at the repository root next to `dsflow/`.
|
||||
|
||||
Job file (`.dsflow/tui_job.json`): written by the runner, read by the TUI
|
||||
and `status`. A terminal `status` (`passed`, `failed`, `cancelled`,
|
||||
`error`) means lock release has finished. `heartbeat` is refreshed every
|
||||
@@ -51,6 +59,9 @@ and `status`. A terminal `status` (`passed`, `failed`, `cancelled`,
|
||||
- [x] cancel, lost-runner cleanup, later check-in with `c`, batch tag, add new, rebase
|
||||
- [x] `status` / `status --json`, `--sanity-cmd`, `SANITY_SCRIPT`
|
||||
- [x] `--demo` sandbox with a fake `dssc`; `tests/test_runner.py`
|
||||
- [x] Textual UI with mouse support, detail pane, filter, themes, command palette
|
||||
- [x] self-contained checkout: `vendor/` + `tools/vendor.py`; runs isolated (`python -I -S`)
|
||||
- [x] headless UI tests (`tests/test_ui.py`), green on Python 3.12 and 3.8
|
||||
- [ ] real-DesignSync verification: TODO §1
|
||||
|
||||
## Work log
|
||||
@@ -67,6 +78,24 @@ and `status`. A terminal `status` (`passed`, `failed`, `cancelled`,
|
||||
runner saved the terminal status before releasing locks (CLAUDE.md
|
||||
invariant 7).
|
||||
|
||||
- 2026-09-24: rebuilt the UI on Textual at the lead's request ("interactive
|
||||
and pretty", servers without outside repo access, Python 3.8-3.9).
|
||||
Textual 6.2.1 is the newest line that supports 3.8.1; it and 9 pure-Python
|
||||
dependencies are unpacked into `vendor/` (11 MB) and put first on
|
||||
`sys.path` by the launcher, so a checkout runs isolated with no pip. The
|
||||
single file became the `dsflow/` package: backend modules are pure moves
|
||||
of the old sections; action rules moved out of the UI into `ops.py` so
|
||||
they stay testable. The curses UI is gone. Bugs found on the way, all
|
||||
fixed: an `auto_refresh` attribute clobbered Textual's repaint interval
|
||||
(division by zero); start-up focus landed on the hidden filter so every
|
||||
key went into it; TabbedContent followed the restored focus back to
|
||||
Changes after the run dialog closed; a `rows` attribute shadowed
|
||||
DataTable's; rich's pulse bar divides by zero without a colour system;
|
||||
late events hit the DOM during teardown. Verified: 11 tests green on
|
||||
Python 3.12 and 3.8.20, the shipped file set runs under `python -I -S`
|
||||
through a symlink on both, and the real TUI starts and quits cleanly in
|
||||
a pty on both.
|
||||
|
||||
## QA log
|
||||
|
||||
## Review
|
||||
Reference in new issue
Block a user