Skip to content

Commit

Permalink
Remove Beta tag from Morecast 2 (#3508)
Browse files Browse the repository at this point in the history
Co-authored-by: Conor Brady <con.brad@gmail.com>
  • Loading branch information
dgboss and conbrad authored Apr 3, 2024
1 parent 62cb58c commit edcbe6f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr_description.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = async ({ github, context }) => {
let body = pr.data.body === null ? "" : pr.data.body;
body += "\n# Test Links:\n";
body += `[Landing Page](${prBaseUrl}/)\n`
body += `[MoreCast 2.0](${prBaseUrl}/morecast-2)\n`;
body += `[MoreCast](${prBaseUrl}/morecast)\n`;
body += `[Percentile Calculator](${prBaseUrl}/percentile-calculator)\n`;
body += `[MoreCast](${prBaseUrl}/morecast)\n`;
body += `[C-Haines](${prBaseUrl}/c-haines)\n`;
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ const WPSRoutes: React.FunctionComponent = () => {
</AuthWrapper>
}
/>
<Route path={MORECAST_ROUTE} element={<Navigate to={MORE_CAST_2_ROUTE} />} />
<Route path={MORE_CAST_2_ROUTE} element={<Navigate to={MORECAST_ROUTE} />} />
<Route
path={MORE_CAST_2_ROUTE}
path={MORECAST_ROUTE}
element={
<AuthWrapper>
<MoreCast2AuthWrapper>
Expand Down
29 changes: 13 additions & 16 deletions web/src/features/landingPage/toolInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const moreCast2Info: ToolInfo = {
</Typography>
),
icon: <AirOutlinedIcon color="primary" fontSize={ICON_FONT_SIZE} />,
isBeta: true
isBeta: false
}

export const percentileCalcInfo: ToolInfo = {
Expand All @@ -116,27 +116,24 @@ export const fbpGoInfo: ToolInfo = {
name: FBP_GO_NAME,
route: FBP_GO_ROUTE,
description: (
<>
<Typography>
A mobile application for calculating fire behaviour in the field. Available for download from the&nbsp;
<Link href="https://apps.apple.com/app/fbp-go/id1605675034" rel="noreferrer" target="_blank">
Apple
</Link>
&nbsp;and&nbsp;
<Link href="https://play.google.com/store/apps/details?id=ca.bc.gov.FBPGo" rel="noreferrer" target="_blank">
Google Play
</Link>
&nbsp;stores.
</Typography>
</>
<Typography>
A mobile application for calculating fire behaviour in the field. Available for download from the&nbsp;
<Link href="https://apps.apple.com/app/fbp-go/id1605675034" rel="noreferrer" target="_blank">
Apple
</Link>
&nbsp;and&nbsp;
<Link href="https://play.google.com/store/apps/details?id=ca.bc.gov.FBPGo" rel="noreferrer" target="_blank">
Google Play
</Link>
&nbsp;stores.
</Typography>
),
icon: <img style={{ height: '36px', width: '36px' }} src="/images/fbpgo_maskable.png" />,
icon: <img alt="FBP Go logo" style={{ height: '36px', width: '36px' }} src="/images/fbpgo_maskable.png" />,
isBeta: false
}

// The order of items in this array determines the order of items as they appear in the landing page
// side bar and order of CardTravelSharp.
// Temporarily exclude MoreCast 2.0 from prod
export const toolInfos = [
moreCast2Info,
fireBehaviourAdvisoryInfo,
Expand Down
2 changes: 1 addition & 1 deletion web/src/features/moreCast2/pages/MoreCast2Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const MoreCast2Page = () => {

return (
<Root data-testid="more-cast-2-page">
<GeneralHeader isBeta={true} spacing={0.985} title={MORE_CAST_2_NAME} productName={MORE_CAST_2_NAME} />
<GeneralHeader isBeta={false} spacing={0.985} title={MORE_CAST_2_NAME} productName={MORE_CAST_2_NAME} />
<Content>
<SidePanel>
<StationPanel
Expand Down
4 changes: 2 additions & 2 deletions web/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const FBP_GO_NAME = 'FBP Go'
export const FIRE_BEHAVIOUR_ADVISORY_NAME = 'Auto Spatial Advisory'
export const FIRE_BEHAVIOUR_CALC_NAME = 'FireBat'
export const HFI_CALC_NAME = 'HFI Calculator'
export const MORE_CAST_2_NAME = 'MoreCast 2.0'
export const MORE_CAST_2_NAME = 'MoreCast'
export const PERCENTILE_CALC_NAME = 'Percentile Calculator'

// UI constants
Expand All @@ -52,5 +52,5 @@ export const ASA_DOC_TITLE = 'Automated Spatial Advisory | BCWS PSU'
export const C_HAINES_DOC_TITLE = 'C-Haines | BCWS PSU'
export const FIREBAT_DOC_TITLE = 'FireBat | BCWS PSU'
export const HFI_CALC_DOC_TITLE = 'HFI Calculator | BCWS PSU'
export const MORE_CAST_2_DOC_TITLE = 'MoreCast 2.0 | BCWS PSU'
export const MORE_CAST_2_DOC_TITLE = 'MoreCast | BCWS PSU'
export const PERCENTILE_CALC_DOC_TITLE = 'Percentile Calculator | BCWS PSU'

0 comments on commit edcbe6f

Please sign in to comment.