Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Credit Class Page "Additional Info" improvements #1980

Merged
merged 10 commits into from
Jul 26, 2023

Conversation

blushi
Copy link
Member

@blushi blushi commented Jul 25, 2023

Description

Closes: regen-network/rnd-dev-team#1756


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • provided a link to the relevant issue or specification
  • provided instructions on how to test
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

How to test

https://deploy-preview-1980--regen-registry.netlify.app/credit-classes/C62

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items
.

I have...

  • confirmed all author checklist items have been addressed
  • reviewed code correctness and readability
  • verified React components follow DRY principles
  • reviewed documentation is accurate
  • reviewed tests
  • manually tested (if applicable)

@netlify
Copy link

netlify bot commented Jul 25, 2023

Deploy Preview for regen-website ready!

Name Link
🔨 Latest commit 806beb1
🔍 Latest deploy log https://app.netlify.com/sites/regen-website/deploys/64bfbefa545eb1000815a683
😎 Deploy Preview https://deploy-preview-1980--regen-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@blushi blushi requested a review from a team July 25, 2023 12:02
Copy link
Member

@ryanchristo ryanchristo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

  • "MEASURED GHGS"
  • "CO-BENEFITS"
  • AGGREGATED PROJECTS is "True"
  • schema:duration is rendered as text (e.g. 10 years)
  • list height greater than paragraph line height
  • custom buffer pool account display with name and link

Comment on lines +30 to +31
// We probably want to simplify this to be just a @list instead,
// but keeping as is, until C04 class metadata is updated accordingly.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we create a followup task blocked by regen-network/regen-registry-standards#57?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done: #1983

Comment on lines +39 to +41
// Keeping both regen:walletAddress and regen:address for now,
// until C04 class metadata gets fixed.
// But ultimately, we should just use regen:address.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (isString || isNumber) {
if (isNumber) {
formattedValue = formatNumber({ num: value });
} else if (rdfType === 'xsd:date') {
formattedValue = formatDate(value);
} else if (rdfType?.includes('Duration')) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently just "Duration" inclusion checking this but ultimately once this: regen-network/regen-registry-standards#57 (comment) is fixed, we should check for schema:Duration equality

@blushi blushi merged commit 26ccc7c into dev Jul 26, 2023
14 checks passed
@blushi blushi deleted the feat-1756-class-additional-info branch July 26, 2023 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Credit Class Page "Additional Info" improvements
2 participants