Skip to content

Commit

Permalink
Remove banner with scope migration warning (#3055)
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonking authored Apr 17, 2023
1 parent 11636d9 commit 38c572c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ The types of changes are:

## [Unreleased](https://github.com/ethyca/fides/compare/2.11.0...main)

### Removed
- Removed the warning about access control migration [#3055](https://github.com/ethyca/fides/pull/3055)

## [2.11.0](https://github.com/ethyca/fides/compare/2.10.0...2.11.0)

Expand Down
3 changes: 0 additions & 3 deletions clients/admin-ui/src/features/common/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
} from "~/features/privacy-requests/privacy-requests.slice";

import ConfigurationNotificationBanner from "../privacy-requests/configuration/ConfigurationNotificationBanner";
import NotificationBanner from "./NotificationBanner";

const Layout = ({
children,
Expand Down Expand Up @@ -53,8 +52,6 @@ const Layout = ({
<link rel="icon" href="/favicon.ico" />
</Head>
<Header />
{/* TODO: remove this in a future release (see https://github.com/ethyca/fides/issues/2844) */}
<NotificationBanner />
<NavTopBar />
<Flex as="main" flexGrow={1} padding={10} gap={10}>
<Box flex={0} flexShrink={0}>
Expand Down
4 changes: 4 additions & 0 deletions clients/admin-ui/src/features/common/NotificationBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ import {
const DESCRIPTION =
"Ethyca has updated how permissions work from a scope-based model to a role-based permissions scheme. To update user roles, please log in as your root user and upgrade the roles as you see fit.";

/**
* This component is not currently used, but could easily be used again/modified
* if we ever need to show another banner message to a user (see fides#2842)
*/
const NotificationBanner = () => {
const showBanner = useAppSelector(selectShowNotificationBanner);
const dispatch = useAppDispatch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export const FLAG_NAMES = Object.keys(FLAG_CONFIG) as Array<FlagNames>;

type FeaturesState = {
flags: Partial<FlagConfig>;
/**
* Not currently used, but useful for one-time messages that display on every page
* until acknowledged (see fides#2842)
*/
showNotificationBanner: boolean;
};

Expand Down

0 comments on commit 38c572c

Please sign in to comment.