Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Split payment]: Fix validation errors #4050

Open
wants to merge 2 commits into
base: fix/4046-table-refactoring-findings
Choose a base branch
from

Conversation

mmioana
Copy link
Contributor

@mmioana mmioana commented Jan 8, 2025

Description

  • The purpose of this PR is to hide the Remove row option from the Split payment's payments table if there is a single item. Also, I took the chance to fix some error messages for this action.

Testing

TODO: Check the Remove row option is not available if the payments table has a single item.

Screen.Recording.2025-01-13.at.11.33.20.mov
  • Step 1. Create a Split payment action

  • Step 2. Click on the meatball menu on the payment's table.

  • Step 3. Remove row should not be shown
    Screenshot 2025-01-13 at 11 52 01

  • Step 4. Duplicate or add a new row. Now the Remove row should be shown on any of the items.
    Screenshot 2025-01-13 at 11 53 18

  • Step 5. Try to submit the form. Check the error messages are formatted
    Screenshot 2025-01-13 at 11 33 48

  • Step 6. Fill all the missing details and submit the form. This should happen without issues ✨
    Screenshot 2025-01-13 at 11 35 17

Diffs

Changes 🏗

  • Remove row meatball menu option is shown only if the recipients.length > 1

Resolves #3792

@mmioana mmioana changed the title Fix/3792 split payment disable submit [Split payment]: Fix validation errors Jan 8, 2025
@mmioana mmioana changed the base branch from master to fix/4046-table-refactoring-findings January 8, 2025 15:18
@mmioana mmioana self-assigned this Jan 8, 2025
@mmioana mmioana force-pushed the fix/4046-table-refactoring-findings branch from 0a07e8e to c736b32 Compare January 8, 2025 20:44
Fix: Validation issues for split payment action
Fix: Remove transform from payments field in schema validation
@mmioana mmioana force-pushed the fix/3792-split-payment-disable-submit branch from 5460e86 to 2f5570d Compare January 13, 2025 10:45
@mmioana mmioana marked this pull request as ready for review January 13, 2025 10:56
@mmioana mmioana requested a review from a team as a code owner January 13, 2025 10:56
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.

[Split payment] Create payment" button remains clickable when all rows are deleted from the payment table
1 participant