-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New scoutgame builders & scouts page layout (#5083)
* Initial scout page layout changes * Sticky builder search bar * Added info modal for tables * Use camel case for query params * Added gallery builders layout * Support for mobile screen * Fixed search input size * Added today's hot builders typography for scout page * Added recent activity and leaderboard * Refactored home page components * Initial partner carousel * Carousel pagination * Fixed responsiveness for small screen * Added info icon for mobile view in scout page * Added pagination bullets for partner rewards * Partner rewards for mobile screen * builder page invite card * Mobile view builders page * New homepage * Added builder invite modal * Added pagination for mobile screen * Fixed friends tab fill color * Fixed scout page e2e tests * Fixed info page e2e tests * Fixed login page e2e tests * fixed onboarding page e2e tests * fixed profile page e2e tests * fixed signout e2e tests * buy nft e2e tests fixed * Made landing page ssr * Fixed broken type issues * Fixed links for builder rewards * Fixed issues with sunnyawards type check
- Loading branch information
Showing
85 changed files
with
1,072 additions
and
1,166 deletions.
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
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,14 @@ | ||
import type { Page } from '@playwright/test'; | ||
|
||
import { GeneralPageLayout } from './GeneralPageLayout.po'; | ||
|
||
export class ScoutPage extends GeneralPageLayout { | ||
constructor( | ||
protected page: Page, | ||
public container = page.locator('data-test=scout-page'), | ||
public optimismPromoCard = page.locator('data-test=promo-card-optimism'), | ||
public moxiePromoCard = page.locator('data-test=promo-card-moxie') | ||
) { | ||
super(page); | ||
} | ||
} |
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
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,14 @@ | ||
import { getCurrentWeek, validateISOWeek } from '@packages/scoutgame/dates'; | ||
|
||
import { BuildersPage } from 'components/builders/BuildersPage'; | ||
|
||
export default async function Builders({ | ||
searchParams | ||
}: { | ||
searchParams: { [key: string]: string | string[] | undefined }; | ||
}) { | ||
const tab = (searchParams.tab as string) || 'leaderboard'; | ||
const week = searchParams.week as string | undefined; | ||
|
||
return <BuildersPage tab={tab} week={week && validateISOWeek(week) ? week : getCurrentWeek()} />; | ||
} |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
import { LandingPage } from 'components/home/LandingPage'; | ||
|
||
export default async function Home() { | ||
return <LandingPage />; | ||
} |
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,13 +1,27 @@ | ||
import { ScoutPage } from 'components/scout/ScoutPage'; | ||
import type { BuildersSort } from 'lib/builders/getSortedBuilders'; | ||
|
||
export default async function Scout({ | ||
searchParams | ||
}: { | ||
searchParams: { [key: string]: string | string[] | undefined }; | ||
}) { | ||
const sortParam = searchParams.tab; | ||
const sort = (sortParam && typeof sortParam === 'string' ? sortParam : 'top') as BuildersSort; | ||
const scoutSort = (searchParams.scoutSort as string) || 'points'; | ||
const builderSort = (searchParams.builderSort as string) || 'rank'; | ||
const builderOrder = (searchParams.builderOrder as string) || 'asc'; | ||
const scoutOrder = (searchParams.scoutOrder as string) || 'desc'; | ||
const scoutTab = (searchParams.scoutTab as string) || 'scouts'; | ||
const buildersLayout = (searchParams.buildersLayout as string) || 'table'; | ||
const tab = (searchParams.tab as string) || 'scouts'; | ||
|
||
return <ScoutPage sort={sort} />; | ||
return ( | ||
<ScoutPage | ||
scoutSort={scoutSort} | ||
builderSort={builderSort} | ||
scoutOrder={scoutOrder} | ||
builderOrder={builderOrder} | ||
scoutTab={scoutTab} | ||
buildersLayout={buildersLayout} | ||
tab={tab} | ||
/> | ||
); | ||
} |
Oops, something went wrong.