-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Minor admin ui redesign #210
Minor admin ui redesign #210
Conversation
e794944
to
06faf60
Compare
@diimpp to me it looks more than okay, although the build is failing 😭 |
f950aee
to
b20a34e
Compare
@CoderMaggie ready for review, though points 2 and 3 already in master. Please start CI for this PR. |
> Remember to allow community recipes with `composer config extra.symfony.allow-contrib true` or during plugin installation process | ||
|
||
1. Apply migrations to your database: | ||
2. Apply migrations to your database: |
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.
There is no need to change numeration, because 1
will be auto-incremented in the view
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.
This doesn't sit right with me, this is clearly "fallback" feature for when people missing correct numeration and not target correct syntax.
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'm OK with changing numeration, but you should adjust also line 53 of this file
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.
Sure, I've re-numbered UPGRADE as well.
@@ -138,7 +138,9 @@ public function hasTotal(string $total, string $currencyCode): bool | |||
|
|||
public function getChannel(): string | |||
{ | |||
return $this->getElement('invoice_channel_name')->getText(); | |||
$items = $this->getDocument()->findAll('css', '.channel > .channel__item'); |
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.
Change the value of key invoice_channel_name
and use it 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.
This PR replaces channel widget with sylius one, which doesn't have invoice_channel_name
id or any other ids.
Though I don't understand which key you're mentioning.
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'm talking about invoice_channel_name
key that was used by getElement
method before and it is configured below in getDefinedElements
method. You should change the selector there and keep using $this->getElement('invoice_channel_name')->getText();
if it possible
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.
Yes, it's not possible anymore to access the name via static path, so I will remove it from elements.
Implementation is pretty much the same as for RefundPlugin.
https://github.com/Sylius/RefundPlugin/blob/b263bf35834dc8f77a70d0d34ab9b5fc2fcc1453/tests/Behat/Page/Admin/CreditMemoDetailsPage.php#L78
@diimpp please rebase with master to fix the conflict, it should also fix problems with failing builds. I'm also sorry for not answering for a very long time 😞 |
Fingers crossed it will get merged soon! 🤞🏼 🤞🏼 🤞🏼 |
b20a34e
to
c498b39
Compare
@GSadee rebase is done. |
@GSadee @CoderMaggie ping |
Thank you, Dmitri! 🎉 |
Before
After
Before
After
Before
After
Before
After
Before
After
Before
After
And credit memos for context (Do ignore slightly non-standard view, artifact of the project)
Before
After
Let me know if you would like to change something.
@lchrusciel @GSadee @CoderMaggie review please :)