everypolitician / viewer-sinatra

Sinatra app for (pre)viewing EveryPolitician website dynamically
http://everypolitician.org/
5 stars 5 forks source link

Work out how to display executive positions when known #13297

Closed tmtmtmtm closed 5 years ago

tmtmtmtm commented 8 years ago

Problem

In many countries we now have in the source data information about who holds key positions: so for the UK we know who is Prime Minister, Chancellor of the Exchequer, Home Secretary etc. We don't currently show that information anywhere. We should.

Proposal

We have a few possible options.

  1. We simply add this information to a person's card on the Term pages — either as a new 'view' of that, or in the header.
  2. We 'hoist' the key people (e.g. Cabinet-level members, in countries where that is applicable) to the top of the list.
  3. We add a whole new set of pages for this.

My suspicion that that although we want to evolve towards #3 over time there's a quick win from a combination of #1 and #2 whilst we get there (which probably requires page-per-person first)

Acceptance Criteria

This ticket is currently only for working out what adding these could/should look like. Implementation can be another ticket. So we're really just looking for a design that will enable people to see at a glance all the people listed on http://www.parliament.uk/mps-lords-and-offices/government-and-opposition1/her-majestys-government/ when looking at http://everypolitician.org/uk/commons/term-table/56.html

Not Required

In an ideal world, this will also make it obvious that, say, David Cameron was the Prime Minister during the same term (etc), but that isn't necessarily necessary for a first version. (We'll want to find a way of displaying things like that fairly quickly though, so it would be good if this version wasn't a dead end that made it much harder to get to there).

This will only need to work for countries where the Cabinet members are also part of the legislature. Handling countries where there's a separation of powers that precludes that can come later.

Prerequisites

n/a

Related Issues

Due Date

n/a

Design?

Yes — this is entirely about design at this stage.

Text?

Ideally what's going on will be so self-evident that we don't need any explanatory copy, but let's see :)

Bloggable?

Once implemented across multiple countries this is probably worth shouting about.

zarino commented 8 years ago

Notes from conversation with Tony:

Questions left to be answered:

tmtmtmtm commented 8 years ago

in countries like the UK, where you can hold both positions at once, the existing styling would just expand to accommodate

Is this only going to show the current Cabinet position, or all the ones held during this term? e.g. should it show that Theresa May was Home Secretary before PM?

zarino commented 8 years ago

Is this only going to show the current Cabinet position, or all the ones held during this term?

I guess, if we want it to show David Cameron’s previous position this term as Prime Minister, then it should show everyone’s previous positions this term. Do you think that’s going to be information overload?

tmtmtmtm commented 8 years ago

I think it's going to be fairly common for people to have had 2 or 3 positions within a single term, but I suspect it drops off very quickly after that. But we may want to have a maximum number to display if even just to avoid massive imbalance in card sizes when there's someone who's been shuffled around a lot.

zarino commented 8 years ago

But we may want to have a maximum number to display

My hypothesis would be that people will most likely care about either the politician’s current position (solves the "Where is the Prime Minister?" use-case) or, if the politician is not in a position any more, their most recent position (solves the "Where is the ex-Prime Minister?" use-case).

So maybe we display just the current or most recently held position, and then include a "And more…" link that just toggles the rest, for people who really want to dig down. (The "And more…" button also acts as a fairly clear signal to data geeks that there is more data under the surface.)

tmtmtmtm commented 8 years ago

Yep, I like that. (Though I suspect there's going to be some interesting edge cases with search: we'd presumably want Theresa May to be visible when someone searches for "Home Secretary", and for it to be obvious why she's visible)

chrismytton commented 7 years ago

This is part of the wider issue of getting executive data onto the site, which is being tracked in https://github.com/everypolitician/viewer-sinatra/issues/24.

chrismytton commented 7 years ago

See https://github.com/everypolitician/viewer-sinatra/issues/24#issuecomment-280620076 for a summary of where we're at with the prototype for this.