gitcoinco / web

Grow Open Source
https://gitcoin.co
Other
1.79k stars 771 forks source link

Feat: add ability for grant owner to see all their grants under the me menu including "pending approval" grants #9894

Open gdixon opened 2 years ago

gdixon commented 2 years ago

User Story

Given I am a grant owner who has opened a grant(s), I want a view where I am able to see all the grants that I have opened and their respective statuses so I can visit each Grant Detail and have a central location to view all my grants.

Design:

One way is to upgrade the explorer to ensure that we’re showing active, idle, deactivated, and pending approval grants using the design standard we currently use.

Me Menu → My Grants → Projects → Grant Explorer with specific filters

In this case we would keep this design standard and add missing statuses and filters in order to give grant owners the correct view.

Design: Grants 2021

Acceptance Criteria / Definition of Done

GIVEN I am a grant owner navigating to the me menu WHEN I click on "my grants" THEN I see a newly relabeled option of "created by me"

GIVEN I am a grant owner on "my grants" of the me menu WHEN I click on "created by me" THEN I see grants that are "hidden from explorer", "active grants", and "idle grants" with the grants explorer view via 2 filters applied (my grants "grants I've created" and idle grants).

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.07 ETH (266.14 USD @ $3802.06/ETH) attached to it as part of the gitcoinco fund.

jpmcb commented 2 years ago

Quick question on getting setup for this: when running locally via docker-compose I don't seem to have any test data; no grants, no bounties:

image

Also running make load_initial_data completes with but makes no change on the local server

System check identified some issues:

WARNINGS:
?: (debug_toolbar.W001) debug_toolbar.middleware.DebugToolbarMiddleware is missing from MIDDLEWARE.
        HINT: Add debug_toolbar.middleware.DebugToolbarMiddleware to MIDDLEWARE.
?: (debug_toolbar.staticfiles.W001) debug_toolbar requires the STATICFILES_DIRS directories to exist.
        HINT: Running manage.py collectstatic may help uncover the issue.
Installed 1724 object(s) from 2 fixture(s)

I'm hoping to work on this with some test grants locally, any tips on getting this loaded up? Thanks much!


I went ahead and created a new issue for the above since I was able to reproduce it on a fresh VM following the recommended environment setup guide: https://github.com/gitcoinco/web/issues/9895

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 264 years, 11 months from now. Please review their action plans below:

1) cjpaekil has applied to start work _(Funders only: approve worker | reject worker)_.

Dear Client, I am a professional NodeJS & ReactJS & Angular expert, having 7+ years’ experience in building medium and big web applications. My development area includes Social dating apps, e-commerce, Administrative dashboard, Data analytics and Job portals etc. During 7 years of experience, I always follow the best practices and industry standards in writing codes and picking up suitable technology stacks, I provide high quality works to my clients. ++++My main skillsets are++++

Best and Regards. 2) hhio618 has applied to start work _(Funders only: approve worker | reject worker)_.

I believe I have the required skill and experience, This will be an easy task for me!

Learn more on the Gitcoin Issue Details page.

kiranraoboinapally commented 1 year ago

To add the ability for grant owners to see all their grants under the "Me" menu, including "Pending Approval" grants in Gitcoin, you can follow these steps:

Modify the Grants page: To add a new section for "Pending Approval" grants, you need to modify the Grants page. Open the Grants page file and add a new section for "Pending Approval" grants. You can use the existing code as a template and modify it to display the grants that are pending approval.

Create a new function: Create a new function to retrieve all the grants associated with the currently logged-in grant owner. You can use the existing Grants API to retrieve the grants data and filter it by the grant owner's address.

Update the "Me" menu: Once you have the grants data, you can update the "Me" menu to include a link to the new "Pending Approval" grants section. You can use the existing menu template and modify it to include the new link.

Add authorization: You need to ensure that only the grant owner can view their grants, including the "Pending Approval" grants. You can add authorization checks to the grants retrieval function to ensure that only the currently logged-in grant owner can view their grants.

Test the changes: Once you have made the changes, test the new "Pending Approval" grants section to ensure that it displays the correct grants and that only the grant owner can view their grants.

By following these steps, you can add the ability for grant owners to see all their grants under the "Me" menu, including "Pending Approval" grants in Gitcoin.