-
Notifications
You must be signed in to change notification settings - Fork 6
Whitelabel Governance #1801
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
Merged
Merged
Whitelabel Governance #1801
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
6356353
feat: ens whitelabel governance
pikonha 78d818c
feat: add theme dao-specific and update styles
brunod-e 3edefc4
Merge branch 'dev' into codex/whitelabel-governance
brunod-e 7bccd42
Merge branch 'dev' into codex/whitelabel-governance
brunod-e e7f00e1
feat: add dynamic brand color support to EnsAvatar component
brunod-e afc7959
feat: implement governance settings page and related components
brunod-e 69f79a7
refactor: governance proposal components for whitelabel support
brunod-e fcea846
feat: update color variables and improve whitelabel support across co…
brunod-e fab8687
feat: enhance whitelabel support in proposal components and update la…
brunod-e 8c1a542
Merge branch 'dev' into codex/whitelabel-governance
brunod-e b3f52d2
feat: update styling and improve whitelabel support in governance com…
brunod-e 963b7c9
feat: enhance styling for PillTab and update WhitelabelShell and Whit…
brunod-e c27b765
feat: refactor whitelabel configuration and update logo handling in w…
brunod-e 45e310c
feat: enhance governance components with search functionality and imp…
brunod-e 9267440
feat: update styling and improve layout for governance and alert comp…
brunod-e 79a2b97
Merge branch 'dev' into codex/whitelabel-governance
brunod-e eba7d83
fix: update layout and styling for Whitelabel components and improve …
brunod-e 7fbc9bc
refactor: rename governance routes to proposals and update related co…
brunod-e 69a736d
fix: adjust padding for ProposalHeader based on whitelabel status
brunod-e d9c5b6f
fix: update proposal links and improve whitelabel responsiveness acro…
brunod-e 1b205bd
fix: improve layout and responsiveness for AlertsSection
brunod-e 6c8f226
Merge branch 'dev' into codex/whitelabel-governance
brunod-e 5546f10
fix: update custom domain and hostnames to staging environment for EN…
brunod-e e9e97bd
fix: remove custom domain from ENS configuration
brunod-e 25e5a68
Merge branch 'codex/whitelabel-governance' of https://github.com/bloc…
brunod-e 81aef81
feat: enhance RootLayout and CookieConsent for whitelabel support
brunod-e fde39fc
feat: implement debounced search input in WhitelabelHeader component
brunod-e 295dc24
feat: update components for whitelabel support and improve voting mod…
brunod-e 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 hidden or 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
39 changes: 0 additions & 39 deletions
39
apps/dashboard/app/[daoId]/(main)/governance/offchain-proposal/[proposalId]/page.tsx
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
24 changes: 24 additions & 0 deletions
24
apps/dashboard/app/whitelabel/[daoId]/activity-feed/page.tsx
This file contains hidden or 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,24 @@ | ||
| import type { Metadata } from "next"; | ||
|
|
||
| import { ActivityFeedSection } from "@/features/feed"; | ||
| import daoConfigByDaoId from "@/shared/dao-config"; | ||
| import type { DaoIdEnum } from "@/shared/types/daos"; | ||
|
|
||
| type Props = { | ||
| params: Promise<{ daoId: string }>; | ||
| }; | ||
|
|
||
| export async function generateMetadata({ params }: Props): Promise<Metadata> { | ||
| const { daoId } = await params; | ||
| const daoIdEnum = daoId.toUpperCase() as DaoIdEnum; | ||
| const daoConfig = daoConfigByDaoId[daoIdEnum]; | ||
|
|
||
| return { | ||
| title: "Activity Feed", | ||
| description: `Monitor governance activity and participation signals for ${daoConfig.name}.`, | ||
| }; | ||
| } | ||
|
|
||
| export default function WhitelabelActivityFeedPage() { | ||
| return <ActivityFeedSection />; | ||
| } |
31 changes: 31 additions & 0 deletions
31
apps/dashboard/app/whitelabel/[daoId]/delegates/[address]/page.tsx
This file contains hidden or 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,31 @@ | ||
| import type { Metadata } from "next"; | ||
|
|
||
| import { WhitelabelDelegateDetailPage } from "@/features/holders-and-delegates/components/WhitelabelDelegateDetailPage"; | ||
| import daoConfigByDaoId from "@/shared/dao-config"; | ||
| import type { DaoIdEnum } from "@/shared/types/daos"; | ||
|
|
||
| type Props = { | ||
| params: Promise<{ daoId: string; address: string }>; | ||
| }; | ||
|
|
||
| export async function generateMetadata({ params }: Props): Promise<Metadata> { | ||
| const { daoId } = await params; | ||
| const daoIdEnum = daoId.toUpperCase() as DaoIdEnum; | ||
| const daoConfig = daoConfigByDaoId[daoIdEnum]; | ||
|
|
||
| return { | ||
| title: "Delegate details", | ||
| description: `Inspect delegate voting behavior and history for ${daoConfig.name}.`, | ||
| }; | ||
| } | ||
|
|
||
| export default async function WhitelabelDelegateAddressPage({ params }: Props) { | ||
| const { daoId, address } = await params; | ||
|
|
||
| return ( | ||
| <WhitelabelDelegateDetailPage | ||
| daoId={daoId.toUpperCase() as DaoIdEnum} | ||
| address={address} | ||
| /> | ||
| ); | ||
| } |
This file contains hidden or 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,27 @@ | ||
| import type { Metadata } from "next"; | ||
|
|
||
| import { HoldersAndDelegatesSection } from "@/features/holders-and-delegates"; | ||
| import daoConfigByDaoId from "@/shared/dao-config"; | ||
| import type { DaoIdEnum } from "@/shared/types/daos"; | ||
|
|
||
| type Props = { | ||
| params: Promise<{ daoId: string }>; | ||
| }; | ||
|
|
||
| export async function generateMetadata({ params }: Props): Promise<Metadata> { | ||
| const { daoId } = await params; | ||
| const daoIdEnum = daoId.toUpperCase() as DaoIdEnum; | ||
| const daoConfig = daoConfigByDaoId[daoIdEnum]; | ||
|
|
||
| return { | ||
| title: "Delegates", | ||
| description: `Explore delegate activity and holder concentration for ${daoConfig.name}.`, | ||
| }; | ||
| } | ||
|
|
||
| export default async function WhitelabelDelegatesPage({ params }: Props) { | ||
| const { daoId } = await params; | ||
| const daoIdEnum = daoId.toUpperCase() as DaoIdEnum; | ||
|
|
||
| return <HoldersAndDelegatesSection daoId={daoIdEnum} />; | ||
| } | ||
24 changes: 24 additions & 0 deletions
24
apps/dashboard/app/whitelabel/[daoId]/governance-settings/page.tsx
This file contains hidden or 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,24 @@ | ||
| import type { Metadata } from "next"; | ||
|
|
||
| import { GovernanceSettingsSection } from "@/features/governance-settings/GovernanceSettingsSection"; | ||
| import daoConfigByDaoId from "@/shared/dao-config"; | ||
| import type { DaoIdEnum } from "@/shared/types/daos"; | ||
|
|
||
| type Props = { | ||
| params: Promise<{ daoId: string }>; | ||
| }; | ||
|
|
||
| export async function generateMetadata({ params }: Props): Promise<Metadata> { | ||
| const { daoId } = await params; | ||
| const daoIdEnum = daoId.toUpperCase() as DaoIdEnum; | ||
| const daoConfig = daoConfigByDaoId[daoIdEnum]; | ||
|
|
||
| return { | ||
| title: "Governance Settings", | ||
| description: `View the contracts and parameters that govern how ${daoConfig.name} operates.`, | ||
| }; | ||
| } | ||
|
|
||
| export default function WhitelabelGovernanceSettingsPage() { | ||
| return <GovernanceSettingsSection />; | ||
| } |
29 changes: 29 additions & 0 deletions
29
apps/dashboard/app/whitelabel/[daoId]/holders-and-delegates/page.tsx
This file contains hidden or 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,29 @@ | ||
| import type { Metadata } from "next"; | ||
|
|
||
| import { HoldersAndDelegatesSection } from "@/features/holders-and-delegates"; | ||
| import daoConfigByDaoId from "@/shared/dao-config"; | ||
| import type { DaoIdEnum } from "@/shared/types/daos"; | ||
|
|
||
| type Props = { | ||
| params: Promise<{ daoId: string }>; | ||
| }; | ||
|
|
||
| export async function generateMetadata({ params }: Props): Promise<Metadata> { | ||
| const { daoId } = await params; | ||
| const daoIdEnum = daoId.toUpperCase() as DaoIdEnum; | ||
| const daoConfig = daoConfigByDaoId[daoIdEnum]; | ||
|
|
||
| return { | ||
| title: "Holders & Delegates", | ||
| description: `Explore holder concentration and delegate activity for ${daoConfig.name}.`, | ||
| }; | ||
| } | ||
|
|
||
| export default async function WhitelabelHoldersAndDelegatesPage({ | ||
| params, | ||
| }: Props) { | ||
| const { daoId } = await params; | ||
| const daoIdEnum = daoId.toUpperCase() as DaoIdEnum; | ||
|
|
||
| return <HoldersAndDelegatesSection daoId={daoIdEnum} />; | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.