Skip to content

feat: search subscribed addresses in admin - #1177

Open
Klakurka wants to merge 1 commit into
masterfrom
ccr-b62297cf-awgd35-admin-address-search
Open

Klakurka wants to merge 1 commit into
masterfrom
ccr-b62297cf-awgd35-admin-address-search

Conversation

@Klakurka

@Klakurka Klakurka commented Dec 3, 2026

Copy link
Copy Markdown
Member

Related to #1035

Description

Adds a search box to the Subscribed Addresses section of the admin page.

  • One input filters both the eCash and Bitcoin Cash tables. The match is a case-insensitive substring, so you can paste a full prefixed address (ecash:qr...), a bare address, or just a fragment such as the last few characters.
  • While a search is active, each heading shows how many addresses match, for example eCash (1 of 2,345).
  • Each table remounts on a new search so it goes back to page 1.
  • The filtering is in a pure helper, filterAddressesBySearch in utils/index.ts, which has unit tests.
  • A small cleanup: an empty chronikStatus list for a network is now stored as [] instead of undefined.

Test plan

  • make github-test-unit: 20 suites, 409 tests pass. This includes the new tests/unittests/utils/index.test.ts, which checks:
    • an empty or blank query keeps everything
    • a full address matches
    • a fragment matches regardless of case and surrounding spaces
    • an address matches without its prefix
    • a query with no match returns nothing
  • eslint on the changed files: clean.
  • tsc --noEmit -p .: no new errors. The TableContainer prop type errors in this file were already there on master.
  • Not tested in a running app (no MySQL/SuperTokens here). Manual check: open /admin, type part of a subscribed address, and confirm both tables filter and the counts update.

Generated by Claude Code

Add a search box above the Subscribed Addresses tables on the admin page.
It filters both the eCash and Bitcoin Cash lists by a case-insensitive
substring (full prefixed address or any fragment) and shows how many of
each list match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019G564i2sNiHJYQR95m8zGq
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: edf6feb5-5097-4242-a61f-08910cd9fa4c
Commits

Reviewing files that changed from the base of the PR and between f9d06f2 and c98a2f4.

Files selected for processing: 4

  • components/Admin/SubscribedAddresses.tsx
  • components/Admin/admin.module.css
  • tests/unittests/utils/index.test.ts
  • utils/index.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

This branch has not been deployed

No deployments
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