Skip to content

docs: add a Tips and Tricks page - #1498

Open
masiarek wants to merge 1 commit into
Equal-Vote:mainfrom
masiarek:docs/tips-and-tricks
Open

docs: add a Tips and Tricks page#1498
masiarek wants to merge 1 commit into
Equal-Vote:mainfrom
masiarek:docs/tips-and-tricks

Conversation

@masiarek

@masiarek masiarek commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Adds docs/help/tips_and_tricks.md — a short page of things election organisers routinely miss. It's all existing behaviour; nothing here asks for a code change.

The tip that prompted it: election and race descriptions go through formatMarkdown(), so [text](url) becomes a real link — but a bare URL doesn't. Outside ElectionDetailsForm, nothing in the product says so, so descriptions ending in a pasted address are common, and voters end up selecting and copying the address by hand. On a phone that's a genuine obstacle.

The other four:

  • Where each description actually appears — election description on the election home page, the Browse Polls card, and email invitations; race description on the ballot. Neither appears on the results page, which is worth knowing if you want people reading results to find your background material.
  • Titles are plain text. election.title and race.title render straight through <Typography>, so markdown in a title displays literally.
  • Candidates have a dedicated link field. candidate_url turns the name on the ballot into a link with an "opens in a new tab" icon — tidier than putting candidate URLs in the description, and not widely known.
  • Agree the tie rule in advance (links to the existing Ties page); test with a draft ballot first.

Every factual claim is read off main as of this branch rather than from memory. One tip — whether a description can still be edited once voting is open — was cut because I couldn't establish it from the code; happy to add it back if someone can confirm the rule.

Style follows the existing docs/help/ pages: just-the-docs front matter, parent: BetterVoting Documentation, nav_order: 9 (after Preliminary Results, before the 99s). Internal links are relative .html, matching how the frontend already links to docs.bettervoting.com/help/preliminary_results.html.

Happy to cut, reword, or split any of it — and if the page is better placed somewhere other than under Help, say the word.

Related

The discoverability gap is arguably a product issue rather than a docs one, so I've filed it separately as #1497. Short version: a8efc073 shipped the markdown feature with a Supports **bold** and [link text](url) formatting helper under both Description fields; the RaceForm rewrite dropped that helper (authored before the markdown feature, landed after it, so the rebase removed a hint its author had never seen), and the new wizard's Description field never had one. The helper now survives only in ElectionDetailsForm and SendEmailDialog. This page helps, but restoring the in-product hint would help more.

Five things organisers routinely miss, led by the one that costs the most:
election and race descriptions are rendered through formatMarkdown(), so
[text](url) becomes a link and a bare URL does not. Nothing in the product says
so outside the Details form, and a description that ends in a pasted address
leaves voters copy-pasting it by hand.

Also covered: where each description actually appears (and that neither appears
on the results page), that titles are plain text, the dedicated candidate link
field, and testing with a draft ballot first.

Written against main; every claim is read off the current source rather than
remembered. One tip was cut because it could not be verified from the code.
@netlify

netlify Bot commented Aug 8, 2026

Copy link
Copy Markdown

Deploy Preview for bettervoting ready!

Name Link
🔨 Latest commit c8af74e
🔍 Latest deploy log https://app.netlify.com/projects/bettervoting/deploys/6a7717377ff15f00083f2cfb
😎 Deploy Preview https://deploy-preview-1498--bettervoting.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3f88c468-caf5-4bdb-9bc2-84ccd8bbf8b2

📥 Commits

Reviewing files that changed from the base of the PR and between 7bc75a8 and c8af74e.

📒 Files selected for processing (1)
  • docs/help/tips_and_tricks.md

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Added a new Tips and Tricks guide with practical guidance on formatted links, descriptions, titles, candidate and party links, ties, and draft ballot testing.
    • Included examples, reference tables, notes, navigation details, and a link to the contribution guide.

Walkthrough

Added a new Tips and Tricks help page. It documents formatted links, description placement, plain-text titles, candidate and party links, tie handling, and draft ballot testing. The page includes examples, tables, navigation metadata, and a contribution-guide link.

Poem

A rabbit reads the voting guide,
With tidy links set side by side.
“Test each ballot, plan each tie,
Keep titles plain and clear,” says I.
Documentation hops along,
And helps each election song.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: adding a Tips and Tricks documentation page.
Description check ✅ Passed The description explains the change, documents the relevant behavior, identifies the related issue, and appropriately omits frontend screenshots for a documentation-only change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant