Skip to content

Conversation

@brunomiguelpinto
Copy link
Contributor

@brunomiguelpinto brunomiguelpinto commented Sep 24, 2025

Context

We’re introducing the priority field to wallets to allow custom ordering. This will enable better control over the execution or display order of wallets in various scenarios.

Description

This PR adds support for the priority attribute in the Wallet model. The changes include:
• Added priority field with default value 50 if none is provided.
• Validation to ensure priority is within the range of 1 to 50.
• API support: priority is now accepted and returned in REST endpoints.
• GraphQL support: added priority to the relevant types and mutations.

Screenshot 2025-09-24 at 11 35 44 PM

Using the new field its on this pr #4401

@brunomiguelpinto brunomiguelpinto self-assigned this Sep 24, 2025
@brunomiguelpinto brunomiguelpinto force-pushed the feat-multiple-wallet-load branch from 582013c to 7a2a1be Compare September 24, 2025 21:33
@brunomiguelpinto brunomiguelpinto force-pushed the feat-multiple-wallet-load branch from bfcafc4 to 488973a Compare September 24, 2025 22:36
@brunomiguelpinto brunomiguelpinto changed the title feat: added migrations feat: Add Support wallet priority field in API and GraphQL Sep 24, 2025
@brunomiguelpinto brunomiguelpinto force-pushed the feat-multiple-wallet-load branch 2 times, most recently from 5fc46e0 to 92a121b Compare October 3, 2025 16:57
@brunomiguelpinto brunomiguelpinto force-pushed the feat-multiple-wallet-load branch 2 times, most recently from f633a07 to 4b2c778 Compare October 17, 2025 10:08
@brunomiguelpinto brunomiguelpinto force-pushed the feat-multiple-wallet-load branch from da17b32 to 05cbfc9 Compare October 27, 2025 14:31
@brunomiguelpinto brunomiguelpinto merged commit 6a57a53 into main Oct 28, 2025
14 checks passed
@brunomiguelpinto brunomiguelpinto deleted the feat-multiple-wallet-load branch October 28, 2025 14:52
floganz added a commit that referenced this pull request Dec 9, 2025
## Context

We’re introducing the priority field to wallets to support custom
execution or display ordering. This PR builds on the base work from
#4391, which added the field to
the Wallet model and exposed it via the API.

The goal of this PR is to implement the logic that uses the priority
value when handling wallets — for example, when determining which
wallets to apply or process first.

## Description

This PR includes:
• Logic to order wallets by priority (and created_at as a secondary
key).
• Ensures active_wallets_in_application_order returns wallets in the
correct priority sequence.
• Updates any internal wallet processing to respect the defined order.

This builds directly on the foundation laid in PR
#4391 and assumes the priority
field and its validations are already in place.

---------

Co-authored-by: Miguel Pinto <darkymiguel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants