fix(web): Bot details instance spacing#57563
Conversation
@zmb3 Yeah, it's a visual quirk, I think. These assets don't have in-asset padding, so their visual centre can't be corrected individually. The k8s icon has a bit of spacing at the the bottom which serves to exacerbate the effect.
|
| import { Indicator } from 'design/Indicator/Indicator'; | ||
| import Text from 'design/Text'; | ||
| import { H2 } from 'design/Text/Text'; | ||
| import { fontWeights } from 'design/theme/typography'; |
There was a problem hiding this comment.
I'm not sure if this was the exact cause of those unused imports, but: if you set up your editor to run ESLint with --fix on save, then it should automatically remove unused imports for you. Bartosz added an ESLint rule for that a while ago. #54953
There was a problem hiding this comment.
These assets don't have in-asset padding, so their visual centre can't be corrected individually.
Yeah this is such an annoying problem sometimes. 😩
|
@ravicious Since your review, I've added the Oracle brand logo. I made sure to run |
|
@nicholasmarais1158 See the table below for backport results.
|
* Add padded container to `ResourceIcon` * Increase join method and os icon size * Include value in hostname tooltip * Improve version and hostname spacing * Tidy hostname height * Lower heading weight * Revert title weight back to bold * Fix warning label text colour * Unused imports 😞 * Add Oracle icon and `pnpm process-icons`
* Add padded container to `ResourceIcon` * Increase join method and os icon size * Include value in hostname tooltip * Improve version and hostname spacing * Tidy hostname height * Lower heading weight * Revert title weight back to bold * Fix warning label text colour * Unused imports 😞 * Add Oracle icon and `pnpm process-icons`
* feat(web): Link to Bot Details (#57210) * 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) * Bot details nav and edit from list * Add up/back navigation * Make icons bigger * Make label text bigger * Add "No heartbeat data" state * Rename `check()` * Correct newer version messaging * Tweak Label component border radius * Spacing, sizing and overflow handling * Add overflow stories * Fix typing * Remove old edit form * Remove fixme comment * Fix lint * Remove redundant memoization * Tidy text styles * Add `style` prop to ResourceIcon * fix(web): Bot details instance spacing (#57563) * Add padded container to `ResourceIcon` * Increase join method and os icon size * Include value in hostname tooltip * Improve version and hostname spacing * Tidy hostname height * Lower heading weight * Revert title weight back to bold * Fix warning label text colour * Unused imports 😞 * Add Oracle icon and `pnpm process-icons` * fix(web): Oracle brand icon (#57708) * fix(web): Oracle brand icon * Run `pnpm process-icons`
* feat(web): Link to Bot Details (#57210) * 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) * Bot details nav and edit from list * Add up/back navigation * Make icons bigger * Make label text bigger * Add "No heartbeat data" state * Rename `check()` * Correct newer version messaging * Tweak Label component border radius * Spacing, sizing and overflow handling * Add overflow stories * Fix typing * Remove old edit form * Remove fixme comment * Fix lint * Remove redundant memoization * Tidy text styles * Add `style` prop to ResourceIcon * fix(web): Bot details instance spacing (#57563) * Add padded container to `ResourceIcon` * Increase join method and os icon size * Include value in hostname tooltip * Improve version and hostname spacing * Tidy hostname height * Lower heading weight * Revert title weight back to bold * Fix warning label text colour * Unused imports 😞 * Add Oracle icon and `pnpm process-icons` * fix(web): Oracle brand icon (#57708) * fix(web): Oracle brand icon * Run `pnpm process-icons`




Summary
A few UX/UI tweaks to bot details.
Updates: #47342
Changes
Screenshots
Before

After
