Skip to content

feat: add compaction card to backends page#117

Merged
danielcherubini merged 7 commits into
mainfrom
feature/compaction-backend-card
Jun 9, 2026
Merged

feat: add compaction card to backends page#117
danielcherubini merged 7 commits into
mainfrom
feature/compaction-backend-card

Conversation

@danielcherubini

Copy link
Copy Markdown
Owner

Summary

Add a compaction card to the backends page showing status and an enable/disable toggle. Compaction is embedded in the binary (no install needed) — the card exposes the existing compaction config from the UI.

Changes

  • CompactionCardDto — New DTO with enabled, device, port, running, server_url, request_timeout_ms
  • GET /tama/v1/backends — Extended response with compaction status from model registry
  • POST /tama/v1/backends/compaction — Toggle endpoint that updates config, persists to disk, and triggers start/stop
  • Compaction card UI — Renders on backends page with toggle, status, device/port display, green accent when running

Commits

  • db3009a feat: add CompactionCardDto to backends list API
  • 5ca1d46 feat: add POST /tama/v1/backends/compaction toggle endpoint
  • ceef37a feat: add compaction card to backends page
  • 9cf9446 fix: verify compaction card round-trip, full workspace clean
  • 93bb498 docs: add comment explaining compaction toggle refresh behavior

Test plan

  • cargo check --workspace — clean
  • cargo clippy --workspace -- -D warnings — clean
  • cargo test --workspace — all pass
  • Manual test: toggle compaction on/off from backends page
  • Manual test: verify compaction starts when enabled (requires uvx)

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@danielcherubini, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 27 minutes and 25 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e4c9b965-4f2c-4ff3-8332-5ab9ef2d9798

📥 Commits

Reviewing files that changed from the base of the PR and between 7eb6aa6 and 34dc1e3.

📒 Files selected for processing (7)
  • crates/tama-web/src/api/backends/compaction.rs
  • crates/tama-web/src/api/backends/list.rs
  • crates/tama-web/src/api/backends/mod.rs
  • crates/tama-web/src/api/backends/types.rs
  • crates/tama-web/src/pages/backends.rs
  • crates/tama-web/src/router.rs
  • docs/plans/README.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/compaction-backend-card

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.

@danielcherubini danielcherubini merged commit b817fb5 into main Jun 9, 2026
2 checks passed
@danielcherubini danielcherubini deleted the feature/compaction-backend-card branch June 9, 2026 16:35
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.

1 participant