Skip to content
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

Remove "Admin Advisory" and "Remote Log Publishing" cards from Server section #7217

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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";
Loading