Skip to content

Commit

Permalink
feat(search-preview): include total landing page count (#1277)
Browse files Browse the repository at this point in the history
<img width="276" alt="Screenshot 2024-07-26 at 10 48 55"
src="https:/user-attachments/assets/3bc5891a-92c6-484c-9681-37c1250accb1">

Closes brave/ads-serve#4151

## Depends on
- [x] brave/ads-serve#4153
  • Loading branch information
tackley authored Jul 29, 2024
1 parent 8b043a1 commit 74afb5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/search/preview/SummaryPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
import PanToolAltOutlinedIcon from "@mui/icons-material/PanToolAltOutlined";
import MonetizationOnOutlinedIcon from "@mui/icons-material/MonetizationOnOutlined";
import PercentIcon from "@mui/icons-material/Percent";
import ArticleIcon from "@mui/icons-material/Article";
import { SearchData } from "./data";
import { formatUsd, formatWholeNumber } from "@/user/library/format";

Expand Down Expand Up @@ -61,6 +62,12 @@ export function SummaryPanel({ searchData }: Props) {
value={searchData.countryDomain.domain}
icon={<DomainIcon sx={{ color: "text.secondary" }} />}
/>
<SummaryEntry
title="Landing Pages"
value={formatWholeNumber(searchData.estimates.landingPages)}
icon={<ArticleIcon sx={{ color: "text.secondary" }} />}
/>

<Typography variant="h2" marginTop={3} marginBottom={1}>
Estimated weekly results
</Typography>
Expand Down
1 change: 1 addition & 0 deletions src/search/preview/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface ServerSearchData {
max: number;
};
trialBudget: number;
landingPages: number;
};
}

Expand Down

0 comments on commit 74afb5b

Please sign in to comment.