Skip to content

Commit

Permalink
enh: use activity instead of usage (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanierh authored Oct 20, 2023
1 parent 315fd04 commit 750a113
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions front/pages/w/[wId]/workspace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default function WorkspaceAdmin({
const monthName = getMonthName(Number(month));
const currentMonthName = getMonthName(currentMonth);

let filename = `dust_${owner.name}_monthly_usage_${year}_${monthName}`;
let filename = `dust_${owner.name}_monthly_activity_${year}_${monthName}`;

// If the selected month is the current month, append the day
if (monthName === currentMonthName) {
Expand All @@ -169,7 +169,7 @@ export default function WorkspaceAdmin({
link.click();
document.body.removeChild(link);
} catch (error) {
alert("Failed to download usage data.");
alert("Failed to download activity data.");
}
};

Expand Down Expand Up @@ -241,8 +241,8 @@ export default function WorkspaceAdmin({
{!!monthOptions.length && (
<>
<Page.SectionHeader
title="Workspace Usage"
description="Download monthly usage analytics of your workspace."
title="Workspace Activity"
description="Download monthly workspace activity details."
/>
<div className="align-center flex flex-row gap-2">
<DropdownMenu>
Expand All @@ -266,7 +266,7 @@ export default function WorkspaceAdmin({
</DropdownMenu.Items>
</DropdownMenu>
<Button
label="Download usage data"
label="Download activity data"
icon={CloudArrowDownIcon}
variant="secondary"
onClick={() => {
Expand Down

0 comments on commit 750a113

Please sign in to comment.