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

Implement Shipping Method Index/Create/Update pages #16129

Merged

Conversation

jakubtobiasz
Copy link
Contributor

Q A
Branch? bootstrap-admin-panel

@jakubtobiasz jakubtobiasz added the Admin AdminBundle related issues and PRs. label Apr 17, 2024
@jakubtobiasz jakubtobiasz added this to the 2.0 milestone Apr 17, 2024
Copy link

github-actions bot commented Apr 17, 2024

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

@jakubtobiasz jakubtobiasz marked this pull request as ready for review April 18, 2024 11:31
@jakubtobiasz jakubtobiasz requested review from a team as code owners April 18, 2024 11:31
@jakubtobiasz jakubtobiasz force-pushed the bap/SYL-3203-shipping-methods branch 2 times, most recently from d9d0767 to b617846 Compare April 23, 2024 10:33
@Wojdylak
Copy link
Member

/bns:start

@Wojdylak Wojdylak force-pushed the bap/SYL-3203-shipping-methods branch from 9d8dad7 to 38a939d Compare April 26, 2024 09:01
jakubtobiasz and others added 25 commits May 6, 2024 11:30
@Wojdylak Wojdylak force-pushed the bap/SYL-3203-shipping-methods branch from 5098eb6 to 3f77aef Compare May 6, 2024 09:54
public function __construct(
private IndexPageInterface $indexPage,
private CreatePageInterface $createPage,
private UpdatePageInterface $updatePage,
private CurrentPageResolverInterface $currentPageResolver,
private NotificationCheckerInterface $notificationChecker,
private FormElementInterface $shippingMethodFormElement,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
private FormElementInterface $shippingMethodFormElement,
private FormElementInterface $formElement,

🤔

/**
* @Then I should be notified that name is required
*/
public function iShouldBeNotifiedThatNameIsRequired($localeCode = 'en_US'): void
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public function iShouldBeNotifiedThatNameIsRequired($localeCode = 'en_US'): void
public function iShouldBeNotifiedThatNameIsRequired(string $localeCode = 'en_US'): void

}

/**
* @Then I should be notified that name is required
Copy link
Member

Choose a reason for hiding this comment

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

Then methods should be after When ones

use Sylius\Behat\Service\DriverHelper;
use Sylius\Behat\Service\TabsHelper;
use Sylius\Component\Core\Formatter\StringInflector;
use Webmozart\Assert\Assert;

class CreatePage extends BaseCreatePage implements CreatePageInterface
Copy link
Member

Choose a reason for hiding this comment

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

Both CreatePage and UpdatePage for shipping method could be probably removed as they are empty now

<tag name="form.type_extension" />
</service>

<service id="sylius.form.extension.shipping_method_rule" class="Sylius\Bundle\AdminBundle\Form\Extension\ShippingMethodRuleTypeExtension">
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<service id="sylius.form.extension.shipping_method_rule" class="Sylius\Bundle\AdminBundle\Form\Extension\ShippingMethodRuleTypeExtension">
<service id="sylius_admin.form.extension.shipping_method_rule" class="Sylius\Bundle\AdminBundle\Form\Extension\ShippingMethodRuleTypeExtension">

@GSadee GSadee merged commit 02fea6d into Sylius:bootstrap-admin-panel May 7, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin AdminBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants