-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update Natural Gas to Fossil Gas In The UI #141
Conversation
So, started over. Updated the code I was working on to the current main branch, discarded old changed. This commit is just the static mentions of the word "Natural" changed to "Fossil". More difficult is preserving the .csv data structure as NaturalGasUse and then changing how it outputs everywhere.
Well, tried to implement a common function, but not getting anywhere. It's a start at least? } export function transformBuildingData(building: IBuilding): IBuilding { return { ...building, FossilGasUse: building.NaturalGasUse, }; }
✅ Deploy Preview for radiant-cucurucho-d09bae ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
just pasted the source file from main branch
…://github.com/vkoves/electrify-chicago into issue-124-update-naturalgas-to-fossilgas-try2
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.
just removing one character that was confusing, but was in a comment, so, not a big deal.
Ok, I think we're all good, except for the static images in-power-chart.png and .webp in electrify-chicago/static. They refer to Natural gas in the graph, on the About page. |
Tests performed were building the site, going to every page, manually searching for Natural. Also loading some building and seeing if they loaded the correct replacement Fossil for Natural. |
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.
Looks great, awesome work! Did a quick spot check myself, and the code is super simple and clean 👌
Description
Hi Victor, I ended up creating a new branch to start with a more recent version of the code. First branch can be deleted?
This one has no changes to the data source, just changes to the static site where Natural Gas was mentioned.
Took another effort at editing the NaturalGasUse as it comes from the data source and displays on the site, but seems to be beyond me. In common_functions.vue was a start on it.
Seems that if the data source can't be changed, then there would need to be a transformation step in between, but only for where the data is displayed?
Resolves #124
Testing Instructions
Please describe the tests/QA that you did to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
Checklist:
My code follows the style guidelines of this project
I have performed a self-review of my own code
I have commented my code, particularly in hard-to-understand areas
Didn't seem necessary - only word change on the front-end
However, for transformation steps, documentation sounds great.
I have added tests that prove my fix is effective or that my feature works
Website loads fine.
New and existing unit tests pass locally with my changes