Skip to content

Commit

Permalink
weekly promotion of develop to main (#473)
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 <saadiqbal.dev@outlook.com>
Co-authored-by: Zeeshan Ahmad <itexpert120@outlook.com>
Co-authored-by: Megha-Dev-19 <100185149+Megha-Dev-19@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>

* Fixes git history (#429)

* 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

* 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 <16282460+elliotBraem@users.noreply.github.com>

* 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 <16282460+elliotBraem@users.noreply.github.com>

* 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 <16282460+elliotBraem@users.noreply.github.com>

* 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 <16282460+elliotBraem@users.noreply.github.com>

* Fix overflow activity feed (#420)

* Fix overflow activity feed

* Sidebar style update

* Move fix to CSS

* increment version

---------

Co-authored-by: Muhammad Saad Iqbal <saadiqbal.dev@outlook.com>
Co-authored-by: Zeeshan Ahmad <itexpert120@outlook.com>
Co-authored-by: Megha-Dev-19 <100185149+Megha-Dev-19@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>

* 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 <saadiqbal.dev@outlook.com>
Co-authored-by: Zeeshan Ahmad <itexpert120@outlook.com>
Co-authored-by: Megha-Dev-19 <100185149+Megha-Dev-19@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>

* 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 <100185149+Megha-Dev-19@users.noreply.github.com>

* fix: gateway url, swap

* Fixes flaky tests (#453)

* fixes images, resource, and redirects

* fmt

* editor test

* fmt

* fix title for activity feeds

* Activity page tests (#454)

* fixed nav tabs page viewing assertion

* resolved all comments

---------

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

* Fix failing tests, add share post link tests (#455)

* fix failing tests, add share post link tests

* fix tests

* minor fixes

* fix flakiness

* show loader on create of a project (#461)

* Hid project location and team size when it's empty (#463)

* Hid project location when it's empty

* hid teamSize if empty

---------

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

* added upload statuses (#464)

* Added logic to handle various upload phases

* Update apps/old/widget/components/UploadField.jsx

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

* accepted variable name change

---------

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

* Adds web4 contract (#457)

* init

* tests pass, init

* tests pass

* configures workflow

* update web component

* sets default workflow wd

* upgrade versions

* add network

* adds metadata

* fmt

* updates contract for testnet social db

* set title

* linked to new app Index (#467)

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

* Fix task project ID for new project title (#471)

* fix tests

* Add NEAR Catalog Import (#474)

* Fix alias errors

* Load projects from NEAR Catalog

* Add Search

* Autofill details from selected project

* Add Tests

* caching

* Add reuseable skeleton card

* Use new skeleton card

* Remove container from CatalogImport

* Fix bg-error

* Fix test

* Add error test and improve structure

* Remove timeout from test

* Add mocking api calls to the testing cookbook

* Move catalog project(s) fetching to lib

* converts to asyncFetch

* fixes return data for asyncFetch

---------

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

* fix formatting

* fmt

* fmt

* rename workflows

---------

Co-authored-by: Elliot Braem <16282460+elliotBraem@users.noreply.github.com>
Co-authored-by: Muhammad Saad Iqbal <saadiqbal.dev@outlook.com>
Co-authored-by: Zeeshan Ahmad <itexpert120@outlook.com>
Co-authored-by: Megha-Dev-19 <100185149+Megha-Dev-19@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
8 people authored Jul 16, 2024
1 parent 228d960 commit 2553714
Show file tree
Hide file tree
Showing 19 changed files with 1,187 additions and 413 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/web4-deploy-production.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to production
name: Deploy web4 contract to production
on:
push:
branches: [main]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/web4-deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to staging
name: Deploy web4 contract to staging
on:
pull_request:
paths:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/web4-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Test web4 contract
on:
workflow_call:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/web4-undeploy-staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Undeploy staging
name: Undeploy web4 contract from staging
on:
pull_request:
types: [closed]
Expand Down
22 changes: 22 additions & 0 deletions apps/new/widget/lib/projects.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,30 @@ const getProjectIdFromPath = (id) => {
return (id ?? "").split("/")[2] ?? null;
};

const fetchCatalogProjects = () => {
const indexer = "https://nearcatalog.xyz/wp-json/nearcatalog/v1";
return asyncFetch(indexer + "/projects").then((response) => {
if (!response.body) {
return {};
}
return response.body;
});
};

const fetchCatalogProject = (id) => {
const indexer = "https://nearcatalog.xyz/wp-json/nearcatalog/v1";
const query = "";
query = fetch(indexer + "/project?pid=" + id);
if (!query.body) {
return {};
}
return query.body.profile;
};

return {
fetchProjects,
fetchCatalogProjects,
fetchCatalogProject,
getProjectMeta,
getProjectIdFromPath,
getTagsInArray,
Expand Down
125 changes: 125 additions & 0 deletions apps/new/widget/page/projects/CardSkeleton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
const CardSkeletonContainer = styled.div`
@keyframes loadingSkeleton {
0% {
opacity: 0.8;
}
50% {
opacity: 0.3;
}
100% {
opacity: 0.6;
}
}
display: flex;
flex-direction: column;
height: 447px;
width: 100%;
max-width: 400px;
border-radius: 12px;
background: var(--bg-color, #23242b);
color: var(--text-color, #fff);
margin-left: auto;
margin-right: auto;
overflow: hidden;
animation-name: loadingSkeleton;
animation-duration: 1s;
animation-iteration-count: infinite;
`;

const HeaderSkeleton = styled.div`
display: block;
width: 100%;
height: 168px;
background: #eee;
`;

const ProfileImageSkeleton = styled.div`
background: #e0e0e0;
margin-left: 32px;
transform: translateY(148px);
width: 40px;
height: 40px;
position: absolute;
border-radius: 999px;
`;

const TitleSkeleton = styled.div`
width: 120px;
height: 24px;
background: #eee;
margin-left: 24px;
margin-top: 24px;
`;

const DescriptionSkeleton = styled.div`
width: 83%;
height: 48px;
background: #eee;
margin-left: 24px;
margin-top: 24px;
`;

const TagSkeleton = styled.div`
background: #eee;
border-radius: 4px;
height: 34px;
width: 110px;
margin: 24px;
`;

const FooterItemSkeleton = styled.div`
width: 150px;
height: 40px;
background: #eee;
@media screen and (max-width: 390px) {
width: 100px;
}
`;

const DonationsInfoContainerSkeleton = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
width: 100%;
border-top: 1px #f0f0f0 solid;
`;

const DonationsInfoItemSkeleton = styled.div`
display: flex;
flex-direction: row;
gap: 8px;
align-items: center;
`;

const CardSkeleton = ({ variant }) => {
return varaint === "potlock" ? (
<CardSkeletonContainer>
<HeaderSkeleton />
<ProfileImageSkeleton />
<TitleSkeleton />
<DescriptionSkeleton />
<TagSkeleton />
<DonationsInfoContainerSkeleton>
<DonationsInfoItemSkeleton>
<FooterItemSkeleton />
</DonationsInfoItemSkeleton>
<DonationsInfoItemSkeleton>
<FooterItemSkeleton />
</DonationsInfoItemSkeleton>
</DonationsInfoContainerSkeleton>
</CardSkeletonContainer>
) : (
<CardSkeletonContainer>
<HeaderSkeleton />
<TitleSkeleton />
<DescriptionSkeleton />
<TagSkeleton />
</CardSkeletonContainer>
);
};

return { CardSkeleton };
139 changes: 139 additions & 0 deletions apps/new/widget/page/projects/CatalogImport.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
const { Feed } = VM.require("${alias_devs}/widget/Feed") || {
Feed: () => <></>,
};

const { CardSkeleton } = VM.require(
"${alias_new}/widget/page.projects.CardSkeleton",
) || {
CardSkeleton: () => <></>,
};

const { fetchCatalogProjects } = VM.require(
"${alias_new}/widget/lib.projects",
) || {
fetchCatalogProjects: () => {},
};

const projects = useCache(() => {
return fetchCatalogProjects();
}, ["near-catalog-projects"]);

const [filteredProjects, setFilteredProjects] = useState({});

useEffect(() => {
if (projects) {
setFilteredProjects(projects);
}
}, [projects]);

const [searchTerm, setSearch] = useState(null);

const Search = useMemo(() => {
return (
<Widget
src={"${alias_new}/widget/page.projects.SearchBar"}
props={{
title: sort,
numItems: filteredProjects.length,
term: searchTerm,
itemName: "project",
onSearch: (value) => {
setSearch(value);

if (searchTerm === value) return;
if (searchTerm === "") return;

const filtered = {};
Object.keys(projects).forEach((projectId) => {
if (
projects[projectId].profile.name
.toLowerCase()
.includes(value.toLowerCase())
) {
filtered[projectId] = projects[projectId];
}

if (
projects[projectId].profile.tagline
.toLowerCase()
.includes(value.toLowerCase())
) {
filtered[projectId] = projects[projectId];
}

const tags = Object.values(projects[projectId].profile.tags);
if (
tags.some((tag) =>
tag.toLowerCase().includes(value.toLowerCase()),
)
) {
filtered[projectId] = projects[projectId];
}
});
setFilteredProjects(filtered);
},
}}
/>
);
}, [projects, searchTerm]);

const ProjectsGrid = styled.div`
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.5rem;
@media screen and (max-width: 768px) {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
max-width: 100%;
`;

const [selectedProjectId, setSelectedProjectId] = useState(null);

if (selectedProjectId) {
return (
<Widget
src="${alias_new}/widget/page.projects.Editor"
loading=""
props={{
catalogProjectId: selectedProjectId,
}}
/>
);
}

return (
<div className="d-flex flex-column gap-4 p-4">
{Search}
{projects === null ? (
<>
<div className="bg-secondary text-white p-3 h6 rounded-3">
Loading projects...
</div>
</>
) : (
<>
{Object.keys(filteredProjects).length === 0 && (
<div className="bg-secondary text-white p-3 h6 rounded-3">
{searchTerm
? `No projects were found for your search query "${searchTerm}".`
: "Network issue: Couldn't fetch any projects, please try again later."}
</div>
)}
</>
)}
<Feed
items={Object.keys(filteredProjects).map((projectId) => ({ projectId }))}
Item={({ projectId }) => (
<Widget
src={"${alias_new}/widget/page.projects.CatalogProjectCard"}
loading={<CardSkeleton varaint={"catalog"} />}
props={{
project: filteredProjects[projectId],
setSelectedProjectId: setSelectedProjectId,
}}
/>
)}
Layout={ProjectsGrid}
/>
</div>
);
Loading

0 comments on commit 2553714

Please sign in to comment.