-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Learn, Apply, Jan 25 #473
Merged
Merged
Learn, Apply, Jan 25 #473
Changes from 250 commits
Commits
Show all changes
256 commits
Select commit
Hold shift + click to select a range
a83a3d0
progress on mission page
JacobHomanics cc4e116
dev tooling hardcoded main content
JacobHomanics cc00059
added signin to mission sidebar
JacobHomanics 8c69b39
updated account comp to check for missions
JacobHomanics 35d8f85
Update Sidebar.tsx
JacobHomanics c6e7360
completed mock mission sidebar
JacobHomanics 20cb191
ability to go to home on clicking mission body nav
JacobHomanics 30b473e
Update page.tsx
JacobHomanics a8bdf0e
added dynamic badge to ongoing card
JacobHomanics 4cf1478
Update FundingRoundOngoing.tsx
JacobHomanics d9cade2
removed comments
JacobHomanics 8778bc6
conditionally render round engagement container
JacobHomanics ba6be17
Update index.tsx
JacobHomanics 2615d67
abstracted callout cards
JacobHomanics 0c8c7d1
added breadcrumbs
JacobHomanics 2cd30e2
project data object
JacobHomanics 2139f20
removed eligibility abstraction
JacobHomanics 53a336f
abstracted eligibility and rewards
JacobHomanics d0ab052
added not found
JacobHomanics f53d28b
dev tooling complete
JacobHomanics 797a13f
document callout
JacobHomanics a50122f
onchain builders laid out
JacobHomanics 88adf95
finished dev-tooling and onchain builder data
JacobHomanics f3f1e73
removed default "watch video" on callout
JacobHomanics 51b280e
design updates to mission details
JacobHomanics ead882a
added key to rewards list
JacobHomanics 4162828
sidebar - apply logic done
JacobHomanics 773deee
abstracted sidebar parameters
JacobHomanics 0bc6042
abstracted sidebar
JacobHomanics eebac33
projects enrolled section
JacobHomanics 605ccd7
up
JacobHomanics d15894c
cleaned up apply sidebar
JacobHomanics 2c6237d
fixed next/image import
JacobHomanics 99125a1
enrolledprojects mock data
JacobHomanics 63e9b45
eligibility criteria in variables
JacobHomanics 7291784
removed old eligibility rendering
JacobHomanics 61fdbd3
added keys
JacobHomanics 8cd711f
fixed hydration error
JacobHomanics c37913b
abstracted eligibility component
JacobHomanics 88ec5f2
updated mock, formatted dates
JacobHomanics ec7a2c4
created roundsData as single data point
JacobHomanics edf0b42
fixed apply date format
JacobHomanics 09b4c7f
built out application logic for badge
JacobHomanics f8ac2e7
ticket 461. add another link bugfix
JacobHomanics 582b381
building out applications page
JacobHomanics 7af488e
fixed key
JacobHomanics 936d43a
Merge branch 'main' into jan-updates
JacobHomanics f0084a1
removed old code
JacobHomanics 13c6a9a
created ApplyDetails.tsx
JacobHomanics 414bb32
renamed mission/apply to application
JacobHomanics bbad932
added padding
JacobHomanics 27fbce9
styled project setup/eligibity criterias
JacobHomanics e9add9c
apply details - no projects
JacobHomanics a15047e
correctly rendering project state badge
JacobHomanics 8e57746
switched to booleans
JacobHomanics 7ea4d73
abstracted circle with checkmark
JacobHomanics 551579b
fixed title padding
JacobHomanics 9640627
terms completed
JacobHomanics 1f8fab7
extended common/Callout.tsx
JacobHomanics 055a688
updated missions callouts
JacobHomanics ed4511d
removed old mission callouts
JacobHomanics 8f21394
eligibility renderer - doc link support
JacobHomanics 4d6c5d3
proper padding with callouts
JacobHomanics 734cb9a
rewards callout - dashboard
JacobHomanics debfb06
dashboard footer updates
JacobHomanics bb2433f
added rewards dialog
JacobHomanics a3c53a0
rewards callouts abstraction
JacobHomanics f877de1
moved all missions to mocks
JacobHomanics d904c56
attached db values to eligibility
JacobHomanics b1a38ac
application submissions - prototype
JacobHomanics bb89ebe
submitted application section
JacobHomanics f4bf2c4
removed background
JacobHomanics e97e1e4
fixed escape characters
JacobHomanics 0e783f7
moved applicationSubmitted
JacobHomanics b5ff84d
attached db data to enrolled badge - mission app page
JacobHomanics f4f81d3
get only round specific application - mission app page
JacobHomanics c6d7d5b
enrolled badge - home
JacobHomanics e9b4d39
undid ProjectImpactFormChanges
JacobHomanics 92646ea
reverted ReposForm to original code
JacobHomanics 78328b3
Update ReposForm.tsx
JacobHomanics adf820e
moved mission page to seperate component
JacobHomanics 1f294b5
categories/ impact statement db interactions
JacobHomanics 08d1112
removed mission enrolled stats, apply btn
JacobHomanics 79cf4c3
round name on application
JacobHomanics ec65414
enrolled projects in sidebar
JacobHomanics 0072bbc
cleaned up mission page code
JacobHomanics 8747cf9
user enrolled projects hooked into mission page
JacobHomanics a5c7aa0
user applications per mission page bugfix
JacobHomanics 08485b9
application submission process
JacobHomanics 907fa5f
Update ApplicationSubmitted.tsx
JacobHomanics a7c6d8f
general cleanup
JacobHomanics bb4f7a7
further cleanup
JacobHomanics 833f5b9
strengthened eligibility check
JacobHomanics ef4aaff
connected applications to UserProjectCard
JacobHomanics 31edec1
Merge branch 'main' into jan-updates
JacobHomanics 5da0f9e
terms abstraction and tabs trigger bugfix
JacobHomanics 13e2e0d
stops event propogation on checkbox click
JacobHomanics f119e4b
abstraced mission application
JacobHomanics 3c35353
abstracted callouts
JacobHomanics 341facf
moved common to own folder
JacobHomanics dadef8d
mission folder organization
JacobHomanics 83d4761
updated imports
JacobHomanics b932cf8
updated github form to match designs
JacobHomanics 4d45980
improved eleigibility implementaiton
JacobHomanics 0f83817
project application code cleanup
JacobHomanics ff264ec
Update mocks.ts
JacobHomanics 70a57c0
added attestation to callout confirmation link
JacobHomanics a78d839
add another link bugfix
JacobHomanics dc2d2e0
handled links undefined error
JacobHomanics 522d91c
functional sign-in on mission page
JacobHomanics b651485
created hooks and context components
JacobHomanics c4f1908
Merge branch 'main' into jan-updates-feedback-1
JacobHomanics 6344688
removed calls from server-side pages
JacobHomanics 2eb91ee
cleaned up ApplicationStatusCard
JacobHomanics 4b136d7
homepage updated
JacobHomanics 2cae208
dev-tooling mission page match designs
JacobHomanics 3948729
added footer and fixed date error
JacobHomanics d374965
mission page margins/padding fixes
JacobHomanics 4f8602a
application page matches designs
JacobHomanics 65360ad
removed deprecated eligibility code
JacobHomanics 102d3c5
strict rewards type, fixed missions page
JacobHomanics 4ca8d0e
moved round retrieval into hooks
JacobHomanics 5d8e3c3
fixed homepage funding rounds
JacobHomanics 0a99175
ran linter
JacobHomanics 27c1b90
homepage - hooks instead of server-side fetching
JacobHomanics a0f0fda
moved hooks
JacobHomanics 79d410a
linter
JacobHomanics 965f9c9
removed unnecessary imports
JacobHomanics 5c6b92a
application submitted through client-side
JacobHomanics 0fa8274
handle loading state
JacobHomanics 08e5ea0
removed text stylings
JacobHomanics c46faca
Update Header.tsx
JacobHomanics b86d4b3
application card text centering, rounded icons
JacobHomanics 962baa9
enrolled callout links
JacobHomanics a8a23cc
prevents multiple applications of same project
JacobHomanics ef466d2
cleaned up submission form
JacobHomanics debd821
Update MissionApplicationTabs.tsx
JacobHomanics 942e8ea
Update ProjectApplication.tsx
JacobHomanics 0839508
updated repos copy
JacobHomanics a3a00a6
containscontract toggle on page
JacobHomanics b743b57
linter
JacobHomanics e9acc2a
removed uses of any
JacobHomanics 0a27f87
only shows the current rounds
JacobHomanics 39f4ca4
applications - project card width fix
JacobHomanics 3ad87a6
Update app/src/components/missions/details/ApplicationStatusCard.tsx
JacobHomanics e92774a
application status card - functional programming
JacobHomanics 5bbf64e
made mission data seperate from funding round
JacobHomanics 146862b
Merge branch 'main' into jan-updates
JacobHomanics 8a7f4e8
Merge branch 'main' into jan-updates
JacobHomanics 30bc9f2
stickied sidebar
JacobHomanics 1f1025c
left-hand column width size fix
JacobHomanics 84125c2
enrolled border 1px, app status card btn w-full
JacobHomanics 706f96a
info callout text blue-600
JacobHomanics a3a99b0
new in 2025 callout changes
JacobHomanics b11baf4
semi-bold weight in the tldr bullet points
JacobHomanics 0c71133
semi-bold weights where currently using bold
JacobHomanics 2a55995
Body font color "secondary-foreground"
JacobHomanics db64988
fixed retro missions typo
JacobHomanics c54b4c5
hide the results are in banner
JacobHomanics 8d09dee
border fix enrolled projects, ongoing card padding
JacobHomanics d07eef0
fixed ongoing card spacing/padding
JacobHomanics 73beb5b
24px gap between title-subtext and divider
JacobHomanics 0dceaa9
Subtext color "secondary-foreground"
JacobHomanics 2d72b88
Space between application steps decreased
JacobHomanics 5b5a53f
not eligibile / enrolled badge text increase
JacobHomanics 20ac719
application - non-title/header secondary-foreground
JacobHomanics 16302c9
removed oct 14th callouts
JacobHomanics 215ce5b
changed published metadata cta
JacobHomanics fa43288
sign in or sign up button matches design
JacobHomanics 5705926
changed choose projects to Sentence case
JacobHomanics a9c0f05
updated hero images
JacobHomanics 1149bfe
new in 2025 callout roundness-xl (12px)
JacobHomanics 9084ab2
column gap set to 12 (48px)
JacobHomanics 78359ae
sticky 80px below topbar
JacobHomanics 276773a
fixed text color
JacobHomanics 0fbdfe8
gap between title – image – paragraph 16pt/1rem
JacobHomanics 7317b9f
missions landing page
JacobHomanics 17a764b
org name on app, missing projs fix, total apps fix
JacobHomanics 453b00d
properly reduces applications array
JacobHomanics 1766621
added typing
JacobHomanics 57ef136
updated dates
JacobHomanics c9eca66
added edit project btn to incomplete projs on app
JacobHomanics ff13cae
Update MissionApplication.tsx
JacobHomanics e0487da
added logs to serverless functions
JacobHomanics 3f3b602
added mroe console logs
JacobHomanics 5470f74
Revert "added mroe console logs"
JacobHomanics 8d4b1a6
Revert "added logs to serverless functions"
JacobHomanics 199e2f1
hide additional inputs btn - contracts page bugfix
JacobHomanics 02f13f4
improved error message on contracts save
JacobHomanics e871ff9
Merge branch 'main' into jan-updates
stepandel 919505e
Update ContractsForm.tsx
JacobHomanics cfa93b7
Mission Apply: app status card improved loading
JacobHomanics f6c52f7
breadcrumbs home fix
JacobHomanics 4c88e19
status box formatting
JacobHomanics 6b8b8b6
projs with applications can publish metadata
JacobHomanics d3c920e
removed confirmation link from enrolled callout
JacobHomanics 44b7825
visual polish - application submitted
JacobHomanics 1cdd7a5
no-escape-character fix
JacobHomanics ec6d550
additional no-escape-fix
JacobHomanics efdc03d
Merge branch 'main' into jan-updates
JacobHomanics b7054b1
only display 1 enrolled callout per round
JacobHomanics 676f076
fixed latest snapshot algorithm
JacobHomanics cc42f7c
sorted UI snapshots
JacobHomanics c82ac12
added key
JacobHomanics 22f6ae7
updated pricing and grants page
JacobHomanics adcd100
updatd dev-tooling image and hero rounding
JacobHomanics 305f7e3
padding-bottom and callout text size changes
JacobHomanics e7fa682
checkmark updates
JacobHomanics ec46c2a
agree and apply checks 24px
JacobHomanics ad08d64
removed old hero images
JacobHomanics 608a271
sets org field to url param
JacobHomanics 8855881
Merge branch 'main' into jan-updates
JacobHomanics 4f17613
fixed application page loading bug
JacobHomanics 95fef83
update application attestations for s7 (#546)
stepandel 455a4a8
updated publish form
JacobHomanics 3d7b37a
update og-images and metadata (#559)
stepandel 1d82e3b
added optional logging to db interactions
JacobHomanics 58a5109
details page pre-loads with org
JacobHomanics 8454771
enrolledcallout - removed logs
JacobHomanics 8d684f9
improved contracts form
JacobHomanics 0c84719
name/description required fields
JacobHomanics c60d858
rewards date replaced with startedAt
JacobHomanics 862c6ce
saves slug otherwise saves empty string
JacobHomanics 1a769cf
improved contracts page
JacobHomanics 5372889
Update ProjectDetailsForm.tsx
JacobHomanics 6f262c8
rewards date modifications
JacobHomanics 071b0d8
Conditional "Add Link" buttons
JacobHomanics 83f4cfd
Merge branch 'jan-updates-conditional-add-link' into jan-updates
JacobHomanics ada85ee
prevent user applications until startDate
JacobHomanics 244393b
removed video/doc callouts
JacobHomanics 75f662d
commented out deprecated 5/6 code
JacobHomanics 4cf9606
commented out s4 application
JacobHomanics 7daa3a6
updated application submission
JacobHomanics ac779b9
submission page changes
JacobHomanics 45ee66f
improve app status card
JacobHomanics 3508985
Update ContractsForm.tsx
JacobHomanics 9b97520
added `isSubmittedToOso` to db
JacobHomanics cdab07e
fixed typo for rewards strings
JacobHomanics fe5fe56
added missing `isSubmittedToOso` refs
JacobHomanics e9b4dc0
Update route.ts
JacobHomanics 15f2e16
defaulted isSubmittedToOso to false
JacobHomanics 98cd5ce
Revert "Update route.ts"
JacobHomanics 8d8c9c5
Revert "added missing `isSubmittedToOso` refs"
JacobHomanics 1dfb176
Merge branch 'jake/submittedOso' into jan-updates
JacobHomanics 6fed46f
zeroed out the dates
JacobHomanics 9e07f9d
dev tooling open for testing
JacobHomanics 321cc3b
updated apply by date
JacobHomanics 4948751
Update MissionsAndRoundData.tsx
JacobHomanics d42f71e
removed commented out code
JacobHomanics ee81c25
Update page.tsx
JacobHomanics File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { notFound } from "next/navigation" | ||
import React from "react" | ||
|
||
import { MissionApplication } from "@/components/missions/application/MissionApplication" | ||
import { MISSIONS } from "@/lib/MissionsAndRoundData" | ||
|
||
export default async function MissionApplicationPage({ | ||
params, | ||
}: { | ||
params: { id: string } | ||
}) { | ||
const round = MISSIONS.find((page) => page.pageName === params.id) | ||
if (round === undefined) notFound() | ||
|
||
return ( | ||
<main className="flex flex-col flex-1 h-full items-center pb-12 relative"> | ||
<MissionApplication /> | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Metadata } from "next" | ||
import { notFound } from "next/navigation" | ||
import React from "react" | ||
|
||
import { sharedMetadata } from "@/app/shared-metadata" | ||
import Mission from "@/components/missions/details/Mission" | ||
import { MISSIONS } from "@/lib/MissionsAndRoundData" | ||
|
||
export async function generateMetadata({ | ||
params, | ||
}: { | ||
params: { id: string } | ||
}): Promise<Metadata> { | ||
const mission = MISSIONS.find((page) => page.pageName === params.id) | ||
|
||
return { | ||
...sharedMetadata, | ||
title: `Retro Funding: ${mission?.name ?? ""} - OP Atlas`, | ||
description: mission?.ogDescription, | ||
openGraph: { | ||
...sharedMetadata.openGraph, | ||
title: `Retro Funding: ${mission?.name ?? ""} - OP Atlas`, | ||
description: mission?.ogDescription, | ||
}, | ||
} | ||
} | ||
|
||
export default async function MissionPage({ | ||
params, | ||
}: { | ||
params: { id: string } | ||
}) { | ||
const round = MISSIONS.find((page) => page.pageName === params.id) | ||
if (round === undefined) notFound() | ||
|
||
return ( | ||
<main className="flex flex-col flex-1 h-full items-center pb-20 relative"> | ||
<Mission /> | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Metadata } from "next" | ||
|
||
import { auth } from "@/auth" | ||
import { Rounds } from "@/components/home/Rounds" | ||
import { getUserById } from "@/db/users" | ||
import { updateInteractions } from "@/lib/actions/users" | ||
|
||
import { sharedMetadata } from "../shared-metadata" | ||
|
||
export const metadata: Metadata = { | ||
...sharedMetadata, | ||
title: "Retro Funding Missions - OP Atlas", | ||
description: | ||
"Discover all grants for the Superchain. Sign up on OP Atlas to apply for Optimism missions, Retro Funding, and more.", | ||
openGraph: { | ||
...sharedMetadata.openGraph, | ||
title: "Retro Funding Missions - OP Atlas", | ||
description: | ||
"Discover all grants for the Superchain. Sign up on OP Atlas to apply for Optimism missions, Retro Funding, and more.", | ||
}, | ||
} | ||
|
||
export default async function Page() { | ||
const session = await auth() | ||
|
||
const userId = session?.user.id ?? "" | ||
|
||
const [user] = await Promise.all([getUserById(userId)]) | ||
|
||
if (session?.user) { | ||
updateInteractions({ userId: session.user?.id, homePageViewCount: 1 }) | ||
} | ||
|
||
return <Rounds user={user} /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
import { Metadata } from "next" | ||
import { redirect } from "next/navigation" | ||
|
||
import { auth } from "@/auth" | ||
import { Rounds } from "@/components/home/Rounds" | ||
import { getRandomProjects } from "@/db/projects" | ||
import { getApplications } from "@/lib/actions/projects" | ||
|
||
import { sharedMetadata } from "./shared-metadata" | ||
|
||
export const metadata: Metadata = { | ||
...sharedMetadata, | ||
title: "Homepage - OP Atlas", | ||
description: | ||
"OP Atlas is the home of Optimism Contributors. Discover Retro Funding, grants and governance opportunities on the Superchain.", | ||
openGraph: { | ||
...sharedMetadata.openGraph, | ||
title: "Homepage - OP Atlas", | ||
description: | ||
"OP Atlas is the home of Optimism Contributors. Discover Retro Funding, grants and governance opportunities on the Superchain.", | ||
}, | ||
} | ||
|
||
export default async function Home() { | ||
const [session, projects] = await Promise.all([auth(), getRandomProjects()]) | ||
const [session] = await Promise.all([auth()]) | ||
|
||
if (session?.user) { | ||
redirect("/dashboard") | ||
} | ||
|
||
return <Rounds projects={projects} /> | ||
return <Rounds /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,13 @@ export default async function Page() { | |
|
||
const userOrganizations = await getAdminOrganizations(session?.user.id) | ||
|
||
// const searchParams = new URLSearchParams(window.location.search) | ||
// const paramValue = searchParams.get("orgId") | ||
|
||
// const selectedOrg = userOrganizations.organizations.find((org) => { | ||
// return org.organization.id === router.query["orgId"] | ||
// })?.organization | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's remove this before merging |
||
|
||
return ( | ||
<div className="h-full bg-secondary flex flex-1 px-6"> | ||
<div className="fixed bottom-4 left-4"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
import { Metadata } from "next" | ||
|
||
import { Results } from "@/components/round/results" | ||
|
||
import { sharedMetadata } from "../../shared-metadata" | ||
|
||
export const metadata: Metadata = { | ||
...sharedMetadata, | ||
title: "Retro Funding Recipients - OP Atlas", | ||
description: | ||
"Explore projects on the Superchain that have received Optimism Retro Funding. Sign in to OP Atlas to learn about grant sizes, project info, and more.", | ||
openGraph: { | ||
...sharedMetadata.openGraph, | ||
title: "Retro Funding Recipients - OP Atlas", | ||
description: | ||
"Explore projects on the Superchain that have received Optimism Retro Funding. Sign in to OP Atlas to learn about grant sizes, project info, and more.", | ||
}, | ||
} | ||
|
||
export default function Page() { | ||
return <Results /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
import { auth } from "@/auth" | ||
import { Rounds } from "@/components/home/Rounds" | ||
import { getRandomProjects } from "@/db/projects" | ||
import { getUserById } from "@/db/users" | ||
import { getAdminProjects } from "@/lib/actions/projects" | ||
import { updateInteractions } from "@/lib/actions/users" | ||
|
||
export default async function Page() { | ||
const session = await auth() | ||
const [projects, user, userProjects] = await Promise.all([ | ||
getRandomProjects(), | ||
session?.user.id ? getUserById(session.user.id) : null, | ||
session?.user.id ? getAdminProjects(session.user.id) : null, | ||
]) | ||
|
||
const userId = session?.user.id ?? "" | ||
|
||
const [user] = await Promise.all([getUserById(userId)]) | ||
|
||
if (session?.user) { | ||
updateInteractions({ userId: session.user?.id, homePageViewCount: 1 }) | ||
} | ||
|
||
return <Rounds projects={projects} user={user} userProjects={userProjects} /> | ||
return <Rounds user={user} /> | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this before merging