yournextrepresentative icon indicating copy to clipboard operation
yournextrepresentative copied to clipboard

party pages don't work properly with multiple candidates of the same party per post

Open mhl opened this issue 9 years ago • 1 comments

(Another case where I was convinced there was an existing ticket but I can't find it - please close as a duplicate if you can...)

The original party pages for the UK YourNextMP site listed 0 or 1 candidates for each post:

example-party-detail-page

However, this didn't completely make sense even in the UK elections, since the "Independent" pseudo-party could multiple candidates for a single post (since there could be several independent Independent candidates in a constituency). It definitely doesn't makes sense at all in elections where there is a party list system and there might be 20 candidates from one party associated with a post.

For elections where party_lists_in_use is True, each post on the party page could just list:

  • Senator for Borsetshire:
    • 13 candidates (see the full list)

Or if there's no party list system list:

  • Standing in Ambridge: Joe Bloggs, Jane Doe
  • No candidate standing in Felpersham

mhl avatar Oct 26 '15 14:10 mhl

This is a bit better now (although it looks a bit ugly) - all candidates for a post are listed, e.g. on https://edit.yournextmp.com/election/2015/party/ynmp-party:2/independent see Blackpool South:

multiple-people-per-post

So obviously there still needs to be work on the presentation of these nested lists and the party_lists_in_use case, as above.

mhl avatar Dec 16 '15 19:12 mhl