-
Notifications
You must be signed in to change notification settings - Fork 43
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
Feat/et 2163 status notices #3210
base: bucket/order-management-p2b
Are you sure you want to change the base?
Feat/et 2163 status notices #3210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it overall! Left a few suggeestions
|
||
namespace TEC\Admin; | ||
|
||
use Spatie\Snapshots\MatchesSnapshots; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this instead of Luca's use tad\Codeception\SnapshotAssertions\SnapshotAssertions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know there was one - what's the difference here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not really sure. I just consider Luca's like our own. It does offer different methods to compare text, code, html, JSON. It works well inside a dataProvider loop and whatever we need we can just reach out to him via slack :P
...ion/TEC/Admin/__snapshots__/Ticket_NoticesTest__messages_should_match with data set 0__1.php
Outdated
Show resolved
Hide resolved
…alendar/event-tickets into feat/ET-2163-status-notices
…com:the-events-calendar/event-tickets into feat/ET-2163-status-notices"" This reverts commit 2badbfa.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a phpcs and good to go
/home/runner/work/event-tickets/event-tickets/src/Tickets/Commerce/Admin/Singular_Order_Page.php:73:1:
Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed<br>Tabs must be used to indent lines; spaces are not allowed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And some stylelint issues :D
* | ||
* @package TEC\Tickets\Commerce\Admin | ||
*/ | ||
class Singular_Order_Notices { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would love to chat tomorrow about this particular implementation before we merge, I have some thoughts on potentially using some other pattern that doesn't involve as many constants.
/** | ||
* @since TBD | ||
* | ||
* @var string Notice key. | ||
*/ | ||
const ORDER_STATUS_SUCCESSFULLY_UPDATED = 'updated'; | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These all need a space between them.
/** | |
* @since TBD | |
* | |
* @var string Notice key. | |
*/ | |
const ORDER_STATUS_SUCCESSFULLY_UPDATED = 'updated'; | |
/** | |
/** | |
* @since TBD | |
* | |
* @var string Notice key. | |
*/ | |
const ORDER_STATUS_SUCCESSFULLY_UPDATED = 'updated'; | |
/** |
/** | ||
* Success messages. | ||
*/ | ||
/* translators: %1$s: order number. %2$s: status the order was changed from. %3$s: status the order was changed to. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For these comments, you don't need to include the extra characters in the placeholders.
/* translators: %1$s: order number. %2$s: status the order was changed from. %3$s: status the order was changed to. */ | |
/* translators: 1: order number 2: status the order was changed from 3: status the order was changed to. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎫 Ticket
ET-2163
🗒️ Description
Status notices.
🎥 Artifacts
✔️ Checklist
npm run changelog
to add changelog file(s). More info herewpunit
orintegration
tests.wpunit
orintegration
tests.