Skip to content

feat: complete TUI and site functional smokes (#368) - #368

Merged
Sinity merged 2 commits into
masterfrom
feature/feat/tui-site-functional-state
Apr 22, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/feat/tui-site-functional-state

Conversation

@Sinity

@Sinity Sinity commented Apr 22, 2026

Copy link
Copy Markdown
Owner

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.

Sinity added 2 commits April 23, 2026 01:00
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
@Sinity Sinity changed the title feat: complete TUI and site functional smokes feat: complete TUI and site functional smokes (#368) Apr 22, 2026
@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 40 minutes and 36 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e7010313-0c28-4a76-b9a8-7d9718da985b

📥 Commits

Reviewing files that changed from the base of the PR and between a147009 and 0f741ab.

📒 Files selected for processing (4)
  • polylogue/ui/tui/screens/browser.py
  • tests/integration/test_site.py
  • tests/integration/test_tui_dashboard.py
  • tests/unit/ui/test_tui.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/tui-site-functional-state

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity
Sinity merged commit 73fd9e8 into master Apr 22, 2026
11 of 14 checks passed
@Sinity
Sinity deleted the feature/feat/tui-site-functional-state branch April 22, 2026 23:04
@Sinity

Sinity commented May 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@Sinity
Sinity requested a review from Copilot May 1, 2026 01:53
@Sinity
Sinity removed the request for review from Copilot May 1, 2026 02:15
Sinity added a commit that referenced this pull request May 7, 2026
## 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.
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.

feat: complete TUI and site builder to functional state

1 participant