Skip to content

Commit

Permalink
Merge pull request wso2#7217 from ThaminduDilshan/thamindu-server-config
Browse files Browse the repository at this point in the history
Remove "Admin Advisory" and "Remote Log Publishing" cards from Server section
  • Loading branch information
ThaminduDilshan authored Dec 18, 2024
2 parents 6a781b3 + a7f0bc5 commit 994ba7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 85 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-bottles-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.server.v1": patch
---

Remove admin advisory and remote log publishing from server configs
84 changes: 1 addition & 83 deletions features/admin.server.v1/pages/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ import Avatar from "@oxygen-ui/react/Avatar";
import Card from "@oxygen-ui/react/Card";
import Grid from "@oxygen-ui/react/Grid";
import Typography from "@oxygen-ui/react/Typography";
import {
ArrowLoopRightUserIcon,
UserBannerIcon,
UserIcon
} from "@oxygen-ui/react-icons";
import { ArrowLoopRightUserIcon } from "@oxygen-ui/react-icons";
import { AppConstants, history } from "@wso2is/admin.core.v1";
import { IdentifiableComponentInterface } from "@wso2is/core/models";
import { GenericIcon, PageLayout } from "@wso2is/react-components";
Expand Down Expand Up @@ -63,84 +59,6 @@ export const ServerSettingsListingPage: FunctionComponent<ServerSettingsListingP
>
<Ref innerRef={ pageContextRef }>
<Grid container rowSpacing={ 3 } columnSpacing={ 3 }>
<Grid xs={ 12 } md={ 6 } lg={ 4 }>
<Card
key="admin-advisory-page-section"
className="server-configuration"
data-componentid="admin-advisory-page-section"
onClick={ () => history.push(AppConstants.getPaths().get("ADMIN_ADVISORY_BANNER_EDIT")) }
>
<CardContent className="server-configuration-header">
<div>
<GenericIcon
size="micro"
icon={ (
<Avatar
variant="square"
randomBackgroundColor
backgroundColorRandomizer="admin-advisory-banner"
className="server-configuration-icon-container"
>
<UserBannerIcon className="icon" />
</Avatar>
) }
inline
transparent
shape="square"
/>
</div>
<Typography variant="h6">
{ t("console:manage.features.serverConfigs.adminAdvisory." +
"configurationSection.heading") }
</Typography>
</CardContent>
<CardContent>
<Typography variant="body2" color="text.secondary">
{ t("console:manage.features.serverConfigs.adminAdvisory." +
"configurationSection.description") }
</Typography>
</CardContent>
</Card>
</Grid>
<Grid xs={ 12 } md={ 6 } lg={ 4 }>
<Card
key="remote-logging-page-section"
data-componentid="remote-logging-page-section"
className="server-configuration"
onClick={ () => history.push(AppConstants.getPaths().get("REMOTE_LOGGING")) }
>
<CardContent className="server-configuration-header">
<div>
<GenericIcon
size="micro"
icon={ (
<Avatar
variant="square"
randomBackgroundColor
backgroundColorRandomizer="remote-logging"
className="server-configuration-icon-container"
>
<UserIcon className="icon" />
</Avatar>
) }
inline
transparent
shape="square"
/>
</div>
<Typography variant="h6">
{ t("console:manage.features.serverConfigs.remoteLogPublishing" +
".title") }
</Typography>
</CardContent>
<CardContent>
<Typography variant="body2" color="text.secondary">
{ t("console:manage.features.serverConfigs.remoteLogPublishing" +
".description") }
</Typography>
</CardContent>
</Card>
</Grid>
<Grid xs={ 12 } md={ 6 } lg={ 4 }>
<Card
key="manage-notifications-sending-page-section"
Expand Down
2 changes: 0 additions & 2 deletions features/admin.server.v1/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@
* under the License.
*/

export { default as AdminSessionAdvisoryBannerEditPage } from "./pages/admin-session-advisory-banner-page";
export { default as InternalNotificationSendingPage } from "./pages/internal-notification-sending-page";
export { default as RemoteLoggingPage } from "./pages/remote-logging-page";
export { default as ServerSettingsListingPage } from "./pages/server";

0 comments on commit 994ba7d

Please sign in to comment.