Show a possible-duplicates count on the admin home Dedupers box

Open
#2,724 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
ruby
Domain
backend, frontend

Research direction

Start with DataHealth::Worklists#duplicates, which already counts duplicate groups for the listed record types, and the admin home Dedupers box that should display the badges. Follow the lazy Turbo frame pattern used by the other admin home badges from #2720. Done means each dedupe card, or the box as a whole, shows the available count while keeping duplicate loading out of the main page render.

Written by the indexing model from the issue text.

Description

🤖 From Claude:

Admin home doesn't show how many possible duplicates are waiting, though the Data health page counts them under "Review queues".

  • Add count badges to the Dedupers box on admin home: one per dedupe card, or a total on the box.
  • Reuse DataHealth::Worklists#duplicates, which already counts groups for people, organizations, workshops, event registrations, categories, and sectors.
  • Load it in a lazy Turbo frame, like the other admin home badges (#2720). The duplicate finders load records in Ruby, so the count is too slow to run during the main page render.
  • Addresses and users have dedupe pages but aren't counted in Worklists#duplicates yet.
Dominant language
Ruby
Stars
15
Forks
28
Avg merge
14h 29m
Merged PRs (30d)
292

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rubyforgood/awbw

All issues in rubyforgood/awbw

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.