Skip to content

Give apps a short description - #346

Merged
jonathanlaib merged 6 commits into
mainfrom
app-description
Nov 23, 2026
Merged

jonathanlaib merged 6 commits into
mainfrom
app-description

Conversation

@jonathanlaib

@jonathanlaib jonathanlaib commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

An app has a name and an address, but nothing says what it is for. On Home, a tile shows the app's hostname under its name, which does not help someone decide whether the app is the one they need.

Change

Description. An app can carry one sentence of up to 200 characters. Everyone who manages the app can set it; an empty text removes it.

App pages. The description stands under the app's name. Pointing at it or focusing it shows a pencil, and choosing it turns the text into a field in the same place. Save and Discard appear beside the field once the text differs from the saved one; Enter saves and Escape discards. Leaving the field keeps unsaved text. An app without a description offers Add a description there. Previews do not have one, as they are not listed.

Home. A tile shows the description in place of the hostname when the app has one. The search on Home also matches it.

API and CLI. PUT /apps/{appId}/description sets it, widefleet catalog describe <APP> <DESCRIPTION> calls it. The app record and catalog entries return description, which is null without one.

Templates. An app installed from a template takes the template's description once the install's deployment is accepted, unless someone already described the app. An install reads the description before it builds or creates anything.

Not included

  • The description appears on the app's pages and on Home. My connections does not show it yet.
  • Editing the app's name in place follows in a separate pull request.
  • Editing needs JavaScript. Without it, the description shows as text.

Screenshots

Synthetic fixture: an owner who publishes one app, and a member who sees it on Home.

Shown under the name, with the pencil on hover
Editing, with Save and Discard
Editing at 390 pixels, dark
Home

Verification

  • pnpm typecheck, pnpm format:check, pnpm lint, cargo fmt --check, cargo clippy and cargo test for platform-core and platform-cli
  • pnpm exec vitest run against local Postgres and object storage, and the CLI suite against the built CLI. Cases: who may set a description, the length limit, clearing it, the catalog entry, the CLI command, and template installs: a new app, an app an earlier install left, a description someone saved, a rejected install and an unreadable template document.
  • tests/e2e/auth.spec.ts: the owner opens the editor, discards a draft with the pointer, reopens it with the keyboard, saves, and the member sees the text on Home. Focus returns to the description after saving and discarding.
  • Rendered result checked on an app page and Home at 1280 and 390 pixels wide, in light and dark: the field takes the place of the text, so the text, the actions beside the name and the content below do not move. Not checked: a description of the full 200 characters, and the pencil on a touch device, where it is always shown.

Documentation: #347 (draft, blocked until a release contains this change).

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; the previous lost-edit issue is fixed.

Summary

This PR adds short app descriptions to app pages, Home, the API, the CLI, and template installs.

  • App managers can save a short description from the page or CLI.
  • Home shows app descriptions instead of hostnames when available.
  • Template installs give new apps the template description when available.

Reviews (6) · Last reviewed commit: "Keep the description fixed while it is b..." · Reviewed by Greptile

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 9d9c45a Nov 23 2026, 03:53 PM

@jonathanlaib
jonathanlaib merged commit b7ab84e into main Nov 23, 2026
16 checks passed
@jonathanlaib
jonathanlaib deleted the app-description branch November 23, 2026 16:11
jonathanlaib added a commit that referenced this pull request Nov 23, 2026
Follows #346, which added the description and its editor.

## Problem

An app keeps the name it was created with. A typo or a name that no
longer fits can only be fixed by creating the app again.

## Change

**Rename.** Everyone who manages an app can change the name people see.
The app's slug, address and ID stay, so links, commands and deployments
keep working.

**App pages.** The heading is edited like the description below it:
pointing at it or focusing it shows a pencil, choosing it turns the name
into a field in the same place, and Save and Discard appear once the
text differs. Enter saves, Escape discards. The name cannot be empty.
Previews can be renamed too.

