Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voting copy changes #1774

Merged
merged 15 commits into from
Mar 21, 2024
Merged

Voting copy changes #1774

merged 15 commits into from
Mar 21, 2024

Conversation

ajparsons
Copy link
Contributor

This supersedes and includes #1756 - rebased over more recent changes.

Basically this is making the "voting summary" page more complete in itself, with better descriptions and better interlinking with the documentation pages.

Update voting infomation page

Building on the change to make this a markdown page - new documentation page reviewed by Myf and Julia (although opinions still welcome).

image

Always display party comparison information

We always want this information about party to appear - even when there's no actual differences - and link to the info on party comparisons in the help page.

image

Simplify vote count information

As we now only score strong votes, this is now only counting them here. Because it's harder to do this for the numbers we were showing for the party comparison, I've just taken these out as the two should now be in sync anyway (looking at the same set of votes) - so it can be simplified.

image

Top level explanation of voting summary

New box to explain the page and link to help pages.

Having little boxes about us in here gives better places for donation asks (which could be bigger than this in future)

image

Link to feedback form in policy-divisions page

Link to new alchemer form asking for new votes:

image

Divisions votes side menu doesn't display unnecessary things

Annoyingly this means looping through this twice - but I don't think that's that expensive because it's all already queried..

As some point could just say "this page is only ever for one policy" and get rid of the structure that enables it to do multiple policies. But also, it's messy but fine.

image image

Link to help for informative votes

image

Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few tiny questions is all, I think

@@ -69,137 +62,6 @@
</div>
<?php endif; ?>

<?php if ( !$current_member[HOUSE_TYPE_COMMONS] ) { ?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the commit message for this commit should explain more that it isn't just moving, it's removing non-MP voting records entirely (as far as I read it?) (Also need a space before my email address)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also should some of the 'default' section of www/docs/mp/index.php be removed now if it's no longer needed in this template? (that would impact upon my other comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes - I was assuming we didn't have them but we do for the House of Lords sometimes or for ex-MPs who become something else.

Will investigate the default seciton.

www/docs/mp/index.php Outdated Show resolved Hide resolved
@ajparsons ajparsons force-pushed the voting-copy-changes branch 3 times, most recently from d2292cb to e0a7c10 Compare March 14, 2024 15:52
ajparsons and others added 2 commits March 14, 2024 15:55
Remove voting summary where it would be displayed for non-MPs.
This would generally be Lords/MSPs who had previously been MPs.

Co-authored-by: M Somerville <[email protected]>
@ajparsons
Copy link
Contributor Author

ajparsons commented Mar 14, 2024

Ok, I've cleared out that default section. That adds a small menu change that if this was applied on its own would be a problem (doesn't filter to just MPs) - but it'll immediately be joined by the other branch that has tidied that menu up.

If happy with that and the revised commit messages comments above should be addressed.

@ajparsons ajparsons requested a review from dracos March 14, 2024 16:25
Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks (fixup commits generally easier to re-review :) ), only the one thing I noticed.

www/docs/mp/index.php Outdated Show resolved Hide resolved
@ajparsons ajparsons requested a review from dracos March 15, 2024 11:00
Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woo

- Given these are the only scoring ones under the new system
- Previously, we showed the number of votes and year range of the votes
used for the party comparison.
- Practically, we can't reduce these to just strong votes (as we are
doing for individual MPs text) because twfy doesn't have all that info
it's database.
- This information is less useful that it used to be because we compare
against a set of MPs that are comparable to the individual MP anyway.
- So the easiest solution is just to cut down some of this information
rather than update twfy-votes to pass along just the strong votes.
- Include link to fuller help page
- If we don't have minor votes/agreements etc,
don't show the link in sidebar.
- Because of the way this page works, not a good way to avoid doing the double loop.
- Also don't render them if we don't need to for a policy
New EDM link needs access to party ID
- Enables recent vote page for devolved representatives
- Enable votes link for all except NIA and LA
@ajparsons ajparsons merged commit 1866c2b into master Mar 21, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants