Greenstand / Greenstand/treetracker-admin-client

Approve or reject pending tree submissions

Open
#1,135 1 comment 0 reactions 0 assignees View on GitHub
blockhain send tree
Dominant language
JavaScript
Stars
36
Forks
212
PR merge metrics
No merged PRs in 30d

Description

## 🧑‍💼 Role
**Verifier**

## 📝 Description
As a verifier,
I want to approve or reject a pending tree
So that it is recorded on-chain and the user is rewarded or notified accordingly.

---

## ✅ Acceptance Criteria

- [ ] Approving a tree invokes chaincode:
`VerifyTree(treeID, notes)`
- [ ] Rejecting a tree invokes chaincode:
`RejectTree(treeID, reason)`
- [ ] Peer node validates the verifier's role via **certificate attributes (CID)**

---

## 🔧 Sub-tasks

- [ ] Implement **Approve** and **Reject** buttons in the UI
- [ ] Display a **feedback form** to collect:
- Notes (for approval)
- Rejection reason (for rejection)
- [ ] Trigger **chaincode invoke** based on action
- [ ] Show **confirmation dialog** and success/failure feedback

---

## 📅 Sprint Info

| Attribute | Value |
|----------------|--------------------|
| **Sprint** | 3 |
| **Priority** | High |
| **Assignee** | Frontend Dev |
| **Story Points**| 8 |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the pending-tree UI and the existing chaincode invocation entry point. Add approve and reject actions with their feedback forms, confirmation and result states, then verify that VerifyTree and RejectTree are invoked with the required values and that the peer validates the verifier certificate attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
authorization, blockchain, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.