Web UI: Integrations Enroll redesign#58421
Conversation
8f18f4a to
9862b13
Compare
|
haven't looked at the code yet, i just did some QA testing:
|
| }} | ||
| > | ||
| <Icons.Magnifier size={16} color="text.slightlyMuted" /> | ||
| <StyledInput |
There was a problem hiding this comment.
What about this comment? :)
@kimlisa This is leveraging the This also pops up in Access Lists search
Seems like removing the default |
|
@alexhemard - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes. |
6b3d816 to
c90f1b2
Compare
|
Pushed changes:
|
| ); | ||
| } | ||
|
|
||
| export function useIntegrationPickerState(): [ |
There was a problem hiding this comment.
Callout: This is mostly repurposed from https://github.com/gravitational/teleport/blob/master/web/packages/teleport/src/SessionRecordings/list/state.ts but this hook feels like it could be generic 🤔
There was a problem hiding this comment.
It might be a good idea to try this if it’s not too much work. But I'd do this outside this PR, since it's already quite large.
| hasAccess={true} | ||
| icon={integration.icon} | ||
| link={{ url: integration.link, onClick: onBotClick }} | ||
| renderBadge={renderBadge} |
There was a problem hiding this comment.
I think this could a regular component, not a function returning component, since we don't pass any arguments to it.
| ); | ||
| } | ||
|
|
||
| export function useIntegrationPickerState(): [ |
There was a problem hiding this comment.
It might be a good idea to try this if it’s not too much work. But I'd do this outside this PR, since it's already quite large.
There was a problem hiding this comment.
we're almost there
This is leveraging the useUrlFiltering hook and it's appending the isPinned param.
we make mistakes, this is one of those that got overlooked both by dev and code reviewers. i wouldn't rely on existing code and patterns to be always the best or accurate, i would always question it.
in fact, that access list isPinned got noticed by another dev who is working on something related and is in the process of fixing it. similarly if you notice anything odd (or notice any bug), ask in #dev-frontend or create an issue for it tagged with ui
| <Redirect | ||
| path={cfg.getBotsNewRoute()} | ||
| to={`${cfg.getIntegrationEnrollRoute()}?tags=bot`} | ||
| /> |
There was a problem hiding this comment.
@kimlisa Should this have a link out icon since it redirects to the Integrations page?
Existing shortcut
Proposed
There was a problem hiding this comment.
i think there are unused components and or functions in this file, can you double check?
i would put a // TODO(alexhemard): delete in a follow up PR to mark things for deletion later
1d22628 to
a6bee7a
Compare
| placeholder="Search for integrations..." | ||
| /> | ||
| </Box> | ||
| <Flex justifyContent="space-between" minWidth="419px"> |
There was a problem hiding this comment.
This is rather a low level component, it probably shouldn't set the min width for the page.
| <BadgeSelfHosted> | ||
| Self-Hosted | ||
| <NewTab size={14} ml={1} color="text.slightlyMuted" /> | ||
| </BadgeSelfHosted> |
There was a problem hiding this comment.
The text and the icon should be aligned.
| }} | ||
| > | ||
| <Icons.Magnifier size={16} color="text.slightlyMuted" /> | ||
| <StyledInput |
There was a problem hiding this comment.
What about this comment? :)
9de9468 to
0aab927
Compare
0aab927 to
bb6186e
Compare
bb6186e to
d5a557d
Compare
|
@alexhemard See the table below for backport results.
|







Description
Resolves: #57612
ePR: https://github.com/gravitational/teleport.e/pull/7144Implements new Integration Enrollment design
Demo
enroll.mp4
Notes
Will need a followup PR to clean up 'old design' Components after
eupdate is mergedChangelog: Updated Enroll Integration page design