Closed tomay closed 9 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
They provided new copy:
NEW
Multifamily
Commercial
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.
This raises a few questions.
I'll assume "Commercial" means use this same content for all building types that are not one of the three multifamily types
The way this is configured in CARTO is with the following components:
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?
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)
Mostly set here
Leave it blank, like this:
Or include a mailto link, like this:
Mike would like to try and custom handle "mailto" links to remove the link that currently shows beneath the button in (1).
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:"
Deployed
This should essentially be the reverse of #45
Some additional details about how the links are formatted and displayed is here in Links.md
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
Two link example (University)
GH Pages Link