DemocracyClub / WhereDoIVote-Widget

:earth_africa: An embeddable widget that consumes the UK Polling Station API
MIT License
5 stars 4 forks source link

(optionally) Show information on candidates #235

Closed chris48s closed 4 years ago

chris48s commented 5 years ago

Once we've switched to consuming our data from https://developers.democracyclub.org.uk/api/v1/ instead of https://wheredoivote.co.uk/api/ this opens up the ability for us to present information on elections and candidates as well as polling stations. This is the biggest job of this programme of work and needs the most discussion because there are a lot of different cases to consider and judgement calls we need to make.

Telling users which elections are happening can be useful information in itself. This could be the absolute MVP first iteration?

Some considerations:

Not all of our users want to present candidate information to their users (some of them want only a polling station finder), so part of the job here is to alter the build to allow us to build two distributions from the same source code: one which shows information on polling stations only and another which also includes data on candidates. Probably the easiest thing is to configure it with an env var so we can easily switch between versions for dev/testing purposes.

Perhaps this is best split this into the following sub-tasks:

chris48s commented 4 years ago

all of this got done in https://github.com/DemocracyClub/WhereDoIVote-Widget/pull/435