fix(admin-ui): enable SSA Apply button when 'Is Expirable' is enabled#2910
Conversation
…#2909) Signed-off-by: faisalsiddique4400 <faisalsiddique10886@gmail.com>
📝 WalkthroughWalkthroughThe PR adds disabled-state support to the single date picker, reworks the SSA expiration-date field to render disabled until enabled, updates validation and error-state handling, and reformats several tests. ChangesSSA expiration date handling and test cleanup
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@admin-ui/plugins/auth-server/components/Ssa/components/styles/SsaForm.style.ts`:
- Around line 202-208: The expiration-date validation text in SsaForm.style.ts
is absolutely positioned, which removes it from normal layout flow and prevents
the row from expanding when the message appears. Update the datePickerError
style in the SsaForm styling to use normal flow positioning so the validation
message contributes to layout height and pushes surrounding content down, rather
than overlaying the next grid row.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 7696fa66-351b-4dd1-bff2-914619839bf2
📒 Files selected for processing (15)
admin-ui/app/components/CustomInput/__tests__/CustomInput.test.tsxadmin-ui/app/components/GluuDatePicker/GluuDatePicker.tsxadmin-ui/app/components/GluuDatePicker/__tests__/GluuDatePicker.test.tsxadmin-ui/app/components/GluuDatePicker/types.tsadmin-ui/app/components/GluuDropdown/__tests__/GluuDropdown.test.tsxadmin-ui/app/components/GluuDynamicList/__tests__/GluuDynamicList.test.tsxadmin-ui/app/components/GluuSearchToolbar/__tests__/GluuSearchToolbar.test.tsxadmin-ui/app/components/Sidebar/__tests__/Sidebar.test.tsxadmin-ui/app/routes/Apps/Gluu/__tests__/GluuInputEditor.test.tsxadmin-ui/app/routes/Apps/Gluu/__tests__/GluuThemeFormFooter.test.tsxadmin-ui/plugins/auth-server/components/Ssa/__tests__/components/SsaForm.test.tsxadmin-ui/plugins/auth-server/components/Ssa/components/SsaForm.tsxadmin-ui/plugins/auth-server/components/Ssa/components/styles/SsaForm.style.tsadmin-ui/plugins/auth-server/components/Ssa/helper/validations.tsadmin-ui/plugins/auth-server/components/Ssa/hooks/useSsaValidationState.ts



fix(admin-ui): enable SSA Apply button when 'Is Expirable' is enabled (#2909)
Summary
This PR fixes an issue in the SSA creation flow where the Apply button remained disabled after enabling the Is Expirable toggle, preventing users from creating an SSA even when all required fields were completed.
The update corrects the form validation and state management so the Apply button is enabled once the form satisfies the required validation criteria.
Fix Summary
Verification
passes successfully.
🔗 Ticket
Closes: #2909
Summary by CodeRabbit
New Features
Bug Fixes