-
Notifications
You must be signed in to change notification settings - Fork 0
main/production #28
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
main/production #28
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.
Pull Request Overview
This PR appears to be a significant feature update that separates the news functionality from the homepage and implements various performance optimizations.
- Adds dedicated news index page and navigation: Creates a separate news listing page with its own controller and view templates
- Introduces new homepage intro component: Implements a configurable welcome section component with company-specific content
- Implements performance optimizations: Adds build configurations, resource preloading, and database query improvements
Reviewed Changes
Copilot reviewed 34 out of 37 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
vite.config.js |
Adds build optimizations including chunk splitting, minification settings, and development server optimizations |
routes/web.php |
Adds news index routes for both English and German locales |
tests/Feature/Controllers/RouteStatusTest.php |
Adds test coverage for the new news.index routes |
resources/views/layouts/app.blade.php |
Adds resource hints and preload directives for performance optimization |
resources/views/layouts/_partials/_navigation*.blade.php |
Updates navigation to include conditional news links and improves mobile layout |
resources/views/app/news/index.blade.php |
Creates dedicated news listing page template |
resources/views/app/start/index.blade.php |
Refactors homepage to include new intro component |
resources/views/components/intro.blade.php |
Implements new configurable intro component with company-specific content |
app/Http/Controllers/News/NewsIndexController.php |
Creates controller for news index functionality |
| Database seeders and migrations | Updates configuration structure to support new intro component and section toggles |
| Language files | Adds translations for new UI elements |
Comments suppressed due to low confidence (1)
resources/css/app.css:20
- The CSS property 'font-preload' does not exist. This appears to be a custom property that may not have any effect. Consider removing it or using a valid CSS property.
font-preload: true;
| }, | ||
| }, | ||
| // Enable source maps for debugging | ||
| sourcemap: false, |
Copilot
AI
Jul 29, 2025
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.
Setting sourcemap to false conflicts with the comment above it that says 'Enable source maps for debugging'. Consider setting this to true or updating the comment to reflect the actual configuration.
| sourcemap: false, | |
| sourcemap: true, |
| @@ -0,0 +1,37 @@ | |||
| @use(App\Enums\LocaleEnum;use Illuminate\Support\Facades\Config;use Illuminate\Support\Str;use App\Helpers\HelperMarkdown;use Illuminate\Support\Arr) | |||
Copilot
AI
Jul 29, 2025
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.
The @use directive should have proper semicolon separation between imports. Consider formatting as separate @use statements for better readability.
| @use(App\Enums\LocaleEnum;use Illuminate\Support\Facades\Config;use Illuminate\Support\Str;use App\Helpers\HelperMarkdown;use Illuminate\Support\Arr) | |
| @use(App\Enums\LocaleEnum) | |
| @use(Illuminate\Support\Facades\Config) | |
| @use(Illuminate\Support\Str) | |
| @use(App\Helpers\HelperMarkdown) | |
| @use(Illuminate\Support\Arr) |
| }; | ||
| $markdownContent = Arr::get($configuration?->component_intro, $locale); | ||
| $htmlContent = $markdownContent ? app(HelperMarkdown::class)->formatMarkdown($markdownContent) : ''; | ||
| $htmlContent = preg_replace('/<h2>/', '<h2 class="mb-2 text-lg md:text-xl font-semibold">', $htmlContent); |
Copilot
AI
Jul 29, 2025
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.
Using preg_replace to add CSS classes to HTML elements is fragile and error-prone. Consider using a proper HTML parser or moving the styling to CSS classes applied to the container.
| $markdownContent = Arr::get($configuration?->component_intro, $locale); | ||
| $htmlContent = $markdownContent ? app(HelperMarkdown::class)->formatMarkdown($markdownContent) : ''; | ||
| $htmlContent = preg_replace('/<h2>/', '<h2 class="mb-2 text-lg md:text-xl font-semibold">', $htmlContent); | ||
| $htmlContent = preg_replace('/<p>/', '<p class="mb-4">', $htmlContent); |
Copilot
AI
Jul 29, 2025
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.
Using preg_replace to add CSS classes to HTML elements is fragile and error-prone. Consider using a proper HTML parser or moving the styling to CSS classes applied to the container.
| <p>Bei paperflakes unterstützen wir dich dabei, deine Informationsflüsse zu strukturieren und Geschäftsprozesse zu digitalisieren. Wir denken unternehmerisch, beraten mit Weitblick und setzen auf bewährte sowie offene Technologien. Unser Ziel: Lösungen, die auf deine echten Bedürfnisse zugeschnitten sind – und dir im Alltag spürbaren Mehrwert bringen.</p> | ||
|
|
||
| <h2>Wie wir arbeiten</h2> | ||
| <p>Am Anfang hören wir dir zu. Denn nur wer Prozesse und Herausforderungen wirklich versteht, kann sinnvolle und nachhaltige Lösungen entwickeln. Gemeinsam mit dir erarbeiten wir ein durchdachtes Konzept, das fachlich und technisch überzeugt. Liegt die Umsetzung in unserem Kompetenzbereich, begleiten wir dich bis zur erfolgreichen Einführung – und darüber hinaus. Falls nicht, sorgen wir dafür, dass deine Anforderungen sauber dokumentiert sind und zuverlässig umgesetzt werden können – von uns oder deinem bevorzugten Partner.</p> |
Copilot
AI
Jul 29, 2025
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.
The content refers to 'paperflakes' but this file is named 'codebar_intro_de.md', suggesting it should contain codebar-specific content instead.
| <p>Bei paperflakes unterstützen wir dich dabei, deine Informationsflüsse zu strukturieren und Geschäftsprozesse zu digitalisieren. Wir denken unternehmerisch, beraten mit Weitblick und setzen auf bewährte sowie offene Technologien. Unser Ziel: Lösungen, die auf deine echten Bedürfnisse zugeschnitten sind – und dir im Alltag spürbaren Mehrwert bringen.</p> | |
| <h2>Wie wir arbeiten</h2> | |
| <p>Am Anfang hören wir dir zu. Denn nur wer Prozesse und Herausforderungen wirklich versteht, kann sinnvolle und nachhaltige Lösungen entwickeln. Gemeinsam mit dir erarbeiten wir ein durchdachtes Konzept, das fachlich und technisch überzeugt. Liegt die Umsetzung in unserem Kompetenzbereich, begleiten wir dich bis zur erfolgreichen Einführung – und darüber hinaus. Falls nicht, sorgen wir dafür, dass deine Anforderungen sauber dokumentiert sind und zuverlässig umgesetzt werden können – von uns oder deinem bevorzugten Partner.</p> | |
| <p>Bei codebar unterstützen wir dich dabei, Programmierkenntnisse zu erlernen und eine inklusive Tech-Community aufzubauen. Wir fördern Diversität, bieten kostenlose Workshops an und setzen auf eine unterstützende Lernumgebung. Unser Ziel: Menschen zu befähigen, ihre technischen Fähigkeiten zu entwickeln und ihre Karrierechancen zu verbessern.</p> | |
| <h2>Wie wir arbeiten</h2> | |
| <p>Am Anfang steht die Gemeinschaft. Wir hören dir zu, um deine Lernziele und Herausforderungen zu verstehen. Gemeinsam mit dir gestalten wir Workshops und Mentoring-Programme, die auf deine Bedürfnisse zugeschnitten sind. Unsere ehrenamtlichen Mentor:innen begleiten dich auf deinem Weg, und wir schaffen eine Umgebung, in der du dich sicher und unterstützt fühlst.</p> |
|
|
||
| 'robots' => 'index,follow', | ||
| 'title' => 'Lass uns sprechen', | ||
| 'description' => 'Fragen? Wir sind fürr dich da - melde dich jederzeit bei uns.', |
Copilot
AI
Jul 29, 2025
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's a typo: 'fürr' should be 'für'.
| 'description' => 'Fragen? Wir sind fürr dich da - melde dich jederzeit bei uns.', | |
| 'description' => 'Fragen? Wir sind für dich da - melde dich jederzeit bei uns.', |
No description provided.