Skip to content

Commit

Permalink
Merge pull request #6811 from ashanthamara/actions
Browse files Browse the repository at this point in the history
Modify few data-componentids in Actions UI
  • Loading branch information
ashanthamara authored Aug 25, 2024
2 parents 5ea2d52 + fa4abc1 commit c71c95e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-deers-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.actions.v1": patch
---

Fix data-componentids in actions component
6 changes: 4 additions & 2 deletions features/admin.actions.v1/components/action-config-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ const ActionConfigForm: FunctionComponent<ActionConfigFormInterface> = ({
return (
<Alert severity="info">
<AlertTitle
className="alert-title">
className="alert-title"
data-componentid={ `${ _componentId }-authentication-info-box-title` }
>
<Trans
i18nKey={
authenticationType === AuthenticationType.NONE ?
Expand Down Expand Up @@ -688,7 +690,7 @@ const ActionConfigForm: FunctionComponent<ActionConfigFormInterface> = ({
} }
ariaLabel="endpointUri"
required={ true }
data-componentid={ `${ _componentId }-action-name` }
data-componentid={ `${ _componentId }-action-endpointUri` }
name="endpointUri"
type="text"
label={ t("actions:fields.endpoint.label") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ const ActionConfigurationPage: FunctionComponent<ActionConfigurationPageInterfac
sectionHeader={ t("actions:dangerZoneGroup.header") }
>
<DangerZone
data-componentid={ `${ _componentId }-delete-action-of-type-${ actionTypeApiPath}` }
data-componentid={ `${ _componentId }-danger-zone` }
actionTitle={
t("actions:dangerZoneGroup.revertConfig.actionTitle")
}
Expand Down
10 changes: 8 additions & 2 deletions features/admin.actions.v1/pages/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ export const ActionTypesListingPage: FunctionComponent<ActionTypesListingPageInt

if (count > 0) {
return (
<div className="status-tag">
<div
className="status-tag"
data-componentid={ `${ _componentId }-${ actionType }-configured-status-tag` }
>
<CircleCheckFilledIcon className="icon-configured"/>
<Typography className="text-configured" variant="h6">
{ t("actions:status.configured") }
Expand All @@ -218,7 +221,10 @@ export const ActionTypesListingPage: FunctionComponent<ActionTypesListingPageInt
);
} else {
return (
<div className="status-tag">
<div
className="status-tag"
data-componentid={ `${ _componentId }-${ actionType }-not-configured-status-tag` }
>
<Typography className="text-not-configured" variant="h6">
{ t("actions:status.notConfigured") }
</Typography>
Expand Down

0 comments on commit c71c95e

Please sign in to comment.