Skip to content

feat(webui): Edit bot description#59709

Merged
nicholasmarais1158 merged 7 commits intomasterfrom
nicholasmarais1158/feat/mwi-bot-description
Oct 7, 2025
Merged

feat(webui): Edit bot description#59709
nicholasmarais1158 merged 7 commits intomasterfrom
nicholasmarais1158/feat/mwi-bot-description

Conversation

@nicholasmarais1158
Copy link
Copy Markdown
Contributor

@nicholasmarais1158 nicholasmarais1158 commented Sep 29, 2025

Summary

This change allows editing a bot's description through the webui. The description is also visible on the bot details screen.

Updates: #59525
Changelog: Added editing bot description to the web UI

Change

  • Add new PUT /v3/webapi/sites/:site/machine-id/bot/:name endpoint version to accept new editable field
  • Add description to bot details
  • Add description field to edit form
  • Remove fireEvent from some tests and replace with userEvent

Demo

Screen.Recording.2025-09-29.at.17.24.34.mov

Reviewer notes

To test this change you simple need to create a bot resource if you don't already have one. Easiest way is to use the GitHub wizard in the webui. Once created, you can view the bot in the webui and edit its details.

@nicholasmarais1158 nicholasmarais1158 force-pushed the nicholasmarais1158/feat/mwi-bot-description branch from 1ed82e3 to 00f87f8 Compare September 30, 2025 15:28
Comment thread lib/web/machineid.go
Comment thread web/packages/shared/components/Validation/rules.ts Outdated
Comment thread web/packages/teleport/src/test/helpers/bots.ts Outdated
@nicholasmarais1158 nicholasmarais1158 added this pull request to the merge queue Oct 7, 2025
Merged via the queue into master with commit cc6f37e Oct 7, 2025
46 of 49 checks passed
@nicholasmarais1158 nicholasmarais1158 deleted the nicholasmarais1158/feat/mwi-bot-description branch October 7, 2025 09:16
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@nicholasmarais1158 See the table below for backport results.

Branch Result
branch/v17 Failed
branch/v18 Create PR

nicholasmarais1158 added a commit that referenced this pull request Oct 14, 2025
* Make bot description editable through the webapi

* Add `requiredMaxLength` form validation rule

* Show bot description in bot details

* Edit bot description

* Separate v1, v2, and v3 handlers

* No need for a `switch` here

* Add type EditBotApiVersion
# Conflicts:
#	lib/web/machineid.go
github-merge-queue bot pushed a commit that referenced this pull request Oct 20, 2025
* Make bot description editable through the webapi

* Add `requiredMaxLength` form validation rule

* Show bot description in bot details

* Edit bot description

* Separate v1, v2, and v3 handlers

* No need for a `switch` here

* Add type EditBotApiVersion
# Conflicts:
#	lib/web/machineid.go
rhammonds-teleport pushed a commit that referenced this pull request Nov 6, 2025
* Make bot description editable through the webapi

* Add `requiredMaxLength` form validation rule

* Show bot description in bot details

* Edit bot description

* Separate v1, v2, and v3 handlers

* No need for a `switch` here

* Add type EditBotApiVersion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants