Skip to content

fix(web): say one agent connected, not one agents - #386

Merged
samuelmbabhazi merged 1 commit into
mainfrom
fix/agent-count
Nov 20, 2026
Merged

samuelmbabhazi merged 1 commit into
mainfrom
fix/agent-count

Conversation

@samuelmbabhazi

@samuelmbabhazi samuelmbabhazi commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

The header link and the Servers card of the overview said "1 agents connected". With exactly one agent connected, they now use a singular text, translated in fr.ts as "1 agent connecté". Any other count keeps the plural.

Why

The label is on every page of the dashboard, and most first installations have exactly one server.

How it was tested

  • web:lint, web:test (206 tests) and the production build pass.
  • The build ran on a lab installation of main with one enrolled server: the header reads "1 agent connected · mTLS".

Security considerations

None: text only.

Summary by CodeRabbit

  • Bug Fixes
    • Connection indicators now use singular wording when exactly one agent is connected and plural wording otherwise.
    • Added French translations for singular connection status, including the outbound-mTLS description.

The header and the overview said "1 agents connected". One agent now takes the singular, in English and in French.

Signed-off-by: samuel mbabhazi <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Dashboard connection messages now use singular wording when exactly one agent is connected. The French catalog adds singular translations, including the outbound-mTLS and no-inbound-port description.

Changes: Connected-agent wording

Layer / File(s) Summary
Dashboard messages and French translations
apps/web/src/app/dashboard/dashboard-layout.html, apps/web/src/app/dashboard/overview-page.html, apps/web/src/app/ui/fr.ts
The dashboard templates select singular wording when one agent is connected. The French catalog adds singular translations; existing plural translations remain unchanged.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Suggested labels: track:web

Merge Risk: Minimal · up to ab6d5

This change shows "1 agent connected" instead of "1 agents connected" in the dashboard header and overview, with a matching French translation. It is a text-only fix with no meaningful merge risk.

Security architecture risk: Minimal · up to ab6d5

The described change selects singular wording for one connected agent and preserves plural wording otherwise. It establishes no introduced or worsened risk to security, failure containment, rollback, or ownership guarantees.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: the web dashboard now uses singular wording ('agent connected') when exactly one agent is connected, instead of the incorrect 'one agents'. The raw summary confirms t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the web dashboard now uses singular wording ('agent connected') when exactly one agent is connected, instead of the incorrect 'one agents'. The raw summary confirms the singular/plural branching in dashboard-layout.html, overview-page.html, and the French translations in fr.ts, and the objectives describe the same text-only fix. The title is specific and concise, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c83927a and ab6d572.

Files selected for processing: 3

  • apps/web/src/app/dashboard/dashboard-layout.html
  • apps/web/src/app/dashboard/overview-page.html
  • apps/web/src/app/ui/fr.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@samuelmbabhazi
samuelmbabhazi merged commit 770360d into main Nov 20, 2026
22 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the fix/agent-count branch November 20, 2026 16:00
samuelmbabhazi added a commit that referenced this pull request Nov 20, 2026
**Merge after #386 and #387:** the recording shows the web UI with both
fixes, loaded on a `main` build.

## What changed

- **A real demo replaces the design mockup with fictional data.** It is
an animated WebP (248 KB, 1200 px, about 22 s) of the real web UI:
  1. The applications list.
2. A first deployment of an nginx application, followed step by step
until it is live.
  3. The servers page.
  
The caption says when and how it was recorded, and that the wait during
the deployment plays 10 times faster. Nothing else is cut or sped up.
The mockup file goes, since nothing else used it.
- **A "Help wanted" section** says what helps most, in order:
  1. installing on a spare server and reporting what breaks;
  2. `good first issue`;
  3. larger pieces (#264, #265, #233, #232), commenting first;
  4. the threat model, with private reports through SECURITY.md;
  5. Discussions.
  
  It ends with one line asking for a star.
- **What works today** gains a row for the single-machine installation,
on `main` and not released yet.

## How it was recorded

- The control plane image was built from `main` (c83927a). The bundle
was installed with the single-machine installer, through a real
terminal, in a fresh Ubuntu 24.04 container. The installer answered its
questions and created the account and the organization "Acme". The agent
enrolled over loopback.
- A `.test` name cannot get a public certificate, so the lab's Caddy
issues certificates from its internal CA for these names. This is a
test-only change made through Caddy's admin API.
- Applications were created through the API. The one in the recording
was deployed by clicking Deploy in Chromium (Playwright), and became
live with its image pulled through the egress proxy. Its domain answered
through Caddy.
- The recording surfaced two UI bugs, fixed separately in #386 ("1
agents connected") and #387 (breadcrumb lost after a section change).

## How it was tested

- Prettier, the large-file and secrets hooks.
- The demo was checked frame by frame. The README must also be checked
as GitHub renders it, on this branch.

## Security considerations

None: documentation and an image. The recording shows no token, password
or secret. The account address is `[email protected]`.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Documentation**
* Updated the README with a recording of the first deployment and
servers page, including the recording date, branch, single-machine test
setup, real image, and playback speed.
* Added the single-machine control-plane and applications status to the
“What works today” table.
* Added a “Help wanted” section inviting server testing and bug reports,
contributions to issues of different sizes, security-model feedback,
discussion, and project stars.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: samuel mbabhazi <[email protected]>
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