-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor proposal feed component (#912)
* fix solution action * fix preview for proposals * reused feed component * delete components * remove comments * update test * move all props to one file
- Loading branch information
1 parent
103a9e2
commit b6dcc1a
Showing
28 changed files
with
691 additions
and
1,574 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const CssContainer = styled.div` | ||
.theme-btn { | ||
background-color: var(--theme-color) !important; | ||
border: none; | ||
color: white; | ||
&:active { | ||
color: white; | ||
} | ||
} | ||
a { | ||
color: inherit; | ||
} | ||
.attractable { | ||
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; | ||
transition: box-shadow 0.6s; | ||
&:hover { | ||
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; | ||
} | ||
} | ||
`; | ||
|
||
return { CssContainer }; |
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,97 @@ | ||
const proposalFeedAnnouncement = ( | ||
<div className="text-muted bg-grey text-sm mt-2 p-3 rounded-3"> | ||
<p className="d-flex gap-3 align-items-center mb-0"> | ||
<div> | ||
<i class="bi bi-info-circle"></i> | ||
</div> | ||
<div> | ||
<span className="fw-bold"> | ||
Welcome to | ||
<a | ||
href="?page=community&handle=developer-dao&tab=overview" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
DevDAO’s New Proposal Feed! | ||
</a> | ||
</span> | ||
This dedicated space replaces the | ||
<a | ||
href="?page=feed" | ||
className="text-decoration-underline no-space" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
old activity feed | ||
</a> | ||
, making it easier to submit and track funding requests from DevDAO, the | ||
primary organization behind DevHub. To submit a formal proposal, click | ||
New Proposal. See our{" "} | ||
<a | ||
href="?page=community&handle=developer-dao&tab=funding" | ||
className="text-decoration-underline no-space" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
guidelines | ||
</a> | ||
for details. For discussions and brainstorming, please utilize the | ||
relevant{" "} | ||
<a | ||
href="?page=communities" | ||
className="text-decoration-underline no-space" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
communities | ||
</a> | ||
. | ||
</div> | ||
</p> | ||
</div> | ||
); | ||
|
||
const categoryOptions = [ | ||
{ | ||
title: "DevDAO Operations", | ||
value: "DevDAO Operations", | ||
}, | ||
{ | ||
title: "DevDAO Platform", | ||
value: "DevDAO Platform", | ||
}, | ||
{ | ||
title: "Events & Hackathons", | ||
value: "Events & Hackathons", | ||
}, | ||
{ | ||
title: "Engagement & Awareness", | ||
value: "Engagement & Awareness", | ||
}, | ||
{ | ||
title: "Decentralized DevRel", | ||
value: "Decentralized DevRel", | ||
}, | ||
{ | ||
title: "Universities & Bootcamps", | ||
value: "Universities & Bootcamps", | ||
}, | ||
{ | ||
title: "Tooling & Infrastructure", | ||
value: "Tooling & Infrastructure", | ||
}, | ||
{ | ||
title: "Other", | ||
value: "Other", | ||
}, | ||
]; | ||
|
||
return { | ||
contract: "devhub.near", | ||
proposalFeedIndexerQueryName: | ||
"polyprogrammist_near_devhub_prod_v1_proposals_with_latest_snapshot", | ||
indexerHasuraRole: "polyprogrammist_near", | ||
isDevhub: true, | ||
proposalFeedAnnouncement, | ||
availableCategoryOptions: categoryOptions, | ||
}; |
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 @@ | ||
const Theme = styled.div` | ||
--theme-color: rgb(4, 164, 110); | ||
`; | ||
|
||
return { Theme }; |
Oops, something went wrong.