Skip to content

Commit

Permalink
Merge pull request #6113 from DonOmalVindula/feat/ai-login-flow-impro…
Browse files Browse the repository at this point in the history
…vements

Update banner designs and add missing doc links for AI features
  • Loading branch information
DonOmalVindula committed Apr 30, 2024
2 parents 4b9171b + 8f9c18b commit 3b77f23
Show file tree
Hide file tree
Showing 8 changed files with 227 additions and 68 deletions.
7 changes: 7 additions & 0 deletions .changeset/silly-waves-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@wso2is/theme": patch
"@wso2is/features": patch
"@wso2is/console": patch
---

Add missing doclinks and optimize banner images in AI features
2 changes: 1 addition & 1 deletion features/admin.ai.v1/components/branding-ai-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
border-radius: 40px;
border: 1px solid #CBCEDB;
width: 100%;
padding: 0px 4px;
padding: 5px 10px;
}

.branding-ai-input-button {
Expand Down
6 changes: 3 additions & 3 deletions features/admin.ai.v1/components/branding-ai-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const BrandingAIBanner: FunctionComponent = (): ReactElement => {
{ t("branding:ai.banner.input.subHeading") }
<DocumentationLink
link={ getLink("develop.branding.ai.learnMore") }
isLinkRef={ true }>
>
<Trans i18nKey={ "extensions:common.learnMore" }>
Learn more
</Trans>
Expand Down Expand Up @@ -241,8 +241,8 @@ export const BrandingAIBanner: FunctionComponent = (): ReactElement => {
<Typography className="branding-ai-banner-sub-heading">
{ t("branding:ai.banner.collapsed.subHeading") }
<DocumentationLink
link={ "" }
isLinkRef={ true }>
link={ getLink("develop.branding.ai.learnMore") }
>
<Trans i18nKey={ "extensions:common.learnMore" }>
Learn more
</Trans>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import TextField from "@oxygen-ui/react/TextField";
import Typography from "@oxygen-ui/react/Typography";
import { AlertLevels } from "@wso2is/core/models";
import { addAlert } from "@wso2is/core/store";
import { DocumentationLink, GenericIcon } from "@wso2is/react-components";
import { DocumentationLink, GenericIcon, useDocumentation } from "@wso2is/react-components";
import React, { FunctionComponent, ReactElement, useState } from "react";
import { Trans, useTranslation } from "react-i18next";
import { useDispatch } from "react-redux";
Expand All @@ -50,6 +50,8 @@ const LoginFlowAIBanner: FunctionComponent = (): ReactElement => {

const { isGeneratingLoginFlow } = useAILoginFlow();

const { getLink } = useDocumentation();

const { filteredAuthenticators, loading: isAuthenticatorsLoading } = useAvailableAuthenticators();

const { claimURI, error: userClaimError } = useUserClaims();
Expand Down Expand Up @@ -202,9 +204,9 @@ const LoginFlowAIBanner: FunctionComponent = (): ReactElement => {
<Typography className="login-flow-ai-banner-sub-heading">
{ t("ai:aiLoginFlow.banner.input.subheading") }
<DocumentationLink
link={ "develop.applications.editApplication.common.signInMethod." +
"conditionalAuthenticaion.ai.learnMore" }
isLinkRef={ true }>
link={ getLink("develop.applications.editApplication.common.signInMethod." +
"conditionalAuthenticaion.ai.learnMore") }
>
<Trans i18nKey={ "extensions:common.learnMore" }>
Learn more
</Trans>
Expand Down Expand Up @@ -291,8 +293,9 @@ const LoginFlowAIBanner: FunctionComponent = (): ReactElement => {
<Typography className="login-flow-ai-banner-sub-heading">
{ t("ai:aiLoginFlow.banner.input.subheading") }
<DocumentationLink
link={ "" }
isLinkRef={ true }>
link={ getLink("develop.applications.editApplication.common.signInMethod." +
"conditionalAuthenticaion.ai.learnMore") }
>
<Trans i18nKey={ "extensions:common.learnMore" }>
Learn more
</Trans>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3b77f23

Please sign in to comment.