Skip to content

feat(web): Add Instances to Bot Details#57023

Merged
nicholasmarais1158 merged 62 commits intomasterfrom
nicholasmarais1158/feat/bot-instances-web
Jul 30, 2025
Merged

feat(web): Add Instances to Bot Details#57023
nicholasmarais1158 merged 62 commits intomasterfrom
nicholasmarais1158/feat/bot-instances-web

Conversation

@nicholasmarais1158
Copy link
Copy Markdown
Contributor

@nicholasmarais1158 nicholasmarais1158 commented Jul 22, 2025

Summary

This change adds bot instance to the bot details page. The panel loads it own data (separate from the page) and uses in infinite query to add pages to the result set. Instead of the page growing and scrolling, content scrolls within it's column/panel and the page remains full-height at all time.

Depends on: #56901
Designs: Figma link
RFD: RFD0217 - Bot Details (web)
Updates: #47342

Changes

Demo

Screen.Recording.2025-07-22.at.13.05.36.mov

* upgrade-major - the client is one version behind.
* upgrade-minor - the major version is the same, but older on minor or patch.
*/
reason: 'match' | 'upgrade-major' | 'upgrade-minor';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This much nicer than what I had 👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

Comment thread web/packages/teleport/src/useClusterVersion.ts Outdated
Comment thread web/packages/teleport/src/Bots/Details/Instance.tsx Outdated
Base automatically changed from nicholasmarais1158/feat/bot-tokens-web to master July 28, 2025 17:45
# Conflicts:
#	web/packages/teleport/src/Bots/Details/BotDetails.story.tsx
#	web/packages/teleport/src/Bots/Details/BotDetails.test.tsx
#	web/packages/teleport/src/Bots/Details/BotDetails.tsx
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from rudream July 30, 2025 08:24
@nicholasmarais1158 nicholasmarais1158 added this pull request to the merge queue Jul 30, 2025
Merged via the queue into master with commit 30b4500 Jul 30, 2025
44 checks passed
@nicholasmarais1158 nicholasmarais1158 deleted the nicholasmarais1158/feat/bot-instances-web branch July 30, 2025 09:13
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@nicholasmarais1158 See the table below for backport results.

Branch Result
branch/v17 Failed
branch/v18 Failed

nicholasmarais1158 added a commit that referenced this pull request Aug 1, 2025
* 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

* feat(web): Add Join Tokens panel to Bot Details

* Copy correction

* Remove unneeded alert action

* Handle outdated proxy error

* Extend tests

* Rename

* Use `tokens.list` for access to tokens page (instead of `tokens.create`)

* Add outline label variants

* Add `semver` dep to teleport package

* Add `useClusterVersion` hook

* Expose heartbeat OS

* Add sorting icons

* Add `JoinMethodIcon` component

* Add bot instances to Bot Details

* Missing lock content

* Fix scroll container

* Scroll to top on sort

* Remove unused import

* Extract join method icons to component

* Add mission join token icons/logos

* Use OS logos (update windows)

* Save some lines 😮‍💨

* Unused imports

* Use shared semver

* Fix exhaustive check

* Re-export new Label variants

* Correct version compatibility logic and messaging

* Improve error state UX

* Use `H2`

* Reduce lines

* Reduce lines (more)

* Fix tests and lint

* Fix grid alignment

* Remove unnecessary margin 0

* Clarify roles container

* Improve type safety of sort state

* Remove unnecessary wrappers

* Improve `useClusterVersion`

* Add sorting icons (used later)

* Rename `check()`

* Correct newer version messaging
# Conflicts:
#	web/packages/design/src/ResourceIcon/assets/windows-dark.svg
#	web/packages/design/src/ResourceIcon/assets/windows-light.svg
#	web/packages/shared/utils/semVer.ts
#	web/packages/teleport/src/Bots/Details/BotDetails.test.tsx
#	web/packages/teleport/src/Bots/Edit/EditDialog.test.tsx
nicholasmarais1158 added a commit that referenced this pull request Aug 1, 2025
* 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

* feat(web): Add Join Tokens panel to Bot Details

* Copy correction

* Remove unneeded alert action

* Handle outdated proxy error

* Extend tests

* Rename

* Use `tokens.list` for access to tokens page (instead of `tokens.create`)

* Add outline label variants

* Add `semver` dep to teleport package

* Add `useClusterVersion` hook

* Expose heartbeat OS

* Add sorting icons

* Add `JoinMethodIcon` component

