Skip to content

Commit 8f68d37

Browse files
authored
fix: some follow up fixes (#1416)
1 parent f89c49c commit 8f68d37

112 files changed

Lines changed: 2944 additions & 1077 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

core/actions/_lib/ActionFieldJsonataTestPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ export function ActionFieldJsonataTestPanel(props: {
400400
htmlFor={props.configKey}
401401
aria-label="Success: JSONata test interpolated value"
402402
>
403-
<pre className="mt-2 max-h-[300px] overflow-auto whitespace-pre-wrap rounded-sm bg-white p-2 font-mono text-gray-900 text-xs">
403+
<pre className="mt-2 max-h-[300px] overflow-auto whitespace-pre-wrap rounded-sm bg-background p-2 font-mono text-foreground text-xs">
404404
{JSON.stringify(testResult.interpolated, null, 2)}
405405
</pre>
406406
</output>

core/actions/_lib/ActionForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export function ActionForm(props: ActionFormProps) {
143143
<Button
144144
variant="outline"
145145
type="button"
146+
size="sm"
146147
className={props.secondaryButton?.className}
147148
onClick={props.secondaryButton.onClick}
148149
>

core/actions/_lib/resolveAutomationInput.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { interpolate } from "@pubpub/json-interpolate"
77
import { logger } from "logger"
88
import { tryCatch } from "utils/try-catch"
99

10-
import { db } from "~/kysely/database"
1110
import { getPubsWithRelatedValues } from "~/lib/server"
1211

1312
type ResolvedPub = ProcessedPub<{

core/app/(user)/communities/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import { getPageLoginData } from "~/lib/authentication/loginData"
55
import { AddCommunity } from "./AddCommunityDialog"
66
import { CommunityTable } from "./CommunityTable"
77

8+
export const metadata = {
9+
title: "Communities",
10+
}
11+
812
export default async function Page() {
913
const { user } = await getPageLoginData()
1014

core/app/(user)/forgot/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "ui/ca
22

33
import ForgotForm from "./ForgotForm"
44

5+
export const metadata = {
6+
title: "Forgot password",
7+
}
8+
59
export default async function Page() {
610
return (
711
<div className="mx-auto max-w-sm">

core/app/(user)/layout.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { LogoWithText } from "../components/Logo"
22

3+
export const metadata = {
4+
title: {
5+
template: `%s | PubPub Platform`,
6+
default: "PubPub Platform",
7+
},
8+
}
9+
310
export default async function UserLayout({ children }: { children: React.ReactNode }) {
411
return (
512
<div className="min-h-screen">

core/app/(user)/reset/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "ui/ca
44
import { getLoginData } from "~/lib/authentication/loginData"
55
import ResetForm from "./ResetForm"
66

7+
export const metadata = {
8+
title: "Reset password",
9+
}
10+
711
export default async function Page() {
812
// TODO: add reset token validation
913
const { user, session } = await getLoginData({

core/app/(user)/settings/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import { constructRedirectToBaseCommunityPage } from "~/lib/server/navigation/re
1010
import { ResetPasswordButton } from "./ResetPasswordButton"
1111
import { UserInfoForm } from "./UserInfoForm"
1212

13+
export const metadata = {
14+
title: "Settings",
15+
}
16+
1317
export default async function Page() {
1418
const { user } = await getPageLoginData()
1519

core/app/(user)/signup/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { SignupForm } from "~/app/components/Signup/SignupForm"
44
import { legacySignup } from "~/lib/authentication/actions"
55
import { getLoginData } from "~/lib/authentication/loginData"
66

7+
export const metadata = {
8+
title: "Signup",
9+
}
10+
711
export default async function Page({
812
searchParams,
913
}: {

core/app/(user)/verify/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ type SearchParams =
1717
reason: string
1818
}
1919

20+
export const metadata = {
21+
title: "Verify your email",
22+
}
23+
2024
export default async function Page({ searchParams }: { searchParams: Promise<SearchParams> }) {
2125
const { user, session } = await getLoginData({
2226
allowedSessions: [AuthTokenType.generic, AuthTokenType.verifyEmail],

0 commit comments

Comments
 (0)