Repository navigation
Give apps a short description - #346
Merged
Merged
Conversation
jonathanlaib
force-pushed
the
app-description
branch
from
November 23, 2026 15:06
187236b to
2b16654
Compare
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 9d9c45a | Nov 23 2026, 03:53 PM |
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&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&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F348&utm_source=greptile_review&utm_medium=github&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 -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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}/descriptionsets it,widefleet catalog describe <APP> <DESCRIPTION>calls it. The app record and catalog entries returndescription, which isnullwithout 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
Screenshots
Synthetic fixture: an owner who publishes one app, and a member who sees it on Home.
Verification
pnpm typecheck,pnpm format:check,pnpm lint,cargo fmt --check,cargo clippyandcargo testforplatform-coreandplatform-clipnpm exec vitest runagainst 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.Documentation: #347 (draft, blocked until a release contains this change).


Confidence 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.
Reviews (6) · Last reviewed commit: "Keep the description fixed while it is b..." · Reviewed by Greptile