Giter Site home page Giter Site logo

potlock / next-app Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 2.66 MB

NextJS application built for PotLock (on NEAR)

Home Page: https://alpha.potlock.org

License: MIT License

direct-donations donations gitcoin near near-protocol non-profit public-goods quadratic quadratic-funding

next-app's People

Contributors

codingshot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

klngrs

next-app's Issues

[FEATURE] Pot | Applications Page + Application Button

Problem

Need a way to apply to pot and for admins to manage applicants

User Story(s):

As a public good, I want to apply to a round, so that I can qualify for that quadratic funding round
As someone who has applied to a round, I want to see that status of my applications and why or why not i was rejected form round, so I can prepare to promote the round
As a chef or owner, I want to be able to see applications, and approve or reject with a reason, so I can easily manage applications.

Description

Application tab in pot that show status. And apply button on banner that shows up when application period is live

Acceptance Criteria

  • check if applciation period is live
  • check registry settings of Pot to see if project is qualified
  • apply button should popup, should only show if application period is open
  • apply shouldn't show if already applied
  • route to register on public goods registry if not qualified
  • should not be allowed to apply if project applications are maxed (or should we do this from the amount of projects approved)
  • application popup should show up with reason then trigger
  • call apply method on pot for application
  • dont show if project already applied
  • for chefs and owners (pull from contract) show approve or rejects
  • for everyone else show whether in progress, rejected, or accepted with tag
  • for chef and owners when approve or reject popup with reason
  • able to show all application, accepted and rejected with reason
  • on each application item show note from project
  • when rejected or accepted show note from chef (and show icon of chef who accepted or rejected)
  • filter by applciation status, accepted, pending, approved
  • add success screen showing the round name, project id, with transaction (open in nearblocks)
  • project page preview should go to project page on potlock and have project hover (not designed yet https://trello.com/c/xTLlcpYu)
  • when accepted show project as a card (not able to donate if round hasnt started at)

Limitations

  • need success screen design
  • design for response from chefs
  • need to clarify if @lachlanglen can projects get approved after application period is over if they already applied?

Resources

Pot _ Applicatin _ Project Applies

[FEATURE] Pot | Settings + Edit Settings for Admin w/ History

Problem

Need to show settings & setting history or have a way for owners to change settings.

User Story(s):

As an applicant, I want to be able to audit any settings, so that I can audit
As a chef, I want to know if the owner is changing settings or has remove my access.
As an owner, I want to edit fees and applications dates, so if anything changes with round.
As a donor, I want to see if any applications dates or round dates have changed

Description

A settings tab in the pot page in which only the owner of pot can edit, includes application dates, funding round date, pull from pot protocol fee from pot contract

Acceptance Criteria

For edit settings

  • (application date cannot go past funding date or start after funding round has started
  • end dates cannot go past start dates, should show error for this
  • dates cannot be in past
  • pull from protocol fee from contract
  • check if chef valid address
  • check max fee for pot
  • default nada bot contract v1.nadabot.near (no deployed yet
  • add other options for config should be in form of sybil provider
  • registry (not in design) should only check for approved registries (for now only registry.potlock.near)
  • able to set cooldown period in ms (not in design currently)
  • tool tips for chef fees and referrers fees
  • add name and description

View settings

  • able to see all the changes
  • show profile id of owner and chef that goes to profile hover and stakeholder profile page

Settings history

  • show transaction history hash that opens in nearblocks for each change
  • summarize the change by checking the diff ins ettings

Limitations

  • Need better design for setting history
  • hard to determine setting history as it hcanges

Resources

[ENHANCE] Fix homepage styles & copy

Title

Fix styles & copy on homepage

Summary

[Brief overview of the enhancement and why it is needed or desired]

Motivation

Styles & copy on homepage should match designs

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Alternatives

[Discussion of any alternative solutions that were considered and why the proposed solution is preferred]

Risks

[Identification and mitigation of any potential risks associated with the enhancement]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[BUG] Improve Layout on Project Page & Mobile Resposivness

Describe the bug
The project page isn't mobile responsivenss for social icons and tabs.
To Reproduce
Steps to reproduce the behavior:

  1. Go to a profiles project page
  2. try on mobile

Expected behavior

  • Should have scrolling section
  • Banners not showing
  • Profile images not showing at time
  • Should be mobile responsive
  • Social icons shouldn't say name only show icon
  • Icons should open in new tab

Resources

[FEATURE] Deploy Pot

Problem

Currently need a place outside of the NEAR CLI to deploy a pot

User Story(s):

As a grant organization, I want to deploy a pot, so that I can manage a quadratic funding round.

Description

A form for deploying quadratic funding roudns with form validation.

Acceptance Criteria

  • deploy pot from factory contract
  • show deploy pot button from #54 page, but only to people on whitelist
  • set factory contract in props, also hard code and comment out for testing
  • form validation on date
  • indicate if person has enough balance to deploy
  • add validation for registry name and sybil settings (on advanced options) for valid near smart contract address
  • name and description input
  • info has tool tip with hover and a read more tab (don't have design for this)
  • sccuess screen for deploy pot = redirect to pot
  • validation on dates
  • (application date cannot go past funding date or start after funding round has started
  • end dates cannot go past start dates, should show error for this
  • dates cannot be in past
  • pull from protocol fee from contract (cannot edit)
  • check if chef valid address (would prefer if showed near social profile if had one
  • check max fee for pot
  • default nada bot contract v1.nadabot.near (no deployed yet
  • add other options for config should be in form of sybil provider
  • registry should only check for approved registries (for now only registry.potlock.near)
  • tool tips for chef fees and referrers fees
  • add name and description
  • accurately estimate how much it costs to deploy pot
    BONUS
  • check if wallet addresses have wasm contract deployed to it (maybe something magic build can do)

Limitations

Resources

[ENHANCE] Create `Button` component as per designs

Title

Create button component as per designs, & replace existing buttons with this component

Summary

[Brief overview of the enhancement and why it is needed or desired]

Motivation

Current button does not implement designs

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Alternatives

[Discussion of any alternative solutions that were considered and why the proposed solution is preferred]

Risks

[Identification and mitigation of any potential risks associated with the enhancement]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[ENHANCE] Fix styles on project card

Title

Project card styles should match designs

NB: wait until designs have been finalized (confirm with @lachlanglen) before starting on this ticket

Summary

[Brief overview of the enhancement and why it is needed or desired]

Motivation

[More detailed explanation of the motivation for the enhancement, including any benefits it would provide]

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Alternatives

[Discussion of any alternative solutions that were considered and why the proposed solution is preferred]

Risks

[Identification and mitigation of any potential risks associated with the enhancement]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[FEATURE] Pull Pots from Pot Testing Contract

Problem

Currently only showing layout need to integrated (pot) quadratic funding contracts from o chain

User Story(s):

As a user, I want to be able to view pots from on chain, so that I can go to the pot page

Description

On chain gallery of pots

Acceptance Criteria

  • view pots
  • filter by stage in pot
  • show accurately how much time is left
  • click on pot and see how much is left
  • see how many contirbutors
  • see how much is in contract in NEAR but use coingecko (or whatever price api) to display in USD -> fall back to near

Limitations

  • need to swich to mainnet pot and make it easy to switch once complete

Resources

[ENHANCE] Fix Cart page styles

Title

Cart page styles should match designs

Summary

[Brief overview of the enhancement and why it is needed or desired]

Motivation

[More detailed explanation of the motivation for the enhancement, including any benefits it would provide]

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Alternatives

[Discussion of any alternative solutions that were considered and why the proposed solution is preferred]

Risks

[Identification and mitigation of any potential risks associated with the enhancement]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[FEATURE] Pots | Sponsor Page

Problem

Need to see sponsors and who is donating most

User Story(s):

As a sponsor, I want to see if my transaction wnet through and see my logo displayed, so that I can

Description

Description of solution

Acceptance Criteria

  • show sponsor table
  • show sponsor hover with amount
  • show referred id with amount
  • referred should open potlock profile
  • should utilize a treemap, squares are porptional to amount donated
  • on hover should show preview and go to potlock profile #58 . should also pass in description in text
  • sponsor table should filter by most and least amount and most and least recently
  • show leaderboard
  • show sponsor feed

Limitations

  • we need a way to show the logos or let sponrs know to get their logo to show they need to update the near.social profile

Resources

 pub fn get_public_round_donations(
        &self,
        from_index: Option<u128>,
        limit: Option<u64>,
    ) -> Vec<DonationExternal> {
        let start_index: u128 = from_index.unwrap_or_default();
        assert!(
            (self.public_round_donation_ids.len() as u128) >= start_index,
            "Out of bounds, please use a smaller from_index."
        );
        let limit = limit.map(|v| v as usize).unwrap_or(usize::MAX);
        assert_ne!(limit, 0, "Cannot provide limit of 0.");
        self.public_round_donation_ids
            .iter()
            .skip(start_index as usize)
            .take(limit)
            .map(|id| {
                self.format_donation(&Donation::from(self.donations_by_id.get(&id).unwrap()), id)
            })
            .collect()
    }

Pots _ Sponsor Page
Pots _ Sponsor Treemap On Hover

[FEATURE] Add Funding Raised for Project Page

Problem

Explain the problem in details

User Story(s):

As a project, I want to see all my donations across pots and direct donations, so that I can see who my users are

Description

Description of solution

Acceptance Criteria

  • table layouts
  • able to filter based on donation type
  • able to sort from oldest to newest
  • see total amount and donors
  • open transaction in new tab to nearblocks (from transaction hash)
  • see profile iamge of donors
  • click on profile image of donors and go to project
  • click on pot for round and go to pot page
  • table is generally mobile responsive
  • funding raised empty state

Limitations

  • doesn't exist on bos page
  • in future need to add donation type. payouts from pots. Will be hard to index all pots from potfactory and then add it up
  • need to account for USD prices

Resources

Funds Raised
Funds Raised-Empty

[FEATURE] Pot Page | Accepted Project Page w/ Matched Donations

Problem

Need to see accepted projects

User Story(s):

As a donor, I want to see projects that i can donate to in matched round, so that I can get my donations amplified.

Description

Projects section of pot (quadratic funding round) that show projects accepted in round. Donate button shows if funding round section is live.

Acceptance Criteria

  • empty state of no project have been accepted
  • do not show donate button if matching round hasnt started
  • pull from accepted preojcts
  • show project card (reused from previous project card) except donation type should be through the round
  • allow to add to cart, keep track of any refers from if referred it link is given through url
  • add matched donations flow for donating directly
  • show add note on popup
  • show error if not verified and show nada bot for verification method
  • allow clicking on project to go to project page
  • add another project on the popup with drop down
  • add multiple projects to cart

Limitations

  • make sure donations are going through the pot not directly through projects
  • make srue to show popup with correct breakdowns
  • chef verification settings, will default to nada.bot but we need a strategy for custom verification

Resources

`const projects = Near.view(potId, "get_approved_applications", {});

For those who are ellgible to donate
Doniate Via Pot _ Is Verified

For those who aren't eligible need to go through nada bot
Doniate Via Pot _ Verify via Nada bot

Projects
Pots _ Project Page (2)

`

[FEATURE] Estimated Matching Amount ๐ŸŸ 

Problem

Know way for users to understand the impact of their donation based on current amount

User Story(s):

As a donor, I want to know how much my donation is likely to get matched, so that I can feel good about quadratic funding and adjust my donation accordignly.

Description

Estimated QF matching amount based on current status of pot with tool tip so users will know how much their donation will get amplfieis

Acceptance Criteria

  • on cart check out and donation amount use current donations and amount of donation to calculate estimated matching round based on current condition of pot

  • changes as amounts are toggled for matched donations

  • Should also be for when peopl arent logged in to indentivize them to want to donate

Limitations

Resources

[FEATURE] Random Donation API

Problem

Too much decision making for supporting public goods.

User Story(s):

As a user, I want to randomly support a verified public goods, so that I can

Description

DOnate randomly button that triggers popup that choose a random approved project on registry.potlock.near and allow to choose an amount and currency and note then shows success screen of what you donated too

Acceptance Criteria

  • pull from approved projects on registry.potlock.near
  • random donate
  • #28
  • pull on success creen shots which project
  • make sure project links to project page
  • show your own profile in popup, have it link to #58
  • reset on donate again
  • pull in fee information from breakdown

Limitations

  • randomnesss may not be true

Resources

Donate Randomly Popup add Note
Donate Randomly Popup
on

[FEATURE] Reccomended Projects ๐ŸŸ 

Problem

Hard time with project discovery

User Story(s):

As a user, I want to see recommended projects on my home page and also on a project page, so that I can have a better time navigating

Description

  • Recommended projects on projects page based on a users preferences (donation history, contributor profile, follow activitiy) and on a project based on cluster mapping and the category

Acceptance Criteria

  • project slider
  • related projects based on account id of that page
  • calculate related projects at first by projects in that category
  • use cluster mapping or looking at share donations, followers, and contributors
  • project slider on project home page
  • recommend based on logged in user history, following contributors & similar projects, donatiosn to proejcts in similar categories,

Limitations

Resources

  • Need to add cluster mapping

[FEATURE] Random Donation Layout

User Story(s):

As a user, I want to able to support a project randomly, so that I don't have to decide from whcih approved project to support

Description

Complete layout on figma for random donations

Acceptance Criteria

  • Use random function to pick approved project on potlock.org/registry
  • Able to choose amount of NEAR in popup
  • Donation success screen that pulls from whcih project was donated too
  • Show transaction hash, open new link in tab of nearblocks.io
  • Project linked
  • Share button with social media intents to share

Limitations

  • Need to have popup logic
  • look into social media on how to share
  • some pages like profile pages for profiles have not been made yet

Resources

[FEATURE] Potlock Stakeholder Profile Page

Problem

Alot of references to people but not potlock specific profile pages for account id except for project pages

User Story(s):

As a community member, I want to see other profile pages and have my own page, so that I can see my activity with projects, donations, and funding strategies

Description

A profile page for potlock that show relevant donations, sponsorships affilaited proejcts

Acceptance Criteria

  • show image and banner

  • pull bio

  • if has donations show donations

  • show projects a person is part of

  • shows sponsorships amount and affilaited rounds

  • if generated fees show referral fees breakdown

  • allow profile to work by passing in accountid in props

  • show nada.bot affilaited stamps (query v1.nadabot.near)
    Future

  • show lists created

Limitations

  • Design are still being done https://trello.com/c/3eP5Irfa
  • Hard to index all projects and who is contributing from them
  • Make sure that all pages referencing accounts other than project pages reference this
  • Easier to build this on BOS

Resources

[FEATURE] Build Solution to Keep Track of Total Amount Donated Globally & Per Project ๐ŸŸ 

Problem

Currently total amount raised takes the current price in NEAR and multiplies towards NEAR donated through account. This is inaccurate and does not support newly added fungible token amount. Additionally donations through pots and pots payouts not supported

User Story(s):

As a project, I want to know how muhc I have raised through all supported assets, so that I can account for it in taxes
As the platform, I want to know how much was raised through all projects and assets, so we can report on home page.

Description

A global database for all donation types across donates and pots, that take in amount at time of donation. @lachlanglen need to figure out a better strategy for this

Acceptance Criteria

  • need robust price oracle like ref or coin market cap
  • also feed into pot donations, payouts
  • this should no icnlude fees
  • may need to build indexer solution
  • can query by account id for a project
  • does not includes fees like referrer, chef and protoocl (chef only applies to pots)
  • can distingish by type
  • integrated into global donation page
  • integrated into project page
  • establish guidelines as new funding strategy, way to properly index and add supported assets

Limitations

  • should we show how much balance someone has or transfered out
  • should we build an indexer solution
  • additionally want to know how muhc was lost

Resources

  • Put donate contract
  • Put pot contract

[BUG] Showing Unapproved Projects on Explore Page

Describe the bug
Pulling all names from project registry but should only pull approved projects. Only the admins should show all projects (can pull admin from registry.potlock.near)
To Reproduce

  1. Go to home page

Expected behavior
For not logged in users and all loggedin users but admins it should only show projects that are approved onr egistry
Screenshots
Example efiz.near and gojo academy are unapproved projects
Image

[BUG] Summary of bugs version 1.0

Describe the bug

  • - Bugs
  • -
  • -

To Reproduce

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

[ENHANCE] Fix Cart modal styles

Title

When I click on "Cart" button, Cart modal should display as per designs.

NB: Make sure this discussion is resolved before starting work on this

Summary

[Brief overview of the enhancement and why it is needed or desired]

Motivation

[More detailed explanation of the motivation for the enhancement, including any benefits it would provide]

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Alternatives

[Discussion of any alternative solutions that were considered and why the proposed solution is preferred]

Risks

[Identification and mitigation of any potential risks associated with the enhancement]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[FEATURE] Cart - API - Trigger Donations + Donation Success Screen

Problem

Need to be able to transact on cart

User Story(s):

As a donor, I want to transact on the cart, so that I can actually make donatiosn

Description

Cart uses NEAR API JS to trigger transactions.

Acceptance Criteria

  • cart pull donation, referral fee information
  • cart pull referral amount, protocol fees from donate.potlock.near contract (subject to change -> make this a global variable in app)
  • cart pull fee breakdown from pot referenced in cart (pulls from any referral fees from donations) and protocol and chef fees as according to contract
  • makes a call for each donation and donation for pot
  • estimate gas correctly
  • show success of donation, show transaction hash and open in nearblocks
  • if not logged in popup wallet selector to login
  • when logged in show if enough balance (in future we should add onramp for this)
  • Donation success screen show share to twitter, facbeook linkedin. Share tags the handle on twitter if applicable and tags them (check current impelentation
  • Successful donations are cleared from cart

Limitations

  • make sure to estimate gas correctly
  • passing in referrals in storage and properly passing in contract
  • checking if somone has permission for nadabot

Resources

[FEATURE] Explore Projects, Search, Filter

Problem

Need to be able to search and filter through approved projects on registry

User Story(s):

As a user , I want to be able to find projects by least donations or by categories, so that I can find projects I want to donate too

Description

Explore page

Acceptance Criteria

  • - filter by least and most donations
  • - filter by most and recent donations
  • - show project cards with donate and add to cart
  • - make sure amount raised is enough #31
  • - use default fall back iamge
  • - show stats of proejcts correctly
  • - accurately show project count based on filter
  • - have featured projects with sliders
  • load more on bottom of card
  • show stats propoerly

Limitations

  • indexers on registry are slow
  • rember to put approved projects #35

Resources

[FEATURE] Pot Card

Problem

Need a pot card to be used on #52 and from pot explore

User Story(s):

As a developer, I want to have a pot component I can reused for differnet profiles, so that I can speed up developers

Description

Pot card

Acceptance Criteria

  • display pot description

  • clip text

  • display pot status

  • pass in pot contract address to component

  • use price api to show maount matched

  • Show name and description

  • add near api js connection

  • maybe helper function for determining

Resources

Pot implementation on BOS
https://github.com/PotLock/bos-app/blob/main/apps/potlock/widget/Pots/Card.jsx
Pots (1)

[FEATURE] Pots Page | Donations [๐ŸŸ ]

Problem

DOnors need to see donations

User Story(s):

As a project, I want to see who is donated from me in this round, so that I can see my traction

Description

Donation tab that shows donations and allow you to filter from recent and most donations, by proejct and list.

Acceptance Criteria

  • show transaction hash of donation in table that opens in new tab in nearblocks
  • donor profile image goes and hover and goes to #58
  • shows amount
  • able to filter from biggest donations and most donation
  • filter based on donor
  • filter based on project
  • show total donations amount

Limitations

Resources

[FEATURE] Project Page Should Display Team Members

Problem

Project page currently does not display team memb ers

User Story(s):

As a team member, I want to have my profile show on profile page, so that others can follow and find me

Description

Description of solution

Acceptance Criteria

  • show preview of image with name form near social
  • hover affect like in near social where can navigate to potlock porfile and also follow directly from their

Limitations

  • need to pull from social.near to pull this information that may be through an ipfs gateway

Resources

[FEATURE] Admin View for Project

Problem

Explain the problem in details

User Story(s):

As a admin, I want to flag projects for public goods registry with a reason, so that I can keep the project registry with relevant public goods and prevent bad actors.

Description

Need to have a dropdown with note for admins to set statuses of proejct on project registry.

Acceptance Criteria

  • drop down of all statuses (pull statuses from on chain Submitted, inReview, Approved, Rejected, Graulisted, Blacklisted
  • add description for reason
  • pass in registry.potlock.near
  • only show if an admin on registry.potlock.near

Limitations

Resources

From BOS APp (need new designs)
adminviewofregistry

[FEATURE] Create Post Component

Problem

Need to create profile feeds.

User Story(s):

As a user, I want to have a robust psot, so that I can reference profiles, follow, responds, likve reporst all directly form the component.

Description

Create a post component for social.near posts

Acceptance Criteria

  • create layout
  • pull from near social api to display name, .near and link to profile (potlock profile)
  • add markdown support
  • take in props posts and accountID and blockheights(can pass through URL)
  • add like post
  • and repost
  • display if post is a repost
  • able to reply to post if logged in
  • in reply show preview of logged in user near social profile
  • like replies
    Future

Limitations

  • it will be hard to generate feeds, may need near social api
  • these posts will be udpated so things like embedded posts wont work, need to show some type of not supported

Resources

[BUG] Only 9 projects display when sort is applied

Describe the bug

Only 9 projects display (out of 75 total) when sorting

Image

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

[FEATURE] Create Cart Layouts

User Story(s):

As a donor, I want the ability to add to a cart even if im not logged in, so that i can easily shop later
As a donor, I want to edit amounts, delete things from cart, see breakdowns, and set optional fees, so I can donate exactly what I want.

Description

A cart front end that allows you to add items from across the app to local storage saved in cart, and then donate all. Can also support pots.

Acceptance Criteria

  • label direct donations
  • select and deselect items in cart
  • show break down and has referral fees (with referrer? <- i dont think has design
  • all projects should display information from social account
  • click on project name and it should go to project page
  • ability to drop down different supported fungible tokens
  • shows USD preview of currency amount with whatever is used for token price API
  • able to select all and delete from cart
  • show total amount with breakdown
  • separate pots
  • show quadratic funding rounds
  • show error if not qualified to donate for pot (with popup for qualifications)
  • show if users don't have enough balance and tell them how much balance they have
  • make sure cannot add to cart twice can only change amounts

Limitations

  • need to still pull from API and have items added to cart
  • need to use near social api and price oracle to determine prices of token in USD and also display profile image

Resources

Home (6)

[FEATURE] Feed on Project Page

Problem

Explain the problem in details

User Story(s):

As a donor, I want to see updates about a proejct from project page, so that I can

Description

Custom feed of all posts and repost on social.near by a project

Acceptance Criteria

  • A robust feed that takes in accountID prop that can be use on project profile page
  • use posts form #43
  • as a tab on project profile page

Limitations

  • this is something that is built out of the box on bos, harder to integrate as seperate app

Resources

  • TO DO- add the design for nextjs app here

On bos app example https://bos.potlock.org/?tab=project&projectId=potlock.near&nav=feed

[FEATURE] Pot Page Layout

Problem

Need to have a mobile responsinvess pot page

User Story(s):

As a donor, I want to see if im leggible to donate to a pot, so that I can donate to a pot
As a sponsor, I want to see if the round is open, so I can fund a round.
As a proejct, I want to see if application is open so I can see
As a spectator, I want to see settings of the round, inlcuding owner, etfc.

Description

Create pot page layout with all tabs including, projects, application, payouts

Acceptance Criteria

  • have locked tabs that aren't clickable based on stage. Able to specify this in the component
  • settings on view mode with default values
  • have state for projects if applications haven't started & any projects arent accepted (also lock view)
  • have donors and matched around as zero if pot not deployed
  • able to pass in pot contract in props, show all default value if not pots, other wise render in api
  • show example default value of empty for tables
  • create banner with default names, description
  • create all tags by default
  • create cusotm tree map for sponsor pages
  • create empty table for sponsor pages
  • on payouts page show intiaite payouts and claculate payouts button
  • edit settings if admin
  • add logic for payouts so initiate payout and claculate payout cannot be at same time
  • table for payouts, donoations, and sponsors show referred id
  • referred id goes to respective profile page
  • add application with ensting for application history
  • admin view to approve or reject application. Show state whether application is approved or not (will be replaced by API logic)

Limitations

  • knowledge of what a pot is
  • knwoledge of how to keep track of applicants
  • need to know how to make mobile responsive need design https://trello.com/c/LH4E316o

Resources

[FEATURE] Donate Popup

Problem

Friction of going and adding to cart then putting in price is screwing up flow of donations.

User Story(s):

As a user I want to select how much and what currency I want to donate to.

Description

Donate popup accessible from project page and project card that allows you to enter amount and currency and donate directly with success screen

Acceptance Criteria

  • Donate popup
  • Accessible from donate button on project card
  • Accesible from doante page on project profile
  • Drop down fungible toknes
  • Show price equivalent and amount
  • Allow to add to cart (saves in local storage)
  • Button to donate directly
  • Show break down of fees with dropdown
  • Add optional fees (not sure if this in design
  • Show success screen if donated usccess
  • succes screen shows share to social button
  • success screen show donor name with near social profile
  • success screen shows amount in NEAR
  • susccess screen shows transactino has and opens in new tab on nearblocks
  • minimum amount on front end to cover storage costs.
  • donate.potlock.near to initatie
  • add referral fees if ferrer sent link (maybe through local storage or throuhg app props)
  • ability to add note (pass into donate.potlock.near)

Limitations

  • need external api for token price

Resources

SIngle entry Donation

[FEATURE] Profile Dropdown & Logout on Navbar

Problem

When logged in, it clicks to logout when normally this would be where. a drop down would happen. N

User Story(s):

As a user, I want to have a drop down to logout, so that I don't accidentally logout

Description

Profile drop down

Acceptance Criteria

  • show preview image like in near.social of that users nearsocial profile image, if thye dont have one then use default potlock image
  • drop down should show logout and also my profile. My profile shoudl route to potlock profile page where it passes profile id in props so this can be easily shared (iike in near social)

Limitations

Resources

  • outline links and relevant resources, references implementations

[FEATURE] Pot Page | Payouts Functionality

Problem

Owners need a dashboard to actually payouts users

User Story(s):

As an chef or owner i want ot intiate a payout so I can pay the proejcts from mathcing round

Description

Allow owners or chef to intiate and calcualte payouts

Acceptance Criteria

  • after payouts + cool down period outline the amount raised and payouts amounts in payout section
  • after cool down update the table and fetch for payouts amounts
  • show timer for cool down period
  • show calculate payouts as transaction only by chef and owner in round
  • when payouts have been calcualte trigger transaction to caculate payouts
  • use quadratic funding calculation to calculate based on donations to pass in payout amount through front end

Limitations

Resources

[FEATURE] Project Page | Display Pots A Project Is Accepted

Problem

Hard to get a history of Pots (quadratic funding rounds) that a project is a part of. In the case of gitcoin this is the case and dont have global registry of all past funding rounds.

User Story(s):

As a donor, I want to see all the active and past quadratic funding rounds (pots) that a project has been a part of, so that I can get a better sense of the past funding sources a project has been a part of and navigate to the active ones.

Description

Pots section on project page that renders

Acceptance Criteria

  • a tab called pot on project page
  • a no pots available explore pots page. Explore pots goes to global pots page
  • filter by pots, show active ones first
  • filter pot factory contract v1.pot.potlock.near for pots deployed and then check only approved applicants of this pot to show this
  • reuse pot preview card on pots explore page #53
  • click on pot and go to pot page
  • able to search filters
  • low priority

Limitations

  • to filter by every pot and whether the project has been accepted is dififcult
  • to filter based on pot status is a little difficult

Resources

Example of a pot card for Potlock bos app https://github.com/PotLock/bos-app/blob/main/apps/potlock/widget/Pots/Card.jsx

Pots _ Project Page

[ENHANCE] Update navbar to match designs

Title

Navbar should match designs

Summary

Check item order, fonts, gap, cart button, user logo (currently pixelated)

Motivation

[More detailed explanation of the motivation for the enhancement, including any benefits it would provide]

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Alternatives

[Discussion of any alternative solutions that were considered and why the proposed solution is preferred]

Risks

[Identification and mitigation of any potential risks associated with the enhancement]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[ENHANCE] Add amount raised to featured project cards

Title

Add amount raised to featured project cards

Summary

Currently cards in Featured Projects do not show amount raised

Image

Motivation

[More detailed explanation of the motivation for the enhancement, including any benefits it would provide]

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Alternatives

[Discussion of any alternative solutions that were considered and why the proposed solution is preferred]

Risks

[Identification and mitigation of any potential risks associated with the enhancement]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[FEATURE] Explore Pots Layout + API

User Story(s):

As a donor, I want to see pots, so that I can can navigate to quadratic funding round

Description

Description of solution

Acceptance Criteria

  • deploy pot if on admin whitelist (admin whitelist will be based on the front end)
  • only display pots on front end from whitelist
  • show featured pots
  • featued pots will be on whitelist
  • if no featured pots do not show section
  • llink to tool pic about pot with description
  • pull from pots from factory contract
  • keep pot deployer v1.pot.potlock.ner as variable
  • add filters based on stages
  • show active pots frist
  • add sort based on most donations and most contirubuots
  • use #53
  • click on pot and goes to pot page
  • add banner
  • add price raised
  • show number of pots in search
  • search pot by name

Limitations

  • will be harder to index all deployed pots (available on pot page) as referance
  • need to account for price across matching rounds, number of contributiorns

Resources

Explore pots (1)

[ENHANCE] Finish Project Page Header

Title

Project page header needs to be finished

Acceptance Criteria

  • need to add correct tabs with active link
  • add profile iamge and banner or use default potlock images
  • add share link that shares link to proejct and alsos passed referredId of logged in name if used logged in so we can use for fees

[BUG] Amount Raised on Project Cart Not Displaying Correctly

Describe the bug
Currently showing hardcoded value of $24.000 needs to pull each project
Screenshot 2024-01-17 at 2 40 30 AM
on donations contract and show USD value (NEAR value if API isn't owrking
To Reproduce
Steps to reproduce the behavior:

  1. Go to 'alpha.potlock.org
  2. Scroll to any page

Expected behavior
Should show current amount raised through each project

Resources

  • Coingecko APi, RefApi for prices

[FEATURE] Project Not Found

Problem

Projects should not be displayable if they got flagged. Or if account id is passed in

User Story(s):

As a admin, I want to not have projects that have been flagged to show, so that I can

Description

404 state for project not on registry

Acceptance Criteria

  • check registry.potlock.near approved projects for registry
  • if not on registry display project not found design

Limitations

Resources

[FEATURE] Featured Projects

User Story(s):

As a project, I want to my project to be highlighted, so that I can get more donations
As a user, I want to donate to filtered projected, so that i know they are vetted.

Description

Project slider of project cards that can be whitelisted from array of accountids.

Acceptance Criteria

  • display project cards
  • pull from whitelist in app of project accountid
  • slider that revolves arounds
    Bonus
  • Dont show project if it gets flagged (unlikely to happens as admin needs to add this

Resources

[FEATURE] Favicon, description, meta preview image, site tiltle for each page.

Problem

Currently show nextjs app

Description

Updated favicon, description, and site title

Acceptance Criteria

  • favicon
  • metadescription image
  • site title
  • site description

Resources

Name
Potlock
Description
Potlock, is bringing new funding mechanisms to the table for public goods, built on NEAR Protocol
Image
PotLockMedia

Favicon
PotlockAvatarTan (1)

[FEATURE] Social Feed

User Story(s):

As a user, i want a global fed of donors and public goods.

Acceptance Criteria

  • create posts with replies (show replies, show likes, show retweets)
  • show feed for all projects approved on registry
  • toggle between registry and donor registry
  • show feed for donors
  • show feateud profiles
  • show hover with ability to follow
  • when click any image of profile go to potlock profile or project page (if projects to follow then show project follow)
  • make mobile responsivness

Limitations

  • hard to query profiles
  • need a post compoennt
  • need to filter based
  • understanding which is project page and which is donor for profile

Resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.