-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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[]} |
There was a problem hiding this comment.
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[] }[]; |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
let's not merge this until we meet with Evan |
PR related with MI extra fields for "direct measure" methodology for scope 3 (stationary energy and transportation), IPPU and AFOLU.