Repository navigation
feat: complete TUI and site functional smokes (#368) - #368
Conversation
Problem: the Browser tab rendered fake fallback provider nodes for an empty archive, which made an empty database look like it had provider-backed browse targets. What changed: removed the fallback provider list and render a direct empty-state leaf when the archive has no provider groups. Updated the Browser empty-state test to assert that behavior. Verification: pytest -q tests/unit/ui/test_tui.py tests/integration/test_tui_dashboard.py; devtools verify. Ref #198
Problem: #198 needs durable proof that the dashboard and static-site generation paths launch against real repository state. Existing dashboard command tests mocked app.run, and the site CLI smoke only checked the manifest file. What changed: added a headless Textual app-run smoke with a real repository and a seeded CLI site smoke that verifies index, dashboard, conversation HTML, and the Lunr JSON search index. Verification: pytest -q tests/integration/test_tui_dashboard.py tests/integration/test_site.py; pytest -q tests/unit/site/test_builder.py tests/unit/cli/test_site.py tests/integration/test_site.py; devtools verify. Closes #198
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 40 minutes and 36 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
## Summary Makes the TUI Browser empty state honest and adds smoke coverage that proves the dashboard app and static-site generation paths run against seeded repository state. ## Problem Issue #198 asked whether the TUI and site builder were actually functional rather than just scaffolded. The current Browser and Search tabs already have real behavior and focused Textual coverage, but Browser rendered fake provider nodes for an empty archive. The dashboard CLI wiring test also mocked `PolylogueApp.run`, and the site CLI smoke only checked the publication manifest rather than the generated browsable site artifacts. ## Solution - Replaced the Browser tab's fake empty-archive provider fallback with a `No conversations in archive` tree leaf. - Updated the Browser empty-state test to assert the direct empty state. - Added a headless Textual integration smoke that runs `PolylogueApp.run()` against a real seeded repository and exits through autopilot after dashboard stats render. - Added a seeded CLI site smoke that runs `polylogue run site` and verifies `index.html`, `dashboard.html`, a conversation page, and `search-index.json`. Closes #198 ## Verification - `pytest -q tests/unit/ui/test_tui.py tests/integration/test_tui_dashboard.py` (`17 passed`) - `pytest -q tests/unit/site/test_builder.py tests/unit/cli/test_site.py tests/integration/test_site.py` (`13 passed`) - `ruff check polylogue/ui/tui/screens/browser.py tests/unit/ui/test_tui.py tests/integration/test_tui_dashboard.py tests/integration/test_site.py tests/unit/cli/test_site.py tests/unit/site/test_builder.py` - `mypy polylogue/ui/tui/screens/browser.py tests/unit/ui/test_tui.py tests/integration/test_tui_dashboard.py tests/integration/test_site.py tests/unit/cli/test_site.py tests/unit/site/test_builder.py` - `devtools verify` (`all checks passed`) - `pytest -q tests/integration/test_tui_dashboard.py tests/integration/test_site.py` (`9 passed`) - pre-push `devtools verify --quick` (`all checks passed`) Manual note: `timeout 5s polylogue --plain dashboard` rendered the dashboard TUI and exited with timeout as expected because the app remains running interactively.
Summary
Makes the TUI Browser empty state honest and adds smoke coverage that proves the dashboard app and static-site generation paths run against seeded repository state.
Problem
Issue #198 asked whether the TUI and site builder were actually functional rather than just scaffolded. The current Browser and Search tabs already have real behavior and focused Textual coverage, but Browser rendered fake provider nodes for an empty archive. The dashboard CLI wiring test also mocked
PolylogueApp.run, and the site CLI smoke only checked the publication manifest rather than the generated browsable site artifacts.Solution
No conversations in archivetree leaf.PolylogueApp.run()against a real seeded repository and exits through autopilot after dashboard stats render.polylogue run siteand verifiesindex.html,dashboard.html, a conversation page, andsearch-index.json.Closes #198
Verification
pytest -q tests/unit/ui/test_tui.py tests/integration/test_tui_dashboard.py(17 passed)pytest -q tests/unit/site/test_builder.py tests/unit/cli/test_site.py tests/integration/test_site.py(13 passed)ruff check polylogue/ui/tui/screens/browser.py tests/unit/ui/test_tui.py tests/integration/test_tui_dashboard.py tests/integration/test_site.py tests/unit/cli/test_site.py tests/unit/site/test_builder.pymypy polylogue/ui/tui/screens/browser.py tests/unit/ui/test_tui.py tests/integration/test_tui_dashboard.py tests/integration/test_site.py tests/unit/cli/test_site.py tests/unit/site/test_builder.pydevtools verify(all checks passed)pytest -q tests/integration/test_tui_dashboard.py tests/integration/test_site.py(9 passed)devtools verify --quick(all checks passed)Manual note:
timeout 5s polylogue --plain dashboardrendered the dashboard TUI and exited with timeout as expected because the app remains running interactively.