Compare commits

...

3 commits

Author SHA1 Message Date
Francis Cao
94321192b8 Allow view-only to still join team
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
Closes #3764
2025-11-21 14:43:58 -08:00
Francis Cao
ffa97d34e2 Fix Revenue country sums error
Closes #3769
2025-11-21 14:34:12 -08:00
Francis Cao
bc737268b6 remove relationMode from schema file 2025-11-21 13:43:54 -08:00
3 changed files with 2 additions and 3 deletions

View file

@ -7,7 +7,6 @@ generator client {
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
relationMode = "prisma"
}
model User {

View file

@ -18,7 +18,7 @@ export function TeamsHeader({
return (
<PageHeader title={formatMessage(labels.teams)}>
<Row gap="3">
{allowJoin && user.role !== ROLES.viewOnly && <TeamsJoinButton />}
{allowJoin && <TeamsJoinButton />}
{allowCreate && user.role !== ROLES.viewOnly && <TeamsAddButton />}
</Row>
</PageHeader>

View file

@ -137,7 +137,7 @@ export function Revenue({ websiteId, startDate, endDate, unit }: RevenueProps) {
metric={formatMessage(labels.revenue)}
data={data?.country.map(({ name, value }: { name: string; value: number }) => ({
label: name,
count: value,
count: Number(value),
percent: (value / data?.total.sum) * 100,
}))}
currency={currency}