Skip to content

[stable32] feat: show 'Request signatures' button only for draft signers in appropriate order#6177

Merged
vitormattos merged 1 commit intostable32from
backport/6175/stable32
Dec 13, 2025
Merged

[stable32] feat: show 'Request signatures' button only for draft signers in appropriate order#6177
vitormattos merged 1 commit intostable32from
backport/6175/stable32

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #6175

…opriate order

The 'Request signatures' button now appears conditionally based on signing flow:

- Parallel flow: Shows when any signer has DRAFT status (status === 0)
- Sequential flow: Shows only when current signing order has draft signers
  - Finds the lowest pending order among unsigned signers
  - Checks if that order contains any draft signers

This prevents requesting signatures from signers who aren't in their turn yet
in sequential signing, while maintaining flexibility in parallel signing.

Refactored logic into smaller, focused methods:
- hasAnyDraftSigner: Checks for any draft signer (parallel mode)
- hasSequentialDraftSigners: Orchestrates sequential mode verification
- getCurrentSigningOrder: Gets current order that should sign
- hasOrderDraftSigners: Checks if specific order has draft signers

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 13, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (32) milestone Dec 13, 2025
@vitormattos vitormattos merged commit 55f62c6 into stable32 Dec 13, 2025
56 checks passed
@vitormattos vitormattos deleted the backport/6175/stable32 branch December 13, 2025 19:31
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant