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

Update Natural Gas to Fossil Gas In The UI #141

Merged
merged 12 commits into from
Dec 15, 2024

Conversation

sburnschicago
Copy link
Collaborator

@sburnschicago sburnschicago commented Dec 9, 2024

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

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,
  };
}
Copy link

netlify bot commented Dec 9, 2024

Deploy Preview for radiant-cucurucho-d09bae ready!

Name Link
🔨 Latest commit 02d8d51
🔍 Latest deploy log https://app.netlify.com/sites/radiant-cucurucho-d09bae/deploys/67591ac962b6d700087055f4
😎 Deploy Preview https://deploy-preview-141--radiant-cucurucho-d09bae.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.

src/common-functions.vue Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@sburnschicago sburnschicago left a 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.

@sburnschicago
Copy link
Collaborator Author

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.

@sburnschicago
Copy link
Collaborator Author

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.

Copy link
Owner

@vkoves vkoves left a 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 👌

@vkoves vkoves merged commit 4f94c05 into main Dec 15, 2024
7 checks passed
@vkoves vkoves deleted the issue-124-update-naturalgas-to-fossilgas-try2 branch December 15, 2024 19:29
@vkoves vkoves changed the title Issue 124 update naturalgas to fossilgas try2 Update Natural Gas to Fossil Gas In The UI Dec 20, 2024
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.

Update References to "Natural Gas" to "Gas" or "Methane Gas"
2 participants