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

Incorrect display store credit reason #4268

Merged

Conversation

nbelzer
Copy link
Contributor

@nbelzer nbelzer commented Feb 11, 2022

Resolves #4264

This PR is exactly the same as #4265 but changes the name of the branch to trigger the CI.

Description
This change resolves a layout issue in store credit events table. Here the last column is used to present the name of the Spree::StoreCreditReason associated with the event. However, by default the column is given no width and therefore looks cramped.

In addition the column name used is not very descriptive, I've made use of an existing (but unused) locale key under store_credits to provide the column with a more descriptive name.

See #4264 for the before image. See below for the after image.

cramped-credit-event-after

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have attached screenshots to this PR for visual changes (if needed)
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)

Adds an additional column with a width of 20% that shows the update
reason (`Spree::StoreCreditReason`) for a store credit event.  Size
adjustments are made to the other columns to make room for this column.
The previous name ('name') is not very descriptive of this specific
column, showing the name of the `Spree::StoreCreditReason` associated
with a specific store credit event.  Therefore, I made use of the
existing (but unused) locale key 'reason_for_updating' to give the
column a more descriptive name.
Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

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

@nbelzer thank you!

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.

Thanks again!

Copy link
Contributor

@waiting-for-dev waiting-for-dev left a comment

Choose a reason for hiding this comment

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

Thanks for detailing the problem and fixing it! ❤️

@waiting-for-dev waiting-for-dev merged commit ab8ab0d into solidusio:master Feb 14, 2022
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.

Incorrect display of StoreCreditReason
4 participants