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] Update Spree::Role admin UI with descriptions & required names #5844

Conversation

MadelineCollier
Copy link
Contributor

Summary

This PR updates the existing Roles UI to work with descriptions (migrations for which were added in #5833) as part of this issue: #5823

The next PR should include the permission sets functionality, which is nearly there, but for now this can be broken off and reviewed separately!

Screen.Recording.2024-08-30.at.5.01.43.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

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

I really appreciate the git history in this PR. A blessing to review and future selfs will thank you for this 👏🏻

@tvdeyen
Copy link
Member

tvdeyen commented Aug 30, 2024

Spec failures seem to be unrelated.

@MadelineCollier
Copy link
Contributor Author

Spec failures should be fixed once this guy is merged: #5845

This can be re-added whenever we get around to adding a migration to add
it to the spree_roles table. For now all we need is the :name &
:description.
In a separate PR, descriptions were added to the spree_roles table, and
validations were added so that names are now required to be present &
unique.

The admin specs now reflect that reality and the UI has been updated to
display descriptions.
@MadelineCollier MadelineCollier force-pushed the admin-role-creation-with-permissions branch from 618d90b to 275321b Compare September 2, 2024 16:51
Copy link

codecov bot commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.17%. Comparing base (d1302e8) to head (275321b).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5844   +/-   ##
=======================================
  Coverage   89.17%   89.17%           
=======================================
  Files         749      749           
  Lines       17395    17395           
=======================================
  Hits        15512    15512           
  Misses       1883     1883           

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

@MadelineCollier MadelineCollier merged commit e8c9675 into solidusio:main Sep 2, 2024
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