Skip to content

Commit

Permalink
Remove IA feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros committed Jun 12, 2024
1 parent fa83ff6 commit e8de7c5
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { WorkflowsListPage } from './studio/components/workflows/WorkflowsListPa

export const AppRoutes = () => {
const isImprovedOnboardingEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_IMPROVED_ONBOARDING_ENABLED);
const isInformationArchitectureEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_INFORMATION_ARCHITECTURE_ENABLED);
const isInformationArchitectureEnabled = true;

return (
<Routes>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/SettingsRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { OrganizationPage } from './pages/settings/organization';

/** Note: using a hook is the only way to separate routes */
export const useSettingsRoutes = () => {
const isInformationArchitectureEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_INFORMATION_ARCHITECTURE_ENABLED);
const isInformationArchitectureEnabled = true;

if (isInformationArchitectureEnabled) {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function NotificationCenterBell({
unseenCount?: number;
colorScheme: ColorScheme;
}) {
const isInformationArchitectureEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_INFORMATION_ARCHITECTURE_ENABLED);
const isInformationArchitectureEnabled = true;

if (!isInformationArchitectureEnabled) {
return <NotificationBell unseenCount={unseenCount} colorScheme={colorScheme} />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ContentShell = styled.div`
export function PrivatePageLayout() {
const [isIntercomOpened, setIsIntercomOpened] = useState(false);

const isInformationArchitectureEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_INFORMATION_ARCHITECTURE_ENABLED);
const isInformationArchitectureEnabled = true;

return (
<EnsureOnboardingComplete>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/layout/components/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function SideNav({}: Props) {
updateOnboardingStatus,
} = useUserOnboardingStatus();
const showOnBoarding = isLoadingShowOnBoarding ? false : showOnBoardingState;
const isInformationArchitectureEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_INFORMATION_ARCHITECTURE_ENABLED);
const isInformationArchitectureEnabled = true;

useEffect(() => {
removeItems(['toggle-environment']);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/layouts/v2/LayoutsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const LAYOUT = 'Layouts';
export function LayoutsPage() {
const { currentOrganization, currentUser } = useAuth();
const { environment } = useEnvController();
const isInformationArchitectureEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_INFORMATION_ARCHITECTURE_ENABLED);
const isInformationArchitectureEnabled = true;

const segment = useSegment();

Expand Down
7 changes: 2 additions & 5 deletions apps/web/src/pages/settings/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export function SettingsPage() {
const { classes } = useTabsStyles(false);
const navigate = useNavigate();
const { pathname } = useLocation();
const isInformationArchitectureEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_INFORMATION_ARCHITECTURE_ENABLED);

const value = useMemo(() => {
return pathname === ROUTES.SETTINGS ? '/' : pathname.replace(ROUTES.SETTINGS, '');
Expand Down Expand Up @@ -68,10 +67,8 @@ export function SettingsPage() {
<Tabs.Tab value="/">API Keys</Tabs.Tab>
<Tabs.Tab value="/email">Email Settings</Tabs.Tab>
<Tabs.Tab value="/billing">Billing</Tabs.Tab>
<When truthy={isInformationArchitectureEnabled}>
<Tabs.Tab value="/brand">Branding</Tabs.Tab>
<Tabs.Tab value="/team">Team Members</Tabs.Tab>
</When>
<Tabs.Tab value="/brand">Branding</Tabs.Tab>
<Tabs.Tab value="/team">Team Members</Tabs.Tab>
<Tabs.Tab value="/permissions">Permissions</Tabs.Tab>
<Tabs.Tab value="/sso">SSO</Tabs.Tab>
<Tabs.Tab value="/data-integrations">Data Integrations</Tabs.Tab>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function EmailMessageEditor({
branding: { color: string; logo: string } | undefined;
readonly: boolean;
}) {
const isInformationArchitectureEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_INFORMATION_ARCHITECTURE_ENABLED);
const isInformationArchitectureEnabled = true;
const methods = useFormContext<IFormExtended>();
const stepFormPath = useStepFormPath();
const contentBlocks = useFieldArray<IFormExtended, any, 'id' | 'type'>({
Expand Down

0 comments on commit e8de7c5

Please sign in to comment.