* Add bot instances to Bot Details

* Missing lock content

* Fix scroll container

* Scroll to top on sort

* Remove unused import

* Extract join method icons to component

* Add mission join token icons/logos

* Use OS logos (update windows)

* Save some lines 😮‍💨

* Unused imports

* Use shared semver

* Fix exhaustive check

* Re-export new Label variants

* Correct version compatibility logic and messaging

* Improve error state UX

* Use `H2`

* Reduce lines

* Reduce lines (more)

* Fix tests and lint

* Fix grid alignment

* Remove unnecessary margin 0

* Clarify roles container

* Improve type safety of sort state

* Remove unnecessary wrappers

* Improve `useClusterVersion`

* Add sorting icons (used later)

* Rename `check()`

* Correct newer version messaging
# Conflicts:
#	web/packages/design/src/ResourceIcon/assets/windows-dark.svg
#	web/packages/design/src/ResourceIcon/assets/windows-light.svg
#	web/packages/shared/utils/semVer.ts
#	web/packages/teleport/src/Bots/Edit/EditDialog.test.tsx
github-merge-queue bot pushed a commit that referenced this pull request Aug 4, 2025
* 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

* feat(web): Add Join Tokens panel to Bot Details

* Copy correction

* Remove unneeded alert action

* Handle outdated proxy error

* Extend tests

* Rename

* Use `tokens.list` for access to tokens page (instead of `tokens.create`)

* Add outline label variants

* Add `semver` dep to teleport package

* Add `useClusterVersion` hook

* Expose heartbeat OS

* Add sorting icons

* Add `JoinMethodIcon` component

* Add bot instances to Bot Details

* Missing lock content

* Fix scroll container

* Scroll to top on sort

* Remove unused import

* Extract join method icons to component

* Add mission join token icons/logos

* Use OS logos (update windows)

* Save some lines 😮‍💨

* Unused imports

* Use shared semver

* Fix exhaustive check

* Re-export new Label variants

* Correct version compatibility logic and messaging

* Improve error state UX

* Use `H2`

* Reduce lines

* Reduce lines (more)

* Fix tests and lint

* Fix grid alignment

* Remove unnecessary margin 0

* Clarify roles container

* Improve type safety of sort state

* Remove unnecessary wrappers

* Improve `useClusterVersion`

* Add sorting icons (used later)

* Rename `check()`

* Correct newer version messaging
# Conflicts:
#	web/packages/design/src/ResourceIcon/assets/windows-dark.svg
#	web/packages/design/src/ResourceIcon/assets/windows-light.svg
#	web/packages/shared/utils/semVer.ts
#	web/packages/teleport/src/Bots/Edit/EditDialog.test.tsx
github-merge-queue bot pushed a commit that referenced this pull request Aug 4, 2025
* feat(web): Add Instances to Bot Details (#57023)

* 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

* feat(web): Add Join Tokens panel to Bot Details

* Copy correction

* Remove unneeded alert action

* Handle outdated proxy error

* Extend tests

* Rename

* Use `tokens.list` for access to tokens page (instead of `tokens.create`)

* Add outline label variants

* Add `semver` dep to teleport package

* Add `useClusterVersion` hook

* Expose heartbeat OS

* Add sorting icons

* Add `JoinMethodIcon` component

* Add bot instances to Bot Details

* Missing lock content

* Fix scroll container

* Scroll to top on sort

* Remove unused import

* Extract join method icons to component

* Add mission join token icons/logos

* Use OS logos (update windows)

* Save some lines 😮‍💨

* Unused imports

* Use shared semver

* Fix exhaustive check

* Re-export new Label variants

* Correct version compatibility logic and messaging

* Improve error state UX

* Use `H2`

* Reduce lines

* Reduce lines (more)

* Fix tests and lint

* Fix grid alignment

* Remove unnecessary margin 0

* Clarify roles container

* Improve type safety of sort state

* Remove unnecessary wrappers

* Improve `useClusterVersion`

* Add sorting icons (used later)

* Rename `check()`

* Correct newer version messaging
# Conflicts:
#	web/packages/design/src/ResourceIcon/assets/windows-dark.svg
#	web/packages/design/src/ResourceIcon/assets/windows-light.svg
#	web/packages/shared/utils/semVer.ts
#	web/packages/teleport/src/Bots/Details/BotDetails.test.tsx
#	web/packages/teleport/src/Bots/Edit/EditDialog.test.tsx

* Run `pnpm process-icons`

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants