Skip to content

test: add zero-signer edge case test to ThresholdConfig quorum preview - #554

Open
LockedTerminal wants to merge 1 commit into
WHEELBACK:mainfrom
LockedTerminal:test/threshold-config-zero-signers
Open

test: add zero-signer edge case test to ThresholdConfig quorum preview#554
LockedTerminal wants to merge 1 commit into
WHEELBACK:mainfrom
LockedTerminal:test/threshold-config-zero-signers

Conversation

@LockedTerminal

Copy link
Copy Markdown
Contributor

Closes #452

  • Update ThresholdConfig.tsx to render an explicit 'No signers registered' warning placeholder when signers list is empty and a valid threshold is entered. This prevents the quorum preview area from silently disappearing, which admins may interpret as a loading or broken state rather than a meaningful empty state.
  • Add ThresholdConfig.test.tsx with 4 tests:
    • placeholder warning shown when signers list is empty
    • no NaN / Infinity / undefined in the rendered output with zero signers
    • quorum preview renders normally when signers are present
    • infeasible-threshold warning shown when threshold exceeds total weight

Checklist

  • Tests added or updated
  • ABI snapshot updated if contract sources changed (abis/ and COMEBACKHERE-contracts/)
  • Screenshots attached if UI changed
  • Documentation updated if needed

Notes

  • For contract changes, verify ABI snapshot hygiene with make check-abi-snapshots.
  • For UI changes, include screenshots or screen recordings to help reviewers.

Closes WHEELBACK#235

- Update ThresholdConfig.tsx to render an explicit 'No signers
  registered' warning placeholder when signers list is empty and a
  valid threshold is entered. This prevents the quorum preview area
  from silently disappearing, which admins may interpret as a loading
  or broken state rather than a meaningful empty state.
- Add ThresholdConfig.test.tsx with 4 tests:
  - placeholder warning shown when signers list is empty
  - no NaN / Infinity / undefined in the rendered output with zero signers
  - quorum preview renders normally when signers are present
  - infeasible-threshold warning shown when threshold exceeds total weight
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@LockedTerminal Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

test: add tests for ThresholdConfig quorum preview against zero signers

1 participant