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

[Admin] Refund Reasons edit/update #5819

Merged

Conversation

MadelineCollier
Copy link
Contributor

@MadelineCollier MadelineCollier commented Aug 12, 2024

Summary

This PR finishes off this issue but it doesn't have an issue ID yet as the issue is still in draft and there is (still) a GitHub bug preventing opening the issue.

This PR migrates the editing/updating of existing refund reasons to the new admin interface, following the existing pattern used for tax categories.

The form is rendered via a modal dialog on the refund reasons list by leveraging Turbo frames. Successful updating leads to a turbo stream page refresh, which updates the existing list preserving the query params and the scroll position, for a consistent UX.

The attached video shows the functionality visually:

Screen.Recording.2024-08-12.at.3.12.26.PM.mov

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

Copy link

codecov bot commented Aug 12, 2024

Codecov Report

Attention: Patch coverage is 78.57143% with 6 lines in your changes missing coverage. Please review.

Project coverage is 88.74%. Comparing base (0db8839) to head (72cf978).

Files Patch % Lines
...rollers/solidus_admin/refund_reasons_controller.rb 70.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5819      +/-   ##
==========================================
- Coverage   88.76%   88.74%   -0.02%     
==========================================
  Files         734      735       +1     
  Lines       17146    17172      +26     
==========================================
+ Hits        15219    15239      +20     
- Misses       1927     1933       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MadelineCollier MadelineCollier marked this pull request as ready for review August 12, 2024 13:31
@MadelineCollier MadelineCollier requested a review from a team as a code owner August 12, 2024 13:31
@MadelineCollier MadelineCollier merged commit 8da6c2a into solidusio:main Aug 12, 2024
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants