4 Commits
Author SHA1 Message Date
Nick MaraisandRafał Cieślak bbb0f46b22 feat(web): Add lock, unlock and delete to bot details (#57864)
* Update RFD-0217 and mark as "implemented"

* Integrate locking for bots

* Add abort signal to API `delete()` - backwards compatible

* Add deleting action to bot details

* Replace deleting dialog on bots list

* Refactor edit bot to use variables/about signal signature (better for useMutation)

* Fix heading styles on panels

* Export 'medium' font weight

* Allow escape key to close lock/unlock dialogs

* Optimize images for RFD 217

* Replace `fireEvent` with `userEvent`

* Add eslint exceptions for using `HTMLElement.closest()`

* Add type to `useRef`

* Add `api.deleteWithOptions()` and deprecate `api.delete*()`

* Remove unnecessary jsdoc `@returns`

* Fix swallowing errors in callbacks

* Avoid extra element for spacing delete dialog buttons

* Space dialog buttons with flex gap instead of margin

* Move delete completion delay closer to mutation

* Fix bots list tests after delete delay change

* Return in `catch`

* Use whole-file eslint exception for `testing-library/no-node-access`

---------

Co-authored-by: Rafał Cieślak <[email protected]>
2025-08-22 14:42:20 +00:00
Nick MaraisandDan Upton 1c459ddb24 feat: Add GET /v2/webapi/tokens and list RPC (#56841)
* RPC and cache

* API

* Update rfc0217

* Remove unnecessary copy

* Fix import ordering

* Fix cache bypass issue

* Add context to unmarshal error

* Wrap page_size parse error

* Keep backend range logic consistent

* Use `assert.*` where possible (instead of `require.*`)

* Clarify slice type conversion

* Correct and expand docs

* Extract matching logic and refactor test

* make grpc

* Update `TestTokensCache`

* Update `/tokens` url params in rfd

Co-authored-by: Dan Upton <[email protected]>

---------

Co-authored-by: Dan Upton <[email protected]>
2025-07-22 16:44:56 +00:00
Nick Marais 97eaff4613 feat(webapi): Support editing bot traits and max session duration (#56628)
* feat(webapi): Support editing traits and max session duration

* Update RFD0217

* Correct docs
2025-07-14 09:08:42 +00:00
Nick Marais 13b9b30c46 docs: [RFD-0217] Bot Details (web) (#55628)
* docs: Bot Details rfd

* First draft

* fix: Image links

* chore: Rename to 0217

* Add wires for edit form

* Add refresh action to instance list

* Expand web apis section

* Add lock details and web api

* Add todos

* Add details for supporting MFA for admin actions (Join Tokens)

* Add explanation for sorting bot instances (cache and indexes)

* Assorted PR tweaks

* Remove unneeded stories

* Use a new RPC to retrieve join tokens (ListTokens)

* Use a new RPC to retrieve join tokens (ListTokens)

Change approach to fetching lock status

* Fix heading spacing

* Refine backwards compatibility approach

* Update task breakdown

* Spell check

* Add lock option to delete operation

* Fix "wishlist features" link
2025-07-01 16:41:41 +00:00