-
Notifications
You must be signed in to change notification settings - Fork 22
fix(admin-ui): unable to click Agama Flow tab in Auth Server (#2483) #2484
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
Conversation
📝 WalkthroughWalkthroughReplaces direct router navigation with Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📓 Common learnings🧬 Code graph analysis (1)admin-ui/app/routes/Apps/Gluu/GluuTabs.tsx (6)
🔇 Additional comments (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
admin-ui/app/routes/Apps/Gluu/GluuTabs.tsx(7 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: faisalsiddique4400
Repo: GluuFederation/flex PR: 2404
File: admin-ui/app/routes/Apps/Gluu/Gluuformfooter.tsx:70-77
Timestamp: 2025-11-03T08:47:33.943Z
Learning: In the admin-ui forms (Gluuformfooter component), the Back button should always navigate to '/home/dashboard' rather than using history-based navigation (navigate(-1)), as clarified by faisalsiddique4400 in PR #2404.
Learnt from: faisalsiddique4400
Repo: GluuFederation/flex PR: 2418
File: admin-ui/plugins/user-management/components/UserForm.tsx:290-297
Timestamp: 2025-11-06T08:23:20.948Z
Learning: In the UserForm component (admin-ui/plugins/user-management/components/UserForm.tsx), the Back button should fall back to '/user/usersmanagement' when browser history is unavailable, not '/home/dashboard', as this keeps users in the user management context. This aligns with the new requirement that users should be redirected to the respective listing screen of the component rather than the dashboard.
📚 Learning: 2025-11-06T08:23:20.948Z
Learnt from: faisalsiddique4400
Repo: GluuFederation/flex PR: 2418
File: admin-ui/plugins/user-management/components/UserForm.tsx:290-297
Timestamp: 2025-11-06T08:23:20.948Z
Learning: In the UserForm component (admin-ui/plugins/user-management/components/UserForm.tsx), the Back button should fall back to '/user/usersmanagement' when browser history is unavailable, not '/home/dashboard', as this keeps users in the user management context. This aligns with the new requirement that users should be redirected to the respective listing screen of the component rather than the dashboard.
Applied to files:
admin-ui/app/routes/Apps/Gluu/GluuTabs.tsx
🧬 Code graph analysis (1)
admin-ui/app/routes/Apps/Gluu/GluuTabs.tsx (1)
admin-ui/app/helpers/navigation.ts (1)
useAppNavigation(66-95)
🔇 Additional comments (6)
admin-ui/app/routes/Apps/Gluu/GluuTabs.tsx (6)
9-18: LGTM! Type definitions improve type safety.The new type hierarchy (
NamedTab,NavigationTab,TabItem) provides clear distinction between regular tabs and navigation-enabled tabs, which helps prevent the navigation issues described in the PR.
28-33: Good addition for accessibility.The
a11yPropshelper properly sets up ARIA attributes for keyboard navigation and screen readers.
56-65: Enhanced type guard prevents invalid navigation tabs.The stricter validation ensuring
pathis a non-empty string likely helps prevent the rapid navigation issue by filtering out malformed tab configurations.
94-105: Key fix: prevents redundant navigation calls.The check
tab.path !== path.pathname(line 99) prevents navigating to the same path multiple times, which directly addresses the browser throttling issue mentioned in the PR. This is the core fix for the non-clickable tab problem.
128-134: Good refactor: memoized styles reduce re-renders.Extracting and memoizing
tabsContainerSxprevents unnecessary object recreation and contributes to smoother rendering, which helps avoid triggering browser throttling.
138-166: URL-driven navigation synchronization works correctly.The effect properly handles URL changes (e.g., browser back button) and ensures the tab state stays synchronized with the current path. The checks at lines 151 and 162 prevent unnecessary navigation calls.
|



fix(admin-ui): unable to click Agama Flow tab in Auth Server (#2483)
Summary
The Agama Flow tab in the Auth Server module is not clickable, preventing users from accessing the upload section for Agama flows.
Actual Behavior
Expected Behavior
Fix Summary
Closes
Closes: #2483
Summary by CodeRabbit
Bug Fixes
Enhancements
✏️ Tip: You can customize this high-level summary in your review settings.