**One editor.** The description's editor becomes a shared component for
both texts. The text and its edit button are separate elements, so the
heading reads as the name alone.

**Header layout.** The name moves below the row with the status and the
actions. Editing it then does not move the actions, and a long name has
the full width at narrow sizes.

**API and CLI.** `PUT /apps/{appId}/name` with `{ "displayName": "…" }`,
and `widefleet rename <APP> <NAME>`.

## Screenshots

Synthetic fixture: an owner renames a published app.

| | |
|---|---|
| Before: name beside the actions | <img
src="https://gist.githubusercontent.com/jonathanlaib/ab68279d4ff46a6ecda9ed0efcb99869/raw/6f3b8c2760410b3b20d3babdf6274a1dd3a73939/shown-1280-light.png"
width="420"> |
| After: name below them, with the pencil while focused | <img
src="https://gist.githubusercontent.com/jonathanlaib/ab68279d4ff46a6ecda9ed0efcb99869/raw/22573c19af463e735480ad1d6bbe6af1db404dff/name-shown-1280-light.png"
width="420"> |
| Editing, with Save and Discard | <img
src="https://gist.githubusercontent.com/jonathanlaib/ab68279d4ff46a6ecda9ed0efcb99869/raw/22573c19af463e735480ad1d6bbe6af1db404dff/name-edit-1280-light.png"
width="420"> |
| Editing at 390 pixels, dark | <img
src="https://gist.githubusercontent.com/jonathanlaib/ab68279d4ff46a6ecda9ed0efcb99869/raw/22573c19af463e735480ad1d6bbe6af1db404dff/name-edit-390-dark.png"
width="200"> |

## Verification

- `pnpm typecheck`, `pnpm format:check`, `pnpm lint`, `cargo fmt
--check`, `cargo clippy` and `cargo test` for `platform-core` and
`platform-cli`
- `pnpm exec vitest run` against local Postgres and object storage, and
the CLI suite against the built CLI. New cases: who may rename, an empty
name, the trimmed result, the renamed catalog entry, and the CLI
command. Four release publication tests timed out in the full run and
pass on their own; they do not touch this change.
- `tests/e2e/auth.spec.ts`, all 49 tests: the owner opens the name,
discards a draft with Escape, reopens it with the keyboard and saves
with Enter; the heading, the page title and the member's Home show the
new name.
- Rendered result checked on an app page at 1280 and 390 pixels wide, in
light and dark: the field takes the place of the name, and the actions
and the content below do not move. Not checked: a name of the full 120
characters, and the pencil on a touch device, where it is always shown.

Documentation: #349 (draft, blocked until a release contains this
change).


<!-- greptile_comment -->

<!-- greptile_summary -->

<h2><a
href="https://app.greptile.com/api/retrigger?id=116785892&amp;sig=07adba9c1cbe94f44cca113f04af07b7e7f13938acc5bda0d0d0ea5645b5e995"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img
alt="Retrigger"
src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"
align="right"></picture></a><a
href="https://app.greptile.com/-/switch-tenant?tenant=mendra&amp;next=%2Fwidefleet%2Fwidefleet%2Fpull%2F348&amp;utm_source=greptile_review&amp;utm_medium=github&amp;utm_campaign=view_in_greptile"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img
alt="View in Greptile"
src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"
align="right"></picture></a>Confidence Score: 5/5</h2>

<!-- greptile-impact-verdict --> The PR appears safe to merge.

<details open><summary><h3>Summary</h3></summary>

Adds in-place app renaming through the heading, API, and CLI.

- App managers can change an app’s displayed name without changing its
address.
</details>

<!-- greptile_confidence_score:5 -->

<sub>Reviews (1) · Last reviewed commit: ["Rename an app in place in its
heading"](8526979)
· [Reviewed by
Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub>

<!-- /greptile_comment -->
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