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

v2.0.1 #395

Merged
merged 61 commits into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
5e326a9
Landing page (#290)
saadiqbal-dev May 16, 2024
af1bdd1
Ft: New `buildhub` app (#303)
Megha-Dev-19 May 17, 2024
942fdfb
Fix: builddao.testnet public key
elliotBraem May 17, 2024
64f6b0f
small change to trigger build
elliotBraem May 17, 2024
66a2d4f
small change to trigger build
elliotBraem May 17, 2024
07b8e9c
fix: gateway reference in testnet
elliotBraem May 17, 2024
6df0869
Fix notification issues (#304)
itexpert120 May 20, 2024
2b4cb90
Added commit modal bypass for all (#313)
Jikugodwill May 21, 2024
a351f1c
App.js formatting fix
itexpert120 May 21, 2024
d55b47b
Fix: Propose UI stuck partway through process (#302)
Eren-Yeaager May 21, 2024
0c95cab
Initialize with essential routes (#312)
itexpert120 May 21, 2024
31e50d4
Test button Fix (#315)
Eren-Yeaager May 21, 2024
d79a0af
rename vertical
elliotBraem May 22, 2024
aedce5b
fix codeowners
elliotBraem May 23, 2024
519a5a8
Projects feed new (#319)
itexpert120 May 27, 2024
82390ee
fix-network-links (#323)
Megha-Dev-19 May 27, 2024
f6ca536
Resource page new (#325)
saadiqbal-dev May 28, 2024
c83ead3
Remaining Projects Routes (#328)
itexpert120 May 30, 2024
3a628bd
Project-new (#329)
Jikugodwill May 30, 2024
c9f9baa
Navigation new (#331)
itexpert120 May 30, 2024
7feb01f
Notifications Page (#336)
saadiqbal-dev Jun 1, 2024
a9ee026
Tests for Login and Logout (#333)
Eren-Yeaager Jun 1, 2024
fe80a25
Resource page new (#335)
saadiqbal-dev Jun 1, 2024
f487e09
Move activity to new app pattern (#337)
itexpert120 Jun 3, 2024
ba97eef
Move create project to separate page, edit support and refactoring (#…
Megha-Dev-19 Jun 4, 2024
0fd04aa
Fixed task editor and minor UI updates (#339)
Megha-Dev-19 Jun 4, 2024
56033bc
Fix projects visibility on testnet (#342)
Megha-Dev-19 Jun 4, 2024
d6c7e27
Convert starredProjects to star (#346)
elliotBraem Jun 5, 2024
618174b
sets new index (#344)
elliotBraem Jun 5, 2024
0bd247c
yarn.lock
elliotBraem Jun 5, 2024
e710dc1
update bos-workspace
elliotBraem Jun 5, 2024
e854992
downgrade to .20
elliotBraem Jun 5, 2024
79368f6
latest
elliotBraem Jun 5, 2024
63b6889
bos-workspace no bos-cli
elliotBraem Jun 5, 2024
ff85ea5
Add feed to project page (#356)
itexpert120 Jun 6, 2024
b11bf24
Fix search in projects (#359)
itexpert120 Jun 6, 2024
29279bc
Project creation form fixes (#360)
itexpert120 Jun 10, 2024
c0d03ca
Fix projects bugs (#364)
Megha-Dev-19 Jun 10, 2024
c0f67fb
Add form bounty template
heroes-bounty[bot] Jun 10, 2024
fb22f21
Image uploader module (#361)
Eren-Yeaager Jun 11, 2024
eafe4a4
run prettier format on commit (#369)
Megha-Dev-19 Jun 11, 2024
801ad4b
Responsiveness and Adding Missing Pages (#365)
saadiqbal-dev Jun 11, 2024
1b5ef70
Fix red flashes, init to [] rather than {} and hide open roles (#370)
elliotBraem Jun 11, 2024
835abf6
Fix red flash (#371)
elliotBraem Jun 11, 2024
297fec3
Move proposals related files and fix notification roles selector (#377)
Megha-Dev-19 Jun 12, 2024
a456139
Fixes authentication tests (#381)
elliotBraem Jun 12, 2024
cd4c5ca
Refactors Project Card (#382)
elliotBraem Jun 13, 2024
7066d01
Landing Page Refactor (#383)
saadiqbal-dev Jun 14, 2024
9e615cd
Merge branch 'main' into develop
elliotBraem Jun 14, 2024
8d4f6c9
Upgrade the gateway to new app and some fixes (#386)
itexpert120 Jun 14, 2024
3c061fe
Merge branch 'main' into develop
Megha-Dev-19 Jun 14, 2024
c84758f
fmt
Megha-Dev-19 Jun 14, 2024
a3fcfda
Update release-new-mainnet.yml
elliotBraem Jun 14, 2024
8a412e9
Merge branch 'main' into develop
elliotBraem Jun 14, 2024
17a13c7
Login/Logout Page Update / Profile.Index Update (#389)
saadiqbal-dev Jun 14, 2024
b2812fa
fix landing page links (#394)
Megha-Dev-19 Jun 14, 2024
1491719
Merge branch 'main' into develop
elliotBraem Jun 15, 2024
5af5747
Defaults fallback for Object.keys (fix red flash on projects page) (#…
elliotBraem Jun 16, 2024
840e115
Ft: Project quick view (#388)
Megha-Dev-19 Jun 16, 2024
55b044b
fix potlock search (#397)
Megha-Dev-19 Jun 16, 2024
68bc23c
added changelog
Megha-Dev-19 Jun 16, 2024
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
70 changes: 64 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,78 @@
# Change Log

## Version v1.x.x - 2024-MM-DD
## Version v2.0.1 - 2024-06-16

### Features

- Enabled commit modal bypass. #260
- Login/Logout Page Update / Profile.Index Update by @saadiqbal-dev in https://github.com/NEARBuilders/gateway/pull/389
- Ft: Project quick view by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/388

### Bug Fixes

-
- Fix landing page links by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/394
- Defaults fallback for Object.keys (fix red flash on projects page) by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/396
- Fix potlock search by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/397

### Refactor and chores
## Version v2.0.0 - 2024-06-14

### Features

-
- Ability to delete events and more by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/201
- Updates meta tags by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/237
- Projects - Social DB Integration by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/238
- Convert app to use new app pattern by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/239
- Proposal Notifications support by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/167
- New app pattern by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/242
- Fixes pass props to join page for testnet login by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/243
- Update Project structure by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/245
- Fix/extra create projects UI by @Jikugodwill in https://github.com/NEARBuilders/gateway/pull/246
- Project Bug fixes by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/250
- Project Activity by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/251
- Projects by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/180
- Project bug fixes by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/256
- Ft: Logout by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/257
- Bug fixes by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/258
- Adds weekly promotion and code owners by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/261
- Remove Saad from CODEOWNERS by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/263
- Events Calendar White Theme by @saadiqbal-dev in https://github.com/NEARBuilders/gateway/pull/259
- Fix empty potlock projects by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/300
- Landing page by @saadiqbal-dev in https://github.com/NEARBuilders/gateway/pull/290
- Ft: New `buildhub` app by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/303
- Fix notification issues by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/304
- Added commit modal bypass for all by @Jikugodwill in https://github.com/NEARBuilders/gateway/pull/313
- Fix: Propose UI stuck partway through process by @Eren-Yeaager in https://github.com/NEARBuilders/gateway/pull/302
- Initialize with essential routes by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/312
- Test button Fix by @Eren-Yeaager in https://github.com/NEARBuilders/gateway/pull/315
- Projects feed new by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/319
- Fix network links by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/323
- Resource page new by @saadiqbal-dev in https://github.com/NEARBuilders/gateway/pull/325
- Remaining Projects Routes by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/328
- Project-new by @Jikugodwill in https://github.com/NEARBuilders/gateway/pull/329
- Navigation new by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/331
- Notifications Page by @saadiqbal-dev in https://github.com/NEARBuilders/gateway/pull/336
- Tests for Login and Logout by @Eren-Yeaager in https://github.com/NEARBuilders/gateway/pull/333
- Resource page new by @saadiqbal-dev in https://github.com/NEARBuilders/gateway/pull/335
- Move activity to new app pattern by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/337
- Move create project to separate page, edit support and refactoring by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/321
- Fixed task editor and minor UI updates by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/339
- Fix projects visibility on testnet by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/342
- Convert starredProjects to star by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/346
- Sets new index in gateway & uses ${config_index} by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/344
- Add feed to project page by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/356
- Fix search in projects by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/359
- Project creation form fixes by @itexpert120 in https://github.com/NEARBuilders/gateway/pull/360
- Fix projects bugs by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/364
- Image uploader module by @Eren-Yeaager in https://github.com/NEARBuilders/gateway/pull/361
- Run prettier format on commit by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/369
- Responsiveness and Adding Missing Pages by @saadiqbal-dev in https://github.com/NEARBuilders/gateway/pull/365
- Fix red flashes, init to [] rather than {} and hide open roles by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/370
- Fix red flash by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/371
- Move proposals related files and fix notification roles selector by @Megha-Dev-19 in https://github.com/NEARBuilders/gateway/pull/377
- Fixes authentication tests by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/381
- Refactors Project Card by @elliotBraem in https://github.com/NEARBuilders/gateway/pull/382
- Landing Page Refactor by @saadiqbal-dev in https://github.com/NEARBuilders/gateway/pull/383

## Version v1.0.0 - 2024-05-14
## Version v1.0.0 - 2024-03-14

### Features

Expand Down
6 changes: 3 additions & 3 deletions apps/new/widget/lib/projects.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const getTagsInArray = (tags) => {

const flattenObject = (obj, app, type) => {
const paths = [];
for (const key of Object.keys(obj)) {
const projects = Object.keys(obj?.[key]?.[app]?.[type] ?? {});
for (const key of Object.keys(obj || {})) {
const projects = Object.keys(obj?.[key]?.[app]?.[type] || {});
for (const project of projects) {
if (project && project.includes("_")) {
const convertedStr = project.replace(/_/g, "/");
Expand Down Expand Up @@ -57,7 +57,7 @@ const processData = (data, type) => {
type,
title: metadata.title,
metadata,
tags: getTagsInArray(metadata.tags) || [],
tags: getTagsInArray(metadata.tags || []),
collaborators: metadata.contributors,
projectID,
};
Expand Down
9 changes: 2 additions & 7 deletions apps/new/widget/page/home/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -777,15 +777,10 @@ const Hero = () => {
Designed to support builders in a multi-chain ecosystem.
</Subheading>
<div className="d-flex align-items-center gap-4 hero-btns">
<Button
className="hero-button"
href={`${context.account ? "${config_index}?page=projects" : "${alias_gateway_url}/join"}`}
>
<Button className="hero-button" href={"?page=projects&tab=editor"}>
Start Project
</Button>
<Button href="https://docs.near.org/build/near-components/dev-environment">
Explore Projects
</Button>
<Button href={"?page=projects"}>Explore Projects</Button>
</div>
</HeadingSection>
<CardSection>
Expand Down
174 changes: 174 additions & 0 deletions apps/new/widget/page/project/QuickView.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
const { Button } = VM.require("${alias_old}/widget/components") || {
Button: () => <></>,
};

const { href } = VM.require("${alias_old}/widget/lib.url") || {
href: () => {},
};

const showCanvas = props.showCanvas;
const onClose = props.onClose;
const project = props.project;
const { title, projectAccountId, description, linktree } = project;

const profile = {
name: title,
description: description,
linktree: linktree,
backgroundImage: project.backgroundImage?.image ?? project.backgroundImage,
image: project.profileImage?.image ?? project.profileImage,
};

const Container = styled.div`
.offcanvas.offcanvas-end {
width: 60% !important;
}

.close {
position: absolute !important;
top: 1rem;
left: -3rem;
}

@media screen and (max-width: 1200px) {
.offcanvas.offcanvas-end {
width: 70% !important;
}
}

@media screen and (max-width: 768px) {
.offcanvas.offcanvas-end {
width: 100% !important;
}

.close {
position: relative !important;
top: 1rem;
left: 0rem;
padding: 0.5rem;
display: flex;
justify-content: end;
}
}

.profile-card {
background-color: #161616;
}

.text-yellow {
color: #eca227;
}

.offcanvas {
border-top-left-radius: 1rem !important;
border-bottom-left-radius: 1rem !important;
}
`;

const BackgroundImage = styled.div`
img {
height: 252px;
}

@media screen and (max-width: 768px) {
img {
height: 126px;
}
}
`;

const id = `${project.accountId}/project/${project.projectID}`;

return (
<Container>
<div
className={`offcanvas offcanvas-end ${showCanvas ? "show" : ""}`}
tabIndex="-1"
data-bs-scroll="false"
data-bs-backdrop="true"
>
<div class="close cursor" onClick={onClose}>
<div className="d-block d-md-none">
<i class="bi bi-x-circle h3"></i>
</div>

<img
className="d-none d-md-block"
height={40}
src="https://ipfs.near.social/ipfs/bafkreiawbtdt3245gggyeszp7zmslrsdvpre6nom5lb3kcx64x45fa53yu"
/>
</div>
<div class="offcanvas-body d-flex flex-column gap-4">
<BackgroundImage>
{profile.backgroundImage && (
<Widget
loading=""
src="${alias_mob}/widget/Image"
props={{
image: profile.backgroundImage,
alt: "profile background",
className: "w-100",
style: { objectFit: "cover", left: 0, top: 0 },
fallbackUrl:
"https://ipfs.near.social/ipfs/bafkreifn654yar6dv4ztyijkag3lgh274iqfajgjhvnny6gv22pkkhxllm",
}}
/>
)}
</BackgroundImage>
<div className="profile-card p-3 d-flex gap-4 align-items-center rounded-3 justify-content-between">
<div className="d-flex gap-4 align-items-center">
<Widget
loading=""
src="${alias_mob}/widget/Image"
props={{
image: profile.image,
alt: "profile image",
style: {
objectFit: "cover",
left: 0,
top: 0,
height: 60,
borderRadius: "50%",
},
fallbackUrl:
"https://ipfs.near.social/ipfs/bafkreibmiy4ozblcgv3fm3gc6q62s55em33vconbavfd2ekkuliznaq3zm",
}}
/>
<div>
<h5 className="mb-0">{title}</h5>
<div className="text-yellow text-sm">@{projectAccountId}</div>
</div>
</div>
<Widget
src="${alias_old}/widget/components.profile.Linktree"
loading=""
props={{
profile,
}}
/>
</div>

<Widget
src="${config_account}/widget/page.project.tabs.Overview"
loading=""
props={{
id: id,
}}
/>
<Button
variant="primary"
href={href({
widgetSrc: `${config_index}`,
params: {
page: "project",
id,
tab: "overview",
},
})}
>
See Project Page
</Button>
</div>
</div>
</Container>
);
Loading
Loading