Skip to content

feat: show 'Request signatures' button only for draft signers in appropriate order#6175

Merged
vitormattos merged 1 commit intomainfrom
feat/conditional-request-signatures-button
Dec 13, 2025
Merged

feat: show 'Request signatures' button only for draft signers in appropriate order#6175
vitormattos merged 1 commit intomainfrom
feat/conditional-request-signatures-button

Conversation

@vitormattos
Copy link
Copy Markdown
Member

No description provided.

@vitormattos vitormattos added this to the Next Major (33) milestone Dec 13, 2025
@vitormattos vitormattos self-assigned this Dec 13, 2025
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 13, 2025
@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable32

@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable31

…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 <[email protected]>
@vitormattos vitormattos force-pushed the feat/conditional-request-signatures-button branch from 31573f8 to 2da4eaa Compare December 13, 2025 19:15
@vitormattos vitormattos merged commit c914775 into main Dec 13, 2025
31 checks passed
@vitormattos vitormattos deleted the feat/conditional-request-signatures-button branch December 13, 2025 19:15
@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

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant