feat(admin): adding uniformity in cancel and back buttons present in SMTP#2410
Conversation
📝 WalkthroughWalkthroughTwo files updated: Changes
Sequence DiagramsequenceDiagram
actor User
participant Form as SmtpForm
participant Formik as Formik Instance
participant Validation as Validator
participant Toast as Toast Notifier
participant API as SMTP API
rect rgb(240, 248, 255)
Note over Form,API: New Validation Flow
User->>Form: Click Apply/Submit
Form->>Formik: submitForm()
Formik->>Validation: validateForm()
alt Validation Errors
Validation-->>Formik: errors object
Formik->>Form: Mark fields as touched
Form->>Toast: Show mandatory-fields error
Toast-->>User: Display error message
Note over Form: Submission aborted
else Validation Success
Validation-->>Formik: empty errors
Formik->>Form: Proceed to submission
Form->>API: toggle + submit SMTP config
API-->>User: Success response
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-11-03T08:47:33.926ZApplied to files:
🔇 Additional comments (1)
Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@faisalsiddique4400: I'll review the changes in this PR right away. 🧠 Learnings used✅ Actions performedReview triggered.
|
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
… Users and Whole Home Module (#2418) * fix(admin-ui): unable to add Custom and Module properties in Scripts page (#2401) * code rabbit suggestions * code rabbit suggestions * code rabbit suggestions * pagination count issues fixed * fix(admin-ui): unable to map permission to a role using GUI (#2400) * fix(admin-ui): adding uniformity in cancel and back buttons present in SCIM forms (#2361) * Code rabbit suggestions * Code rabbit suggestions * Code rabbit suggestions * Code rabbit suggestions * Code rabbit suggestions * Code rabbit suggestions * buttons swapping * Code Rabbit fixes * Code Rabbit fixes * Code Rabbit fixes * Code Rabbit fixes * Code Rabbit fixes * Code Rabbit fixes * feat(admin): adding uniformity in cancel and back buttons present in Jans Lock (#2405) * feat(admin): adding uniformity in cancel and back buttons present in Jans Lock * feat(admin): adding uniformity in cancel and back buttons present in Jans Lock * Code Rabbit fixes * Saperating footer components * Code rabbit changes * Code rabbit changes * Code rabbit changes * Code rabbit changes * file notations fixes * file notations fixes * Rename Gluuformfooter.tsx to GluuFormFooter.tsx Signed-off-by: Faisal Siddique <71010439+faisalsiddique4400@users.noreply.github.com> * code rabbit fixes * code rabbit fixes * code rabbit fixes * feat(admin): adding uniformity in cancel and back buttons present in FIDO * feat(admin): adding uniformity in cancel and back buttons present in FIDO * code rabbit changes * code rabbit changes * feat(admin): adding uniformity in cancel and back buttons present in SMTP * feat(admin): adding uniformity in cancel and back buttons present in SMTP (#2410) * feat(admin): adding uniformity in cancel and back buttons present in Services * commit text not getting rollover issue * feat(admin): adding uniformity in cancel and back buttons present in SERVICES (#2411) * feat(admin): adding uniformity in cancel and back buttons present in SMTP * feat(admin): adding uniformity in cancel and back buttons present in Services * commit text not getting rollover issue --------- Signed-off-by: Faisal Siddique <71010439+faisalsiddique4400@users.noreply.github.com> * feat(admin): adding uniformity in cancel and back buttons present in Script * Code rabbit changes * Code rabbit changes * Code rabbit changes * Code rabbit changes * Code rabbit changes * Code rabbit changes * Code rabbit changes * feat(admin): adding uniformity in cancel and back buttons present in Logging (#2416) * feat(admin): adding uniformity in cancel and back buttons present in Logging * feat(admin): adding uniformity in cancel and back buttons present in SSA * Code rabbit changes * SSA Layout fixed * SSA Layout fixed * SSA Layout fixed * Comments on the PR resolved * Comments on the PR resolved * Comments on the PR resolved * Comments on the PR resolved * adding uniformity in cancel and back buttons present in Scopes (#2430) * a minor enhancement on iteration * SSA implemented with TS * Implementing new formFooter in User management * FormFooter in Users and Webhook done * FormFooter in Jans Assets done * FormFooter in Jans Assets done and dynamic navigations * Enhanced the password validations * Minor adjustments * Minor fixes(#2471) * Minor fixes(#2471) * Minor fixes(#2471) * Minor fixes(#2471) * Minor fixes(#2471) --------- Signed-off-by: Faisal Siddique <71010439+faisalsiddique4400@users.noreply.github.com>
feat(admin): adding uniformity in cancel and back buttons present in SMTP
Summary
This update introduces consistent behavior for Cancel, Back, and Apply buttons across Admin UI forms, including correct enabling and disabling based on form state.
Improvements
Additional Enhancements
Affected Modules
This change is applied across all forms where configuration changes are possible, including but not limited to:
Parent issue: #2268
Testing Steps
Summary by CodeRabbit
Bug Fixes
New Features