-
Notifications
You must be signed in to change notification settings - Fork 0
feat: org lens #391
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
feat: org lens #391
Changes from 3 commits
c219b2c
4a2b7c4
42e90a1
bb46c16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,10 +4,17 @@ | |||||||||||||
| <!-- Dev Toolbar (fixed at top) --> | ||||||||||||||
| <lfx-dev-toolbar></lfx-dev-toolbar> | ||||||||||||||
|
|
||||||||||||||
| <div class="flex min-h-screen" [ngClass]="{ 'pt-12': showDevToolbar() }"> | ||||||||||||||
| <!-- Sidebar - Desktop --> | ||||||||||||||
| <div class="hidden lg:block w-64 flex-shrink-0 fixed left-0 bottom-0" [ngClass]="{ 'top-12': showDevToolbar(), 'top-0': !showDevToolbar() }"> | ||||||||||||||
| <lfx-sidebar [items]="sidebarItems()" [footerItems]="sidebarFooterItems()" [showProjectSelector]="true"></lfx-sidebar> | ||||||||||||||
| <div class="flex min-h-screen" [ngClass]="{ 'pt-[48px]': showDevToolbar() }"> | ||||||||||||||
| <!-- Sidebar - Desktop: lens switcher (72px) + nav panel (280px) = 352px total --> | ||||||||||||||
| <div class="hidden lg:flex flex-row flex-shrink-0 fixed left-0 bottom-0 w-[344px] z-[60]" [ngClass]="{ 'top-[48px]': showDevToolbar(), 'top-0': !showDevToolbar() }"> | ||||||||||||||
| <!-- Lens Switcher Column (72px) --> | ||||||||||||||
|
Comment on lines
+8
to
+10
|
||||||||||||||
| <!-- Sidebar - Desktop: lens switcher (72px) + nav panel (280px) = 352px total --> | |
| <div class="hidden lg:flex flex-row flex-shrink-0 fixed left-0 bottom-0 w-[344px] z-[60]" [ngClass]="{ 'top-[48px]': showDevToolbar(), 'top-0': !showDevToolbar() }"> | |
| <!-- Lens Switcher Column (72px) --> | |
| <!-- Sidebar - Desktop: lens switcher (64px) + nav panel (280px) = 344px total --> | |
| <div class="hidden lg:flex flex-row flex-shrink-0 fixed left-0 bottom-0 w-[344px] z-[60]" [ngClass]="{ 'top-[48px]': showDevToolbar(), 'top-0': !showDevToolbar() }"> | |
| <!-- Lens Switcher Column (64px) --> |
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.
🧩 Analysis chain
🏁 Script executed:
Repository: linuxfoundation/lfx-v2-ui
Length of output: 7444
Add route-level guards to admin-only org child paths.
The
ORG_LENS_ROUTESlackcanActivateguards on sensitive routes. Access control is currently implemented at the component level (orgUserTypecomputed properties in membership, code, groups, and profile components), which only hides UI features but does not prevent the route from activating. Routes such asmembership,groups, andprofileare directly reachable by any authenticated user without role validation at the routing layer.Move role checks to route guards using
canActivateto prevent unauthorized access before the component loads.🤖 Prompt for AI Agents