feat: add relation managers and infolists to sysadmin team and user resources#122
Merged
ManukMinasyan merged 8 commits intomainfrom Feb 16, 2026
Merged
Conversation
Add read-only relation managers for members, companies, people, tasks, opportunities, and notes to the sysadmin team view page.
…nfolists - implement HasColor on CreationSource enum, remove duplicated color callbacks - add OwnedTeams and MemberOf relation managers to UserResource - add infolist to UserResource view page
There was a problem hiding this comment.
Pull request overview
Adds richer “view” experiences in the sysadmin panel by introducing infolists + read-only relationship visibility for Teams and Users, and consolidates CreationSource badge coloring into the enum for reuse across resources.
Changes:
- Add
ViewTeampage plus 6 Team relation manager tabs (with count badges) and a Team infolist in sysadmin. - Add a User infolist and two Team-related relation managers (Owned Teams, Member Of) in sysadmin.
- Implement
HasColoronCreationSourceand remove duplicated badge color callbacks; link Top Teams dashboard team names to Team view.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/plans/2026-02-16-team-resource-relations.md | Adds an implementation plan for Team view + relations + dashboard link changes. |
| docs/plans/2026-02-16-team-resource-relations-design.md | Adds a design summary for the sysadmin Team relation managers and dashboard link behavior. |
| app/Enums/CreationSource.php | Centralizes Filament badge color selection via HasColor::getColor(). |
| app-modules/SystemAdmin/src/Filament/Widgets/TopTeamsTableWidget.php | Makes team names clickable to navigate to the sysadmin Team “view” page. |
| app-modules/SystemAdmin/src/Filament/Resources/UserResource.php | Adds a User infolist and registers team relation managers for the view page. |
| app-modules/SystemAdmin/src/Filament/Resources/UserResource/RelationManagers/OwnedTeamsRelationManager.php | Adds “Owned Teams” relation tab with badge count and table linking to Team view. |
| app-modules/SystemAdmin/src/Filament/Resources/UserResource/RelationManagers/TeamsRelationManager.php | Adds “Member Of” relation tab with badge count and membership columns linking to Team view. |
| app-modules/SystemAdmin/src/Filament/Resources/TeamResource.php | Adds Team infolist, registers relation managers, and registers ViewTeam page. |
| app-modules/SystemAdmin/src/Filament/Resources/TeamResource/Pages/ViewTeam.php | Introduces a Team view page (ViewRecord) with Edit header action. |
| app-modules/SystemAdmin/src/Filament/Resources/TeamResource/RelationManagers/MembersRelationManager.php | Adds Team members relation manager with badge count and membership “Joined” column. |
| app-modules/SystemAdmin/src/Filament/Resources/TeamResource/RelationManagers/CompaniesRelationManager.php | Adds Team companies relation manager with badge count and creation source badge. |
| app-modules/SystemAdmin/src/Filament/Resources/TeamResource/RelationManagers/PeopleRelationManager.php | Adds Team people relation manager with badge count and creation source badge. |
| app-modules/SystemAdmin/src/Filament/Resources/TeamResource/RelationManagers/TasksRelationManager.php | Adds Team tasks relation manager with badge count and creation source badge. |
| app-modules/SystemAdmin/src/Filament/Resources/TeamResource/RelationManagers/OpportunitiesRelationManager.php | Adds Team opportunities relation manager with badge count and creation source badge. |
| app-modules/SystemAdmin/src/Filament/Resources/TeamResource/RelationManagers/NotesRelationManager.php | Adds Team notes relation manager with badge count and creation source badge. |
| app-modules/SystemAdmin/src/Filament/Resources/TaskResource.php | Removes duplicated CreationSource badge color closure in favor of enum HasColor. |
| app-modules/SystemAdmin/src/Filament/Resources/PeopleResource.php | Removes duplicated CreationSource badge color closure in favor of enum HasColor. |
| app-modules/SystemAdmin/src/Filament/Resources/OpportunityResource.php | Removes duplicated CreationSource badge color closure in favor of enum HasColor. |
| app-modules/SystemAdmin/src/Filament/Resources/NoteResource.php | Removes duplicated CreationSource badge color closure in favor of enum HasColor. |
| app-modules/SystemAdmin/src/Filament/Resources/CompanyResource.php | Removes duplicated CreationSource badge color closure in favor of enum HasColor. |
Comment on lines
161
to
165
| return [ | ||
| 'index' => ListTeams::route('/'), | ||
| 'create' => CreateTeam::route('/create'), | ||
| 'view' => ViewTeam::route('/{record}'), | ||
| 'edit' => EditTeam::route('/{record}/edit'), |
There was a problem hiding this comment.
New behavior is introduced here (Team view page, infolist, and multiple relation managers), but there’s no accompanying automated coverage. Please add/update Pest tests to render the ViewTeam page and assert the infolist + relation manager tabs/badges render as expected for a seeded team.
The table query was built eagerly during bootedInteractsWithTable(), baking filter values into raw SQL. When #[Reactive] updated pageFilters, the stale Builder was reused. Wrapping in a closure ensures the query is rebuilt with current filter values on each render. Also removes dead pollingInterval property and fixes inaccurate docblock on CreationSource::getColor(). Updates design doc to match implementation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HasColoronCreationSourceenum, removing duplicated color callbacks from 10 filesTest plan