Skip to content

Commit

Permalink
[Feature] Update the default filters for top pages visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
levinmr committed Feb 25, 2025
1 parent 277442d commit ab82c5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/components/visualizations/TopPagesCircleGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import FilterSelect from "../select/FilterSelect";
*/
function TopPagesCircleGraph({ dataHrefBase }) {
const reportNameFilters = [
["Page Views", "top-viewed-pages"],
["Active Users", "top-pages-by-active-user"],
["Page Views", "top-viewed-pages"],
];
const reportPeriodFilters = [
["Yesterday", "yesterday"],
Expand Down Expand Up @@ -47,7 +47,7 @@ function TopPagesCircleGraph({ dataHrefBase }) {
reportNameFilters[0],
);
const [currentReportPeriodFilter, setCurrentReportPeriodFilter] = useState(
reportPeriodFilters[2],
reportPeriodFilters[1],
);
const ref = useRef(null);
const [maxHostnameFilter, setMaxHostnameFilter] = useState(
Expand Down Expand Up @@ -349,7 +349,7 @@ function TopPagesCircleGraph({ dataHrefBase }) {
<h3 className="text-center">Time Period</h3>
<FilterSelect
filters={reportPeriodFilters}
defaultFilterValue={reportPeriodFilters[2][1] || ""}
defaultFilterValue={reportPeriodFilters[1][1] || ""}
onChange={reportPeriodFilterChangeHandler}
name={"top pages chart time period filter"}
className="margin-x-auto maxw-full text--overflow-ellipsis"
Expand Down

0 comments on commit ab82c5d

Please sign in to comment.