-
Notifications
You must be signed in to change notification settings - Fork 254
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
Application warning banner #6813
base: master
Are you sure you want to change the base?
Conversation
Design comments
|
*/ | ||
const resolveAlertBanner = (): ReactElement => { | ||
|
||
const classes: any = classNames( { "application-outdated-alert-expanded-view": viewBannerDetails } ); |
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.
refrain from using any.
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.
I think we can replace any
with string
here.
@@ -33,21 +37,27 @@ import { ExtensionTemplateListInterface } from "@wso2is/admin.template-core.v1/m | |||
import { isFeatureEnabled } from "@wso2is/core/helpers"; | |||
import { AlertLevels, IdentifiableComponentInterface } from "@wso2is/core/models"; | |||
import { addAlert } from "@wso2is/core/store"; | |||
import { Field, Forms } from "@wso2is/forms"; |
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.
do not use Forms
use FinalForm
instead.
view this PR for more details, "https://github.com/wso2/identity-apps/pull/6722/files#diff-d94522cb3bcc2277d7af7c0f1c38e4e8d1d7659edb195199b995d045be70b235"
/** | ||
* Handles banner content update action which prepares data. | ||
*/ | ||
const handleBannerCheckBoxUpdate = (formDataValues: any) => { |
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.
refrain from using any
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.
add return type
const handleBannerCheckBoxUpdate = (formDataValues: any) => { | ||
|
||
// Todo: check if we need to send all configs. Though the method is PUT, it works as a PATCH. | ||
let values: any = { ...applicationInboundConfig }; |
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.
refrain from using any
fix eslint issues. |
d71fefd
to
33b932c
Compare
2a922b2
to
025df58
Compare
088ed45
to
007118f
Compare
Removed with 007118f
Removed with 007118f
Fixed with 025df58 |
🦋 Changeset detectedThe changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. |
Design comments - Cont.
cc: @savindi7 @jeradrutnam WDYT ? |
const resolveBannerViewDetails = (): ReactElement => { | ||
return ( |
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.
const resolveBannerViewDetails = (): ReactElement => { | |
return ( | |
const resolveBannerViewDetails = (): ReactElement => { |
const confirmationModal = () => { | ||
return ( |
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.
const confirmationModal = () => { | |
return ( | |
const confirmationModal = (): ReactElement => { |
const handleBannerCheckBoxUpdateConfirmation = async (): Promise<void> => { | ||
setBannerUpdateLoading(true); | ||
|
||
return updateAuthProtocolConfig<OIDCDataInterface>(application?.id, formData, SupportedAuthProtocolTypes.OIDC) |
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.
why returning this function and the return type set as void
?
Purpose
This PR will add a banner to the Application edit to maintain the below configs.
The initial UI design is as follows.
Screen.Recording.2024-08-26.at.10.36.10.mov
Related Issues
Related PRs
Checklist
Security checks