Add Gitea repository URL to remote work dashboard table#188
Conversation
Append gitea_repository_url for each job on the dashboard index and show it as a full external link. Align CompanyJob viewAny with verified job owners so the listing is authorized for the same users who can manage posts. Made-with: Cursor
…thub.com/ht3aa/find-developer into cursor/2026-04-04-remote-work-gitea-link
There was a problem hiding this comment.
Code Review
This pull request introduces the Gitea repository URL to the remote work dashboard, allowing users to view and access repository links directly from the jobs list. Changes include updating the CompanyJobPolicy to permit access for verified users, appending the repository URL in the RemoteWorkController, and enhancing the Vue frontend to display the new column. A new feature test was also added to verify the integration. Feedback focuses on using the more idiomatic through method for paginated collections and improving URL readability in the UI by using break-words instead of break-all.
| $jobs->getCollection()->transform( | ||
| fn (CompanyJob $job): CompanyJob => $job->append('gitea_repository_url'), | ||
| ); |
There was a problem hiding this comment.
While using transform on the collection works, Laravel's LengthAwarePaginator provides a through method which is more idiomatic for mapping or modifying paginated items. It also allows for a more fluent chain.
$jobs->through(
fn (CompanyJob $job): CompanyJob => $job->append('gitea_repository_url'),
);| {{ job.status }} | ||
| </Badge> | ||
| </TableCell> | ||
| <TableCell class="max-w-md break-all text-sm"> |
There was a problem hiding this comment.
Summary
gitea_repository_url(from the existingCompanyJobaccessor) to each job on the remote work dashboard index so the Vue table can render it.CompanyJobPolicy::viewAnyso verified users can open the dashboard listing (controller already scopes to the authenticated user’s jobs; this matches the policy docblock).Tests
php artisan test --compact tests/Feature/RemoteWorkTest.php --filter="includes gitea repository url"Made with Cursor