Conversation
This is confusing for new users, and the 'unlocked' icon is very unclear
It's not useful to ask users to add a single canddiate when we have a SOPN
|
Closes #756 |
Move the election to the heading and make everything smaller apart from the ballot name
095bec5 to
a23c466
Compare
5e61f50 to
5727fc3
Compare
|
One thing to note is that the template indenting is all over the place. I've had to disable my editor's indenting as it's going to change everything. Once this PR is in I'd like to shove djhtml in this project to keep it in line with other projects and do a big reformattting commit. Let's ignore indending for the time being. |
e706644 to
c92d049
Compare
|
@chris48s I'm calling this ready for review. There's loads to do when you start pulling at the thread, but I reckon this is a reasonable stopping point. Reading the commit messages should be useful if not let me know and I'll amend them. I've force pushed, but mainly to deal with linting errors when pushing a fixup wasn't useful. I've been checking the whole process of a ballot from unlocked with no SOPN, to SOPN, to locked, via suggested locking. You'll either need two user accounts or to change the suggesting user to a different user ID after you suggest locking. |
|
Right. This is quite a difficult PR to review because there's so much going on I'm sure there are some situations affected by this PR that I haven't worked out how to get myself into, but I'll give it a go.. |
👍 |
|
In your top post, there's one checklist item that is still un-checked:
Is that intentional? It looks like that did get done to me |
Sorry, no I should explain: this isn't done becuase it's going to get done later. We currently show a 'lock' button when there's a suggestion, but there's no deep link to the form at |
|
Spotted a few more minor bugs here, but I think this is very close to done. In general, this is making things better so I think fixing those and then getting it in front of some users is probably higher priority than further bikeshedding on some of the outstanding rough edges. |
Combine a bunch of logic and move everything to the top of the page in a status block.
This is especially needed when there are no candidates on the ballot
I think this is a nicer way to link 'candidate actions' with the candidate table, leaving other actions to be 'ballot actions' in a fucutre commit.
In CI we fail if ruff format fails, but we don't fail pytest. This means local devs need to remember to run format before pushing. This change means that pytest will fail if ruff format would make changes
This just makes everything look a bit neater
This includes a better inline suggest lock form. In a future PR we will add better links to the lock review page, but I'm ignoring that feature request here.












This is a bucket'o'changes that all focus on some easy wins in the UI.
Some of them are in direct response to feedback we've got, some of them are things I noticed while working on the project. I'll try to break them out.
Icons
There are some areas where we use icons to indicate something. This is generally useful for power users (as most users are), but less useful for new users. We've moved to using both icon and text where we can.
Still TODO:
SOPN upload indication
Fixed a minor bug on the all elections page that didn't show if a SOPN was uploaded to a ballot.
This is written as "At present it’s not obvious whether a ballot has a SoPN or not" and is addressed in f9b4a1c.
Add candidates button on ballot page
I've made a number of changes here.
For anonymous users I've hidden the 'add new candidate' button in the window between SOPN uploaded and the ballot being locked. This isn't a useful thing to ask someone to log in for, most of the time. 25129bb
In ea384b8 I revert the earlier change to hide the button if we have a SOPN, but I do mark it as a secondary CTA. This means it's still possible, but it's not competing on the page to be the main CTA.
Move all SOPN related CTAs to the top of the page
When we have a SOPN we:
This groups all the 'Do a thing with a SOPN' actions to one place, and hopefully makes things a little clearer.