IntersectMBO / IntersectMBO/govtool

🐛 Offer a raw JSON view of governance metadata to conform to CIP-100 best practices

Open
#3,570 1 comment 0 reactions 1 assignee Claimed by @MSzalowski View on GitHub
🐛 Bug 🗳️ Voting Pillar
Dominant language
HTML
Stars
21
Forks
29
Avg merge
2d 22h
Merged PRs (30d)
7

Description

### Area

Voting Pillar

### Domain

gov.tools

### Which wallet were you using?

_No response_

### Context

- GovTool should follow the best practices defined via the community governance metadata standard CIP-100
- [CIP-100 Best Practices](https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#best-practices) states that:
> You SHOULD gracefully degrade to a simple raw content view if the metadata is malformed in some way, or not understood.

This means that when metadata is flagged as erroneous and it cannot be nicely rendered, GovTool should offer the user a raw JSON view of the metadata.
GovTool does not do this at the moment for either governance action metadata or DRep metadata.

### Steps to reproduce

see example action with extra metadata field https://preview.gov.tools/governance_actions/b51ce01c42be5a1b1fbbe665ccc0f71a4c06754153ce74616f44dcd5ef8b5d05#0

when adding an extra field in metadata
https://github.com/Ryun1/metadata/blob/main/extra-field.jsonld#L55

### Actual behavior

No way to view raw JSON metadata in erroneous or happy path

### Expected behavior

I believe there is an approach that would work simply nicely
- we add a new tab on the governance action details page to view the raw metadata, for erroneous actions and non-erroneous actions
- we add a new tab on the DRep details page to view the raw metadata, for erroneous metadata and non-erroneous metadata

This has the added benefit of allowing the user to discover new data fields that have been used and submitted.

on governance actions

![Image](https://github.com/user-attachments/assets/5dd73549-3a4b-4e65-a815-5381860cc04d)

on DRep metadata

![Image](https://github.com/user-attachments/assets/6f946461-4141-440a-a016-13f9f567b1e3)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.