codeforamerica/citygram

Pass raw event values to front-end css

Opened this issue · 4 comments

Currently, the event information is combined somewhere else (server-side?) and sent to the front-end
image

Yep. Sadly, the HTML generation code must be found within the middleware that pulls data into the database; by the time it gets to Ruby or the JS front-end, it's a HTML blob already. This makes it quite tenuous to reformat in the front-end (hence the retracted PR).

I'm going to point to this "request for comment" type page:, since this is something I'm certainly open to. https://github.com/codeforamerica/citygram/wiki/GeoJSON-Enhancements

Following up on the RCP type page WRT opensandiego/open-dsd-notifications#15 and #247:

I think to fix issues around links/text the publisher format needs to separate out the concepts publishers are using now:

  • title: a text summary of the event without street, link, or date information.
  • href: a link to the original event.
  • address: a human readable rough address.
  • created: timestamp when the event was created in some version of ISO8601

Perhaps using some derivation of the permitdata.org the open311 specs would be helpful. Looks like they both have concepts like...

  • description: a fuller description of the event.
  • durations: what time period the event covers start to finish.
  • contact: an email to reach out to regarding the particular event.