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

Feat: connect new UI #879

Merged
merged 6 commits into from
Sep 16, 2024
Merged

Conversation

ga-devfront
Copy link
Contributor

@ga-devfront ga-devfront commented Sep 9, 2024

Questions Answers
Description? This PR add first page of new UI.
Type? new feature
BC breaks? no
Deprecations? no
Fixed ticket? N/A
Sponsor company @PrestaShopCorp
How to test? Go to configuration page of module and add &new-ui=1&route=welcome at the end of the URL.

@ga-devfront ga-devfront added new feature waiting for dev Blocked Status: The issue is blocked by another task labels Sep 9, 2024
@ga-devfront ga-devfront changed the title Feat/connect new UI Feat: connect new UI Sep 9, 2024
@ga-devfront ga-devfront added this to the 7.0.0 milestone Sep 10, 2024
@ga-devfront ga-devfront removed Blocked Status: The issue is blocked by another task waiting for dev labels Sep 10, 2024
@AureRita AureRita self-assigned this Sep 12, 2024
Comment on lines +13 to +19
/** @var Twig_Environment */
protected $twig;

public function __construct(UpgradeContainer $upgradeContainer)
{
$this->upgradeContainer = $upgradeContainer;
$this->twig = $this->upgradeContainer->getTwig();
Copy link
Contributor

Choose a reason for hiding this comment

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

For me there is a topic on twig typing here. $this->upgradeContainer->getTwig() can given Twig_Environment or Twig/Environment


class AbstractPageController extends AbstractGlobalController
{
public function psVersionClass(): string
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public function psVersionClass(): string
private function getPsVersionClass(): string

Copy link
Contributor

@AureRita AureRita left a comment

Choose a reason for hiding this comment

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

Hi @ga-devfront

Thank you for your PR, I tested it and it seems to works as you can see :

image

Tested from :
1.7.8.9 to 8.1.7
8.0.5 to 8.1.7
8.1.5 to 8.1.7
8.1.7 to 9.0.0
8.1.5 to 9.0.0
8.0.5 to 9.0.0

Because the PR seems to works as expected, It's QA ✔️

Thank you

@Quetzacoalt91
Copy link
Member

@ga-devfront This PR has been reviewed by the QA team, so please check the comments from @M0rgan01 and create the requested changes in another PR. You may merge this one.

Copy link

sonarqubecloud bot commented Sep 13, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@matks
Copy link
Contributor

matks commented Sep 13, 2024

Quality Gate Failed Quality Gate failed

Failed conditions 1 Security Hotspot

See analysis details on SonarCloud

No really a security issue ^^

@ga-devfront ga-devfront merged commit 3501884 into PrestaShop:dev Sep 16, 2024
36 checks passed
@ga-devfront ga-devfront deleted the feat/connect-new-ui branch September 16, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants