-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add navigation to individual aws resource rule tables #49855
base: master
Are you sure you want to change the base?
Conversation
20d8d78
to
3e5c84f
Compare
faad762
to
dd7e49f
Compare
ee4fd76
to
cf18b6f
Compare
3e5c84f
to
d41e609
Compare
cf18b6f
to
c12ec67
Compare
144f708
to
db1285e
Compare
32c924a
to
5b0dae1
Compare
49ab3fc
to
ace89fd
Compare
7cc0760
to
911b8ef
Compare
3165efe
to
8820615
Compare
be034e1
to
a24883d
Compare
web/packages/design/src/Tabs/Tabs.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactor Notes:
web/packages/design/src/Tabs/Tabs.ts
is pulled from e/web/teleport/src/AccessMonitoring/AccessMonitoring.tsx
. Once merged & backported, we can update the Access Monitoring component to use /design
.
d71c8e7
to
62f8e04
Compare
web/packages/teleport/src/Integrations/status/AwsOidc/AwsOidcDashboard.test.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Integrations/status/AwsOidc/AwsOidcDashboard.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Integrations/status/AwsOidc/AwsOidcHeader.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Integrations/status/AwsOidc/AwsOidcHeader.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Integrations/status/AwsOidc/AwsOidcTitle.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Integrations/status/AwsOidc/Details/Agents.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Integrations/status/AwsOidc/Details/Agents.tsx
Outdated
Show resolved
Hide resolved
useEffect(() => { | ||
if (!parentRef.current || !borderRef.current) { | ||
return; | ||
} | ||
|
||
const activeElement = parentRef.current.querySelector( | ||
`[data-tab-id="${tab}"]` | ||
); | ||
|
||
if (activeElement) { | ||
const parentBounds = parentRef.current.getBoundingClientRect(); | ||
const activeBounds = activeElement.getBoundingClientRect(); | ||
|
||
const left = activeBounds.left - parentBounds.left; | ||
const width = activeBounds.width; | ||
|
||
borderRef.current.style.left = `${left}px`; | ||
borderRef.current.style.width = `${width}px`; | ||
} | ||
}, [tab]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used to highlight the active tab? It seems to me that it should be doable with a plain CSS 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I essentially pulled this from the other implementation trying to use what we have instead of creating x varieties of it.
Refactor Notes:
web/packages/design/src/Tabs/Tabs.ts is pulled from e/web/teleport/src/AccessMonitoring/AccessMonitoring.tsx. Once merged & backported, we can update the Access Monitoring component to use /design.
Absolutely could go back through and update this component, mind if I leave that for later?
web/packages/teleport/src/Integrations/status/AwsOidc/Details/Rds.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Integrations/status/AwsOidc/Details/Details.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the other comments are taken care of as well, LGTM
web/packages/teleport/src/Integrations/status/AwsOidc/Details/Details.tsx
Outdated
Show resolved
Hide resolved
fb571f5
to
b07cfc3
Compare
b07cfc3
to
c4bb7a8
Compare
This PR adds rules tables for each AWS resource
Refactor Notes:
web/packages/design/src/Tabs/Tabs.ts
is pulled frome/web/teleport/src/AccessMonitoring/AccessMonitoring.tsx
. Once merged & backported, we can update the Access Monitoring component to use/design
.I also re-wrote
web/packages/teleport/src/generateResourcePath.test.ts
to accept a generic path that contains all parameters rather than using a predetermined path with a subset of params.Screen.Recording.2025-01-31.at.11.44.12.AM.mov
Note:
Supports #49088
Agents endpoint requires #51814 to return correctly with region filters
Rules endpoint requires #51978 to return correctly when no regions are filtered