diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e72854b160..28f275724a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -89,7 +89,6 @@ jobs: with: name: PhpUnitTestReport path: tests/TestReports/CoverageReports/PhpUnit - - uses: codecov/codecov-action@v3 with: # token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos @@ -235,7 +234,6 @@ jobs: cat tests/TestReports/Behat/${{ matrix.testSuite }}.log; docker exec app.catroweb bin/behat -s ${{ matrix.testSuite }} -f pretty; fi - - uses: codecov/codecov-action@v3 with: # token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos diff --git a/config/features.php b/config/features.php index 32e4b77a49..07c8039744 100644 --- a/config/features.php +++ b/config/features.php @@ -4,4 +4,5 @@ 'Test-Flag' => false, 'New-Feature' => false, 'Experimental-Feature' => true, + 'Sidebar-Studio-Link-Feature' => false, ]; diff --git a/src/Application/Controller/Test/TestFeatureFlagController.php b/src/Application/Controller/Test/TestFeatureFlagController.php index a7ae714861..3fdefdf7de 100644 --- a/src/Application/Controller/Test/TestFeatureFlagController.php +++ b/src/Application/Controller/Test/TestFeatureFlagController.php @@ -16,4 +16,9 @@ public function testFlagAction(): Response { return $this->render('Admin/Tools/test_feature_flag.html.twig', ['enabled' => $this->manager->isEnabled('Test-Flag')]); } + + public function testFlagSidebarStudioLink(): Response + { + return $this->render('Admin/Tools/feature_flag_sidebar_studio_link.html.twig', ['enabled' => $this->manager->isEnabled('Sidebar-Studio-Link-Feature')]); + } } diff --git a/templates/Admin/Tools/feature_flag_sidebar_studio_link.html.twig b/templates/Admin/Tools/feature_flag_sidebar_studio_link.html.twig new file mode 100644 index 0000000000..a183cef97c --- /dev/null +++ b/templates/Admin/Tools/feature_flag_sidebar_studio_link.html.twig @@ -0,0 +1,8 @@ +{% if enabled %} + +{% endif %} diff --git a/templates/Default/sidebar.html.twig b/templates/Default/sidebar.html.twig index 8eb633d292..e34d21d92a 100644 --- a/templates/Default/sidebar.html.twig +++ b/templates/Default/sidebar.html.twig @@ -113,6 +113,7 @@ {# Always visible #} + + {{ render(controller( + 'App\\Application\\Controller\\Test\\TestFeatureFlagController::testFlagSidebarStudioLink' + )) }} + + +