Skip to content

Conversation

@StanBarrows
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 3, 2025 05:25
Copy link

Copilot AI left a 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 adds support for listing Technologies and Open Source projects with new database tables, models, controllers, views, and seeders, along with some minor UI tweaks.

  • Introduces technologies and open_sources entities: migrations, models, factories, and seeders.
  • Updates index views and controllers to use external link and title fields, opening in a new tab.
  • Minor adjustments to SVG logo size, list-card spacing, and contact seeder data.

Reviewed Changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
resources/views/layouts/_logos/_codebar.blade.php Reduced SVG height from h-10 to h-9.
resources/views/components/list-card.blade.php Added mt-1 to tag container for spacing.
resources/views/app/technologies/index.blade.php Switched to entry->link and entry->title, added target="_blank".
resources/views/app/open-source/index.blade.php Same updates as technologies view.
database/seeders/Paperflakes/ContactsTableSeeder.php Changed LinkedIn icon URL to a profile link.
database/seeders/CodebarSeeder.php Registered new OpenSource and Technologies seeders.
database/seeders/Codebar/TechnologiesTableSeeder.php Added seeder for technologies.
database/seeders/Codebar/OpenSourceTableSeeder.php Added seeder for open source projects.
database/seeders/Codebar/NewsTableSeeder.php Added news seeder entries.
database/migrations/2025_06_24_063716_create_technologies_table.php Created technologies table migration.
database/migrations/2025_06_24_063710_create_open_sources_table.php Created open_sources table migration.
database/factories/TechnologyFactory.php Scaffolded factory without default state.
database/factories/OpenSourceFactory.php Scaffolded factory without default state.
app/Models/Technology.php Model and casts for technologies.
app/Models/OpenSource.php Model and casts for open_sources.
app/Http/Controllers/Technologies/TechnologiesIndexController.php Updated view name and data binding.
app/Http/Controllers/OpenSource/OpenSourceIndexController.php Updated view name and data binding.
app/Http/Controllers/OpenSource/OpenSoruceShowController.php Updated view name for show page (file/class has typo).
app/Actions/ViewDataAction.php Added technologies and openSource data retrieval methods.
Comments suppressed due to low confidence (4)

app/Http/Controllers/OpenSource/OpenSoruceShowController.php:11

  • The class and filename are misspelled ('OpenSoruceShowController'); consider renaming both to 'OpenSourceShowController' for consistency.
class OpenSoruceShowController extends Controller

database/factories/TechnologyFactory.php:20

  • [nitpick] The factory is empty and does not define any default state; consider adding attribute definitions to support model testing.
            //

database/factories/OpenSourceFactory.php:20

  • [nitpick] The factory is empty and does not define any default state; consider adding attribute definitions to support model testing.
            //

app/Http/Controllers/OpenSource/OpenSoruceShowController.php:16

  • The controller method still uses Product $product; it should accept the OpenSource model (e.g., OpenSource $entry) to match the resource being shown.
    public function __invoke(string $locale, Product $product): View

:teaser="$entry->teaser"
:tags="$entry->tags"/>
:tags="$entry->tags"
target="_blank"/>
Copy link

Copilot AI Jul 3, 2025

Choose a reason for hiding this comment

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

When using target="_blank", add rel="noopener noreferrer" to mitigate reverse tabnabbing vulnerabilities.

Suggested change
target="_blank"/>
target="_blank" rel="noopener noreferrer"/>

Copilot uses AI. Check for mistakes.
:teaser="$entry->teaser"
:tags="$entry->tags"/>
:tags="$entry->tags"
target="_blank"/>
Copy link

Copilot AI Jul 3, 2025

Choose a reason for hiding this comment

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

When using target="_blank", add rel="noopener noreferrer" to mitigate reverse tabnabbing vulnerabilities.

Suggested change
target="_blank"/>
target="_blank" rel="noopener noreferrer"/>

Copilot uses AI. Check for mistakes.
'icons' => [
'email' => 'mischa.lanz@paperflakes.ch',
'linkedin' => 'https://www.realestateclub.ch/images/REC_social_linkedin.svg',
'linkedin' => 'https://www.linkedin.com/in/mischa-lanz-672a65112',
Copy link

Copilot AI Jul 3, 2025

Choose a reason for hiding this comment

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

The icons['linkedin'] key now points to a profile URL instead of an icon asset; consider restoring the SVG path and introducing a separate linkedin_url field for the link.

Suggested change
'linkedin' => 'https://www.linkedin.com/in/mischa-lanz-672a65112',
'linkedin' => 'linkedin-icon.svg',

Copilot uses AI. Check for mistakes.
'content' => Arr::get($data, 'content'),
'link' => $link,
'downloads' => $downloads,
'version' => $downloads,
Copy link

Copilot AI Jul 3, 2025

Choose a reason for hiding this comment

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

The version field is incorrectly set to $downloads; it should use the $version parameter ('version' => $version).

Suggested change
'version' => $downloads,
'version' => $version,

Copilot uses AI. Check for mistakes.
@StanBarrows StanBarrows merged commit ca93e89 into production Jul 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants