Skip to content

Commit

Permalink
Upgrade the gateway to new app and some fixes (To main) (#387)
Browse files Browse the repository at this point in the history
* Landing page (#290)

* Add new landing page

* Use new landing page

---------

Co-authored-by: Zeeshan Ahmad <itexpert120@outlook.com>

* Ft: New `buildhub` app (#303)

* renamed new folder to `buildhub`

* added github job

* added mainnet job

* prettier update

* set new and old

---------

Co-authored-by: Elliot Braem <16282460+elliotBraem@users.noreply.github.com>

* Fix: builddao.testnet public key

* small change to trigger build

* small change to trigger build

* fix: gateway reference in testnet

* Fix notification issues (#304)

* Fix notifications count not resetting

* Supress console.logs

* Fix black background on notifications page

* Revert changes to post and comment

* Remove console logs and navbar from viewer for now

* Remove white bg

* Added commit modal bypass for all (#313)

* Added commit modal bypass for all

* Removed injectedConfig

* clean features

* changelog

---------

Co-authored-by: Elliot Braem <16282460+elliotBraem@users.noreply.github.com>

* App.js formatting fix

* Fix: Propose UI stuck partway through process (#302)

* Bug Fix 244

* "cleanup"

* New modal design implementation

* new-changes

* refactored code

* resolved comments

* latest-changes

* Initialize with essential routes (#312)

* Initialize with essential routes

* Move home to /page

* Add navbar

* Add footer to all pages

* Fix fmt?

* fix links

---------

Co-authored-by: Megha-Dev-19 <100185149+Megha-Dev-19@users.noreply.github.com>
Co-authored-by: Elliot Braem <16282460+elliotBraem@users.noreply.github.com>

* Test button Fix (#315)

* test-btn-fix

* toggle gateway urls

* New changes in design implemented

* Network button implementation

* rename vertical

* fix codeowners

* Projects feed new (#319)

* Sidebar

* Initialize Projects page

* Add CSS file

* Align projects page with new design

* Rename to kebab case

* Align card design with new figma

* Add List view

* 100vh height

* New projects feed updates & organization (#320)

* reorganizing

* formatting

* adds label

* Shift to pascal case

* Add state for projects view

* Rename folder structure

* Fix links

* Resolve comments

---------

Co-authored-by: Elliot Braem <16282460+elliotBraem@users.noreply.github.com>

* fix-network-links (#323)

* Resource page new (#325)

* Resources Page V0

* Resources Page V0 cleanup

* Header Removed

* Remaining Projects Routes (#328)

* Project Routes

* Refactor StarProjects

* Use star app logic for handling starring projects

* Resolve comments

* Project-new (#329)

* Remove "Error" from project-data helper

* Added route to index page for Project

* Created layout

* Added this to store entire project details with it's layout

* Added changes to index file

* Added overview

* Added Metadata

* Added activity and updated links

* Updated link to project details

* Used recent falbackUrl

* Added new fallbackUrl

* Updated links back to "projects"

* Added the rest of the pages and retructured project component

* Rearranged folder structure

* renamed routes to meet

* Prettier

* Fixed link to Metadata

* Navigation new (#331)

* Move navbar to new app and fix default route for sidebar

* Navbar changes to adapt to new style

* Revert some changes for now

* Add activity page

* Notifications Page (#336)

* Notifications Page

* Notifications Items fix

* Comments Resolved

* Tests for Login and Logout (#333)

* test-btn-fix

* toggle gateway urls

* New changes in design implemented

* Network button implementation

* Login and Logout tests

* Resource page new (#335)

* Resources Page V0

* Resources Page V0 cleanup

* Header Removed

* Adding new resources

* Move activity to new app pattern (#337)

* Move create project to separate page, edit support and refactoring (#321)

* moved create project to page, added roles and edit support

* show success modal after project is created

* fmt

* rebased and added reusable view container

* bug fixes

* add logs

* css update

* update login container css

* Fixed task editor and minor UI updates (#339)

* fixed task editor

* remove logs

* fmt

* Fix projects visibility on testnet (#342)

* Fix projects visibility

* fmt

* Convert starredProjects to star (#346)

* convert starredProjects to star

* notify account

* fmt

---------

Co-authored-by: Megha-Dev-19 <100185149+Megha-Dev-19@users.noreply.github.com>

* sets new index (#344)

* yarn.lock

* update bos-workspace

* downgrade to .20

* latest

* bos-workspace no bos-cli

* Add feed to project page (#356)

* Add feed to project page

* Change editor

* resolve comments

* Resolve comment

* use config_index

---------

Co-authored-by: Megha <100185149+Megha-Dev-19@users.noreply.github.com>

* Fix search in projects (#359)

* Project creation form fixes (#360)

* Add indicators for required fields

* Add prefix to inputfield

* Align typeahead with our input field style

* Resolve commits

* Fix projects bugs (#364)

* fix tags structure

* added border and error state

* add border to list card

* add autocomplete to projects

* fmt

---------

Co-authored-by: Elliot Braem <16282460+elliotBraem@users.noreply.github.com>

* Add form bounty template

* Image uploader module (#361)

* test-btn-fix

* toggle gateway urls

* New changes in design implemented

* Network button implementation

* Login and Logout tests

* Image Uploader module

* Implemented Files component

* run prettier format on commit (#369)

* Responsiveness and Adding Missing Pages (#365)

* Landing Page Update 3.0

* Responsiveness

* Add Inspect and Profile Page to new app

* Comments Resolved

* update yarn

* Fix red flashes, init to [] rather than {} and hide open roles (#370)

* fix red flashes, init to [] rather than {} and hide open roles

* fix formatting

* Fix red flash (#371)

* fix red flashes, init to [] rather than {} and hide open roles

* fix formatting

* default empty array

* Move proposals related files and fix notification roles selector (#377)

* move proposals related files

* minor fixes

* fix pre-commit command

* Fixes authentication tests (#381)

* remove Dummy

* cleans up auth tests

* fmt

* Refactors Project Card (#382)

* remove Dummy

* cleans up auth tests

* fmt

* tests to validate navigation

* combines and replaces two cards

* fmt

* Landing Page Refactor (#383)

* Landing Page Update 4.0

* URL Update

* fix links

* fmt

---------

Co-authored-by: Elliot Braem <16282460+elliotBraem@users.noreply.github.com>

* Upgrade the gateway to new app and some fixes (#386)

* Upgrade the gateway to new app and some fixes

* Fix project card

* fmt

---------

Co-authored-by: Muhammad Saad Iqbal <saadiqbal.dev@outlook.com>
Co-authored-by: Zeeshan Ahmad <itexpert120@outlook.com>
Co-authored-by: Elliot Braem <16282460+elliotBraem@users.noreply.github.com>
Co-authored-by: Jiku Godwill Nsanwi <65053264+Jikugodwill@users.noreply.github.com>
Co-authored-by: Marpureddy Saswat <91129111+Eren-Yeaager@users.noreply.github.com>
Co-authored-by: heroes-bounty[bot] <167169790+heroes-bounty[bot]@users.noreply.github.com>
  • Loading branch information
7 people authored Jun 14, 2024
1 parent bf1196c commit 8a8d074
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 5 deletions.
8 changes: 8 additions & 0 deletions apps/new/widget/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ const config = {
},
hide: true,
},
profile: {
path: "${config_account}/widget/page.profile.Index",
blockHeight: "final",
init: {
name: "Profile",
},
hide: true,
},
},
},
};
Expand Down
4 changes: 4 additions & 0 deletions apps/new/widget/components/project/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const { ProfileImages } = VM.require(
ProfileImages: () => <></>,
};

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

const StyledCard = styled.div`
border-radius: 16px;
background: var(--bg-2, #23242b);
Expand Down
4 changes: 2 additions & 2 deletions apps/new/widget/page/home/Build.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ const Build = () => {
<GettingStarted>
<p>Getting Started</p>
<Button
className="rounded-2 gap-2"
className="rounded-2 gap-2 p-3"
style={{
minWidth: "fit-content",
}}
Expand All @@ -304,7 +304,7 @@ const Build = () => {
<LearnMore>
<p>Learn More</p>
<Button
className="rounded-2 gap-2"
className="rounded-2 gap-2 p-3"
style={{
minWidth: "fit-content",
}}
Expand Down
3 changes: 3 additions & 0 deletions apps/new/widget/page/home/hero/SocialGraph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ const code = `
height: 95vh;
width: 100%;
}
#graph {
background: #1e1e1e;
}
</style>
<script>
Expand Down
45 changes: 44 additions & 1 deletion apps/new/widget/page/profile/Index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
const accountId = props.accountId ?? context.accountId;

if (!accountId) {
return "AccountID prop or signed in account is required";
}

const profile = Social.getr(`${accountId}/profile`);

const ProfileContainer = styled.div`
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 1rem;
@media screen and (max-width: 768px) {
display: flex;
flex-direction: column;
}
`;

const SideContainer = styled.div`
grid-column: span 2 / span 1;
`;

const MainContainer = styled.div`
grid-column: span 4 / span 4;
`;

return (
<div className="container-xl mt-3">
<Widget src="${config_account}/widget/Profile" loading="" props={props} />
<ProfileContainer>
<SideContainer>
<Widget
src="${alias_old}/widget/components.profile.ProfileInfo"
props={{ accountId }}
/>
</SideContainer>
<MainContainer>
<Widget
src="${alias_old}/widget/components.profile.ProfileTabs"
props={{
accountId,
profile,
}}
/>
</MainContainer>
</ProfileContainer>
</div>
);
2 changes: 1 addition & 1 deletion apps/old/widget/components/buttons/UserDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ return (
className="dropdown-item"
type="button"
to={href({
widgetSrc: "${config_account}/widget/app",
widgetSrc: "${alias_new}/widget/Index",
params: {
page: "profile",
accountId: context.accountId,
Expand Down
2 changes: 1 addition & 1 deletion src/data/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const TestnetWidgets = {
};

const MainnetWidgets = {
default: "buildhub.near/widget/app",
default: "builddao.near/widget/Index",
login: "buildhub.near/widget/login",
logout: "buildhub.near/widget/logout",
trialAccountBanner: "buildhub.near/widget/TrialAccountBanner",
Expand Down

0 comments on commit 8a8d074

Please sign in to comment.