Skip to content

Commit

Permalink
chore: add milestones under feature flag default on (#801)
Browse files Browse the repository at this point in the history
Co-authored-by: Noggling <[email protected]>
  • Loading branch information
Noggling and Noggling authored Sep 26, 2024
1 parent a8b8c26 commit c3ecf06
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/pr-801-2093607063.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

---
"fusion-project-portal": patch
---
Add milestones under feature flag default on
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ export function createPortalFramework(portalConfig: PortalConfig) {
description: 'When enabled you will get your allocated projects on the portal landing page',
enabled: true,
},
{
key: 'project-milestones',
title: 'Project Milestones',
description: 'When enabled you will see the project milestones on the project landing page',
enabled: true,
},
{
key: 'cc-tab',
title: 'New Construction and Commissioning Tab',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { Milestones } from './components/milestones/Milestones';
import { ContextRelationNavigation } from '../sheared/components/context-relation-navigation/ContextRelationNavigation';

export const Overview = ({ openAllApps }: { openAllApps: () => void }) => {
const { feature } = useFrameworkFeature('app-search');
const { feature: appSearchFeature } = useFrameworkFeature('app-search');
const { feature: projectMilestonesFeature } = useFrameworkFeature('project-milestones');

const { feature: ccTabFeature } = useFrameworkFeature('cc-tab');
return (
<Styles.Row>
<Styles.Col>
Expand All @@ -22,9 +22,8 @@ export const Overview = ({ openAllApps }: { openAllApps: () => void }) => {
<Styles.Col>
<Phases />
<Favorites openAllApps={openAllApps} />
{/* Todo remove when cc tab is not in feature flag mode */}
{ccTabFeature?.enabled === false && <Milestones />}
{feature?.enabled && <AppSearch />}
{projectMilestonesFeature?.enabled && <Milestones />}
{appSearchFeature?.enabled && <AppSearch />}
<Contracts />
</Styles.Col>
</Styles.Row>
Expand Down

0 comments on commit c3ecf06

Please sign in to comment.