Skip to content

SoPN indication#2666

Open
symroe wants to merge 11 commits intomasterfrom
sopn-indication
Open

SoPN indication#2666
symroe wants to merge 11 commits intomasterfrom
sopn-indication

Conversation

@symroe
Copy link
Member

@symroe symroe commented Feb 21, 2026

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:

  • Icons on suggest lock review form
  • Mop up areas where we only use icons still
  • Ensure we're using icon + text everywhere.

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:

  • Link to the above the table
  • (If the ballot isn't locked) show a link to bulk add
  • (If the user can lock and there is a suggestion) Show a link to the lock review form
  • (If there is a SOPN) show a link to the suggest lock form
  • (If the user can unlock) Show a link to the unlock form

This groups all the 'Do a thing with a SOPN' actions to one place, and hopefully makes things a little clearer.

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
@symroe
Copy link
Member Author

symroe commented Feb 21, 2026

Closes #756

@symroe symroe requested a review from chris48s February 21, 2026 09:31
Move the election to the heading and make everything smaller apart from
the ballot name
@symroe symroe force-pushed the sopn-indication branch 3 times, most recently from 095bec5 to a23c466 Compare February 28, 2026 21:07
Combine a bunch of logic and move everything to the top of the page in a
status block.
@symroe symroe force-pushed the sopn-indication branch 2 times, most recently from 3787333 to 5e61f50 Compare February 28, 2026 21:28
symroe and others added 2 commits March 1, 2026 11:01
This is especially needed when there are no candidates on the ballot
@symroe symroe force-pushed the sopn-indication branch from 5e61f50 to 5727fc3 Compare March 1, 2026 11:01
@symroe
Copy link
Member Author

symroe commented Mar 1, 2026

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.

symroe added 2 commits March 1, 2026 11:21
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
@symroe symroe force-pushed the sopn-indication branch from 5727fc3 to 6bf20e4 Compare March 1, 2026 11:22
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