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

basic plus extra fields #883

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

mfonsecaOEF
Copy link
Contributor

@mfonsecaOEF mfonsecaOEF commented Nov 6, 2024

PR related with MI extra fields for "direct measure" methodology for scope 3 (stationary energy and transportation), IPPU and AFOLU.

@mfonsecaOEF mfonsecaOEF self-assigned this Nov 6, 2024
Copy link
Contributor

@lemilonkh lemilonkh left a comment

Choose a reason for hiding this comment

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

Amazing, thanks 🙌 ✨

@@ -233,7 +222,7 @@ const ActivityModalBody = ({
{f.options && (
<FormControl key={idx} className="w-full">
<BuildingTypeSelectInput
options={f.options}
options={f.options as string[]}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to map or change the data type of this property here if the data is in a different format now?

@@ -25,7 +25,7 @@ export function findMethodology(
export interface ExtraField {
id: string;
type?: string;
options?: string[];
options?: string[] | { type: string; names: string[] }[];
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally we only have one of these and rework the existing data to also use this schema. Otherwise we need to have an if/ else block for both cases in every place this is used...

Copy link
Contributor

Choose a reason for hiding this comment

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

We could potentially have a helper function that normalizes it, but at that point let's just use my automatic rewriting script for the JSON and fix all of the data types to be consistent.

@thehighestprimenumber
Copy link
Contributor

let's not merge this until we meet with Evan

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.

4 participants