Skip to content

Commit

Permalink
v2.0.3 (#447)
Browse files Browse the repository at this point in the history
* Fixes git history (#429) (#430)

* Landing page (#290)

* Add new landing page

* Use new landing page

---------



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

* renamed new folder to `buildhub`

* added github job

* added mainnet job

* prettier update

* set new and old

---------



* 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

---------



* 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

---------




* 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

---------



* 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

---------



* 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

---------



* 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

---------



* 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

---------



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

* Upgrade the gateway to new app and some fixes

* Fix project card

* fmt

* Update release-new-mainnet.yml

* Login/Logout Page Update / Profile.Index Update (#389)

* Landing Page Update 4.0

* URL Update

* Login Logout Page Design Update

* fix conflict

* fix links for signin, signout

---------



* fix landing page links (#394)

* Defaults fallback for Object.keys (fix red flash on projects page) (#396)

* increment

* adds fallbacks

* fmt

* Ft: Project quick view (#388)

* added canvas

* add UI

* css update

* fix tests and add mobile responsiveness

* fix potlock search (#397)

* added changelog

* Fix project creation w/ tests (#402)

* init tests

* fmt

* rename test

* fmt

* clean test

* formatting

* working as-is test

* fmt

* fix upload image

* fmt

* complete editor tests

* projects tests

* fmt

* remove unused

* Add resources tests (#425)

* Add resources tests

* Resolve comments

* Delete project (#417)

* added delete project

* Fix project creation w/ tests (#402)

* init tests

* fmt

* rename test

* fmt

* clean test

* formatting

* working as-is test

* fmt

* fix upload image

* fmt

* complete editor tests

* projects tests

* fmt

* remove unused

* added delete project

* added delete project test

* add edit project test

* fix tests

* added delete project test

* add edit project test

* fix tests

---------



* Landing page regression tests (#416)

* test-btn-fix

* toggle gateway urls

* New changes in design implemented

* Network button implementation

* Login and Logout tests

* Image Uploader module

* Implemented Files component

* lp-reg-tests

* start project and explore projects changes in redirection

* added the assertion for login and changed the structure

* added wait

* connect-btn-test-fix

* added wait for create project title

---------



* fix transfer proposal (#427)

* Navbar reg tests (#424)

* test-btn-fix

* toggle gateway urls

* New changes in design implemented

* Network button implementation

* Login and Logout tests

* Image Uploader module

* Implemented Files component

* lp-reg-tests

* start project and explore projects changes in redirection

* added the assertion for login and changed the structure

* added wait

* connect-btn-test-fix

* added wait for create project title

* navbar-reg-tests

* added page visiblity assertions

* fixed source btn locator

---------



* Fix overflow activity feed (#420)

* Fix overflow activity feed

* Sidebar style update

* Move fix to CSS

* increment version

---------

Co-authored-by: Muhammad Saad Iqbal <[email protected]>
Co-authored-by: Zeeshan Ahmad <[email protected]>
Co-authored-by: Megha-Dev-19 <[email protected]>
Co-authored-by: Jiku Godwill Nsanwi <[email protected]>
Co-authored-by: Marpureddy Saswat <[email protected]>
Co-authored-by: heroes-bounty[bot] <167169790+heroes-bounty[bot]@users.noreply.github.com>

* Fixes git history (#429)

* Landing page (#290)

* Add new landing page

* Use new landing page

---------

Co-authored-by: Zeeshan Ahmad <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Elliot Braem <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

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

* Upgrade the gateway to new app and some fixes

* Fix project card

* fmt

* Update release-new-mainnet.yml

* Login/Logout Page Update / Profile.Index Update (#389)

* Landing Page Update 4.0

* URL Update

* Login Logout Page Design Update

* fix conflict

* fix links for signin, signout

---------

Co-authored-by: Elliot Braem <[email protected]>

* fix landing page links (#394)

* Defaults fallback for Object.keys (fix red flash on projects page) (#396)

* increment

* adds fallbacks

* fmt

* Ft: Project quick view (#388)

* added canvas

* add UI

* css update

* fix tests and add mobile responsiveness

* fix potlock search (#397)

* added changelog

* Fix project creation w/ tests (#402)

* init tests

* fmt

* rename test

* fmt

* clean test

* formatting

* working as-is test

* fmt

* fix upload image

* fmt

* complete editor tests

* projects tests

* fmt

* remove unused

* Add resources tests (#425)

* Add resources tests

* Resolve comments

* Delete project (#417)

* added delete project

* Fix project creation w/ tests (#402)

* init tests

* fmt

* rename test

* fmt

* clean test

* formatting

* working as-is test

* fmt

* fix upload image

* fmt

* complete editor tests

* projects tests

* fmt

* remove unused

* added delete project

* added delete project test

* add edit project test

* fix tests

* added delete project test

* add edit project test

* fix tests

---------

Co-authored-by: Elliot Braem <[email protected]>

* Landing page regression tests (#416)

* test-btn-fix

* toggle gateway urls

* New changes in design implemented

* Network button implementation

* Login and Logout tests

* Image Uploader module

* Implemented Files component

* lp-reg-tests

* start project and explore projects changes in redirection

* added the assertion for login and changed the structure

* added wait

* connect-btn-test-fix

* added wait for create project title

---------

Co-authored-by: Elliot Braem <[email protected]>

* fix transfer proposal (#427)

* Navbar reg tests (#424)

* test-btn-fix

* toggle gateway urls

* New changes in design implemented

* Network button implementation

* Login and Logout tests

* Image Uploader module

* Implemented Files component

* lp-reg-tests

* start project and explore projects changes in redirection

* added the assertion for login and changed the structure

* added wait

* connect-btn-test-fix

* added wait for create project title

* navbar-reg-tests

* added page visiblity assertions

* fixed source btn locator

---------

Co-authored-by: Elliot Braem <[email protected]>

* Fix overflow activity feed (#420)

* Fix overflow activity feed

* Sidebar style update

* Move fix to CSS

* increment version

---------

Co-authored-by: Muhammad Saad Iqbal <[email protected]>
Co-authored-by: Zeeshan Ahmad <[email protected]>
Co-authored-by: Megha-Dev-19 <[email protected]>
Co-authored-by: Jiku Godwill Nsanwi <[email protected]>
Co-authored-by: Marpureddy Saswat <[email protected]>
Co-authored-by: heroes-bounty[bot] <167169790+heroes-bounty[bot]@users.noreply.github.com>

* Fixes git history (#429) (#430)

* Landing page (#290)

* Add new landing page

* Use new landing page

---------



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

* renamed new folder to `buildhub`

* added github job

* added mainnet job

* prettier update

* set new and old

---------



* 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

---------



* 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

---------




* 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

---------



* 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

---------



* 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

---------



* 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

---------



* 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

---------



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

* Upgrade the gateway to new app and some fixes

* Fix project card

* fmt

* Update release-new-mainnet.yml

* Login/Logout Page Update / Profile.Index Update (#389)

* Landing Page Update 4.0

* URL Update

* Login Logout Page Design Update

* fix conflict

* fix links for signin, signout

---------



* fix landing page links (#394)

* Defaults fallback for Object.keys (fix red flash on projects page) (#396)

* increment

* adds fallbacks

* fmt

* Ft: Project quick view (#388)

* added canvas

* add UI

* css update

* fix tests and add mobile responsiveness

* fix potlock search (#397)

* added changelog

* Fix project creation w/ tests (#402)

* init tests

* fmt

* rename test

* fmt

* clean test

* formatting

* working as-is test

* fmt

* fix upload image

* fmt

* complete editor tests

* projects tests

* fmt

* remove unused

* Add resources tests (#425)

* Add resources tests

* Resolve comments

* Delete project (#417)

* added delete project

* Fix project creation w/ tests (#402)

* init tests

* fmt

* rename test

* fmt

* clean test

* formatting

* working as-is test

* fmt

* fix upload image

* fmt

* complete editor tests

* projects tests

* fmt

* remove unused

* added delete project

* added delete project test

* add edit project test

* fix tests

* added delete project test

* add edit project test

* fix tests

---------



* Landing page regression tests (#416)

* test-btn-fix

* toggle gateway urls

* New changes in design implemented

* Network button implementation

* Login and Logout tests

* Image Uploader module

* Implemented Files component

* lp-reg-tests

* start project and explore projects changes in redirection

* added the assertion for login and changed the structure

* added wait

* connect-btn-test-fix

* added wait for create project title

---------



* fix transfer proposal (#427)

* Navbar reg tests (#424)

* test-btn-fix

* toggle gateway urls

* New changes in design implemented

* Network button implementation

* Login and Logout tests

* Image Uploader module

* Implemented Files component

* lp-reg-tests

* start project and explore projects changes in redirection

* added the assertion for login and changed the structure

* added wait

* connect-btn-test-fix

* added wait for create project title

* navbar-reg-tests

* added page visiblity assertions

* fixed source btn locator

---------



* Fix overflow activity feed (#420)

* Fix overflow activity feed

* Sidebar style update

* Move fix to CSS

* increment version

---------

Co-authored-by: Muhammad Saad Iqbal <[email protected]>
Co-authored-by: Zeeshan Ahmad <[email protected]>
Co-authored-by: Megha-Dev-19 <[email protected]>
Co-authored-by: Jiku Godwill Nsanwi <[email protected]>
Co-authored-by: Marpureddy Saswat <[email protected]>
Co-authored-by: heroes-bounty[bot] <167169790+heroes-bounty[bot]@users.noreply.github.com>

* Fix profile editor not showing for new accounts (#436)

* Adds back missing landing page tests (#440)

* adds landing page tests

* fmt

* Playwright Tests - Profile Page (#439)

* Add Profile Tests

* fmt

* Add profile tests

* Comments Resolved

* Update playwright-tests/tests/profile.spec.js

Co-authored-by: Megha <[email protected]>

* Update playwright-tests/tests/profile.spec.js

Co-authored-by: Megha <[email protected]>

* Update playwright-tests/tests/profile.spec.js

Co-authored-by: Megha <[email protected]>

* Update playwright-tests/tests/profile.spec.js

Co-authored-by: Megha <[email protected]>

* clean up

* fix mock

---------

Co-authored-by: Elliot Braem <[email protected]>
Co-authored-by: Megha <[email protected]>

* Projects test coverage (#422)

* add search, filter, watchlist, involved projects view

* fix tests

* fix tests

* add back some tests

* Added styles to handle fullscreen on near.social and properly display on near.org as well (#441)

* Added styles to handle fullscreen on near.social and properly display on near.org as well

* fix tests

* Added fix for everthing gateway as well

* fmt

---------

Co-authored-by: Megha-Dev-19 <[email protected]>

* added tests for project view (#444)

* fix social media navigation, and update tests (#445)

* fix potlock import test (#446)

* fix padding issue (#448)

* fix: gateway url, swap

* fmt

---------

Co-authored-by: Elliot Braem <[email protected]>
Co-authored-by: Muhammad Saad Iqbal <[email protected]>
Co-authored-by: Zeeshan Ahmad <[email protected]>
Co-authored-by: Megha-Dev-19 <[email protected]>
Co-authored-by: Jiku Godwill Nsanwi <[email protected]>
Co-authored-by: Marpureddy Saswat <[email protected]>
Co-authored-by: heroes-bounty[bot] <167169790+heroes-bounty[bot]@users.noreply.github.com>
  • Loading branch information
8 people authored Jun 25, 2024
1 parent 61a3fdc commit 3d695b5
Show file tree
Hide file tree
Showing 21 changed files with 1,044 additions and 229 deletions.
3 changes: 2 additions & 1 deletion aliases.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"socialdb": "social.near",
"gateway_url": "https://nearbuilders.org",
"new": "builddao.near",
"old": "buildhub.near"
"old": "buildhub.near",
"potlock": "potlock.near"
}
3 changes: 2 additions & 1 deletion aliases.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"socialdb": "v1.social08.testnet",
"gateway_url": "https://test.nearbuilders.org",
"new": "builddao.testnet",
"old": "buildhub.testnet"
"old": "buildhub.testnet",
"potlock": "potlock.testnet"
}
24 changes: 21 additions & 3 deletions apps/new/widget/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ const { Footer } = VM.require("${config_account}/widget/components.Footer") || {
Footer: () => <></>,
};

const { isNearSocial } = VM.require("${alias_new}/widget/lib.gateway") || {
isNearSocial: false,
};

const Container = isNearSocial
? styled.div`
position: fixed;
inset: 73px 0px 0px;
width: 100%;
overflow-y: scroll;
height: 100%;
`
: styled.div`
width: 100%;
`;

const config = {
theme: {},
layout: {
Expand Down Expand Up @@ -111,7 +127,9 @@ const config = {
};

return (
<CSS>
<Widget src="${alias_old}/widget/app.view" props={{ config, ...props }} />
</CSS>
<Container>
<CSS>
<Widget src="${alias_old}/widget/app.view" props={{ config, ...props }} />
</CSS>
</Container>
);
6 changes: 6 additions & 0 deletions apps/new/widget/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,12 @@ const Footer = () => {
<p>Dive deeper BuildDAO</p>
<SocialIcons>
<Button
noLink={true}
type="icon"
style={{
borderRadius: "30%",
}}
target="_blank"
href="https://x.com/NearBuilders"
>
<svg
Expand All @@ -194,7 +196,9 @@ const Footer = () => {
</svg>
</Button>
<Button
noLink={true}
type="icon"
target="_blank"
style={{
borderRadius: "30%",
}}
Expand All @@ -217,6 +221,8 @@ const Footer = () => {
</svg>
</Button>
<Button
noLink={true}
target="_blank"
type="icon"
style={{
borderRadius: "30%",
Expand Down
1 change: 1 addition & 0 deletions apps/new/widget/components/project/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const EditButton = ({ item }) => {
id: item.path,
},
})}
onClick={(e) => e.stopPropagation()}
type="icon"
className={"rounded-3"}
variant="primary"
Expand Down
98 changes: 98 additions & 0 deletions apps/new/widget/components/project/ProfileCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
const MutedText = styled.span`
color: #818181;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 20px; /* 125% */
`;

const AccountName = styled.span`
color: #818181;
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 20px;
max-width: 30ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`;

const ProfileCard = (props) => {
const accountId = props.accountId ?? context.accountId;
const link = props.link ?? true;
// const hideAccountId = props.hideAccountId;
// const hideName = props.hideName;
const hideImage = props.hideImage;
const iconOnly = props.iconOnly;
const openLinkInNewTab = props.openLinkInNewTab ?? false;

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

const name = profile.name ?? accountId;
const title = props.title ?? `${name} @${accountId}`;
const tooltip =
props.tooltip && (props.tooltip === true ? title : props.tooltip);

let inner = (
<div className="d-flex flex-row justify-content-center align-items-center">
{!hideImage && (
<Widget
key="image"
src="${alias_mob}/widget/ProfileImage"
props={{
style: { width: "2.5em", height: "2.5em", marginRight: "0.3em" },
profile,
accountId,
className: "d-inline-block flex-shrink-0",
imageClassName: "rounded-circle w-100 h-100 align-top",
}}
/>
)}
{!iconOnly && (
<div className="d-flex flex-column gap-1">
<AccountName key="accountName">{name}</AccountName>
<AccountName key="accountId">@{accountId}</AccountName>
</div>
)}
</div>
);

inner = link ? (
<a
href={
link !== true
? link
: `/${REPL_MOB}/widget/ProfilePage?accountId=${accountId}`
}
target={openLinkInNewTab ? "_blank" : ""}
rel="noopener noreferrer"
className="link-dark text-truncate d-inline-flex"
>
{inner}
</a>
) : (
<span className="text-truncate d-inline-flex">{inner}</span>
);

if (props.tooltip === true) {
return (
<Widget
src="${REPL_MOB}/widget/Profile.OverlayTrigger"
props={{ accountId, children: inner }}
/>
);
}
if (tooltip) {
inner = (
<OverlayTrigger placement="auto" overlay={<Tooltip>{tooltip}</Tooltip>}>
{inner}
</OverlayTrigger>
);
}
return <div className="d-flex flex-row align-items-center">{inner}</div>;
};

return ProfileCard(props);
6 changes: 6 additions & 0 deletions apps/new/widget/lib/gateway.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const data = fetch(`https://httpbin.org/headers`);
const gatewayOrigin = data?.body?.headers?.Origin ?? "";

const isNearSocial = gatewayOrigin.includes("near.social");

return { isNearSocial, gatewayOrigin };
5 changes: 5 additions & 0 deletions apps/new/widget/page/project/QuickView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const { href } = VM.require("${alias_old}/widget/lib.url") || {
href: () => {},
};

const { isNearSocial } = VM.require("${alias_new}/widget/lib.gateway") || {
isNearSocial: false,
};

const showCanvas = props.showCanvas;
const onClose = props.onClose;
const project = props.project;
Expand Down Expand Up @@ -86,6 +90,7 @@ return (
tabIndex="-1"
data-bs-scroll="false"
data-bs-backdrop="true"
style={{ top: isNearSocial ? "73px" : "0px" }}
>
<div class="close cursor" onClick={onClose}>
<div className="d-block d-md-none">
Expand Down
2 changes: 2 additions & 0 deletions apps/new/widget/page/project/TaskEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const task = props.task;
const onEditTask = props.onEditTask;
const onAddTask = props.onAddTask;
const project = props.project;
const isEditTask = props.isEditTask;

const [taskDetail, setTaskDetail] = useState(task);

Expand Down Expand Up @@ -136,6 +137,7 @@ return (
list: [...(taskDetail.list ?? []), { ...listItem }],
})
}
data-testid="add-task-item"
>
<i class="bi bi-plus-circle h5 pointer"></i>
</div>
Expand Down
4 changes: 3 additions & 1 deletion apps/new/widget/page/project/tabs/Task.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ const DropdownMenu = ({ columnTitle, item, index, changeStatusOptions }) => {
onBlur={() => handleDropdownToggle(columnTitle, index, false)}
>
<div
data-testid="task-dropdown"
data-bs-toggle="dropdown"
aria-expanded="false"
onClick={() => {
Expand Down Expand Up @@ -479,6 +480,7 @@ const AddTaskModal = useMemo(() => {
src="${config_account}/widget/page.project.TaskEditor"
props={{
showAddTaskModal: showAddTaskModal,
isEditTask: isEditTask,
task: taskDetail,
onEditTask: onEditTask,
onAddTask: onAddTask,
Expand Down Expand Up @@ -526,7 +528,7 @@ const ViewTaskModal = () => {
<div className="assignee-item" key={index}>
<Widget
src={
"devhub.near/widget/devhub.components.molecule.ProfileCard"
"${config_account}/widget/components.project.ProfileCard"
}
props={{
accountId: assignee,
Expand Down
5 changes: 4 additions & 1 deletion apps/new/widget/page/projects/MainViewContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ const ProjectCardWrapper = ({ children, project }) => {
return (
<div
className="cursor d-flex flex-1"
onClick={() => setShowQuickView(project)}
onClick={(e) => {
e.stopPropagation();
setShowQuickView(project);
}}
>
{children}
</div>
Expand Down
4 changes: 2 additions & 2 deletions apps/new/widget/page/projects/PotlockImport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ const { Button } = VM.require("${alias_old}/widget/components") || {
Button: () => <></>,
};
const { getTagsFromSocialProfileData, getTeamMembersFromSocialProfileData } =
VM.require("potlock.near/widget/utils") || {
VM.require("${alias_potlock}/widget/utils") || {
getTagsFromSocialProfileData: () => [],
getTeamMembersFromSocialProfileData: () => [],
};

const bootstrapTheme = props.bootstrapTheme || "dark";

let ListsSDK =
VM.require("potlock.near/widget/SDK.lists") ||
VM.require("${alias_potlock}/widget/SDK.lists") ||
(() => ({
getRegistrations: () => {},
}));
Expand Down
17 changes: 10 additions & 7 deletions apps/new/widget/page/projects/PotlockProjectCard.jsx
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
const { potId, potDetail, payoutDetails, projects } = props;
const { nearToUsd, ipfsUrlFromCid, yoctosToNear, yoctosToUsdWithFallback } =
VM.require("potlock.near/widget/utils") || {
VM.require("${alias_potlock}/widget/utils") || {
ipfsUrlFromCid: () => "",
yoctosToNear: () => "",
yoctosToUsdWithFallback: () => "",
nearToUsd: 1,
};

const { _address } = VM.require(
`potlock.near/widget/Components.DonorsUtils`,
"${alias_potlock}/widget/Components.DonorsUtils",
) || {
_address: (address) => address,
};

const { ownerId, NADA_BOT_URL, SUPPORTED_FTS } = VM.require(
"potlock.near/widget/constants",
"${alias_potlock}/widget/constants",
) || {
ownerId: "",
NADA_BOT_URL: "",
SUPPORTED_FTS: {},
};
const { getTagsFromSocialProfileData } = VM.require(
"potlock.near/widget/utils",
"${alias_potlock}/widget/utils",
) || {
getTagsFromSocialProfileData: () => [],
};

const PotSDK = VM.require("potlock.near/widget/SDK.pot") || {
const PotSDK = VM.require("${alias_potlock}/widget/SDK.pot") || {
getDonationsForProject: () => {},
};

let DonateSDK =
VM.require("potlock.near/widget/SDK.donate") ||
VM.require("${alias_potlock}/widget/SDK.donate") ||
(() => ({
getDonationsForRecipient: () => {},
}));
Expand Down Expand Up @@ -363,7 +363,10 @@ const profileImageStyle = {
const tags = getTagsFromSocialProfileData(profile);

return (
<div onClick={() => props.setShowCreateModalProjectId(projectId)}>
<div
data-testid="potlock-card"
onClick={() => props.setShowCreateModalProjectId(projectId)}
>
<Card>
<HeaderContainer className="pt-0 position-relative">
<BackgroundImageContainer>
Expand Down
2 changes: 2 additions & 0 deletions apps/old/widget/components/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function Button({
className={linkClassName}
style={{ textDecoration: "none" }}
target={target}
onClick={(e) => e.stopPropagation()}
>
<StyledButton
id={id}
Expand All @@ -128,6 +129,7 @@ function Button({
className={linkClassName}
style={{ textDecoration: "none" }}
target={target}
onClick={(e) => e.stopPropagation()}
>
<StyledButton
id={id}
Expand Down
4 changes: 0 additions & 4 deletions apps/old/widget/components/profile/ProfileEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ if (!accountId) {

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

if (!profile) {
return "";
}

const [name, setName] = useState(profile.name ?? "");
const [description, setDescription] = useState(profile.description ?? "");
const [location, setLocation] = useState(profile.location ?? "");
Expand Down
2 changes: 1 addition & 1 deletion apps/old/widget/components/project/page/Task.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ const ViewTaskModal = () => {
<div className="assignee-item" key={index}>
<Widget
src={
"devhub.near/widget/devhub.components.molecule.ProfileCard"
"${config_account}/widget/components.project.ProfileCard"
}
props={{
accountId: assignee,
Expand Down
Loading

0 comments on commit 3d695b5

Please sign in to comment.