Skip to content
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 256 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
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 Jan 10, 2025
cc4e116
dev tooling hardcoded main content
JacobHomanics Jan 10, 2025
cc00059
added signin to mission sidebar
JacobHomanics Jan 10, 2025
8c69b39
updated account comp to check for missions
JacobHomanics Jan 10, 2025
35d8f85
Update Sidebar.tsx
JacobHomanics Jan 10, 2025
c6e7360
completed mock mission sidebar
JacobHomanics Jan 10, 2025
20cb191
ability to go to home on clicking mission body nav
JacobHomanics Jan 10, 2025
30b473e
Update page.tsx
JacobHomanics Jan 10, 2025
a8bdf0e
added dynamic badge to ongoing card
JacobHomanics Jan 10, 2025
4cf1478
Update FundingRoundOngoing.tsx
JacobHomanics Jan 10, 2025
d9cade2
removed comments
JacobHomanics Jan 10, 2025
8778bc6
conditionally render round engagement container
JacobHomanics Jan 10, 2025
ba6be17
Update index.tsx
JacobHomanics Jan 10, 2025
2615d67
abstracted callout cards
JacobHomanics Jan 10, 2025
0c8c7d1
added breadcrumbs
JacobHomanics Jan 10, 2025
2cd30e2
project data object
JacobHomanics Jan 10, 2025
2139f20
removed eligibility abstraction
JacobHomanics Jan 11, 2025
53a336f
abstracted eligibility and rewards
JacobHomanics Jan 11, 2025
d0ab052
added not found
JacobHomanics Jan 11, 2025
f53d28b
dev tooling complete
JacobHomanics Jan 11, 2025
797a13f
document callout
JacobHomanics Jan 11, 2025
a50122f
onchain builders laid out
JacobHomanics Jan 11, 2025
88adf95
finished dev-tooling and onchain builder data
JacobHomanics Jan 11, 2025
f3f1e73
removed default "watch video" on callout
JacobHomanics Jan 11, 2025
51b280e
design updates to mission details
JacobHomanics Jan 11, 2025
ead882a
added key to rewards list
JacobHomanics Jan 11, 2025
4162828
sidebar - apply logic done
JacobHomanics Jan 11, 2025
773deee
abstracted sidebar parameters
JacobHomanics Jan 11, 2025
0bc6042
abstracted sidebar
JacobHomanics Jan 13, 2025
eebac33
projects enrolled section
JacobHomanics Jan 13, 2025
605ccd7
up
JacobHomanics Jan 13, 2025
d15894c
cleaned up apply sidebar
JacobHomanics Jan 13, 2025
2c6237d
fixed next/image import
JacobHomanics Jan 13, 2025
99125a1
enrolledprojects mock data
JacobHomanics Jan 13, 2025
63e9b45
eligibility criteria in variables
JacobHomanics Jan 13, 2025
7291784
removed old eligibility rendering
JacobHomanics Jan 13, 2025
61fdbd3
added keys
JacobHomanics Jan 13, 2025
8cd711f
fixed hydration error
JacobHomanics Jan 13, 2025
c37913b
abstracted eligibility component
JacobHomanics Jan 13, 2025
88ec5f2
updated mock, formatted dates
JacobHomanics Jan 13, 2025
ec7a2c4
created roundsData as single data point
JacobHomanics Jan 13, 2025
edf0b42
fixed apply date format
JacobHomanics Jan 13, 2025
09b4c7f
built out application logic for badge
JacobHomanics Jan 13, 2025
f8ac2e7
ticket 461. add another link bugfix
JacobHomanics Jan 13, 2025
582b381
building out applications page
JacobHomanics Jan 13, 2025
7af488e
fixed key
JacobHomanics Jan 13, 2025
936d43a
Merge branch 'main' into jan-updates
JacobHomanics Jan 13, 2025
f0084a1
removed old code
JacobHomanics Jan 13, 2025
13c6a9a
created ApplyDetails.tsx
JacobHomanics Jan 14, 2025
414bb32
renamed mission/apply to application
JacobHomanics Jan 14, 2025
bbad932
added padding
JacobHomanics Jan 14, 2025
27fbce9
styled project setup/eligibity criterias
JacobHomanics Jan 14, 2025
e9add9c
apply details - no projects
JacobHomanics Jan 14, 2025
a15047e
correctly rendering project state badge
JacobHomanics Jan 14, 2025
8e57746
switched to booleans
JacobHomanics Jan 14, 2025
7ea4d73
abstracted circle with checkmark
JacobHomanics Jan 14, 2025
551579b
fixed title padding
JacobHomanics Jan 14, 2025
9640627
terms completed
JacobHomanics Jan 14, 2025
1f8fab7
extended common/Callout.tsx
JacobHomanics Jan 14, 2025
055a688
updated missions callouts
JacobHomanics Jan 14, 2025
ed4511d
removed old mission callouts
JacobHomanics Jan 14, 2025
8f21394
eligibility renderer - doc link support
JacobHomanics Jan 14, 2025
4d6c5d3
proper padding with callouts
JacobHomanics Jan 14, 2025
734cb9a
rewards callout - dashboard
JacobHomanics Jan 14, 2025
debfb06
dashboard footer updates
JacobHomanics Jan 14, 2025
bb2433f
added rewards dialog
JacobHomanics Jan 14, 2025
a3c53a0
rewards callouts abstraction
JacobHomanics Jan 14, 2025
f877de1
moved all missions to mocks
JacobHomanics Jan 14, 2025
d904c56
attached db values to eligibility
JacobHomanics Jan 15, 2025
b1a38ac
application submissions - prototype
JacobHomanics Jan 15, 2025
bb89ebe
submitted application section
JacobHomanics Jan 15, 2025
f4bf2c4
removed background
JacobHomanics Jan 15, 2025
e97e1e4
fixed escape characters
JacobHomanics Jan 15, 2025
0e783f7
moved applicationSubmitted
JacobHomanics Jan 15, 2025
b5ff84d
attached db data to enrolled badge - mission app page
JacobHomanics Jan 15, 2025
f4f81d3
get only round specific application - mission app page
JacobHomanics Jan 15, 2025
c6d7d5b
enrolled badge - home
JacobHomanics Jan 15, 2025
e9b4d39
undid ProjectImpactFormChanges
JacobHomanics Jan 15, 2025
92646ea
reverted ReposForm to original code
JacobHomanics Jan 15, 2025
78328b3
Update ReposForm.tsx
JacobHomanics Jan 15, 2025
adf820e
moved mission page to seperate component
JacobHomanics Jan 16, 2025
1f294b5
categories/ impact statement db interactions
JacobHomanics Jan 16, 2025
08d1112
removed mission enrolled stats, apply btn
JacobHomanics Jan 17, 2025
79cf4c3
round name on application
JacobHomanics Jan 17, 2025
ec65414
enrolled projects in sidebar
JacobHomanics Jan 17, 2025
0072bbc
cleaned up mission page code
JacobHomanics Jan 17, 2025
8747cf9
user enrolled projects hooked into mission page
JacobHomanics Jan 17, 2025
a5c7aa0
user applications per mission page bugfix
JacobHomanics Jan 17, 2025
08485b9
application submission process
JacobHomanics Jan 17, 2025
907fa5f
Update ApplicationSubmitted.tsx
JacobHomanics Jan 17, 2025
a7c6d8f
general cleanup
JacobHomanics Jan 19, 2025
bb4f7a7
further cleanup
JacobHomanics Jan 19, 2025
833f5b9
strengthened eligibility check
JacobHomanics Jan 19, 2025
ef4aaff
connected applications to UserProjectCard
JacobHomanics Jan 20, 2025
31edec1
Merge branch 'main' into jan-updates
JacobHomanics Jan 20, 2025
5da0f9e
terms abstraction and tabs trigger bugfix
JacobHomanics Jan 20, 2025
13e2e0d
stops event propogation on checkbox click
JacobHomanics Jan 20, 2025
f119e4b
abstraced mission application
JacobHomanics Jan 20, 2025
3c35353
abstracted callouts
JacobHomanics Jan 20, 2025
341facf
moved common to own folder
JacobHomanics Jan 20, 2025
dadef8d
mission folder organization
JacobHomanics Jan 21, 2025
83d4761
updated imports
JacobHomanics Jan 21, 2025
b932cf8
updated github form to match designs
JacobHomanics Jan 21, 2025
4d45980
improved eleigibility implementaiton
JacobHomanics Jan 21, 2025
0f83817
project application code cleanup
JacobHomanics Jan 21, 2025
ff264ec
Update mocks.ts
JacobHomanics Jan 21, 2025
70a57c0
added attestation to callout confirmation link
JacobHomanics Jan 21, 2025
a78d839
add another link bugfix
JacobHomanics Jan 21, 2025
dc2d2e0
handled links undefined error
JacobHomanics Jan 21, 2025
522d91c
functional sign-in on mission page
JacobHomanics Jan 21, 2025
b651485
created hooks and context components
JacobHomanics Jan 23, 2025
c4f1908
Merge branch 'main' into jan-updates-feedback-1
JacobHomanics Jan 23, 2025
6344688
removed calls from server-side pages
JacobHomanics Jan 24, 2025
2eb91ee
cleaned up ApplicationStatusCard
JacobHomanics Jan 24, 2025
4b136d7
homepage updated
JacobHomanics Jan 24, 2025
2cae208
dev-tooling mission page match designs
JacobHomanics Jan 24, 2025
3948729
added footer and fixed date error
JacobHomanics Jan 24, 2025
d374965
mission page margins/padding fixes
JacobHomanics Jan 24, 2025
4f8602a
application page matches designs
JacobHomanics Jan 24, 2025
65360ad
removed deprecated eligibility code
JacobHomanics Jan 24, 2025
102d3c5
strict rewards type, fixed missions page
JacobHomanics Jan 24, 2025
4ca8d0e
moved round retrieval into hooks
JacobHomanics Jan 24, 2025
5d8e3c3
fixed homepage funding rounds
JacobHomanics Jan 24, 2025
0a99175
ran linter
JacobHomanics Jan 24, 2025
27c1b90
homepage - hooks instead of server-side fetching
JacobHomanics Jan 24, 2025
a0f0fda
moved hooks
JacobHomanics Jan 24, 2025
79d410a
linter
JacobHomanics Jan 24, 2025
965f9c9
removed unnecessary imports
JacobHomanics Jan 24, 2025
5c6b92a
application submitted through client-side
JacobHomanics Jan 24, 2025
0fa8274
handle loading state
JacobHomanics Jan 24, 2025
08e5ea0
removed text stylings
JacobHomanics Jan 24, 2025
c46faca
Update Header.tsx
JacobHomanics Jan 24, 2025
b86d4b3
application card text centering, rounded icons
JacobHomanics Jan 24, 2025
962baa9
enrolled callout links
JacobHomanics Jan 24, 2025
a8a23cc
prevents multiple applications of same project
JacobHomanics Jan 24, 2025
ef466d2
cleaned up submission form
JacobHomanics Jan 24, 2025
debd821
Update MissionApplicationTabs.tsx
JacobHomanics Jan 24, 2025
942e8ea
Update ProjectApplication.tsx
JacobHomanics Jan 24, 2025
0839508
updated repos copy
JacobHomanics Jan 24, 2025
a3a00a6
containscontract toggle on page
JacobHomanics Jan 24, 2025
b743b57
linter
JacobHomanics Jan 24, 2025
e9acc2a
removed uses of any
JacobHomanics Jan 24, 2025
0a27f87
only shows the current rounds
JacobHomanics Jan 24, 2025
39f4ca4
applications - project card width fix
JacobHomanics Jan 25, 2025
3ad87a6
Update app/src/components/missions/details/ApplicationStatusCard.tsx
JacobHomanics Jan 25, 2025
e92774a
application status card - functional programming
JacobHomanics Jan 25, 2025
5bbf64e
made mission data seperate from funding round
JacobHomanics Jan 27, 2025
146862b
Merge branch 'main' into jan-updates
JacobHomanics Jan 27, 2025
8a7f4e8
Merge branch 'main' into jan-updates
JacobHomanics Jan 29, 2025
30bc9f2
stickied sidebar
JacobHomanics Jan 29, 2025
1f1025c
left-hand column width size fix
JacobHomanics Jan 29, 2025
84125c2
enrolled border 1px, app status card btn w-full
JacobHomanics Jan 29, 2025
706f96a
info callout text blue-600
JacobHomanics Jan 29, 2025
a3a99b0
new in 2025 callout changes
JacobHomanics Jan 29, 2025
b11baf4
semi-bold weight in the tldr bullet points
JacobHomanics Jan 29, 2025
0c71133
semi-bold weights where currently using bold
JacobHomanics Jan 29, 2025
2a55995
Body font color "secondary-foreground"
JacobHomanics Jan 29, 2025
db64988
fixed retro missions typo
JacobHomanics Jan 29, 2025
c54b4c5
hide the results are in banner
JacobHomanics Jan 29, 2025
8d09dee
border fix enrolled projects, ongoing card padding
JacobHomanics Jan 29, 2025
d07eef0
fixed ongoing card spacing/padding
JacobHomanics Jan 29, 2025
73beb5b
24px gap between title-subtext and divider
JacobHomanics Jan 29, 2025
0dceaa9
Subtext color "secondary-foreground"
JacobHomanics Jan 29, 2025
2d72b88
Space between application steps decreased
JacobHomanics Jan 29, 2025
5b5a53f
not eligibile / enrolled badge text increase
JacobHomanics Jan 29, 2025
20ac719
application - non-title/header secondary-foreground
JacobHomanics Jan 29, 2025
16302c9
removed oct 14th callouts
JacobHomanics Jan 29, 2025
215ce5b
changed published metadata cta
JacobHomanics Jan 29, 2025
fa43288
sign in or sign up button matches design
JacobHomanics Jan 30, 2025
5705926
changed choose projects to Sentence case
JacobHomanics Jan 30, 2025
a9c0f05
updated hero images
JacobHomanics Jan 30, 2025
1149bfe
new in 2025 callout roundness-xl (12px)
JacobHomanics Jan 30, 2025
9084ab2
column gap set to 12 (48px)
JacobHomanics Jan 30, 2025
78359ae
sticky 80px below topbar
JacobHomanics Jan 30, 2025
276773a
fixed text color
JacobHomanics Jan 30, 2025
0fbdfe8
gap between title – image – paragraph 16pt/1rem
JacobHomanics Jan 30, 2025
7317b9f
missions landing page
JacobHomanics Jan 30, 2025
17a764b
org name on app, missing projs fix, total apps fix
JacobHomanics Jan 30, 2025
453b00d
properly reduces applications array
JacobHomanics Jan 30, 2025
1766621
added typing
JacobHomanics Jan 30, 2025
57ef136
updated dates
JacobHomanics Jan 30, 2025
c9eca66
added edit project btn to incomplete projs on app
JacobHomanics Jan 30, 2025
ff13cae
Update MissionApplication.tsx
JacobHomanics Jan 30, 2025
e0487da
added logs to serverless functions
JacobHomanics Jan 30, 2025
3f3b602
added mroe console logs
JacobHomanics Jan 30, 2025
5470f74
Revert "added mroe console logs"
JacobHomanics Jan 30, 2025
8d4b1a6
Revert "added logs to serverless functions"
JacobHomanics Jan 30, 2025
199e2f1
hide additional inputs btn - contracts page bugfix
JacobHomanics Jan 30, 2025
02f13f4
improved error message on contracts save
JacobHomanics Jan 31, 2025
e871ff9
Merge branch 'main' into jan-updates
stepandel Jan 31, 2025
919505e
Update ContractsForm.tsx
JacobHomanics Jan 31, 2025
cfa93b7
Mission Apply: app status card improved loading
JacobHomanics Jan 31, 2025
f6c52f7
breadcrumbs home fix
JacobHomanics Jan 31, 2025
4c88e19
status box formatting
JacobHomanics Jan 31, 2025
6b8b8b6
projs with applications can publish metadata
JacobHomanics Jan 31, 2025
d3c920e
removed confirmation link from enrolled callout
JacobHomanics Jan 31, 2025
44b7825
visual polish - application submitted
JacobHomanics Jan 31, 2025
1cdd7a5
no-escape-character fix
JacobHomanics Jan 31, 2025
ec6d550
additional no-escape-fix
JacobHomanics Jan 31, 2025
efdc03d
Merge branch 'main' into jan-updates
JacobHomanics Jan 31, 2025
b7054b1
only display 1 enrolled callout per round
JacobHomanics Jan 31, 2025
676f076
fixed latest snapshot algorithm
JacobHomanics Jan 31, 2025
cc42f7c
sorted UI snapshots
JacobHomanics Jan 31, 2025
c82ac12
added key
JacobHomanics Jan 31, 2025
22f6ae7
updated pricing and grants page
JacobHomanics Feb 1, 2025
adcd100
updatd dev-tooling image and hero rounding
JacobHomanics Feb 3, 2025
305f7e3
padding-bottom and callout text size changes
JacobHomanics Feb 3, 2025
e7fa682
checkmark updates
JacobHomanics Feb 3, 2025
ec46c2a
agree and apply checks 24px
JacobHomanics Feb 3, 2025
ad08d64
removed old hero images
JacobHomanics Feb 3, 2025
608a271
sets org field to url param
JacobHomanics Feb 3, 2025
8855881
Merge branch 'main' into jan-updates
JacobHomanics Feb 3, 2025
4f17613
fixed application page loading bug
JacobHomanics Feb 3, 2025
95fef83
update application attestations for s7 (#546)
stepandel Feb 4, 2025
455a4a8
updated publish form
JacobHomanics Feb 4, 2025
3d7b37a
update og-images and metadata (#559)
stepandel Feb 4, 2025
1d82e3b
added optional logging to db interactions
JacobHomanics Feb 4, 2025
58a5109
details page pre-loads with org
JacobHomanics Feb 4, 2025
8454771
enrolledcallout - removed logs
JacobHomanics Feb 4, 2025
8d684f9
improved contracts form
JacobHomanics Feb 4, 2025
0c84719
name/description required fields
JacobHomanics Feb 4, 2025
c60d858
rewards date replaced with startedAt
JacobHomanics Feb 4, 2025
862c6ce
saves slug otherwise saves empty string
JacobHomanics Feb 4, 2025
1a769cf
improved contracts page
JacobHomanics Feb 4, 2025
5372889
Update ProjectDetailsForm.tsx
JacobHomanics Feb 4, 2025
6f262c8
rewards date modifications
JacobHomanics Feb 4, 2025
071b0d8
Conditional "Add Link" buttons
JacobHomanics Feb 4, 2025
83f4cfd
Merge branch 'jan-updates-conditional-add-link' into jan-updates
JacobHomanics Feb 4, 2025
ada85ee
prevent user applications until startDate
JacobHomanics Feb 4, 2025
244393b
removed video/doc callouts
JacobHomanics Feb 4, 2025
75f662d
commented out deprecated 5/6 code
JacobHomanics Feb 4, 2025
4cf9606
commented out s4 application
JacobHomanics Feb 4, 2025
7daa3a6
updated application submission
JacobHomanics Feb 4, 2025
ac779b9
submission page changes
JacobHomanics Feb 4, 2025
45ee66f
improve app status card
JacobHomanics Feb 4, 2025
3508985
Update ContractsForm.tsx
JacobHomanics Feb 4, 2025
9b97520
added `isSubmittedToOso` to db
JacobHomanics Feb 4, 2025
cdab07e
fixed typo for rewards strings
JacobHomanics Feb 4, 2025
fe5fe56
added missing `isSubmittedToOso` refs
JacobHomanics Feb 4, 2025
e9b4dc0
Update route.ts
JacobHomanics Feb 4, 2025
15f2e16
defaulted isSubmittedToOso to false
JacobHomanics Feb 4, 2025
98cd5ce
Revert "Update route.ts"
JacobHomanics Feb 4, 2025
8d8c9c5
Revert "added missing `isSubmittedToOso` refs"
JacobHomanics Feb 4, 2025
1dfb176
Merge branch 'jake/submittedOso' into jan-updates
JacobHomanics Feb 4, 2025
6fed46f
zeroed out the dates
JacobHomanics Feb 4, 2025
9e07f9d
dev tooling open for testing
JacobHomanics Feb 4, 2025
321cc3b
updated apply by date
JacobHomanics Feb 5, 2025
4948751
Update MissionsAndRoundData.tsx
JacobHomanics Feb 5, 2025
d42f71e
removed commented out code
JacobHomanics Feb 5, 2025
ee81c25
Update page.tsx
JacobHomanics Feb 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ NEXTAUTH_SECRET=

# Database (postgres)
DATABASE_URL=

# Determines whether DB operations are logged to the node backend during development/testing.
# Possible values: 'true' or 'false'
IS_DB_DEBUG=

# Google Cloud
GCP_PROJECT_ID=
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@radix-ui/react-radio-group": "^1.1.3",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-slot": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.1.2",
Expand Down
2 changes: 2 additions & 0 deletions app/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ model Project {
pricingModelDetails String?

openSourceObserverSlug String?
isSubmittedToOso Boolean @default(false)

addedTeamMembers Boolean @default(false)
addedFunding Boolean @default(false)
hasCodeRepositories Boolean @default(true)
Expand Down
3 changes: 3 additions & 0 deletions app/public/assets/icons/calendar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/public/assets/icons/doc-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/public/assets/icons/farcaster-icon-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/public/assets/icons/file-copy-line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/public/assets/icons/info-green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/public/assets/icons/triangular-flag-full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/public/assets/icons/triangular-flag-muted-foreground.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/assets/icons/uniswap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/public/assets/icons/video-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/assets/images/dev-tooling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/assets/images/onchain-builders.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/public/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/og-twitter-large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/og-twitter-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions app/src/app/application/5/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { auth } from "@/auth"
import { ApplicationFlow } from "@/components/application/5"
import { getCategories } from "@/db/category"
import { getAdminProjects, getRoundApplications } from "@/lib/actions/projects"
import {
getAdminProjects,
getUserApplicationsForRound,
} from "@/lib/actions/projects"

export const maxDuration = 120

Expand All @@ -11,7 +14,7 @@ export default async function Page() {
const [projects, applications, categories] = session
? await Promise.all([
getAdminProjects(session.user.id, "5"),
getRoundApplications(session.user.id, 5),
getUserApplicationsForRound(session.user.id, 5),
getCategories(),
])
: [[], [], []]
Expand Down
7 changes: 5 additions & 2 deletions app/src/app/application/6/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { auth } from "@/auth"
import { ApplicationFlow } from "@/components/application/6"
import { getCategories } from "@/db/category"
import { getAdminProjects, getRoundApplications } from "@/lib/actions/projects"
import {
getAdminProjects,
getUserApplicationsForRound,
} from "@/lib/actions/projects"

export const maxDuration = 120

Expand All @@ -11,7 +14,7 @@ export default async function Page() {
const [projects, applications, categories] = session
? await Promise.all([
getAdminProjects(session.user.id, "6"),
getRoundApplications(session.user.id, 6),
getUserApplicationsForRound(session.user.id, 6),
getCategories(),
])
: [[], [], []]
Expand Down
4 changes: 4 additions & 0 deletions app/src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { redirect } from "next/navigation"
import { auth } from "@/auth"
import { FeedbackButton } from "@/components/common/FeedbackButton"
import Dashboard from "@/components/dashboard"
import {
GovCandidateCallout,
RewardsCallout,
} from "@/components/dashboard/Callouts"
import { getUserById } from "@/db/users"
import { getUserOrganizations } from "@/lib/actions/organizations"
import {
Expand Down
25 changes: 10 additions & 15 deletions app/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { InfoIconFilled } from "@/components/icons/infoIconFilled"
import { Toaster } from "@/components/ui/sonner"
import Providers from "@/providers/Providers"

import { sharedMetadata } from "./shared-metadata"

const GOOGLE_ANALYTICS_ID = process.env.GOOGLE_ANALYTICS_ID || ""

const inter = Inter({
Expand All @@ -19,22 +21,15 @@ const inter = Inter({
})

export const metadata: Metadata = {
metadataBase: new URL("https://atlas.optimism.io"),
title: "Atlas",
description: "",
icons: "/favicon.ico",
...sharedMetadata,
title: "OP Atlas",
description:
"OP Atlas is the home of Optimism Contributors. Discover Retro Funding, grants and governance opportunities on the Superchain.",
openGraph: {
title: "Atlas",
description: "",
url: "https://atlas.optimism.io",
images: [
{
url: "/og-image.png",
width: 1200,
height: 630,
alt: "Atlas",
},
],
...sharedMetadata.openGraph,
title: "OP Atlas",
description:
"OP Atlas is the home of Optimism Contributors. Discover Retro Funding, grants and governance opportunities on the Superchain.",
},
}

Expand Down
20 changes: 20 additions & 0 deletions app/src/app/missions/[id]/application/page.tsx
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>
)
}
41 changes: 41 additions & 0 deletions app/src/app/missions/[id]/page.tsx
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>
)
}
35 changes: 35 additions & 0 deletions app/src/app/missions/page.tsx
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} />
}
21 changes: 19 additions & 2 deletions app/src/app/page.tsx
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 />
}
12 changes: 12 additions & 0 deletions app/src/app/projects/[projectId]/details/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ export default async function Page({
redirect("/dashboard")
}

// const searchParams = new URLSearchParams(window.location.search)
// const paramValue = searchParams.get("orgId")

// console.log("start")
// console.log(paramValue)
// console.log("after")
// const orgId = searchParams.get("orgId") // Extract orgId from query parameters

// const selectedOrg = userOrganizations.organizations.find((org) => {
// return org.organization.id === router.query["orgId"]
// })?.organization
Copy link
Contributor

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


return (
<ProjectDetailsForm
project={project}
Expand Down
7 changes: 7 additions & 0 deletions app/src/app/projects/new/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

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


return (
<div className="h-full bg-secondary flex flex-1 px-6">
<div className="fixed bottom-4 left-4">
Expand Down
17 changes: 17 additions & 0 deletions app/src/app/round/results/page.tsx
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 />
}
13 changes: 5 additions & 8 deletions app/src/app/rounds/page.tsx
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} />
}
Loading