GreenInfo-Network / seattle-building-dashboard

Energy benchmarking for Seattle
https://greeninfo-network.github.io/seattle-building-dashboard/
ISC License
1 stars 0 forks source link

Re-enable call to action section links #56

Closed tomay closed 9 months ago

tomay commented 10 months ago

This should essentially be the reverse of #45

Some additional details about how the links are formatted and displayed is here in Links.md

The configuration for these are located in the seattle.json file. The data for the links are located in the cityenergy-seattle carto account.

Links can be customized for buildings by building ID, or by building type. It looks as if all the links that are currently displayed are customized by building type. In all cases, there are only two or three links shown, as seen here:

Three link example (High-rise Multifamily)

GH Pages Link

image

Two link example (University)

GH Pages Link

image

tomay commented 10 months ago

This is done and I've sent some details to the client about how these operate, and how to update them.

Note that per #59, when this goes to production, these CSV files will be served directly from src/data/links.csv

That means any changes in this phase should be made directly to that CSV files (likely by us), not in CARTO by the client

danrademacher commented 10 months ago

They provided new copy:

NEW

Multifamily

  1. Get a free energy savings assessment from an energy expert to identify energy saving opportunities for your property. Please contact Seattle City Light at SCLEnergyAdvisor@seattle.gov for more information.
  2. Financial incentives for energy efficiency upgrades are available for lighting, windows, insulation, and more. Financial incentives can cover up to 70% of project costs. https://www.seattle.gov/city-light/business-solutions/landlord-owner-agents/multifamily-building-energy-solutions

Commercial

  1. Get a free energy savings assessment from an energy expert to identify energy saving opportunities and qualify your building for financial incentives on lighting, controls, HVAC and more. Please contact Seattle City Light at SCLEnergyAdvisor@seattle.gov for more information.
  2. Financial incentives for energy efficiency upgrades are available for lighting, controls, windows, insulation, appliances and more. Financial incentives can cover up to 70% of project costs. https://www.seattle.gov/city-light/business-solutions/large-commercial-and-industrial-business-solutions

There are screenshots and notes in this word doc: https://seattlegov.sharepoint.com/:w:/r/sites/OSE-External/_layouts/15/Doc.aspx?sourcedoc=%7B647DE2D2-0939-49EF-BFA4-5BE435C916CD%7D&file=Call%20to%20Action%20Text%2020230816.docx&action=default&mobileredirect=true

But I don't think they are needed to implement the above.

tomay commented 10 months ago

This raises a few questions.

  1. I'll assume "Commercial" means use this same content for all building types that are not one of the three multifamily types

  2. The way this is configured in CARTO is with the following components:

    • Link header (the bold text as shown below)
    • Link text (the text that follows the bold header)
    • Button or "link" text
    • Button href

I can mock this up in a copy of the existing links table and stage that on GH pages, but they may want to review the language choices, especially the first button which will I guess become a "mailto" link?

tomay commented 10 months ago

Ah, I see now that the link header and text are the same as the existing copy.

But also, they want to include HTML in the link text with an email address, which we didn't have before (and the existing system doesn't support on the front end)

tomay commented 10 months ago

Mostly set here

Leave it blank, like this: image

Or include a mailto link, like this:

image

tomay commented 9 months ago

Mike would like to try and custom handle "mailto" links to remove the link that currently shows beneath the button in (1).

tomay commented 9 months ago

So this kind of breaks the model of the links being composed of the same four components (header, text, link_text and link_href), and handled the same in a loop in the template. Nonetheless, I have added an exception to remove the link below the button if it includes "mailto:"

tomay commented 9 months ago

Deployed